Deployment WAR to EAR

Hi,
Description of Problem:
We were utilizing a .war for our application deployments but switched to a .ear file.
With the .war, we were able to set up the context root via the WebLogic console (implemented the Plan.xml file) which allowed us to manage multiple environments configured
with the WSSO dev/test areas.
When we switched to the .ear, the plan.xml would not overwritten what was in the application.xml file that was getting created during our build process.
We understand application.xml value for context_root not being able to be overwritten by the Plan.xml in WebLogic.
How we can configure this to work with a .ear file like it did with the .war file? Currently, we have to manipulate the build file which is not a preferred method.

Hope the below url helps you:
http://middlewaremagic.com/weblogic/?tag=plan-xml

Similar Messages

  • Deploying war OR ear file in 10.1.3 standalone OC4J

    I've read the several threads on how to deploy a war file and/or ear file for OC4J but haven't seen anyone having the same issue I'm having.
    I've tried deploying manually, from the command line using admin.jar, as well as the enterprise manager. It appears that when OC4J is looking for a jar file containing EJB's. But my app has none and there is no jar file that it finds.
    Here is what the console reports when I try to deploy using admin.jar ->
    http://www.gordongridley.us/2007/02/oc4j-console-when-trying-to-deploy.html
    OK - so I try to deploy using the Enterprise Manager instead to see if the UI has some options that I can change for not forcing an EJB jar file lookup. Here is a video of what I did ->
    http://www.gordongridley.us/2007/02/attempting-to-deploy-war-using-oc4j.html
    Do I really need to have a jar file with EJB's to deploy a WAR/EAR file?

    Hi Gordon,
    The source of your ills is this entry in the application.xml descriptor:
    <module>
    <ejb>TomaxCMAdmin.jar</ejb>
    </module>
    Remove that, and you should be good to go (assuming you aren't referencing any other non-existent JARs).
    Thanks
    Dan Hynes

  • Deploy war or ear file to Websphere Server

    Anyone knows how to deploy .war file to Websphere Application Server after building the completed JSF web application from Creator tool? Or how to deploy the application developed in Creator to other servers such IBM Websphere, JBoss ...etc.
    By theory, to put on server, any web ear files can be dropped into web contents directory of each server. In my case, I put war file on IBM Websphere 5.1, but it did not work.
    Thanks in advance.
    VTT_

    Did you use the export war facility on your project in the project navigator? this should work fine.
    Note you will need to create your datasources etc using hte admin tools for the server of your choice.
    There may also be some library requirements for JSF that your server doesn't have - I know this is true for tomcat, for example... see
    http://swforum.sun.com/jive/thread.jspa?threadID=46057&tstart=0
    hth,
    Val

  • Deploy .war or .ear file to sun java web server 7.0 update 4

    Hi
    This could be a very daft question, but still I would like to get a clarification.
    My clients are a financial organisation, and for security and various other reasons they accept only .ear files. But this time the development and deployment would be done on Sun Java Web Server 7.0 update 4 . Now since its a web server I don't think I can deploy an .ear file.
    But sure I would like to get an answer from the experts here, is it possible to deploy and .ear file to Sun Java Web Server 7.0 before I can go back to my clients.
    Please help me here as I'm in a real big confusion here. Your help would be highly valuable to me.
    Thanks
    Jagdish

    Hi
    Thanks for the reply and I appreciate your help. Well I tried deploying an .ear file directly and web server 7 complains that it doesn't have a .war extension, understandably so.
    And then ripping apart the .ear file and deploying the .war file does work, as is expected of a web server.
    Well, about my customer is a bank and they have a very tight security policy, and why they need an .ear file is beyond my understanding. Well as far as this issue is concerned, I need a strong point so that I can get back to them that we need to comply to the third party software.
    But I didn't wan't to get back to them saying we can only provide a .war file and then later find out an .ear file could have done the job. And being seen as the technical experts we can't afford to make any mistake.
    Thanks
    Jagdish

  • How to deploy .WAR or .EAR  or .SDA file

    dear friends,
    I created a dictionary file and an ear file.
    From Netweaver studio i configured SAP J2EE Engine with the IP address and the port number as 3601 ( even i tried 3601, 50000)
    But after selecting file and click on deploy, it is giving
    Deployment aborted message.
    But i can deploy .par file from netweaver with out any problem.
    Can anybody tell me how to deploy .ear and .sda files
    What are other ways i can deploy
    early reply appreciatd
    kantha

    Hi Kantha,
    you can try to deploy via SDM (Software Deployment Manager)! Check this link for more info: http://help.sap.com/saphelp_webas630/helpdata/en/05/4fac3e00c8b014e10000000a114084/content.htm
    Hope this helps,
    Robert

  • How to Create a jar war or ear--Probelms in deploying

    I have the following dir structure. I am using Struts 1.1 and weblogic 7.0
    APP
    +jsp
    +WEB-INF
    + ---lib
    +--- classes
    +----com
    --ap
    --action
    --beans
    --handler
    --service
    --client
    --ejb
    --valueobject
    1> Do I need to create a ear file since i want both the ejb (under service folder) and war as reusable components. Whenever we have a EJB component do we always need to have an EAR file??
    2> Whats the best way to create the jar, war or ear file. I am facing great difficulty in deploying the war.Do we need to set any classpath before we create the war and jar files except for the deployment descriptors.I have created the ejb descriptors correctly through ejbc.
    3>I have kept struts.jar,log4j.jar under lib folder. However when i create the ear and try to deploy it under weblogic it deploys the war file but gives error in deploying the jar which has the ejb. I have aslo validated the jar using ejbc.
    It gives error indicating that it requires struts.jar in classpath. If we give the classpath of struts.jar at system leve the Application deploys with ease..Can anyone tell whats the error.The jar does not use any strust component .
    4>Also the valueobject which has some beans which are used to populate the jsp through Actionformbean. Is it ok if we give refrences in both ejb jar and war?
    ie while creating jar and war folder have the valueobject in both the files or will it lead to any errors..
    Thanks in Advance
    ....

    Yes, I have tried that. But, as the server is running and the jars are in use, it throws and EditFailedException

  • War an ear deployment problem

    hi,
    I got a war and ear that share common classes. I would like to deploy both of them on the same application server.
    I started with weblogic and it worked fine.
    Now I am running it on Websphere - the problem is the ear application failed to start - it cant find one of it's property files even though it is in the class path.
    I see that the jar containing all the properties is in the class path - the application can access all other properties files except this one.
    The problematic properties file is my.commons.logging.properties which is a refactoring to the common.logging jar.
    I also see that if the war is not deployed - the ear is deployed without a problem.
    the war contains commons.logging.properties and because Websphere also had it's own common.logging i had to use "parent last" for the war deployment.
    If i change the load order of the applications(the ear is loaded first) - the properties file is found.
    I will be happy to hear any idea you got about this.
    I don�t understand how two different applications affect each other that way.
    Thanks!!!

    Sounds like a bug. You can report it to [email protected]
    -- Rob

  • Looking for a DAO\JDBC example to deploy as war or ear to see how it works

    looking for a DAO\JDBC example to deploy as war or ear to see how it works can any one show me i have searched it but cant find it...

    you should try searching in http://www.theserverside.com

  • Error while deploying WAR to Oracle AS

    Hello,
    When I try to deploy a WAR file to Oracle AS 10.1.2.0.2, I am getting following error. What could be the reason. I have used Jdeveloper 10.1.2.
    Failed to deploy web application "LM". Failed to deploy web application "LM". . File /var/tmp/dir37221.tmp/LM.war is not a jar file.
    Resolution:
    Base Exception:
    java.util.zip.ZipException
    invalid END header (bad central directory offset). invalid END header (bad central directory offset)

    I'm also getting this problem. And at the moment it is really urgent.
    I'm trying to deploy a webapplication to our customers system, but it won't work. The war, ear, and jar files look correct.
    So I don't understand why this problem is occuring. So If anybody has an idea or solution to this, please reply quick!
    I also tried to delete all jar, war and ear files, so that the JDeveloper creates the files complete new, but nothing helped so far.
    This is the error I'm getting when I try do deploy by a war-File:
         Web-Anwendung "Lekkerland-SUSI" konnte nicht bereitgestellt werden. Failed to deploy web application "Lekkerland-SUSI". . File /tmp/dir29051.tmp/Lekkerland-SUSI.war is not a jar file.
    Resolution:
    "Base Exception:
    java.util.zip.ZipException
    invalid END header (bad central directory offset). invalid END header (bad central directory offset)"
    When I try to deploy by an ear-File I#m only getting a small message that the ear-File is invalid.
    I'm thankful for every tip!
    Regards
    Verena
    Message was edited by:
    Verena

  • How to deploy war file in wesphere5.1

    hi
    i am new to websphere 5.1. i am trying to deploy war file in websphere admin it giving an error that ear file is corrupt. same file is working with weblogicc..
    so please tell me step by step .
    if is there any other site where can i get the step step process..
    thanks
    anagh

    first step: read documentation
    second step: apply gathered knowledge
    a few pointers, if i am not mistaken your problem is that a weblogic ear uses weblogic specific application.xml, you might wanna focus on that

  • Jar, War or Ear file ?

    Hi,
    I am a total newbie in J2EE technology.
    I am currently using Sun One Application. Using the sample application, it produces all the Jar, War and Ear files.
    My understanding is Jar is produced to be a library-like usage.
    War is for web application.
    And Ear is for what?? oops EJB? Can someone tell me?
    Anyway, my concern is, if I am to produce Ear, war, or Jar file after deploy, I have problems doing the testing. Let's say I want to modify the Jsp file, then I have to use ant to compile all, undeploy the instance and deploy again.
    Any better way?

    your jar files contain your EJBs, your WAR file contains your web application (JSPs, servlets and support) and these are all bundled into your EAR file. All of these files are just zip-formatted archives, you can look at them all via the jar tool (or something like WinZip, if you are so inclined). Each of these will contain a descriptor file (in XML format) - check out the J2EE spec on it.
    Lee

  • Deploying WAR file using IAS Test Drive edition...

    Hi:
    Is it okay to deploy a build using a WAR file instead of an EAR file? Is
    there any documentation for deploying WAR files? All the available docs and
    examples start with EAR files.
    Thanks,
    George

    Hi,
    A war file is okay if you are using servlets & JSP, WAR means Web Archive.
    So you can very well go ahead with a war file, incase you are thinking of EJB's
    then a .ear file will help you.
    Regards
    Raj
    George Sang wrote:
    Hi:
    Is it okay to deploy a build using a WAR file instead of an EAR file? Is
    there any documentation for deploying WAR files? All the available docs and
    examples start with EAR files.
    Thanks,
    George

  • How to deploye .war files in SOA_Server1 ?

    Hi,
    I was created Auto Generated Task form for Human Task in 11G.After that how to deploye .WAR files manually in
    "Infra -Soa(Soa_srerver1)" .Plz help me now

    When you auto-generated the UI it would have defaulted to creating a web app project in your application. When you deploy the BPMN process, there are three steps in the wizard:
    1. Deploy Configuration
    2. Task flow deployment
    3. Select Server
    In step 2 you can select some of all of the UI projects in the app and deploy them as part of deploying the composite. The build/deploy process will automatically create the war(s) and ear file. Once they're deployed, you can leave them un-selected to avoid redeploying them each time you just change the process definition. If you make changes to the UI, you can just select them again during deployment and select the option to overrwrite the EAR.

  • WAR within EAR is using the same classloader as the EAR

    Hi all,
    From documentation, I understand that each WAR web application that are packaged within EAR should have a separate (child) classloader and should not be using the same classloader as the EAR. I have two WAR files and some JAR files all packaged and deployed as an EAR. Using the Classloader Analysis Tool, I think the two web applications (WARs) are actually using the same classloader as the EAR. I say this because:
    1. The application class loader listed for the web apps has the same hashcode as the class loader listed for the EAR.
    2. I tried to add the <prefer-web-inf-classes> element within the WAR's weblogic.xml file and it doesn't seem to work. The web app is still using classes loaded in the EAR. This is consistent with my observation that the classloader for the WARs has the same hashcode as the classloader for the EAR - therefore I think they are using the same classloader.
    I don't understand this behavior. I thought WARs are supposed to be using different/child classloaders from the EAR by default. Do I have to specifically declare my own customer <classloader-structure> within weblogic-application.xml in order to have child classloaders for the WARs within my EAR?
    Thanks for any help.

    We are doing it currently as we are switching over from Exchange 5.5 to OCS. We set up a profile using the Oracle connector and then go into properties and add the Exchange account. We used this method to move files from the Exchange server to the Oracle server by having both profiles running.

  • Deploy .war file directly to OC4J

    is it possible to deploy a .war file directly with having to create a .ear file

    The command line deployment requires an EAR file; so you can just
    package the WAR in a EAR. However you can do the following to deploy an WAR file:
    Following are the steps involved in deploying a WAR file in Oc4j.
    1. Copy the file to D:\oc4j\j2ee\home\applications where d:\oc4j is the location OC4J is installed in.
    copy mywar.war D:\oc4j\j2ee\home\applications
    2. Open the application.xml file in D:\oc4j\j2ee\home\config directory
    and add the following after the <web-module id="defaultWebApp" path="../default-web-app" />
    line:
    <web-module id="mywar" path="../applications/mywar.war" />
    3. Open the default-web-site.xml file in D:\oc4j\j2ee\home\config
    directory and add the following after the <default-web-app application="default" name="defaultWebApp" /> line:
    <web-app application="default" name="mywar" root="/mywar" />
    great that works
    but with the OC4J developer preview you have to modify http-web-site.xml
    as opposed to default-web-site.xml
    (guess they changed the name of the file in the newer release)

Maybe you are looking for