Extract WAR file while deploying

hi
Is there any way or option which we need to give in deployment descripter to
extract the war file while deploying.
Any one can suggest me how to proceed in this aspact.
Thanks and Regards
Anand Mohan

Anand,
Can you give a context for this question? Are you packaging your J2EE modules
into an ear file and need to extract the war file? What is the use case for
the scenario you are describing?
Chuck Nelson
DRE
BEA Technical Support

Similar Messages

  • Cannot extract .war file in linux

    Hello,
    I had a problem in extracting .war file.
    I got a .war file to deploy in weblogic application server.
    I want to extract this file and look inside it (need to edit) but i couldn't.
    I use this commnand and got following error.
    [sarad.mk@inek2 sampleapp]$ ls
    orgtestApp.war testApp.war
    [sarad.mk@inek2 sampleapp]$ jar -xvf orgtestApp.war
    bash: jar: command not found
    Can anyone please help me out quick. I am in real difficult.
    Thanks in advance,

    rocky777 wrote:
    Hello,
    I had a problem in extracting .war file.
    I got a .war file to deploy in weblogic application server.
    I want to extract this file and look inside it (need to edit) but i couldn't.
    I use this commnand and got following error.
    [sarad.mk@inek2 sampleapp]$ ls
    orgtestApp.war testApp.war
    [sarad.mk@inek2 sampleapp]$ jar -xvf orgtestApp.war
    bash: jar: command not found
    Can anyone please help me out quick. I am in real difficult.
    Thanks in advance,Re: jar -xvf orgtestApp.war
    This means you have not been able to locate the 'jar' command on your local path:
    ( echo $PATH ).
    The solution is to locate the full path to a jar command. These are likely to be in a java sdk bin directory; if you have one on your machine. You should then be able to work by adding that directory to your path or perhaps specifying the full path to the jar file.
    Some other utilities are able to do this also: in checking my memory on this i seen the following thread on java coderanch: http://www.coderanch.com/t/91536/java/edit-war-file-JSP

  • Any option to extract WAR file at the time of deployement?

              hi
              Is there any attribute to extract the WAR file at the time of deployment.Please
              Help me if any one know about this one.
              Regards
              Anand MOhan
              

    On Wed, 04 Dec 2002 00:30:57 +0000, Anand wrote:
              >
              > hi
              > Is there any attribute to extract the WAR file at the time of deployment.Please
              > Help me if any one know about this one.
              >
              > Regards
              > Anand MOhan
              Not quite sure what you are asking. Are you saying to extract the files
              inside the WAR file during deployment? To do deployment, either with
              packaged or exploited view deployment only.
              Thank you,
              Neo Gigs
              "Follow the white rabbit..."
              

  • Java.io.IOException: Too many open files while deploying in soa 11g

    hi all,
    I am getting a strange error while deploying any composite .. it's a hello world kinda composite but while i am trying to deploy it i am getting "java.io.IOException: Too many open files" while deployment.. i have tried to deploy it in 2-3 ways but all of them resulted in the same error..bouncing the soa server might be an option but can someone give an insight as why it is happening and can it be resolved without restarting the server..
    Thanks

    yes..so this problem is with unix only ..coz i previously worked in Windows ..never got this problem..

  • How to extract war file

    how to extract war file? explain technoloby behind in war

    hi
    go to your dir :
    jar xvf filename.warhelp, simply type jar, above baluc mention is right, jar/war/ear is like a zip file contains *.classes, images, xml , etc....
    jar i hope it will help u

  • 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

  • Manually extract WAR file?

    I have a completed JSP/servlet website that I'm trying to deploy on a webhosting site but I'm having some problems. The root directory is apparantly /html and then there's a /web-inf folder in that that containts a /classes and /lib folder. I've tried placing the war file in the /html and the /web-inf folder and having them restart tomcat, but it won't automatically uncompress the war file. I don't have access to any of the server configuration files. Is there a line of code I can use to telnet in and manually extract the war file?

    Easy enough,
    *.jar, *.war, and *.ear files are really zip files. What you can do is use the jar command "jar -xf file.jar" since your extention is war you might want to do "mv blah.war blah.jar". I am not sure if jar will spit errors cause of the extention. So just rename the war file if it does.
    You can also do "mv blah.war blah.zip" followed by "unzip blah.zip"
    I hope this helps.
    -Richard Burton

  • War file and deployment

    Hi,
    im new to j2ee and there are some qns i hope you can help me with.
    1. why is there a need to put my jsp and servlets in a .war file?
    2. where do i do my placements of ejb and jsp into the respective jar and war files? in my web server?
    thanks a lot!

    1. why is there a need to put my jsp and servlets in a .war file?Answer- As technology evolved over ther period of time, it became more and more evident that the smaller and easier the things the better it is. WAR format is a ZIP format created to deploy your web application data. Hence called WAR(Web Application Archive). It usually contains your Images, JSP pages, and servlets and other related helper files needed by your web application. Java being a cross platform technology, it becomes easy and standardized to distribute your application(web) to other vendors/teams/people if one makes use of a WAR file. Once dropped in the root directory of the App server(i mean the proper webapp directory) the application server is smart enuf to load your WAR file and create respective directory structure.
    2. where do i do my placements of ejb and jsp into the respective jar and war files? in my web server?Answer:- When you add the EJB files and distribute it along with your WAR file, its called EAR(Enterprise Archive) which is WAR+ EJB jar files. As for the JSP's they form a part of the WAR and should be bundled up while creating the WAR file.
    Hope this answers the question.

  • Problem redeploying war files with deployment tool

    I'm going thru the j2ee tutorial(downloaded Dec 03). I can't successfully redeploy war files. After making changes to a java file and then rebuilding using asant, using the deploytool I save changes and then redeploy. I always get the old version unless I completely remove the old web module and create a new one. I've seen this problem over and over in the forum but nobody has addressed it properly. Please help.

    To be more specific, I'm working on the bookstore example in the J2ee tutorial. If I just add a single web module(banner servlet) to the existing standalone war module bookstore1, The tools->update module tools->deploy works fine. If I add the rest of the modules(bookDetailsServlet,bookStoreServlet,etc). After making changes and rebuilding the .java files if I go to tools->update module the window displays nothing under the heading "the following entries have changes".
    Under the heading "the following entries were not found on disk" is a list of all the files under the war module bookstore1.war. I'm don't understand why it is not recognizing the changes. Any help would be appreciated.

  • How to go from a .wsdl to .war file to deploy on Tomcat ? (using jax-rpc?)

    I have created a .wsdl file using XMLSpy and I want to deploy the service on tomcat. I have been unsuccessful in using the "wscompile -import" option.
    Does anyone know how to cross-compile a .wsdl file into a .war so it can be deployed on tomcat? If there is another way other than a .war file, that is fine too...
    Currently, I am using WSDL2Java tool by Apache Axis. I take my .wsdl file use the WSDL2Java tool to get the java files, Then I run the java files through wscompile, wsdeploy etc.... the problem with this approach is that the .wsdl file produced by the wsdeploy does not support the document encoding (everything switched to rpc) and no literal either (I think).
    If anyone has figured out a better way of going from .wsdl to java or .war or tomcat.. please let me know.. I'm running out of options...
    Thank you !

    The link worked correctly for me. You can also refer to a recently published whitepaper at
    https://jax-rpc.dev.java.net/whitepaper/1.1/index-part1.html. Scenario 5 in second part (https://jax-rpc.dev.java.net/whitepaper/1.1/index-part2.html#Scenario5) of the whitepaper describes how to achieve your scenario.
    Post your JAX-RPC related questions to [email protected] for a quicker resolution.
    Send an email to [email protected] to subscribe to the alias.
    Send an mail to [email protected] for a complete list of help commands.
    Thanks for your interest in JAX-RPC.
    Regards,
    -Arun

  • Creating ear and war file from deploy file programatically

    Hi All,
    Is there any API available in oc4j to create an ear or war file from a .deploy file...........??
    Thanx in advance.

    There isn't a public API that let's you hook up to the deploy file in JDeveloper.
    You might be able to achieve this with the JDeveloper Ant task:
    http://www.oracle.com/technology/products/jdev/htdocs/partners/addins/exchange/anttasks/index.html

  • Project librarys not included in WAR file with deployment (WEB-INF/lib)

    Using JDeveloper 9.0.5.2
    Project Libraries are not included in WEB-INF/lib when deploying. Although the files are selected in the deployment file at 'Contributors'. Within the 'filter' the .jar files are missing.
    To solve it i have to register again (i have already made the librarys project library's) the files within Tools->ManageLibrarys as user library's.
    The other workaround is to make the library's System Library's within the project.
    In my opinion it is a bug that you must include the project librarys as user librarys within the 'LibraryManager'

    Unfortunately no, the issue with output folder being ignored occurs only with example apps bundled with Workshop product.
    You can try the following workaround:
    - In Workshop, Project > Properties - Java Build Path, switch to Source tab - "Remove the source folder listing" - Click OK and dismiss Properties window.
    - Project > Properties - Java Build Path > Source Tab, add the same source folder entry - Click OK
    - Export as WAR
    With this you should see the class files bundled under output directory structure (Ex: WEB-INF/classes).

  • Error  in XML file while deploying in server

    Hi friends,
    I am Venkataramana . I am doing one small structs application with Validation . as usual in XML file i wrote validations but when i am deploying in server it is showing error as
    SEVERE: Parse Error at line 2 column 17: Document is invalid: no grammar found.
    org.xml.sax.SAXParseException: Document is invalid: no grammar found.
         at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:236)
    and
    Jan 11, 2010 11:57:53 PM org.apache.commons.digester.Digester error
    SEVERE: Parse Error at line 2 column 17: Document root element "form-validation", must match DOCTYPE root "null".
    org.xml.sax.SAXParseException: Document root element "form-validation", must match DOCTYPE root "null".
    Kindly find the validation.xml file for your reference.
    <!DOCTYPE form-validation PUBLIC
    "-//Apache Software Foundation//DTD Commons Validator Rules Configuration 1.1.3//EN"
    "http://jakarta.apache.org/commons/dtds/validator_1_1_3.dtd">
    <form-validation>
    <formset>
    <form name="regFormForm">
    <field property="username"
    depends="required">
    <arg0 key="uname"/>
    </field>
    <field property="password"
    depends="required">
    <arg0 key="password"/>
    </field>
    </form>
    </formset>
    </form-validation>
    Please can any one help on this?

    I think your dtd entry - "http://jakarta.apache.org/commons/dtds/validator_1_1_3.dtd" is not compatible with your validation.jar file. If you have recently downloaded the these struts jar files then make sure this entry is matched with what they have provided in examples. Or download new set of jar files and copy the same doc-type tag as they have given in examples.

  • Error  in validation.xml   file while deploying in server

    Hi friends,
    I am Venkataramana . I am doing one small structs application with Validation . as usual in XML file i wrote validations but when i am deploying in server it is showing error as
    SEVERE: Parse Error at line 2 column 17: Document is invalid: no grammar found.
    org.xml.sax.SAXParseException: Document is invalid: no grammar found.
         at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:236)
    and
    Jan 11, 2010 11:57:53 PM org.apache.commons.digester.Digester error
    SEVERE: Parse Error at line 2 column 17: Document root element "form-validation", must match DOCTYPE root "null".
    org.xml.sax.SAXParseException: Document root element "form-validation", must match DOCTYPE root "null".
    Kindly find the validation.xml file for your reference.
    <!DOCTYPE form-validation PUBLIC
    "-//Apache Software Foundation//DTD Commons Validator Rules Configuration 1.1.3//EN"
    "http://jakarta.apache.org/commons/dtds/validator_1_1_3.dtd">
    <form-validation>
    <formset>
    <form name="regFormForm">
    <field property="username"
    depends="required">
    <arg0 key="uname"/>
    </field>
    <field property="password"
    depends="required">
    <arg0 key="password"/>
    </field>
    </form>
    </formset>
    </form-validation>
    Please can any one help on this?

    I think your dtd entry - "http://jakarta.apache.org/commons/dtds/validator_1_1_3.dtd" is not compatible with your validation.jar file. If you have recently downloaded the these struts jar files then make sure this entry is matched with what they have provided in examples. Or download new set of jar files and copy the same doc-type tag as they have given in examples.

  • Error in load file while deploying EPM Application View of HFM

    Started Time : Friday, September 19, 2008 10:06:55 AM
    Submitted Time : Friday, September 19, 2008 10:06:55 AM
    Last Updated Time : Friday, September 19, 2008 10:45:02 AM
    User Name : admin
    Process Name :
    Thread : 0
    Server : DimServer
    Detail : Errors occurred in load file
    Status : Aborted
    Progress : 100%
    Can anyone help?

    Hi,
    This error will come when the services are not running properly.
    When we encounter this error we normally restart the Hyperion Services and its gets resolved.
    you may want to try the same.

Maybe you are looking for

  • Report priniting issue

    Hi,      After executing a report iam trying to print the output but instead of printing it's going to the spool, i want this to be printed directly.iam getting this problem after upgrade is there a way to print directly.Please guide Thanks

  • New N97 Mini: Camera Problem

    Hi! I just bought an N97 Mini and have been having problems with the camera. Whenever I use the camera, it works fine until I am done with it and close the application. When I immediately need to use the camera again, the camera application shows a b

  • G4Ti4200-TP64 Everything is pink!

    Hello there! I don't know what's going on, I just know I need help! My MSI G4Ti4200 had been working great for four weeks (until 3 days ago), when all of a sudden the colors totally changed. Already when I boot the computer, the text is pink. My back

  • PDF shows as a blank form

    Created a PDF in reader and now shows as blank after I send in an e-mail; I see other people have the same issue. Can this be rectified through the reader platform or do I need to purchase other adobe products to solve this issue?

  • How to start bluetooth programming with c# in visual studio?

    i am currently in final year , thought of doing project on bluetooth but dont know how to go about.