Deploy given EAR file having application.xml and change context-root

hi
Please consider deploying a given EAR file on WebLogic Server 10.3.5 (part of JDeveloper 11.1.1.6.0) and changing the context-root for its web-module.
For example an EAR file with only a web-module (ReviewContextRootFirstApp.ear [1]) or an EAR file with a web-module and an ejb-module (ReviewContextRootSecondApp.ear [2]).
Given documentation appendix B section "context-root" [3] saying
"... A context-root setting in application.xml takes precedence over context-root setting in weblogic.xml. ..."
and documentation section "Typical Deployment Configuration Workflows" [4] saying
"Oracle does not support using a deployment plan to change the context-root in an application.xml file. However, if an application is deployed as a library, you can either change the context-root through an weblogic-application.xml file or use the deployment plan to change the context-root in an weblogic-application.xml file. "
Some observed behaviour:
- scenario (sc1) : deploy ReviewContextRootFirstApp.ear without deployment plan, results in context-root "/rcrfaweb" (as in application.xml)
- scenario (sc2) : deploy ReviewContextRootFirstApp.ear with deployment plan fa-plan.xml (tries to configure "/rcrfaweb11"), results in context-root "/rcrfaweb" (as in application.xml)
- scenario (sc3) : deploy ReviewContextRootSecondApp.ear without deployment plan, results in context-root "/rcrsaweb" (as in application.xml)
- scenario (sc4) : deploy ReviewContextRootSecondApp.ear with deployment plan sa-plan.xml (tries to configure "/rcrsaweb21"), results in context-root "/rcrsaweb" (as in application.xml)
The blog post "Defining the context root of a web application in Oracle WebLogic server" [5] by Silviu Leahu in its section "Defining the context root in deployment plan" suggests to
"Remove the META-INF/application.xml DD from the EAR"
- scenario (sc5) : remove application.xml from ReviewContextRootFirstApp.ear (e.g. using Ant target "remove.application.xml.from.ear") and deploy with deployment plan fa-plan.xml, results in context-root "/rcrfaweb11" (as in fa-plan.xml)
- scenario (sc6) : remove application.xml from ReviewContextRootSecondApp.ear (e.g. using Ant target "remove.application.xml.from.ear") and deploy with deployment plan sa-plan.xml, results in context-root "/rcrsaweb21" (as in sa-plan.xml)
One could expect that using a deployment plan (like in scenario's (sc2) and (sc4)) would allow to configure/change the context-root, whithout having to make changes to the EAR file to make this possible. (Somewhat like "Figure 4-2 Single Deployment Plan Workflow")
Only in scenario's (sc5) and (sc6) I see something close to what I would like to achieve, but there the application.xml file has been removed from the EAR file.
So ...
- (q1) Is it impossible to change the context-root at deploy-time for a web-module in a given EAR file that includes an application.xml file, without changing the EAR file?
- (q2) Is working with EAR files that don't have an application.xml file a supported approach (to change the context-root at deploy-time)?
Seems like a simple goal, but I must be missing something that is required to achieve it.
- [1] ReviewContextRootFirstApp/deploy/ReviewContextRootFirstApp.ear in the ZIP file
at http://www.consideringred.com/files/oracle/2012/ReviewContextRootApps-v0.01.zip
- [2] ReviewContextRootSecondApp/deploy/ReviewContextRootSecondApp.ear in the (same) ZIP file
at http://www.consideringred.com/files/oracle/2012/ReviewContextRootApps-v0.01.zip
- [3] http://docs.oracle.com/cd/E21764_01/web.1111/e13712/weblogic_xml.htm#WBAPP623
- [4] http://docs.oracle.com/cd/E21764_01/web.1111/e13702/config.htm#DEPGD172
- [5] http://blog.leahu.net/it/2011/01/04/defining-the-context-root-of-a-web-application-in-oracle-weblogic-server/
many thanks
Jan Vervecken

Thanks for your reply René van Wijk.
René van Wijk wrote:
You can use deployment plans in order to change the context-root ...That is what I tried and describe in scenario's (sc2), (sc4), (sc5) and (sc6) in this forum thread.
Because the application.xml file (in the "given EAR file"), added by JDeveloper 11.1.1.6.0 when deploying to an EAR file, doesn't have id attributes on its application/module elements, I first tried a different XPath expression:
"/application/module/web[web-uri/text()="WebProject.war"]/context-root"
But, that didn't work.
Although the "given EAR file" does not have the suggested id attributes, I tried adding a deployment descriptor application.xml file that does have such id attributes [2], allowing an XPath expression like the one suggested:
"/application/module[id="WebProject"]/web/context-root"
- scenario (sc7) : deploy ReviewContextRootFirstApp.ear (in ReviewContextRootApps-v0.02.zip) with deployment plan fa-plan-application-xml-with-id.xml (tries to configure "/rcrfaweb14"), results in context-root "/rcrfaweb" (as in application.xml)
- scenario (sc8) : deploy ReviewContextRootSecondApp.ear (in ReviewContextRootApps-v0.02.zip) with deployment plan sa-plan-application-xml-with-id.xml (tries to configure "/rcrsaweb24"), results in context-root "/rcrsaweb" (as in application.xml)
So, it does not seem to work.
... you have to use a variable assignment in the right part of the deployment plan (in this case the application.xml) ...My observations I describe above (that it does not seem to work) seem to confirm the Oracle documentation [1] I referred to in this forum thread before:
"Oracle does not support using a deployment plan to change the context-root in an application.xml file. ... "
... By using an xpath expression, you can define which part of the xml has to be changed. ...The values for the deployment-plan xpath elements seem to be "peculiar".
Although it should not be a problem in an XPath expression, using single quotes (like module[id='WebProject'] ) instead of double quotes (like module[id="WebProject"] ) results in:
"java.lang.AssertionError: Attributes must be defined as name value pairs, eg, name="value" -- [id='WebProject']"
Because an XPath predicate expression would use an "@" to refer to an attribute, I also tried to replace what you suggested module[id="Web"] with something like module[@id="Web"] but that also did not make a difference.
- [1] http://docs.oracle.com/cd/E21764_01/web.1111/e13702/config.htm#DEPGD172
- [2] http://www.consideringred.com/files/oracle/2012/ReviewContextRootApps-v0.02.zip
regards
Jan Vervecken

Similar Messages

  • I have a created a directory structure ias\ias-samples\myapps\src\docroot.In docroot folder i have a single jsp.i created a war file having that jsp,and ear file having the war file

    I deployed the ear file.Now i try calling http://localhost/myapps/test.jsp ??
    i'm i doing the right thing ?

    Hi,
    This is right provided you have installed the webserver & app server
    on the same machine and the port number for the web server is 80 by
    default.
    Regards
    Raj
    Arif Khan wrote:
    I have a created a directory structure
    ias\ias-samples\myapps\src\docroot.In docroot folder i have a single
    jsp.i created a war file having that jsp,and ear file having the war
    file
    I deployed the ear file.Now i try calling
    http://localhost/myapps/test.jsp ??
    i'm i doing the right thing ?
    Try our New Web Based Forum at http://softwareforum.sun.com
    Includes Access to our Product Knowledge Base!

  • Deploying a .ear file and SDN is stopped

    I am trying to deploy a .ear file - but it tells me SDN is stopped - what is this and how do I start it?  Thanks - Janet

    janet,
      I suppose it is SDM is stopped. u have to deploy ear file with SDM which is found in C:/usr/sap/JKS/JC00/SDM/program
    u will have remoteGui.bat.
    use it for deploying the ear file.
    u can check using the sap console u will see SDM Started.
    thanks
    Venkata Naidu bandi

  • Deploy the .ear file in Oracle 10g Application server10.1.3

    Hi Friends,
    I have deploy the .ear file in Oracle10g Application Sever 10.1.3 through Enterprise Manager. in Progress Messages shows the application has been successfully deployed,like this
    when i hit the URL in Web brower, i got a HTTP 403 showing.............
    Plz help me ..............
    Sep 27, 2008 12:11:41 PM] Application Deployer for BO13 STARTS.
    [Sep 27, 2008 12:11:41 PM] Copy the archive to C:\product\10.1.3\OracleAS_1\j2ee\BO13Dev\applications\BO13.ear
    [Sep 27, 2008 12:11:42 PM] Initialize C:\product\10.1.3\OracleAS_1\j2ee\BO13Dev\applications\BO13.ear begins...
    [Sep 27, 2008 12:11:42 PM] Unpacking BO13.ear
    [Sep 27, 2008 12:11:49 PM] Done unpacking BO13.ear
    [Sep 27, 2008 12:11:49 PM] Unpacking backoffice.war
    [Sep 27, 2008 12:11:53 PM] Done unpacking backoffice.war
    [Sep 27, 2008 12:11:53 PM] Unpacking backoffice-help.war
    [Sep 27, 2008 12:11:57 PM] Done unpacking backoffice-help.war
    [Sep 27, 2008 12:11:57 PM] Unpacking resourceadapter-rar.rar
    [Sep 27, 2008 12:11:57 PM] Done unpacking resourceadapter-rar.rar
    [Sep 27, 2008 12:11:58 PM] Initialize C:\product\10.1.3\OracleAS_1\j2ee\BO13Dev\applications\BO13.ear ends...
    [Sep 27, 2008 12:11:58 PM] Starting application : BO13
    [Sep 27, 2008 12:11:58 PM] Initializing ClassLoader(s)
    [Sep 27, 2008 12:11:58 PM] Initializing EJB container
    [Sep 27, 2008 12:11:58 PM] Loading connector(s)
    [Sep 27, 2008 12:11:59 PM] Starting up resource adapters
    [Sep 27, 2008 12:11:59 PM] Processing EJB module: shared-ejb.jar
    [Sep 27, 2008 12:11:59 PM] Processing EJB module: store-ejb.jar
    [Sep 27, 2008 12:11:59 PM] Processing EJB module: storeops-ejb.jar
    [Sep 27, 2008 12:11:59 PM] Processing EJB module: parameter-ejb.jar
    [Sep 27, 2008 12:11:59 PM] Processing EJB module: report-ejb.jar
    [Sep 27, 2008 12:11:59 PM] Processing EJB module: scheduler-ejb.jar
    [Sep 27, 2008 12:11:59 PM] Processing EJB module: workflow-ejb.jar
    [Sep 27, 2008 12:11:59 PM] Processing EJB module: item-ejb.jar
    [Sep 27, 2008 12:11:59 PM] Processing EJB module: employee-ejb.jar
    [Sep 27, 2008 12:11:59 PM] Processing EJB module: employee-webapp-app-ejb.jar
    [Sep 27, 2008 12:11:59 PM] Processing EJB module: journal-ejb.jar
    [Sep 27, 2008 12:11:59 PM] Processing EJB module: label-webapp-app-ejb.jar
    [Sep 27, 2008 12:11:59 PM] Processing EJB module: label-ejb.jar
    [Sep 27, 2008 12:11:59 PM] Processing EJB module: timemaintenance-ejb.jar
    [Sep 27, 2008 12:11:59 PM] Processing EJB module: timemaintenance-webapp-app-ejb.jar
    [Sep 27, 2008 12:12:00 PM] Processing EJB module: party-ejb.jar
    [Sep 27, 2008 12:12:00 PM] Processing EJB module: transaction-ejb.jar
    [Sep 27, 2008 12:12:00 PM] Processing EJB module: customer-ejb.jar
    [Sep 27, 2008 12:12:00 PM] Processing EJB module: calendar-ejb.jar
    [Sep 27, 2008 12:12:00 PM] Processing EJB module: currency-ejb.jar
    [Sep 27, 2008 12:12:00 PM] Processing EJB module: financial-ejb.jar
    [Sep 27, 2008 12:12:00 PM] Processing EJB module: till-ejb.jar
    [Sep 27, 2008 12:12:00 PM] Processing EJB module: tax-ejb.jar
    [Sep 27, 2008 12:12:00 PM] Processing EJB module: postprocessor-ejb.jar
    [Sep 27, 2008 12:12:00 PM] Processing EJB module: codelist-ejb.jar
    [Sep 27, 2008 12:12:00 PM] Processing EJB module: pricing-ejb.jar
    [Sep 27, 2008 12:12:00 PM] Processing EJB module: trigger-ejb.jar
    [Sep 27, 2008 12:12:00 PM] Processing EJB module: report-webapp-app-ejb.jar
    [Sep 27, 2008 12:12:00 PM] Processing EJB module: parameter-webapp-app-ejb.jar
    [Sep 27, 2008 12:12:00 PM] Processing EJB module: item-webapp-app-ejb.jar
    [Sep 27, 2008 12:12:00 PM] Processing EJB module: store-webapp-app-ejb.jar
    [Sep 27, 2008 12:12:00 PM] Processing EJB module: admin-webapp-app-ejb.jar
    [Sep 27, 2008 12:12:00 PM] Processing EJB module: dashboard-webapp-app-ejb.jar
    [Sep 27, 2008 12:12:00 PM] Processing EJB module: storeops-webapp-app-ejb.jar
    [Sep 27, 2008 12:12:00 PM] Processing EJB module: pricing-webapp-app-ejb.jar
    [Sep 27, 2008 12:12:00 PM] Processing EJB module: task-webapp-app-ejb.jar
    [Sep 27, 2008 12:12:00 PM] Processing EJB module: storeserver-webapp-app-ejb.jar
    [Sep 27, 2008 12:12:00 PM] Processing EJB module: transaction-webapp-app-ejb.jar
    [Sep 27, 2008 12:12:11 PM] Compiling EJB generated code
    [Sep 27, 2008 12:12:58 PM] Initializing EJB sessions
    [Sep 27, 2008 12:12:58 PM] Committing ClassLoader(s)
    [Sep 27, 2008 12:12:58 PM] Initialize backoffice begins...
    [Sep 27, 2008 12:12:58 PM] Initialize backoffice ends...
    [Sep 27, 2008 12:12:58 PM] Initialize backoffice-help begins...
    [Sep 27, 2008 12:12:58 PM] Initialize backoffice-help ends...
    [Sep 27, 2008 12:12:58 PM] Started application : BO13
    [Sep 27, 2008 12:12:58 PM] Binding web application(s) to site default-web-site begins...
    [Sep 27, 2008 12:12:58 PM] Binding backoffice web-module for application BO13 to site default-web-site under context root backoffice13dev
    [Sep 27, 2008 12:13:01 PM] Initializing Servlet: org.springframework.web.context.ContextLoaderServlet for web application backoffice
    [Sep 27, 2008 12:13:01 PM] Initializing Servlet: org.quartz.ee.servlet.QuartzInitializerServlet for web application backoffice
    [Sep 27, 2008 12:13:01 PM] Initializing Servlet: org.apache.struts.action.ActionServlet for web application backoffice
    [Sep 27, 2008 12:13:05 PM] Binding backoffice-help web-module for application BO13 to site default-web-site under context root backoffice-help
    [Sep 27, 2008 12:13:05 PM] Initializing Servlet: oracle.help.web.OHWController for web application backoffice-help
    [Sep 27, 2008 12:13:06 PM] Initializing Servlet: oracle.cabo.servlet.UIXServlet for web application backoffice-help
    [Sep 27, 2008 12:13:06 PM] Binding web application(s) to site default-web-site ends...
    [Sep 27, 2008 12:13:06 PM] Application Deployer for BO13 COMPLETES. Operation time: 85020 msecs
    Thanks
    Hari

    Can you tell me what's the status of components (value of "In sync" column) when you run "dcmctl getState" command?
    Thanks
    Shail

  • Hi,Can a WAR file be deployed as EAR file and vice versa.

    Hi,Can a WAR file be deployed as EAR file and vice versa.If so what are the changes we need to do.

    hi tel me in detail why u want 2 do that
    why u want to cnvert a web arch into enterp arch

  • Deploying the .ear file on weblogic 10.3.

    I Am deploying the .ear file on weblogic 10.3. but we got the exception on deployment time mention below in mail.
    1*. Unable to access the selected application.*
    *2. Exception in AppMerge flows' progression*
    *3. Exception in AppMerge flows' progression*
    *4. VALIDATION PROBLEMS WERE FOUND problem: cvc-datatype-valid.1.1: string value '' does not match pattern for war-pathType in namespace http://java.sun.com/xml/ns/javaee:<null>; problem: cvc-datatype-valid.1.1: string value '' does not match pattern for war-pathType in namespace http://java.sun.com/xml/ns/javaee:<null>;*
    *5. VALIDATION PROBLEMS WERE FOUND problem: cvc-datatype-valid.1.1: string value '' does not match pattern for war-pathType in namespace http://java.sun.com/xml/ns/javaee:<null>; problem: cvc-datatype-valid.1.1: string value '' does not match pattern for war-pathType in namespace http://java.sun.com/xml/ns/javaee:<null>;*
    any body help me.Thanks in advance.

    Hi Crimsonious,
    Did u solve your problem because i am having the same issue right now!
    Carl

  • Out of Memory Error While deploying as EAR file

    Hai,
    I was trying to deploy an EAR file of size 63 MB which inturn containing about 60 EJB.jars. No WARs. application.xml has all the entries for the JARs. While I am deploying it is giving Out of Memory Error. Is there any way to tweak this problem. I am using my own hand written java application which uses the SunONE deployment APIs for deployment. Can u please tell how to tackle this problem. I am running my application through a batch file which uses jdk1.4.
    Please help me regarding this issue.

    You can set the initial heap size and maximum heap size for the JVM, either in the app-server admin console, or maybe in one of your scripts. You look-up the syntax!...
    I had this error yesterday. I too had run out of memory (150Mb). You simply need to allocate more to the app-server.

  • Problems regarding the manifest file in deploying an ear file

    I have developed one jar file(classes.jar) for my all my classes built.
    I have now one ejb module jar file which refers to my classes.jar throgh the mainfest.mf file of ejbmodule.jar file.
    I have one war file(web pplication) which also refers to my classes.jar file throgh its manifest.mf file.
    I am now making an ear file of all these (classes.jar,ejbmodule.jar and web.war).
    All these are at the same level.
    Now when the server starts,it needs some classes to refer.
    The deployed ear should be able refer to my classes.jar through the
    manifest.mf of the ejb as well as the web module file.
    But it not refering.I dont know what is the problem.
    <b>
    Manifest-Version: 1.0
    Class-Path: classes.jar
    Created-By: 1.4.2 (Sun Microsystems Inc.)
    </b>
    Is there something else I need to do?

    if you structure is:
    myear.ear
    -->myejb.jar
    -->mywar.war
    -->classes.jar
    -->META-INF
    ---->manifest.mf
    ---->application.xml
    and the manifest myejb.jar and mywar.war are:
    Manifest-Version: 1.0
    Class-Path: classes.jar
    Created-By: 1.4.2 Sun Microsystems Inc.
    all is fine.
    perhaps your error is when you startup the server. Can you send me you error when is starting server?
    Message was edited by:
    javichin

  • When deploying an ear file the status is not loaded

    I have installed Oracle application server 10g on a Linux CentOS 4.6 server.
    When I went to deploy an ear file, it was a success; however, the status in the application at OC4J:home indicates "Not Loaded" and auto start is true. I have searched every where and cannot find the cause of this problem.
    The development server on a windows machines works fine when the same file is deplyoed.
    Does anyone know what might be the cause. Is there something that I have to configure that I am not aware of?
    Any help would be appreciated. Been working on this for two days.
    TIA
    Mike

    Hi, thanks for the response. I have over 20 EJBs in my ear file. I tried to use the verifier and here is the message that I am getting once I tried to deploy my ear file.
    Error
    Deployment Error -- Error while running ejbc -- Fatal Error from EJB Compiler -- -- Failed to load deployment descriptor for: account cause: Error parsing J2EE-specific application deployment descriptor: Element type "application" is not declared.
    I checked my application.xml and it looks fine to me. please help.

  • How to deploy an Ear File into Weblogic Server

    Hello,
    i have created an ADF application successfully and make it as an EAR file.
    How can we deploy that EAR file into weblogic server..?
    Let me know step-by-step procedure.
    Regards.

    Hi,
    Steps to deploy EAR file on Weblogic server:
    1) login to http://<hostname>:<port>/console
    2) Go to deployments and then install your ear on weblogic server.
    Also you will need to create a data source with same name as given in your Application Module.
    Following link contains steps for data source creation - http://www.oracle.com/webfolder/technetwork/jdeveloper/howto/11114/managedserver/wlsadfms.html ( section - "Configure a JDBC Data Source")
    Thanks,
    Randhir

  • Deployment of ear file - invalid file

    Hi,
    i'm trying to deploy an ear file using the ANT wldeploy tasks.
    The file contains
    - ejb (separate jar for the client interfaces)
    - jpa persistence
    - webapp.
    The app server is 10.3.3
    I can deploy the ear via eclipse with no problems on my local server.
    When i try and publish/deploy on a remote server i get an error [Caused by: weblogic.deployment.EnvironmentException: duplicate persistence units with name . . .]
    Hence the attept to depoy via ant. This method fails even on my local server. Saying the (ear) file is invalid.
    It seems that the 'publish' action in eclipse performs modifications on the ear that the simple file->export->ear in eclipse doesnt do.
    I then tried to package the the environment in the split directory structure (up until then i just used the standard eclipse setup - multiple java/j2ee projects).
    That attempt failed at the wlappc stage. ArrayIndexOutofRange exception.
    Any ideas ?
    thanks,
    Michael

    Hi Steve,
    i've attached the stacktrace below.
    It seems to me that the ear file is either unpacked incorrectly (ending up with two persistence xml files) or eclipse isn't packageing them the 'weblogic way'.
    I found the cause of the ArrayIndexArrayOutofBounds exception when packageing with the wlappc task in the split directory setup: the references to the ejb and web modules in the application.xml have .jar/.war suffixes:
    <module>
    <ejb>ejbapp.jar</ejb>
    removing these and the ear builds fine with wlcompile/wlappc. So i can package the ear using wlcompile/wlappc and deploy the ear manually via the admin console. unfortunately i still have to remove the suffixes. working on an xslt script to fix the suffixes.... :-)
    cheers,
    Michael
    Remote deployment error from eclipse:
    java.lang.Exception: Exception received from deployment driver. See Error Log view for more detail.
         at oracle.eclipse.tools.weblogic.server.internal.DeploymentProgressListener.watch(DeploymentProgressListener.java:190)
         at oracle.eclipse.tools.weblogic.server.internal.WlsJ2EEDeploymentHelper.deploy(WlsJ2EEDeploymentHelper.java:466)
         at oracle.eclipse.tools.weblogic.server.internal.WeblogicServerBehaviour.publishWeblogicModules(WeblogicServerBehaviour.java:1420)
         at oracle.eclipse.tools.weblogic.server.internal.WeblogicServerBehaviour.publishToServer(WeblogicServerBehaviour.java:861)
         at oracle.eclipse.tools.weblogic.server.internal.WeblogicServerBehaviour.publishOnce(WeblogicServerBehaviour.java:655)
         at oracle.eclipse.tools.weblogic.server.internal.WeblogicServerBehaviour.publish(WeblogicServerBehaviour.java:522)
         at org.eclipse.wst.server.core.model.ServerBehaviourDelegate.publish(ServerBehaviourDelegate.java:775)
         at org.eclipse.wst.server.core.internal.Server.publishImpl(Server.java:2889)
         at org.eclipse.wst.server.core.internal.Server$PublishJob.run(Server.java:337)
         at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
    Caused by: weblogic.management.DeploymentException:
         at weblogic.application.internal.flow.ParseJpaDescriptorFlow.prepare(ParseJpaDescriptorFlow.java:44)
         at weblogic.application.internal.BaseDeployment$1.next(BaseDeployment.java:1221)
         at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:41)
         at weblogic.application.internal.BaseDeployment.prepare(BaseDeployment.java:367)
         at weblogic.application.internal.EarDeployment.prepare(EarDeployment.java:58)
         at weblogic.application.internal.DeploymentStateChecker.prepare(DeploymentStateChecker.java:154)
         at weblogic.deploy.internal.targetserver.AppContainerInvoker.prepare(AppContainerInvoker.java:60)
         at weblogic.deploy.internal.targetserver.operations.ActivateOperation.createAndPrepareContainer(ActivateOperation.java:207)
         at weblogic.deploy.internal.targetserver.operations.ActivateOperation.doPrepare(ActivateOperation.java:98)
         at weblogic.deploy.internal.targetserver.operations.AbstractOperation.prepare(AbstractOperation.java:217)
         at weblogic.deploy.internal.targetserver.DeploymentManager.handleDeploymentPrepare(DeploymentManager.java:747)
         at weblogic.deploy.internal.targetserver.DeploymentManager.prepareDeploymentList(DeploymentManager.java:1216)
         at weblogic.deploy.internal.targetserver.DeploymentManager.handlePrepare(DeploymentManager.java:250)
         at weblogic.deploy.internal.targetserver.DeploymentServiceDispatcher.prepare(DeploymentServiceDispatcher.java:159)
         at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.doPrepareCallback(DeploymentReceiverCallbackDeliverer.java:171)
         at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.access$000(DeploymentReceiverCallbackDeliverer.java:13)
         at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer$1.run(DeploymentReceiverCallbackDeliverer.java:46)
         at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:528)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    Caused by: weblogic.deployment.EnvironmentException: duplicate persistence units with name myapp_persistence in scope myapp. First PU location: file:/var/opt/oracle/middleware/user_projects/domains/ecm_domain/servers/AdminServer/tmp/_WL_user/myapp/upzgei/lib/myapp_persistence.jar. Second PU location: file:/var/opt/oracle/middleware/user_projects/domains/ecm_domain/servers/AdminServer/tmp/_WL_user/myapp/upzgei/APP-INF/lib/myapp_persistence.jar
         at weblogic.deployment.AbstractPersistenceUnitRegistry.assertNoDuplicate(AbstractPersistenceUnitRegistry.java:313)
         at weblogic.deployment.AbstractPersistenceUnitRegistry.processDescriptor(AbstractPersistenceUnitRegistry.java:291)
         at weblogic.deployment.AbstractPersistenceUnitRegistry.loadPersistenceDescriptor(AbstractPersistenceUnitRegistry.java:192)
         at weblogic.deployment.AbstractPersistenceUnitRegistry.loadPersistenceDescriptors(AbstractPersistenceUnitRegistry.java:101)
         at weblogic.deployment.EarPersistenceUnitRegistry.<init>(EarPersistenceUnitRegistry.java:55)
         at weblogic.application.internal.flow.ParseJpaDescriptorFlow.prepare(ParseJpaDescriptorFlow.java:39)

  • Error after Deploying a .ear File

    Hi,
    I have deployed an .ear file on the SAP J2EE engine 6.20 on EP6.0 sp2. When I access one of the JSP's, I am getting a NoClassDefFound exception even though the particular jar (xml-apis.jar) file containing the class is in the additional-lib directory. Also, the jar file has been added to the classpath in go.bat? What other changes are to be done for a successful deployment?
    Environment :EP6.0, sp2 hotfix4 on Windows 2003, MS SQL server DB.
    Please reply ASAP
    Thanks
    Bhanu

    hello,
    have you tried including the 3rd party jar in your EAR file itself?
    i use a number of external jars in my web app and ejb, including some xml parsing classes. what i did was to put them all in the EAR, at the root level, in other words, not in a sub-directory. then in my WAR's meta-inf/MANIFEST.MF file reference them in the Class-path. do simililar thing for the ejbs if necessary.
    when you tried to use the inqxml instead, did you make a reference in manager/referecen.txt from your app to the inqmy library? if so, did you look into the inqmyxml.jar to see if the Node class is actually there?
    regards,
    wentao

  • Error deploying a .ear file - Urgent

    Hi,
    I am trying to deploy an .ear file on the SAP J2EE engine.  I am getting a NoClassDefFound exception even though the particular jar (xml-apis.jar) file containing the class is in the additional-lib directory.  Also, the jar file has been added to the classpath in go.bat?  What other changes are to be done for a successful deployment?
    Environment :EP6.0, sp2 hotfix4 on Windows 2003, MS SQL server DB.
    Please reply ASAP
    Thanks
    Bhanu

    hello,
    have you tried including the 3rd party jar in your EAR file itself?
    i use a number of external jars in my web app and ejb, including some xml parsing classes. what i did was to put them all in the EAR, at the root level, in other words, not in a sub-directory. then in my WAR's meta-inf/MANIFEST.MF file reference them in the Class-path. do simililar thing for the ejbs if necessary.
    when you tried to use the inqxml instead, did you make a reference in manager/referecen.txt from your app to the inqmy library? if so, did you look into the inqmyxml.jar to see if the Node class is actually there?
    regards,
    wentao

  • Error deploying an ear file

    When I try to hot deploy an ear file I get the following error message in the log
    file
    <Nov 15, 2002 9:05:18 AM PST> <Error> <J2EE> <Error undeploying application asd:
    null> <Nov 15, 2002 9:05:18 AM PST> <Error> <Management> <InvocationTargetException
    setting attribute Deployed on MBean mydomain:Location=myserver,Name=asd,Type=ApplicationConfig
    to value false. Method: public void weblogic.management.mbeans.custom.Application.setDeployed(boolean)
    throws weblogic.manageme nt.DeploymentException,weblogic.management.UndeploymentException
    java.lang.NullPointerException at javax.servlet.GenericServlet.getServletContext(GenericServlet.java:205)
    at javax.servlet.GenericServlet.log(GenericServlet.java:300) at javax.servlet.GenericServlet.destroy(GenericServlet.java:122)
    at weblogic.servlet.internal.ServletStubImpl.destroyServlet(ServletStubImpl.java:451)
    at weblogic.servlet.internal.ServletStubImpl.destroyServlet(ServletStubImpl.java:434)
    at weblogic.servlet.internal.WebAppServletContext.destroyServlets(WebAppServletContext.java:3805)
    at weblogic.servlet.internal.WebAppServletContext.shutdown(WebAppServletContext.java:3764)
    at weblogic.servlet.internal.ServletContextManager.removeContext(ServletContextManager.java:153)
    at weblogic.servlet.internal.HttpServer.unloadWebApp(HttpServer.java:519) at weblogic.j2ee.WebAppComponent.undeploy(WebAppComponent.java:90)
    at weblogic.j2ee.Application.undeploy(Application.java:285) at weblogic.j2ee.J2EEService.undeployApplication(J2EEService.java:232)
    at weblogic.management.mbeans.custom.Application.setLocalDeployed(Application.java:370)
    at weblogic.management.mbeans.custom.Application.setDeployed(Application.java:300)
    at java.lang.reflect.Method.invoke(Native Method) at weblogic.management.internal.DynamicMBeanImpl.invokeSetter(DynamicMBeanImpl.java:1401)
    at weblogic.management.internal.DynamicMBeanImpl.setAttribute(DynamicMBeanImpl.java:894)
    at weblogic.management.internal.DynamicMBeanImpl.setAttribute(DynamicMBeanImpl.java:847)
    at weblogic.management.internal.ConfigurationMBeanImpl.setAttribute(ConfigurationMBeanImpl.java:296)
    at com.sun.management.jmx.MBeanServerImpl.setAttribute(MBeanServerImpl.java:1358)
    at com.sun.management.jmx.MBeanServerImpl.setAttribute(MBeanServerImpl.java:1333)
    at weblogic.management.internal.ConfigurationMBeanImpl.updateConfigMBeans(ConfigurationMBeanImpl.java:393)
    at weblogic.management.internal.ConfigurationMBeanImpl.setAttribute(ConfigurationMBeanImpl.java:299)
    at com.sun.management.jmx.MBeanServerImpl.setAttribute(MBeanServerImpl.java:1358)
    at com.sun.management.jmx.MBeanServerImpl.setAttribute(MBeanServerImpl.java:1333)
    at weblogic.management.internal.MBeanProxy.setAttribute(MBeanProxy.java:322) at
    weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:204) at $Proxy18.setDeployed(Unknown
    Source) at weblogic.management.mbeans.custom.ApplicationManager.poll(ApplicationManager.java:846)
    at weblogic.management.mbeans.custom.ApplicationManager.poll(ApplicationManager.java:748)
    at weblogic.management.mbeans.custom.ApplicationManager.update(ApplicationManager.java:206)
    at weblogic.management.mbeans.custom.ApplicationManager$ApplicationPoller.run(ApplicationManager.java:1098)
    --------------- nested within: ------------------ weblogic.management.UndeploymentException:
    - with nested exception: [java.lang.NullPointerException] at weblogic.j2ee.J2EEService.undeployApplication(J2EEService.java:248)
    at weblogic.management.mbeans.custom.Application.setLocalDeployed(Application.java:370)
    at weblogic.management.mbeans.custom.Application.setDeployed(Application.java:300)
    at java.lang.reflect.Method.invoke(Native Method) at weblogic.management.internal.DynamicMBeanImpl.invokeSetter(DynamicMBeanImpl.java:1401)
    at weblogic.management.internal.DynamicMBeanImpl.setAttribute(DynamicMBeanImpl.java:894)
    at weblogic.management.internal.DynamicMBeanImpl.setAttribute(DynamicMBeanImpl.java:847)
    at weblogic.management.internal.ConfigurationMBeanImpl.setAttribute(ConfigurationMBeanImpl.java:296)
    at com.sun.management.jmx.MBeanServerImpl.setAttribute(MBeanServerImpl.java:1358)
    at com.sun.management.jmx.MBeanServerImpl.setAttribute(MBeanServerImpl.java:1333)
    at weblogic.management.internal.ConfigurationMBeanImpl.updateConfigMBeans(ConfigurationMBeanImpl.java:393)
    at weblogic.management.internal.ConfigurationMBeanImpl.setAttribute(ConfigurationMBeanImpl.java:299)
    at com.sun.management.jmx.MBeanServerImpl.setAttribute(MBeanServerImpl.java:1358)
    at com.sun.management.jmx.MBeanServerImpl.setAttribute(MBeanServerImpl.java:1333)
    at weblogic.management.internal.MBeanProxy.setAttribute(MBeanProxy.java:322) at
    weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:204) at $Proxy18.setDeployed(Unknown
    Source) at weblogic.management.mbeans.custom.ApplicationManager.poll(ApplicationManager.java:846)
    at weblogic.management.mbeans.custom.ApplicationManager.poll(ApplicationManager.java:748)
    at weblogic.management.mbeans.custom.ApplicationManager.update(ApplicationManager.java:206)
    at weblogic.management.mbeans.custom.ApplicationManager$ApplicationPoller.run(ApplicationManager.java:1098)
    >

    Hi Chandra,
    One of the reason for this problem could be that
    your LDAP server has got corrupted. To verify that
    if possible, try to deploy this in any other
    instance of application server pointing to a
    different LDAP.
    Another reason could be, problem with your
    build.xml file. Did you build this myapp.ear
    from scratch or did you use the build.xml from
    one of our sample application?
    If you have used one of our sample application
    build.xml, there is a high possibility that
    you might not have changed the name of your
    application in one of the entries.
    Thank you

  • UndeclaredThrowableException when deploying a ear file in admin server 6.1, SP1 on Solaris 8.

    WLS 6.1, SP1, Solaris 8.
    When deploying an ear file, I get this stack trace:
    javax.management.MBeanException
         at weblogic.management.internal.DynamicMBeanImpl.addDeployment(DynamicMBeanImpl.java:979)
         at weblogic.management.internal.DynamicMBeanImpl.addDeployment(DynamicMBeanImpl.java:932)
         at weblogic.management.internal.DynamicMBeanImpl.add(DynamicMBeanImpl.java:917)
         at weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl.java:620)
         at weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:592)
         at weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBeanImpl.java:352)
         at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1555)
         at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
         at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:449)
         at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:190)
         at $Proxy13.addTarget(Unknown Source)
         at weblogic.management.mbeans.custom.ApplicationManager.autoDeploy(ApplicationManager.java:837)
         at weblogic.management.mbeans.custom.ApplicationManager.addApplication(ApplicationManager.java:936)
         at weblogic.management.mbeans.custom.ApplicationManager.addApplication(ApplicationManager.java:856)
         at weblogic.management.mbeans.custom.ApplicationManager.poll(ApplicationManager.java:772)
         at weblogic.management.mbeans.custom.ApplicationManager.poll(ApplicationManager.java:705)
         at weblogic.management.mbeans.custom.ApplicationManager.update(ApplicationManager.java:200)
         at weblogic.management.mbeans.custom.ApplicationManager.startAdminManager(ApplicationManager.java:272)
         at weblogic.management.mbeans.custom.ApplicationManager.start(ApplicationManager.java:146)
         at java.lang.reflect.Method.invoke(Native Method)
         at weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl.java:608)
         at weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:592)
         at weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBeanImpl.java:352)
         at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1555)
         at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
         at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:449)
         at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:190)
         at $Proxy5.start(Unknown Source)
         at weblogic.management.Admin.startApplicationManager(Admin.java:1155)
         at weblogic.management.Admin.finish(Admin.java:570)
         at weblogic.t3.srvr.T3Srvr.start(T3Srvr.java:506)
         at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:203)
         at weblogic.Server.main(Server.java:35)
    with this error message:
    <Mar 5, 2002 3:15:10 PM GMT+00:00> <Error> <Management> <Error deploying application
    ./config/lnuatgorwlsdomain2/applications/NostroCheck.ear: java.lang.reflect.UndeclaredThrowableException>
    A number of other people in other newsgroups have had similar problems, but no
    good concrete answers so far.
    This has only recently started to happen, and only on Solaris. Ear file deploys
    just fine on NT (same version/SP of WLS on both environments).
    Attached is a segment of log file which may give someone more details.
    simon.
    [weblogic-error-log-segment.txt]

    Can you show us the full stack trace / error message?
    -- Rob
    Bala wrote:
    Hi,
    I am trying to run ATG Dynamo 5.6 on top of weblogic 6.1
    Dynamo provides a EAR file which will be deployed at the time of weblogic startup.
    But, when i start weblogic, I got the following error:
    Error in deploying dyn.ear
    java.util.UndeclaredThrowableException
    When i checked in the log file, I saw error in loading dyn.ear - StringIndexOutofBounds Exception.
    Please help,
    Thanks
    Bala.

Maybe you are looking for

  • Fixed Asset calculates extra period for Depreciation

    Hi All, I have imported the Fixed Asset for 2007B for the Year 2010. while checking the import, i notice that the system calculates an additional period for depreciation. Here is my scenario : a. Asset Cost = 15,863.12 (purchased on 31-May-2007). b.

  • Jar file connection with mysql

    Hello everyone i ve a problem if you people could solve please help... When i compile my java code with mysql connection it works perfectly, but when i convert into jar file its not updating any values in the mysql database Can anyone tell me a solut

  • CRM DataSource Enhancement

    Hi, I need to add a field to one CRM datasource(0CRM_SALES_ACT_1).I have done that using RSA6.Also written a code in 'EXIT_SAPLRSAP_001'. The delta queue for this DataSource is working properly on CRM side but when I pull the same data to BW side it

  • I've bought a film on my iPhone, but I can't download on my PC.

    I've bought a film on my iPhone, but I can't download on my PC. If I download it on my PC, I'll have to pay again.

  • KC705 & FMC card

    Looking over the site I was trying to determine what a good solution for a certain FMC card for the kc705 development board.   I have one signal that is -5V to 0V signal, what would be an FMC card that could be used for this application?  It seems th