Deploying application with several web modules having the same context root

Hi,
I would like to be able to deploy an application in Weblogic 12c having one ejb module and several web modules with the same context root. Even though the web modules have the same context root, each of them is deployed to a different virtual host.
Weblogic allows deploying the modules this way as long as their targets are different (i.e. each having a distinct virtual host). However this works only when I don't select a target for the .ear:
Component Type Current Targets
application.ear Enterprise Application (None specified)
application.jar EJB AdminServer
web1.war WEBAPP virtualHost1
web2.war WEBAPP virtualHost2
However if I select as target for the .ear to be AdminServer, the deployment doesn't work anymore, complaining that the context roots are in conflict.
If I remove web2.war from the .ear and deploy the .ear and .jar to AdminServer and web1.war to virtualHost1, the deployment works but the strange thing is that the web application can be accessed also through the AdminServer's main network channel, even though I would expect that it should be accessible only through virtualHost1 network channel. I believe this is the reason why there are context root conflicts when specifying a target for the .ear, because both wars are made accessible to the main network channel.
The reason why I want to keep the wars inside the same .ear is because I want to make them access the application's local EJBs (since as far as I know it's not possible to access a local EJB outside the application even if they belong to the same VM).
Is there a way to deploy the web modules only to the virtual hosts without being targeted to the main network channel?
Regards,
Alexandru

Murphy's Law: If anything can go wrong it will
A corollary to Murphy's law: When everything fails, read the manual.
Web application funda: Every web application must have its own context root. So, if wkfsocos is one
web application then, wkfsocos1 is another web application -
and hence must have its own context root.
Hello Aman,
If you are in E-Commerce version 4.0, then read this
[ISA_Buildtool document |https://service.sap.com/~sapdownload/011000358700001920472003E/ISA_BuildTool_10.pdf]
to create a copy of the application in its own context root.
From your URL pattern I guess you are in E-Commerce version 4.0.
If you are in E-Commerce 5.0 or above, then the
[Extension Guide |http://service.sap.com/~sapdownload/011000358700006120622006E/]gives steps to create a copy with its own context root for use in modification.
(See the chapter on - Creating a project specific Web Application with own context root )
Both these links require access to SAP Service Marketplace. You can also find the
documents through /instguides shortcut in Service Marketplace.
Easwar Ram
http://www.parxlns.com

Similar Messages

  • Howto deal with multiple source files having the same filename...?

    Ahoi again.
    I'm currently trying to make a package for the recent version of subversive for Eclipse Ganymede and I'm almost finished.
    Some time ago the svn.connector components have been split from the official subversive distribution and have to be packed/packaged extra. And here is where my problem arises.
    The svn.connector consists (among other things) of two files which are named the same:
    http://www.polarion.org/projects/subversive/download/eclipse/2.0/update-site/features/org.polarion.eclipse.team.svn.connector_2.0.3.I20080814-1500.jar
    http://www.polarion.org/projects/subversive/download/eclipse/2.0/update-site/plugins/org.polarion.eclipse.team.svn.connector_2.0.3.I20080814-1500.jar
    At the moment makepkg downloads the first one, looks at its cache, and thinks that it already has the second file, too, because it has the same name. As a result, I can neither fetch both files nor use both of them in the build()-function...
    Are there currently any mechanisms in makepkg to deal with multiple source files having the same name?
    The only solution I see at the moment would be to only include the first file in the source array, install it in the build()-function and then manually download the second one via wget and install it after that (AKA Quick & Dirty).
    But of course I would prefer a nicer solution to this problem if possible. ^^
    TIA!
    G_Syme

    Allan wrote:I think you should file a bug report asking for a way to deal with this (but I'm not sure how to fix this at the moment...)
    OK, I've filed a bug report and have also included a suggestion how to solve this problem.

  • How to configure multiple virtual hosts for the same context root /

    Hi,
    I am using Glassfish V1 U1 - b14 on Solaris.
    I am trying to configure two applications to be mapped to the / root context, each one in its own virtual host.
    Two things I have noticed:
    1. I have to manually add virtual-hosts="hostId" in domain.xml/application-ref ... looks like just simply deploying the app does not do that although the application is set as default for its particular virtual host. Is this a bug?
    2. Although I have set for each virtual host the default web-app correctly, and they both respond fine, I cannot map both of them to the / context. The second application (chronologically deployed) does not respond when called with the / context ....
    Any ideas? Is this a bug again?
    Regards,
    Rares
    Message was edited by:
    raresp

    Wow, that's a shame. All mighty Application Server and two different apps on two different virtual hosts are considered ambiguous to have the same context root definition.... Fair play to Tomcat and 90% of the rest of servlet containers!
    In my case I have the same EAR we are planning to deploy to many (up to 30) virtual hosts. Faking different context roots for each deployment will bring unnecessary overheads...
    Should I file a bug or feature request?
    Thanks again for your answer, although you're basically saying it is not possible I will wait and look a while for a possible solution before bringing this topic to a conclusion.

  • Deploying application hangs at web module deployment, need oas restart

    hi,
    I have an oc4j instance configured within oas 10.
    every 5th ear deployment fails at web module processing. the web-console just reloads itself in an infinite loop.
    server does not response any more, need a complete restart.
    any ideas?
    regards,
    Gergely

    I found this thread useful: 10.1.3 Apps Server java.lang.OutOfMemoryError: PermGen space

  • How do we deploy several Web Services under the same Root Context?

    We have several webservices, each in their own WAR file, running on OC4J 10.1.3. They each have their own Root Context and Oracle Welcome Servlet. This works well, and since they are all separate we can easily hot-deploy updated versions.
    The drawback is separate URL's like :
    .../RootContext1/WebService1
    .../RootContext2/WebService2
    .../RootContext3/WebService3
    How do we assemble our Web Services to share a single Root Context? We are hoping to achieve URL's like this :
    .../WebServices/WebService1
    .../WebServices/WebService2
    .../WebServices/WebService3
    Do we have to bundle them all into the same WAR/EAR (and loose the power of individual deployment) or is there another way?
    Thanks in advance!

    If each one is a separate WAR file, then at the OC4J level each one will need a separate root context as it gets bound into the default-web-app.
    I guess the corollary question here is if there is someway to combine multiple webservice endpoints into one WAR file -- which can then be mapped to a single root context.
    I'll try and get someone more WS savvy than myself to take a look at this for you.
    And Clever Apache is a viable option.
    cheers
    -steve-

  • 2 apple ID's to 1.   With so many people having the same issue of 2 legitimate accounts by accident or whatever, why would Apple not let us merge them into one?  It would  simplify our lives and I don't see why Apple won't allow this.

    2 accounts to 1. I was so anxious to set up my new iPad at the store that I accidentally set up a new Account.  With so many people requesting to merge 2 legitimate accounts that they own, I can't understand why Apple is refusng to allow us to do so!  This would simplify our lives so much.  I have just switched over to Apple products and if I could at least set up both accounts on my iPad it would help -without signing in and out.  I could do this on my android.

    http://www.apple.com/feedback

  • Deploying 2 application of same context root

    Recently I deployed 2 applications in weblogic7 and weblogic8
    /usr2/applns_one --> dev
    /usr3/applns_one --> staging
    Here "applns_one" are the same in "/usr2 and /usr3" where "/usr2" is for dev and "/usr3" is for staging.
    I deployed both on the same instance or managed server of weblogic.
    first deployed app (/usr2) had a context root "/applns_one-1"
    Second deplyed app (/usr3) had a context root "/applns_one"
    After deployment I see 404 error for the URL which is accessing "/usr2" appln since its context root is "/applns_one-1".
    My issue is how can I deploy "/usr2/applns_one" and /usr3/applns_two" on the same managed server.
    Is there any workaround for this in weblogic.
    Thanks,

    If you're asking how can you deploy two applications to the same weblogic instance with the same context root, you just can't do that. There would be no point to that, as you'd only ever be able to access one of them. You'll need to change one of them.

  • Multiple war with same context root

    Dear all,
    I would like to know if it's possible to have several war in an EAR file with a same context root?
    I know that it is possible to have several war but I don't know if it's possible to share the same context root.
    The problem here is that the application on which we work is provided by another company, hence we have an original EAR containing the company war as well as the company EJB. As new versions of the application are delivered to us quite frequently, it's impossible to store the code developped by us in the EAR, as it is replaced in each delivery.
    Concerning our custom code, it is not a problem as we develop this code in a separated project which is included as a jar in the APP-INF/lib directory of the EAR file.
    But concerning the war it's an other problem. Indeed, we develop custom JSFs pages or javascript. These files are placed in the application war file which changes for each delivery.
    Thus, we would like to create an other war file which will contain all our custom pages and javascripts in order to be able, in each delivery, to fully replace the other war containing the company pages and javascripts. This would allow us to save time each time a new delivery is done.
    The important thing would be to keep the same context root for the two wars, enabling transparency for the application.
    Thanks for your help,
    Citrouille57

    Hello,
    this is possible in IBM Websphere via custom extension: http://publib.boulder.ibm.com/infocenter/wasinfo/v6r0/index.jsp?topic=/com.ibm.websphere.base.doc/info/aes/ae/tprs_sharing_data.html
    I don't know if it's possible somewhere else.
    k.

  • I am having issues with my web module on Lightroom 4 (Mac OS 10.9.5). "an unknown error occurred" while trying to upload to my FTP (no changes in my FTP). Bandaid fix was to export to local folder and upload via Filezilla. However, now that is no longer w

    I am having issues with my web module on Lightroom 4 (Mac OS 10.9.5). "an unknown error occurred" while trying to upload to my FTP (no changes in my FTP). Bandaid fix was to export to local folder and upload via Filezilla. However, now that is no longer working and although upload completes, the URL takes you to a "Forbidden - do not have permission to read this file" page. Lightroom is changing the permissions of each file to 000 instead of 644 for index files and 755 for all others. How can I change the permissions settings in Lightroom?

    I am having issues with my web module on Lightroom 4 (Mac OS 10.9.5). "an unknown error occurred" while trying to upload to my FTP (no changes in my FTP). Bandaid fix was to export to local folder and upload via Filezilla. However, now that is no longer working and although upload completes, the URL takes you to a "Forbidden - do not have permission to read this file" page. Lightroom is changing the permissions of each file to 000 instead of 644 for index files and 755 for all others. How can I change the permissions settings in Lightroom?

  • Several of us have a iPhone 6s and are having trouble with hearing and speaking at the same time when using the phone. ? The speakers seem to be too far apart? Are others having this issue? Solutions?

    Several of us have a iPhone 6plus and are having trouble with hearing and speaking at the same time when using the phone. ? The speakers seem to be too far apart? Are others having this issue? Solutions?

    Not having the problem, don't personally know anyone who is.

  • HT4245 can somebody tell me what to do with my iMessage in Ipad 2? before i can send message tru iMessage from my contacts who is having the same applications, for the existing one, i can send message but if i want to send message from a new contact, not

    can somebody tell me what to do with my iMessage in Ipad 2? before i can send message tru iMessage from my contacts who is having the same applications, for the existing one, i can send message but if i want to send message from a new contact, its not working....

    Please Rephrase your query.

  • Composite Application with RESTful Web Services

    Hello!
    Is it possible to build Composite Application with RESTful Web Services only. I use Glassfishe 2.1 and OpenESB 2.1.
    Can you point me on some tutorials on the net to read about using RESTful Web Services in BPEL?

    Hi Gabriel,
    Let me try to answer some of your questions:
    1) The "Requires Secure Access" attribute of a resource handler controls whether this handler must be accessed/consumed only over SSL (HTTPS). Oracle Database Cloud Schema Service is only offered over SSL, so this attribute does not have any effect on RESTful services deployed in this environment (because secure access is always required and there is no other way). That said, if you want to access such web service from your own APEX instance, your instance must have Oracle Wallet configured with appropriate SSL certificate.
    2) The URI parameters are not required. If your web service returns data for many entities (for example, list of employees in employees/), you may not need a parameter. If your web service returns data for one specific entity (for example, details of one employee in employees/{id}), you may want to identify that entity with a URI parameter.
    3) You can have many URI parameters, for example: customers/{id}/orders/{order_id}.
    4) Yes, these are the same HTTP methods/verbs you would use from PHP.
    5) If you are trying this POST example from your own APEX instance (not Oracle Database Cloud Schema Service) and you are trying to access a web service over SSL, then it is likely that the Oracle Wallet used by your instance does not include the required SSL certificate(s), or the Oracle Wallet is not configured at all.
    6) I recommend to check RESTful Web Services for the Oracle Database Cloud white paper and Oracle REST Data Services Developers Guide. Oracle REST Data Services is the technology that enables RESTful services in the Oracle Database Cloud Schema Service.
    You can certainly create your own web services in the Oracle Database Cloud Schema Service and consume them from the same environment.
    Vlad

  • I am having the same problems as several posters here.

    I am having the same problems as several posters here. My note 3 was pre-ordered and worked fine until may 16th of this year. This was the date of an ota upgrade to kitkat. After apps were "optimized" I first noticed such a power drain that my phone lasted 4 hours on standby without use. I uninstalled several apps including facebook which and rolled back google play services for several days. This helped my battery life which extended from 4 to 12 hours at low use. Previously, I could use the phone for nearly 48 hours without charging and using a number of apps which involved graphics, sound and data. Which leads to my next point, any graphically charged app (games generally) causes my phone to heat up tremendously and the phone leaks power like a sieve; again I reiterate this began may 16 with an ota update to kitkat which was rolled out by verizon MUCH later than other carriers but clearly didn't involve fixes.  Finally, and the most nagging problem of all....my mobile connectivity has been shot. I have dropped calls, I have had to drive to get signal, I have missed calls and I cannot afford this!! I am a home health nurse and must be in contact with MD offices and patients. Even mobile connectivity in my home is affected as I have two bars at max. I have noticed the wireless indicator go from 0 to 5 bars in a rapid cycle 5 to 6 times in a few second period and result in "no mobile network found" if I try to call anyone. This service is unacceptable and I don't want to have to root my phone as I am not sure that this would fix the problem. This is a 700 dollar phone and I shouldn't have these problems. If a solution cannot be reached, I am under contract for another year and several months and I demand a new phone. I will be saving all communications (or lack thereof) via screen shot for documentation.

    markaandersonco2006,
    Have you tried wiping your cache partition?  I noticed extremely poor battery life after the KK update, like you, (maybe 5 hours of use before requiring charging) and I saw a message on one of the Android Central forum (actually for the AT&T version of the Note 3) that mentioned to try wiping the cache partition.  That appears to have worked. Since then, my battery life has been phenomenal.  I don't know why this worked, or the downside of doing it.  But it worked.   As I write this, my battery is at 66%, and has been on for 14.5 hours (with one brief charge of 15 or so minutes in my car last night).
    Wiping the Cache partition from Recovery Mode
    This won't erase any important data.  Perform the following procedure:
    1) Turn off the device.
    2) Press and hold the following three buttons at the same time:
         a) Volume Up key
         b) Home key
         c) Power key
    3) When 'GALAXY Note 3' appears on the screen, let go of the Power key but continue to press and hold the Volume Up key and the Home key.
    4) When the Android System Recovery screen appears, release the Volume Up and Home keys.
    5) Press the Volume Down key to highlight 'wipe cache partition.'
    6) Press the Power key to select and wipe the cache.
    7) With 'reboot system now' highlighted, press the Power key to restart the device.
    Good Luck!

  • Macbook Pro 2,33Ghz Core 2 Duo Radeon X1600, it has been presentng screen artifacts since a year ago. It is not in warranty now, but I read in the web that plenty of people is having the same problem as an early degradation issue. Solution?

    Macbook Pro 2,33Ghz Core 2 Duo Radeon X1600, it has been presentng screen artifacts since a year ago. It is not in warranty now, but I read in the web that plenty of people is having the same problem as an early degradation issue. Sometimes the system freezes and stops respondign so I have to restart and lose all the unsaved work. A few moths ago, the Superdrive stopped recognizing the disc because of a firmware update released by Apple!! It is not acceptable. Solution?
    Apple should give a solution to all these people who spent more than 2500$ in a laptop that has stopped working in less than 3 years!
    http://reviews.cnet.com/8301-13727_7-10330060-263.html

    Yes, it appears the X1600 has more than its fair share of issues. I've seen reports of people reflowing the solder joints on/around the GPU with success, even baking the LB in the oven.
    The rest is something you'll have to take up with Apple.

  • Sync a phone with 2 Macs (having the same name)

    Hi,
    The question is on the title:
    is there a problem to use 2 Macs HAVING THE SAME NAME (I.E. my name) with a single phone ?
    I hope a clearly asked my question (my frenchy english is sometimes clumsy).
    Where can I find a omplete documentation of iSync.
    Thank you all

    Welcome to Apple Discussions.
    The short answer is yes, this approach is problematic and can result in severe data corruption on not only your mobile handset, but on both computers. The name of each computer is immaterial: iSync is not intended to support the use of a device as a 'data storage' go-between to equalize the contents of contact, calendaring and tasks records on two or more Macintosh desktop or portable computers.
    Instead, you should synchronize multiple Macintosh computers using:
    • .Mac Sync with a .Mac account
    • MySync from MildMannered Industries (technology acquired by Mark/Space)
    • the not-yet released SyncTogether from Mark/Space
    More information about these options is available here:
    http://www.mildmanneredindustries.com/mysync
    http://www.markspace.com/synctogether.php

Maybe you are looking for