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

Similar Messages

  • Ever-expanding file w/ "Deploy to EAR file"

    If I don't delete any pre-existing EAR file in JDeveloper prior to choosing "Deploy to EAR file" for my application, JDeveloper seems to include the existing EAR file in the new EAR file, such that my EAR file grows with each deployment each time, from 60K to 120K to 240K to ... 10, 20 megabytes, etc. I can only get a clean "deploy to ear file" (chosen from right-clicking on the .deploy file in the Navigator) if I first delete the existing ear file. Is there a way to get JDeveloper to not do this, in case I forget to delete from disk first? Thanks.

    I am exporting using the default settings for QT conversion for Broadband high quality. I didn't mess with any settings other than that. Any ideas?

  • Can we invoke a asynchronous BPEL process from synchronous and vice versa

    Hi,
    Can we invoke a BPEL asynchronous process from synchronous and vice versa. If so how to perform that.
    thanks,
    Vijay

    Yes you can
    sync -- calling --> Asyncc
    Async -- calling --> syncc
    Perfomance is no issue, depending on your requirements. Not the Syncprocesses are short-running processes, these will time-out after 30 seconds, if no answer is coming from the async process.
    Marc
    http://orasoa.blogspot.com

  • How can user view Central Person ID by Personnel Number and Vice Versa?

    Dear Experts,
    We are not using Concurrent Employment, but since Talent Management requires to use the Central Person object, we have created the relative objects for the employees. What I want to know is, how can user view the Central Person ID by a personnel number and vice versa easily?
    Thanks,
    Steven

    Not User friedly
    This logic is in Function Group HRTMC_PPOM, screens 0700 and 0710.
    You can copy it to Z and change search.
    In transaction OOFRAMEWORKCUST for scenario TMC_PPOM change Report in "Tab Page in Scenario for each Object Type" from HRTMC_PPOM to new Z*.

  • 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

  • Can I convert an ePub document to pdf format and vice versa?  If so, how?

    I would like to publish my book in both pdf and ePub formats.  If I create the book in one of these formats, can I convert the finished product to the other?  If so, how do I do that?

    It doesn't work to convert between PDF and EPUB, or back. Start with the same InDesign file and export separately to PDF and to EPUB.

  • Can't connect iMac/Leopard with Mac Mini/Tiger and vice versa

    This one has got me tearing my hair out.
    I have an Intel iMac running Leopard and a Mac Mini running Tiger on the same Ethernet network. Both run (adjacent) fixed IP addresses with common subnet mask and gateway. Both access the Internet fine through a single router. But can I share files between the two?
    Neither has firewall turned on while file sharing is enabled. I can see each Mac from the other but when I try connecting first I get 'The server may not exist or is not operational at this time. Check the server name or IP address and your network connection and try again.' Then on clicking OK I get 'This file server is running on your machine. Please access the volumes and files locally.'
    If I try connecting from Finder using Go - Connect To Server I get this error message 'The Finder cannot complete the operation because some data in "afp://MacMininame" could not be read or written.'
    Although I'm running Leopard on the iMac now, this also used to happen when I ran Tiger too.
    Many thanks - GeoffT.

    Fixed it!
    I have Parallels installed on the iMac and it creates two virtual network adapters (Guest-Host and NAT) in System Preferences/Network. For some reason I'd foolishly contrived to manually configure the Nat adapter to the same IP address as the Mac Mini, hence the point-back to the iMac every time.
    Guess we're all allowed the occasional foul up.....
    GeoffT.

  • How can I sync my iPhone contacts to my Mac and vice-versa, without losing them? Can i do it with iCloud?

    I always add new phone numbers on my iPhone Contacts, while new email addresses are always added on my Mac Contacts. The result is that I dont have my recent email contacts on my phone, while on the Mac I dont have the recent phones.
    I would like to have ONE common list of contacts (same for iPhone & Mac) which will be AUTOMATICALLY updated for both, once I add a new entry.
    I am not sure how to do this with syncing, I am afraid I wll lose my old contacts. Can I do this with iCloud?

    Hello there, Seta.
    You are correct that this can be done with iCloud. The following Knowledge Base article provides some great instruction for syncing contacts:
    iOS: How to transfer or sync content to your computer
    http://support.apple.com/kb/ht1296
    Particularly:
    Contacts, Calendars, Bookmarks, and Notes
    You can sync contacts, calendars, bookmarks, and notes with other applications on your computer. This allows you to keep all your information in sync across multiple computers and iOS devices. The settings for these items are all in the Info tab for your iOS device in iTunes. With your iOS device connected to the computer, select your iOS device. Then click the Info tab.
    For details on syncing content on your iOS device with your computer, click the sections below.
    Contacts
    To sync contacts with your computer, choose "Sync Contacts with" within iTunes for Windows, or "Sync Contacts" in OS X v10.8, or "Sync Address Book Contacts" in OS X v10.7 and earlier.
    You can sync your contacts with:
    Microsoft Outlook 2003, Microsoft Outlook 2007, Microsoft Outlook 2010 (Windows XP, Windows Vista, Windows 7, and Windows 8)
    Windows Address Book (Windows XP)
    Windows Contacts (Windows Vista, Windows 7, and Windows 8)
    Address Book (Mac OS X v10.7 and earlier)
    Contacts (Mac OS X v10.8)
    Microsoft Entourage 2004, Microsoft Entourage 2008, or Microsoft Outlook 2011 for Mac
    Notes:
    When syncing contacts, you can choose to sync all of your contacts or only selected groups. The option to sync selected items may not show up until after the first sync.
    You can select a group of contacts to which all new contacts created on your iOS device will be added.
    Additional options for syncing include syncing your contacts with Yahoo or Gmail/Google Mail. You will need to configure it with the user name and password for your Yahoo or Google account.
    Thanks for reaching out to Apple Support Communities.
    Cheers,
    Pedro.

  • Since upgrading to Lion i can no longer see other computers in my network and vice versa. What has gone on?

    As the title suggests! I can no longer see any of the computers in my network, Mac or otherwise.
    I have checked sharing permissions on all required computers and all seems to be good and have disabled firewalls.
    I notice a few people have had similar problems with screen sharing but I am not even seeing another station to pottentialy share a screen with!
    MBP 2.4GHz Intel Core 2 Duo
    OS X - 10.7

    Regarding the printer:
    From: sterling r: https://discussions.apple.com/thread/5506493?tstart=0
    If that does not help then from braden85:
    This first article is about changing or updating printer software in Mountain Lion, and can be found here:
    OS X Mountain Lion: Change or update printer software
    http://support.apple.com/kb/PH10622
    This next article tells you where to find the printer software for your specific printer brand:
    OS X: Printer and scanner software available for download
    http://support.apple.com/kb/ht3669

  • How can you convert a live RTMP stream to RTMFP and vice versa in flash?

    Assume three computers: A, B, and C. A is streaming live video and audio to B through RTMP. How could that stream be converted to RTMFP and sent through B to C - while at the same time, still going to B as RTMP? How could a live stream from C be similarly sent to B as RTMFP and A as RTMP?
    It doesn't matter to me whether B converts it on the client side, or whether the FMS between A and B convert it. Part of the problem is that B can get streams to and from both A and C, but A and C are effectively disconnected from each other. Another part of the problem is that A has to be able to use RTMP, not necessarily RTMFP, whereas C is guaranteed to use RTMFP. All three clients still need to be able to connect to each other in a live video chat.
    Thanks!

    you don't have to completely redo your project but you will probably need to redo large parts of it.  in addition, there's no quick way of doing what you want and ensuring everything will work well unless you dig into the details of publishing for mobiles.
    it looks like your swf's background is transparent.  you assigned the wmode attribute in your embedding code to be transparent.

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

  • Deploying an EAR file to Oracle Server

    I went thru the documentation and created an EAR file but when we try to deploy it we get the following error: Application1.ear file – error on upload:
    Failed in uploading archive. Invalid archive file: unexpected EOF
    I have searched the forums and chat rooms trying to find a solution. Can anyone suggest something. Thanks.

    Hi,
    did you create it with JDeveloper and if, which version. Did you create a WAR file first or an EAR file straight - in which case probably its missing the Web application. How did you deploy it? From JDeveloper or with OC4J or ApplicationServer Enterprise Manager?
    Frank

  • Getting runtime error when i am deploying my ear file in weblogic8.1

    I deployed my ear file into weblogic server, the below error i got in console of weblogic server. please tell where i need to setup class path. I am using eclipse as IDE and running the project in eclipse.
    How can i set classpath in weblogic server ? Give me step by step please.
    <May 25, 2006 8:13:45 PM GMT+05:30> <Error> <HTTP> <BEA-101017> <[ServletContext(id=19766836,name=MarketFusionCom.war,context-path=)] Root cause of ServletException.
    weblogic.servlet.jsp.CompilationException: Compilation of C:\bea\user_projects\domains\mydomain\marketfusioncom\jsp_servlet\__index.java failed.java.io.IOException: CreateProcess: javac -classpath "C:\bea\user_projects\domains\mydomain\MarketFusionServer\.wlnotdelete\extract\MarketFusionServer_MarketFusionCom_MarketFusionCom.war\MarketFusionCom.war;C:\bea\user_projects\domains\mydomain\MarketFusionServer\.wlnotdelete\MarketFusionCom\MarketFusionCom.jar;marketfusioncom;C:\Program Files\Java\j2re1.4.2_01\lib\rt.jar;C:\Program Files\Java\j2re1.4.2_01\lib\i18n.jar;C:\Program Files\Java\j2re1.4.2_01\lib\sunrsasign.jar;C:\Program Files\Java\j2re1.4.2_01\lib\jsse.jar;C:\Program Files\Java\j2re1.4.2_01\lib\jce.jar;C:\Program Files\Java\j2re1.4.2_01\lib\charsets.jar;C:\Program Files\Java\j2re1.4.2_01\classes;C:\bea\weblogic81\server\lib\weblogic.jar;C:\bea\weblogic81\server\lib\wlcipher.jar;C:\bea\weblogic81\server\lib\jsafeFIPS.jar;C:\bea\weblogic81\server\lib\webservices.jar;C:\bea\weblogic81\server\lib\xmlx.jar;C:\bea\weblogic81\server\lib\ojdbc14.jar;C:\bea\weblogic81\server\lib\jconn2.jar;C:\bea\weblogic81\server\lib\jConnect.jar;C:\bea\weblogic81\server\lib\EccpressoAsn1.ja?
    at java.lang.Win32Process.create(Native Method)
    at java.lang.Win32Process.<init>(Unknown Source)
    at java.lang.Runtime.execInternal(Native Method)
    at java.lang.Runtime.exec(Unknown Source)
    at java.lang.Runtime.exec(Unknown Source)
    at java.lang.Runtime.exec(Unknown Source)
    at weblogic.utils.Executable.exec(Executable.java:227)
    at weblogic.utils.Executable.exec(Executable.java:156)
    at weblogic.utils.Executable.exec(Executable.java:142)
    at weblogic.utils.compiler.CompilerInvoker.execCompiler(CompilerInvoker.java:249)
    at weblogic.utils.compiler.CompilerInvoker.compileMaybeExit(CompilerInvoker.java:428)
    at weblogic.utils.compiler.CompilerInvoker.compile(CompilerInvoker.java:328)
    at weblogic.utils.compiler.CompilerInvoker.compile(CompilerInvoker.java:336)
    at weblogic.utils.compiler.CompilerInvoker.compile(CompilerInvoker.java:321)
    at weblogic.servlet.jsp.JspStub.compilePage(JspStub.java:451)
    at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:246)
    at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:196)
    at weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.java:598)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:406)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:348)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6981)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
    at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3892)
    at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2766)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:224)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:183)
    at weblogic.servlet.jsp.JspStub.compilePage(JspStub.java:478)
    at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:246)
    at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:196)
    at weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.java:598)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:406)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:348)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6981)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
    at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3892)
    at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2766)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:224)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:183)
    Caused by: java.io.IOException: Compiler failed executable.exec
    at weblogic.utils.compiler.CompilerInvoker.compileMaybeExit(CompilerInvoker.java:470)
    at weblogic.utils.compiler.CompilerInvoker.compile(CompilerInvoker.java:328)
    at weblogic.utils.compiler.CompilerInvoker.compile(CompilerInvoker.java:336)
    at weblogic.utils.compiler.CompilerInvoker.compile(CompilerInvoker.java:321)
    at weblogic.servlet.jsp.JspStub.compilePage(JspStub.java:451)
    ... 12 more
    >

    Hi i got this same problem and i solved this
    weblogic8 containing ejbcompiler supports only the jdk1.4 versioning class files
    so plz compile u r java file with jdk1.4 version and deploy in weblogic8 . u r problem will be solved
    Regards
    Srinivasa Rao.Teki
    Software Engineer
    ITON Technologies
    Tanuku, W.G.Dt, A.P,India
    GSM: 9885504303 (+91)

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

  • 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

Maybe you are looking for

  • How can I get itunes to play one album from start to finish, especially when there are different artists on it?

    How can I get itunes just to play albums from beginning to end? Often if an artist has a guest artist, or there are 'various artists' on the album, it stores them all separately, so listening from beginning to end becomes not one click away, but a mu

  • Over-protected external HDs-now can't see them :(

    Folks I "protected" my External HDs in 'Ownership and Permissions" whilst my grandkids were wanting to "play" on my G5, but I must have overdone it because now I can't see them on my Desktop to UN-protect them! Can anybody help get 'em back, please?

  • Iphone 4 signal problems

    i have an Iphone 4 that has been unlocked through apple. the operation of the iphone itself is fine, its just that it shows no signal and then pops up signal in random areas. however whenever i run my errands of some sort and come upon a area that ha

  • Upgradation of BW ....Impact in other systems R/3,SRM,APO,

    we want to upgrade BIW 3.1 to enhance performance Is there any impact on the other systems like R/3(4.6c), SRM(2.0), APO(3.0a)which are integrated along with the existing support packs Please advice me. Regards Arjun

  • The Addressbook order can't be controlled??

    Since around two months time my addressbook has started to show names in the wrong order. I want it to show names with first names first and then Family names at the end. But more and more names get it the other way. Looking into the names with the w