Deploy several WAR, a context root

I have two web services built in two applications of WAR (1WAR-1WS). If I deploy the first WAR, the service is available at url: http://application-tier server: port/CONTEXTROOT/WSNAME1. The I would like to deploy WS second on the same root context (http / / server: port/CONTEXTROOT/WSNAME2). If I try, after the deployment of the second WAR on OC4J, one are no longer available. I thing it's due to having the same root context for web applications. Is it possible I'm able to deploy two web services from wars with the same context root? I would like to avoid having two web services in a WAR. Thanks for the reply.

Martin

Hi Martin,

Complies with the J2EE standard, each Web Application must have a Unique root of context (Context path) container providers provide implementation of this specification.

So we cannot assign same context-root to 2 or more different Applications. But we can change the root of context to an existing Application without having to physically edit the deployment descriptors using the feature * "plan.xml" * of WebLogic.

http://WebLogic-wonders.com/WebLogic/2010/03/24/changing-context-root-of-an-ear-app-using-plan-XML/ (for Enterprise Applications)
And
http://blogs.Oracle.com/jamesbayer/2009/07/ (WEB applications)

Any J2EE container do not two applications different have the same root context.

It is always possible that you have two Web services with the Same Context-Root with Different "Service-Uri" if they are packaged within a single WAR.

.
.
Thank you
Jay SenSharma

Tags: Oracle

Similar Questions

  • Context-root for Portal Administration Console

    Hello!

    I am using Weblogic Server 10.3.2. I created a myApp.ear portal application that contains myApp.war.
    I use eclipse to develop my application. For my ear project, I chose some aspects of the project:

    Admin Console 10.3.2
    Executive admin 10.3.2
    10.3.2 Portal Application services
    Framework of Portal customizations 10.3.2

    The weblogic - application.xml myApp.ear looks like this:

    < wls:weblogic - application xmlns:wls = "http://xmlns.oracle.com/weblogic/weblogic-application" xmlns: xsi = "http://www.w3.org/2001/XMLSchema-instance" xsi: schemaLocation = "http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/javaee_5.xsd http://xmlns.oracle.com/weblogic/weblogic-application http://xmlns.oracle.com/weblogic/weblogic-application/1.0/weblogic-application.xsd >.
    < wls:library - ref >
    < wls:library - name > wlp-tools-admin-app-lib < / wls:library - name >
    < wls:specification - version > 10.3.2 < / wls:specification - version >
    < wls:implementation - version > 10.3.2 < / wls:implementation - version >
    < wls: exact match > false < / wls: exact match >
    < / wls:library - ref >
    .....
    < wls:library - context-root-substitute >
    < root wls:context - > tools < / wls:context - root >
    < wls:override - value > myAppAdmin < / wls:override - value >
    < / wls:library - context-root-substitute >
    ... other substitution of context that don't work

    < / wls:weblogic - application >

    I have not any application.xml defined in the project of my ear.
    In my web project, I put the root of context: myAppWEB.

    When I deploy her Eclipse myAppAdmin works very well.

    (I deploy as a Run-Stand alone web module directly from the workspace or in the separate deployment folder).

    But when I export an ear myApp.ear and then deploy it in admin Console tools context root management server server is not overloaded. I followed:
    myAppEAB
    Administrative Tools (FALSE!).

    I can access/admin-tools. But when I try to create a binary content (not upload) I received: Page not found, because he tries to access it from /myAppAdmin. But the context is: admin-tools.

    At deployment, I get the message:
    [# < 19 November 2010 12:03:45 CEST > < error > < HTTP > < ex-ae658d > < AdminServer > < ExecuteThread [ASSET]: '13' for queue: '(self-adjusting) weblogic.kernel.Default' > < weblogic > <><>< 1290168225187 > < BEA-101362 > < [path of the module: myAppAdmin ServletContext@11179330[app:MaiPensiiEAR: / spec-version administration tools: 2.5]] could not deserialize the extended attribute name servlet-context : "com.bea.netuix.util.ServletLifecycleService."
    java.io.NotSerializableException: weblogic.servlet.internal.ServletStubImpl

    Also, when I open weblogic application. XML with Weblogic App deployment descriptor editor I get the error on the library overrides context root:

    "Context root 'tools' is not exported by one of the libraries referenced."

    (me: wlp-tools-admin-app is shared library).


    What I am doing wrong? I want to be able to deploy my ear to Server Admin and access myAppAdmin (Portal Administration Console) to this address: myAppAdmin.

    Thank you!

    Published by: user13339627 on November 19, 2010 06:59

    Hello

    I was fighting with the same problem for several days and it was resolved by creating the application.xml in the EAR project. Resolve was really frustrating because application.xml is not added by default to the new ear portal projects, the xml is not referring to the portal admin console somehow and no documentation that I could find mentions that it is essential for the manufacture of the portal administration console to work.

    I hope that helps!

  • context root

    I've changed the root of context of my implementation of /flex to /phr

    I put the new value in the two flex - config.xml and like the Flex Builder project/properties/flex build/other arguments - context-root "DSP".

    I recompiled my project flex client, but the compiler did not create my html/swf file and there is no warnings or errors.

    No idea where I was wrong?

    -services "c:\phm\svn\phm-server\server\deploy\phm.ear\phr.war\WEB-INF\flex\services-config.xml" - context-root "phr" - local en_US

    If I remove - context-root "phr" everything compiles, but it uses the wrong context root.

    I found it. Although a part of the documentation indicates that the root of context must be set in the additional arguments for the flex compiler, is not correct, even if typing-context-root argument in this text box gives indications that all is well.

    Do not - context-root "xyz" in Flex Builder. He defined only in the project/properties/flex/context root server text box

  • creating custom c.war images, similar to i.war.  -context does not

    ADR 3.0.65.09.31 beta

    I am trying to create a file of c.war custom images, similar to how it creates the file i.war for images satic APEX.

    The directions say:

    java-jar ords.war static [-context] < location >

    Options:

    [- context]           The context in which path the

    WAR will be deployed,

    default value: / i

    Arguments:

    The location where the Oracle

    Request static Express

    resources are stored

    but I have yet to find any combination of syntax that will give me a war which maps to / c instead of / i, by default.

    For example:

    C:\oracle\ords3.0.0.65.09.31 > java-jar ords.war static - context/c C:\oracle\custom_htmldb

    Generation of WAR full

    Location of WAR: C:\oracle\ords3.0.0.65.09.31\i.war

    Context path: / i

    Static resources: C:\oracle\custom_htmldb

    Ensure that the static resources are available at the path: C:\oracle\custom_htmldb

    on the server where the WAR is deployed

    and

    C:\oracle\ords3.0.0.65.09.31 > java-jar ords.war static-/ c C:\oracle\custom_ht

    MLDB

    java-jar ords.war static [-context] < location >

    Options:

    [- context]           The context in which path the

    WAR will be deployed,

    default value: / i

    Arguments:

    The location where the Oracle

    Request static Express

    resources are stored

    -/ c is not a valid option

    and variations using quotation marks and apostrophes - all results in the same, / i Gets the mapping or even get directions.

    It must be something really simple.

    Help, please!

    Thank you

    Hi ramzi,.

    wpdonna wrote:

    Have figured this out? I have the same problem here. The default context path always / i, - context-path is not a valid option.

    With ords.3.0.1.177.18.02 - context-path works.

    For example:

    java -jar ords.war static --context-path /c  C:\oracle\custom_htmldb
    

    There was bug in 3.0.0 ADR that is resolved now:

    BUG: 21053432 -support for static resources file creation war with context path custom

    Kind regards

    Kiran

  • string ' / viewController-context-root "automatically get added in the CSS rule

    My version of jDeveloper is 12.2.1.0.0


    I expanded the alta-v1 skin and put a CSS rule in there that would apply to a background image of an element. The CSS rule is as follows:

    .notification.bell{
        background-image:url("/images/bell.png");
        background-repeat:no-repeat;
        background-position:center center;
        background-size:70% 70%;
    }
    

    When I run the page and display the CSS rule in Firebug, this is what happens in:

    .notification.bell {
      background-image: url("/ViewController-context-root/images/bell.png");
      background-position: center center;
      background-repeat: no-repeat;
      background-size: 70% 70%;
    }
    

    I made sure that I am editing the CSS file by changing the name of the file from bell.png to bell2.png and it was reflected in Firebug. What I can't understand, is why is the extra string added to the URL and hence.

    PS: I also noticed a strange thing at the moment. The URL in the address bar appears as

    http://127.0.0.1:7101/ViewController/faces/home.jspx

    Should also contain the name of the project? Something like this:

    http://127.0.0.1:7101/myProjectName/ViewController/faces/home.jspx

    A I spoil with a frame inside jDeveloper?

    User, I need to check the css thing. I have never seen it myself, but never looked especially for her.

    The second part of the question is easy to answer: the string you see is defined in the viewcontroller project root context parameter. Set this parameter to something that you like and start the application again. You should see the new value of the parameter.

    Timo

  • Deploy the war web-determinations in JBoss

    Hi all

    I need help to deploy the .war in JBoss Application Serverfile, when the file is deployed to the server of the class PluginRegistry not properly load the plugins directory. The problem is the class PluginRegistry compare when the Protocol of the URL of the directory with "* file * ', in the jboss server, this Protocol is" * vfsfile. "

    Any solution for this case of jboss?

    Thanks and greetings

    We offer two methods of recording plugin; the auto-discovery method (which is not compatible with some servers/application deployment methods) and the method of manual registration. See http://docs.oracle.com/html/E29403_01/Content/Extensions/Extensions_PLID.htm.

    Edited to insert a direct link by: Kristy Van Der Vlist on May 29, 2012 17:45

  • context-root = "" Ant script always shows missing in mxmlc "

    Hi, I get an error for this:

    < mxmlc
    file = "${Project.src} / main." MXML»
    output="${build.Debug}/main.swf".
    local = "${LOCAL}.
    static-RSLS = "false".
    accessible = "false".
    use-network = "false".
    services = "${flexRemotingServices}".
    incremental = "true".
    context-root =""
    >

    [mxmlc] error: services configuration includes a channel-definition "java-polling-amf" which has an endpoint with a context.root token but a context root has not been set. Please specify a context root compiler argument.

    the solution is to use a space that is

    context-root =""

  • change the name of the context root

    Dear all,

    Every time I run the application in the given context root name jdeveloper, is something like that... * XXX-ViewController-context-root *. So, how can I change this default behavior?

    Kind regards
    David

    Version of the component
    =========     =======
    11.1.1.59.23 ADF business components
    Java (TM) Platform 1.6.0_21
    Oracle IDE 11.1.1.4.37.59.23
    Support versioning 11.1.1.4.37.59.23

    In the ViewController project, right-click and select Properties.
    In the "project properties" popup, select "Java EE Application" and change the value of the context root Web Java EE to the desired value.
    By default, it would be -- context-root.
    that you would see as context, when you run the application.
    Change this setting would change the context.

    Thank you
    Nini

  • Deploy a war in the Oracle application server

    Hello

    We have a few Oracle discoverer running on the oracle application server and I would like to deploy a war to the service file.
    Can someone tell me if its possible to do?
    Should I just drop the war in the deployment of the server folder?

    Thank you
    KK

    Wrong forum.

    Move the thread (close and re-post) to each of discoverer
    or somewhere in http://forums.oracle.com/forums/category.jspa?categoryID=193 (probably Oracle ACE - general forum).

  • deployment of war on weblogic 10.3.4 files

    I have a weblogic 10.3.4 field and a war (smap.war) file. Can I deploy the war file using the weblogic console (10.3.4).
    However, I can't the ant (wldeploy 11.1.1.4) to deploy the war file. It shows error as follows.
    This file area and weblogic of war is in the same machine.

    ------------------error---------------------------

    [wldeploy] Task 27 failed: [Deployer: 149026] deploy the application smap.war on AdminServer.

    [wldeploy] Target State: deployment has failed on the AdminServer Server

    [wldeploy] weblogic.descriptor.DescriptorException: VALIDATION of the PROBLEMS have BEEN FOUND

    [wldeploy] problem: cvc-complex - type. 2.4: expected for element 'servlet-name @http://java.sun.com/xml/ns/javaee' instead of 'description @http://www.w3.org/2001/XMLSchema-instance' here @http://java.sun.com/xml/ns/javaee servlet element: < null >

    [wldeploy] problem: cvc-complex - type. 2.4: expected for element 'servlet-name @http://java.sun.com/xml/ns/javaee' instead of 'display-name @http://www.w3.org/2001/XMLSchema-instance' here @http://java.sun.com/xml/ns/javaee servlet element: < null >
    [wldeploy] to weblogic.descriptor.internal.MarshallerFactory$ 1.evaluateResults(MarshallerFactory.java:245)
    [wldeploy] to weblogic.descriptor.internal.MarshallerFactory$ 1.evaluateResults(MarshallerFactory.java:231)

    ---------------------------build.xml------------------------
    <? XML version = "1.0" encoding = "UTF-8"? >
    <! - ant buildfile generated by Oracle JDeveloper - >
    <!-generated on March 11, 2011 15:52:31 >

    < by default of the = "init" project >
    < target name = "init" >
    < tstamp / >
    < / target >

    < name = "wls.username property" value = "weblogic" / > "
    < name = "wls.password property" value = "welcome1" / > "
    < name = "wls.hostname property" value = "localhost" / > "
    < name = "wls.port property" value = "7001" / > "
    < name = "admin.server.name property" value = "AdminServer" / > "
    < name = "deploy.target property" value = "AdminServer" / > "
    <!-here, you can specify either NOMCLUSTER, IndividualServerName as 'ManagedOne' or list of Managed/AdminServer separated by commas-->
    "< name ="deploy.name property"value =" smap.war "/ >
    < name = "deploy.source property" value = "E:\SVN_Root\smap_Build" / > "


    < taskdef name = "wldeploy" classname = "weblogic.ant.taskdefs.management.WLDeploy" >
    < classpath >
    < pathelement location="D:\Oracle\Middleware\wlserver_10.3\server\lib\weblogic.jar"/ >
    < / classpath >
    < / taskdef >

    < target name = "szmap" depends = "init" >
    ".. destfile="${deploy.source}\smap.war of war.
    webxml="${deploy.source}\smap\WebContent\WEB-INF\web. XML">
    < dir="${deploy.source}\smap\WebContent"/ fileset >
    < dir="${deploy.source}\smap\build\classes"/ classes >
    < / war >
    < / target >

    < target name = "deployX" depends = "init" >
    < echo message = "deploy.source=${deploy.source}"/ 27 > "
    < echo message = "deploy.name=${deploy.name}"/ 28 > "
    < wldeploy action = "deploy".
    Name = "${deploy." Name} '.
    source = "${deploy." Source}-${deploy. Name} '.
    User = "${WLS." UserName} ".
    nostage = 'true '.
    Password = "${WLS." Password}.
    verbose = "true".
    adminurl = "T3: / / ${WLS." "HostName}: ${WLS.port} ' targets =" ${deploy.target} ""

    Debug = 'true '.
    / >
    < / target >

    <! - transfer Applications - >
    < a name = target "redeploy" >
    < wldeploy action = "redeploy".
    Name = "${deploy." Name} '.
    User = "${WLS." UserName} ".
    nostage = 'true '.
    Password = "${WLS." Password}.
    verbose = "true".
    adminurl = "T3: / / ${WLS." "HostName}: ${WLS.port} ' targets =" ${deploy.target} "/ >"
    < / target >

    <! - Uneploying Applications - >
    < target name = "undeployX" >
    < wldeploy action = "cancel the deployment.
    name = "szmap".
    FailOnError = "false".
    User = "${WLS." UserName} ".
    Password = "${WLS." Password}.
    verbose = "true".
    adminurl = "T3: / / ${WLS." "HostName}: ${WLS.port} ' targets =" ${deploy.target} "/ >"
    < / target >

    < target name = "all" depends = "init, deployX" / >

    < / project >

    You can package wsdl4j - 1.6.2.jar in your WAR file and place it in the WEB-INF/lib directory.

    Using the deployment substitute weblogic.xml (that you already have - prefer-web-inf-classes) you can ensure
    the jar in the WEB-INF/lib drectory gets preference over the classes loaded into the classpath system (WebLogic classpath).

    This entry is already in your weblogic.xml file

    
       true
    
    

    When you compress your additional jar files in the WEB-INF/lib directory you can leave out the referees of the library.

    When you want to use shared libraries, you must wrap the pots in a WAR file, for example with the following structure:

    META-INF
        MANIFEST.MF
    WEB-INF
        lib
            wsdl4j-1.6.2.jar
        web.xml
    

    The contents of the MANIFEST. MF might be something like:

    Manifest-Version: 1.0
    Created-By: 1.6.0_05 (BEA Systems, Inc.)
    Extension-Name: wsdl4j
    Specification-Title: WSDL Library
    Specification-Version: 1.6
    Specification-Vendor: Middleware Magic
    Implementation-Title: WSDL Library
    Implementation-Version: 1.6.2
    Implementation-Vendor: Middleware Magic
    

    When you use this shared library, you can use weblogic.xml in your file. WAR to designate it, for example.

    
        wsdl4j
        1.6
        1.6.2
        true
    
    

    You can also create new WAR file that contains another version of wsdl4j and you specify this version in the MANIFEST. MF file
    and refer to it using weblogic.xml.

  • How to deploy oasa.war in Weblogic 10.3

    How to deploy oasa.war in Weblogic 10.3?

    Thank you

    I believe that this should just be good deploy the war file. Try it and let me know.

    Published by: rajsunny on July 17, 2009 12:14

  • Deploy on the device: no root list appropriate?

    I deployed the application several times to the device without a problem and all of a sudden (without changing the code!) I get the following when you start the application error message.

    Deployment jobs, just start fails due to:

    "Eception Exception: invalid path name." Path does not contains a list of appropriate root. See class FileSystemRegistry for more details. »

    What this mean and how can I solve this problem?

    I had the same error ones and simply redeployed on the phone and it worked, but now it doesn't...

    Thank you

    What do you see on the device when you choose 'Media', then its menu allows you to select Explorer?  Don't you see the SD card?

  • Shared variables is deployed several times

    Everyone has experienced problems with an application in development mode (LV2015) from deploy shared variables whenever it loads a VI?

    He suddenly began to arrive, and I don't know why or what I did. Now it charges 11 times before can run the application. Very annoying and I can't find where to select a VI not deply its Variables shared. Deploying them should suffice

    It was only a matter of time. I have a main VI calling several other VI that uses the same shared variables to communicate with each other. It translates the same loading variables each time the main VI called the next VI on startup.

    Solution was to right click on my computer in the project and check the option 'Disable Autodeplay Variables'.

  • Auto deploy several error Script of VMS

    Hi guys,.

    I am creating several virtual machines with unique IP address and the name NetBIOS for each VM thrugh a Powershell script. Here is my scenario:

    I have 2 virtual machines on one of my server x.x.x.x


    1 Autodeploy-1 - the virtual machine on which I run the script through vSphere PowerCLI
    2 AutoDeployVM - model that I use to create other virtual machines.

    #Script

    # Virtual Center details

    $server_address = "xxxx".
    $username = "xxx".
    $password = "xxxxxx".

    # Vm details
    $destination_host = "xxxx".
    $template_name = "AutodeployVM".
    $datastore_name = ' dataStore1 (9).

    $customization = "customfile"
    
    

    # Name of the VMs in this table
    $array = "VPS-Test1″,"VPS-Test2″»"
    $iparray = "x.x.x.1″, x.x.x.2″ «»
    $a = 0

    SE connect-VIServer-Server $server_address-protocol https - User $username - Password $password

    foreach ($vm in $array)
    {

    Get-OSCustomizationSpec $customization | Get-OSCustomizationNicMapping | Set-OSCustomizationNicMapping -IpMode UseStaticIP -IpAddress $IParray[$a] -SubnetMask z.z.0.0 -DefaultGateway y.y.y.y -Dns x.x.x.35,x.x.x.36

    $vm = New-VM-name $vm - model $template_name - host Datastore $destination_host - $datastore_name -OSCustomizationSpec $customization

    -Confirm: $false $a = $a + 1

    }

    I placed the customization file (customfile) in the same folder where the script is. Here is the content of my customfile:

    New-OSCustomizationSpec-name Spec - OSType Windows - FullName administrator AdminPassword-*-domain abcd.com - DomainUsername abc - DomainPassword *.

    I get following errors:

    1 set-OSCustomizationSpec: a parameter cannot be corresponding parameter name «IpMode» found

    2 New - VM found no model with the name "AutodeployVM".

    3 New - VM model parameter: did not find any object specified by its name.

    You guys can help me with this. Have I missed something. I am very new to this thing. Appreciate your help.

    Thank you

    Kiala

    The New-OSCustomization cmdlet creates the form of customization in the vCenter database, not in a file.

    You must create this technique of customization by running

    New-OSCustomizationSpec-name Spec - OSType Windows - FullName administrator AdminPassword-*-domain abcd.com - DomainUsername abc - DomainPassword *.

    from the prompt of PowerCLI.

    Once the entry is created, you can execute your deployment script.

  • How to deploy the WAR Weblogic

    need help please

    How to deploy WAR Weblogic server 11 GR 1 material

    Thanks for your help

    This would help you
    http://www.sagecomputing.com.au/papers_presentations/JDEV11g-WebLogic10.3.PDF

Maybe you are looking for

  • Memory of Safari problem

    Hello world! I have a problem with Safari on my Mac. All of a sudden, a couple of weeks Safari began to consume all the memory available, even without any charge, just with a tab of Google. At that time, I used the public beta version of 10.11.2, but

  • program copy to USB 16 GB flash drive

    My HP Windows 7 Tower has a corrupt Google Chrome, so I removed it.  Now I want to copy Chrome on my laptop Gateway Windows 7 on a 16 GB USB flash drive to transfer my turn. How can I do?

  • The icons are too big for the screen

    Hello Everything on my computer screen seems too big. From the icons, texts, programs like chrome (pages are inside the window more). I do not change the display settings recently, and I did the updates. It happened suddenly, out of the blue. I tried

  • The BSOD stop error 9F: further investigation

    Hello: Security software has been replaced. Detective Conan. thank_u!

  • IOS Firewall

    Hello What devices can I find ios firewall services, ZBF and url filtering? is it only the routers or there are PIX too? Thank you