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.

Similar Messages

  • Different application but with same context root

    hi all,
    I have two applications www.a.com and www.b.com deployed on two separate oc4j instances, both of the context root are also set to "/". But i found that only the www.b.com is correct, when i goto www.a.com, it will goto the page of www.b.com. How can i make the right cofiguration? I'm using oracle 10g AS (ver. 10.1.2.0.2).
    I have search around the forum and seems no one have similar question, can anyone answer me this newbie question. Thanks alot.

    thanks for your reply.....i'm a newbie on the oracle AS.. let me elaborate more on my situation...
    I'm using oracle http server, and i have setup 2 virtual hosts (one is for www.a.com, and the other is www.b.com) as following:
    <VirtualHost default:80>
    ServerName www.a.com
    DirectoryIndex index.html
    DocumentRoot "C:\OraHome_1\j2ee\test1\applications\App1"
    </VirtualHost>
    <VirtualHost default:80>
    ServerName www.b.com
    DirectoryIndex index.html
    DocumentRoot "C:\OraHome_1\j2ee\test2\applications\App2"
    </VirtualHost>
    At the AS, i created 2 oc4j instances which is testInstance1 and testInstance2. And then i deployed my two applications to the instance separately, but the context root are also set to "/". After that, i found that in the mod_oc4j.conf, it shows the following statement in it:
    Oc4jMount / testInstance1
    Oc4jMount /* testInstance1
    Oc4jMount / testInstance2
    Oc4jMount /* testInstance2
    i hope that is clear enough now for you to solve my problem. If not, please let me know... thanks.

  • 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

  • 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.

  • Same context root conflict.

    I'm try to run multiple instances of an application running on the same box (each on their own managed server) but use the same context root (/servlet)
    e.g.
    server1 -> /app -> /servlet
    server2 -> /app2 -> /servlet
    Currently how I do it is give each of them their own servlet name, e.g
    server1 -> /app -> /servlet
    server2 -> /app2 -> /servlet2
    I'm trying to make the urls for each instance as simple as possible. I can already see potential instances where the server#, app#, and servlet# would all be different numbers.
    If I set them to both servlet weblogic throws me this error:
    Exception:weblogic.management.ApplicationException: prepare failed for app2 Module: app2 Error: Context path '/servlet/' is already in use by the module: app application: app
    * [Deployer:149033]preparing application app2 on server2
    * [Deployer:149033]failed application app2 on server2
    * [Deployer:149034]An exception occurred for task [Deployer:149026]Deploy application app2 on server2.: Exception:weblogic.management.ApplicationException: prepare failed for app2 Module: app2 Error: Context path '/servlet/' is already in use by the module: app application: app.
    Any help that you can provide will be greatly appreciated.

    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.

  • 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.

  • Read multiples files with same extension

    how to read multiples files with same extension in java.
    for ex : i would like to read all .DAT files from C drive using java.
    How is it done

    - You create the filter
    - You get the list of files
    - You open and read each file.
    For the first two above you look at java.io.File and listFiles(FileFilter filter).
    For the third you find whatever input stream is appropriate from java.io.*

  • Multiple accounts with same email

    I have multiple accounts with same email
    The one that has all my contacts is the one attached to FB but for some odd reason I can no longer access this specific account
    When I try to reset my password, it only keeps asking me to change my FB password
    Once I try logging in on Skype, it keeps asking my FB to connect to the other 2 Skype accounts, completely diffente usernames
    I am only interested in the one that originally connected to my FB as it has all my contacts
    As my other 2 accounts are my old Skype accounts and have my old contacts from years ago

    Actually this morning I was able to log on the account from an iPad with no fuss but the pc refuses to sign in^^^!???! "Skype couldn't connect" - What is going on???
    I also found out that I could sign in via a browser but not via skype program... So I uninstalled it and installed it again and it's working now...
    I have now changed the email so I don't have 3 accounts with the same primary email as Skype seems to not being able to handle multiple accounts with same email!!!

  • Multiple members with same alias

    I have multiple members with same alias name. Are there anyway to build dimension members with same alias name?

    Typically I will concatinate the member name (as either a prefix or suffix ) to the Alias to make it unique

  • Iis and jboss using same context root

    I want to be able to run two instances of jboss, two iis web sites and have them both use the same context root "/". The will be used for different sites www.site1.com and www.site2.com.
    I have iis serving up my jsp from jetty using the apache redirector fine for one server. I can also get it running for two iis web servers and two jboss servers on different ip addresses (all on the same machine). But, I am unable to use the same context root in the uiworker.properties file. The only way they will serve up the pages separately is if thee workers are assigned different context roots. I want to use "/" for the context root on both sites in both jboss instances.
    Is there a way to do this?

    http://www.itshastra.com/know_bank/IIS_Jboss.pdf

  • Mounting multiple directories with same name on different severs to a single mount point on another server

    We have a requirement where in we have multiple solaris servers and each solaris server has a directory with the same name.
    The files in these directories will be different.
    These same name directories on multiple severs has to be mounted to a single directory on another sever.
    We are planning to use NFS, but it seems we can not mount multiple directories with same name on different severs to a single mount point using NFS, and we need to create multiple mount points.
    Is there any way we can achieve this so that all the directories can be mounted to a single mount point?

    You can try to mount all these mount points via NFS in one additional server and then export this new tree again via NFS to all your servers.
    No sure if this works. If this works, then you will have in this case just an additional level in the tree.

  • Multiple accounts with same email can't acces original account

    ok, so i created a new skype. I was messing with skype account on my desktop and wound up unlinking and re linking the account basically i made 2 extra accounts and they have my live: random.namehere_1 and live: random.namehere_2 and i cant log into my original one anymore also when i try to do a recovery it says i have 2-3 skype accounts on my email and i cant log into my accounts by typing in the live:random.namehere and the  password it just says ooops something went wrong basicallly saying the pw and account name are wrong when they arent i made sure of it. so how do i eliminate the cloned accounts and log into the main one.  

    Actually this morning I was able to log on the account from an iPad with no fuss but the pc refuses to sign in^^^!???! "Skype couldn't connect" - What is going on???
    I also found out that I could sign in via a browser but not via skype program... So I uninstalled it and installed it again and it's working now...
    I have now changed the email so I don't have 3 accounts with the same primary email as Skype seems to not being able to handle multiple accounts with same email!!!

  • Multiple Subinterfaces on same context.

    Hi,
    I'm having a difficult time finding examples where there is a multi-context ASA using multiple subinterfaces under the contexts. I'm running 5585-X SSP-10 in my network.
    We have a license for 20 contexts, currently only using a quarter of those context. Issue is, the way they set this up was only one subinterface per context, and that's how they want to keep.
    I'm already charged with adding three new vlans to our firewall for migrating some devices off our old network to our new one. Issue is if we keep doing that we're going to burn through all these contexts in no time.
    I'm assuming you can have multiple vlans going to the same context with multiple subinterfaces. That being said, I would assume you can block the traffic from two vlans on the same context from each other.
    Can anyone link me to some configuration examples for multiple subinterfaces, and an example of what the access rules on the same context might look like for two vlans with different subnets?
    Thanks.

    I feel you are overthinking this. If you have setup an ASA interface before then setting up subinterfaces in a context is not much different (other than having to allocate the interface to that given context)  Then you configure the interface on the context as you would any other interface.
    Your configuration would look like this:
    changeto system
    interface Gig0/0
    no shut
    int Gig0/0.1
    vlan 10
    ing Gig0/0.2
    vlan 20
    context A
    allocate-interface Gig0/0.1 - Gig0/0.2
    changeto context A
    interface G0/0.1
    security-level 100
    nameif inside
    ip add 10.10.10.1 255.255.255.0
    interface G0/0.2
    security-level 0
    nameif outside
    access-list TEST-ACL permit ip 10.10.10.0 255.255.255.0 any
    access-list TEST-ACL2 permit ip any host 10.10.10.10
    access-group TEST-ACL in interface inside
    access-group TEST-ACL2 in interface outside
    Please remember to select a correct answer and rate helpful posts

  • Session not shared between multiple wars, with no cookies

    I posted an earlier query on multiple wars in the same application.
    Actually session is maintained and getting shared on the server when
    browser supports cookies.
    When Browser does not support cookies i have the following problem,
    a) Without cookies URL's(href tags) work fine because they are bieng
    rewritten.
    b) The first form i call always has hidden tags with session id value
    and it works fine
    c) But in all susequent forms there is no hidden session id.(My forms
    are all JSP pages.).
    My questiona are
    1) under what situations does the server add session id hidden tags in
    html form.
    2)And how do I get them created automatically when browser does not
    support cookies.
    3) And why are the hidden tags being set for the first request. (I read
    in previous posts that is because the server does not know if browser
    supports cookies for first time) How does it know the second time. What
    html header gives this info.

    >
    1) under what situations does the server add session id hidden tags in
    html form.The webconnector should rewrite the sessionid whenever the browser might
    not support cookies. (And it has configured to allow URL re-writing.)
    Obviously you are having a problem with this, but based on the information
    you are providing I don't have any insight on why yet. Works for me. Try
    opening a support ticket and/or posting some more information.
    >
    2)And how do I get them created automatically when browser does not
    support cookies.This should happen automatically, unless you have changed the NoCookie
    setting in the registry.
    >
    3) And why are the hidden tags being set for the first request. (I read
    in previous posts that is because the server does not know if browser
    supports cookies for first time) How does it know the second time. What
    html header gives this info.Yes, hidden tags are set for the first request because the webconnector
    doesn't know if the browser supports cookies.
    The second request it knows that cookies are supported because the browser
    successfully has returned the cookie it sent the first time.
    David

  • Multiple Servers with same Remote Interface?

    Is it possible to declare the same remote interface on multiple RMI servers? Secondly, is it possible to pick which RMI server will manage a particular request?
    In other words, imagine if multiple servers could service a particular request that has the same signature, but the client wants to specify which server to send the invocation. An example would be the following:
    public String getPhoneNumber(String pLastName) ;But the client should decide that server A should manage requests of last names starting with A-G, server B should handle H-P, and server C should handle Q-Z. The remote method invocation is the same, but the server upon which is should be invoked needs to be determined at runtime.
    I realize this can be done multiple ways, with an interim proxy server that designates the server. However, I'm most interested in the ability within the RMI and/or JNDI standard to select and invoke methods on a particular server.
    Thanks for any help.

    "Server" is a little bit vague in this context.
    My assumption is that you want separate RMI servers running on separate hosts. (Otherwise, why bother with multiple "servers"?)
    That being said, it's not clear to me how you would expect RMI to sort out something as application-specific as you suggest. It sounds to me like you need your own registry/redirector. This is going to either be an rmiregistry rewrite by you, or - as was suggested by another poster - a proxy.

Maybe you are looking for

  • Quotation missing error in sales order

    Hi , While saving the Sales.Order in crm  i am getting the error "Mandatory Quotation Missing",  i have preceding document  as Quotaion and billing doc replicated in r/3. How to solve this error?? i have checked every thing. Kindly help iam i missing

  • Issue in CAML query involving lookup column

    am having the below scenario: splistmaster1 --> contains custname [single line of text]  splist2 --> contains custnamelukup [ lookup data type] , custid- -[single line of text] now i need to filter the records  from splist2, with  custname as the par

  • Display Resolution Question

    New to iMac.  Running 27in and monitor resolution set at "Best for Display 2560X1440".  Having problem getting Web pages to display properly.  At this resolution, page display is not good.  Spacing is not correct to see all information.  Changed reso

  • Issue with getting task:acquiredBy in a BPEL Composite.

    Hi, We are facing an issue with an XPath query: <assign name="RescanHumanTask_1_readTask"> <copy> <from variable="taskAssignedMessage" part="payload" query="/taskservice:taskAssignedMessage/task:task"/> <to variable="RescanHumanTask_1_globalVariable"

  • How Do I fix my play preview!

    When I play the source or the program preview, even the little thumbnails, they just play for a second.