How to extract a WAR file..

Hi,
How to extract a WAR file.. please help me..
thanks in advance

Hi,
It's simple. If u use tomcat server it put in webapps directory and start server u can see unzip war file. OR
If u have eclipse editor than u go to project explor and click right than select Export file-->War-->select War file where u put it and click next ---> finish.
try it

Similar Messages

  • How to deploy a war file on Weblogic Server 7.0??

    Hello Everyone
    I am trying to deploy a servlet on Weblogic Server 7.0 as a WAR file. Can anyone of u plz tell me the steps required to do that. I am posting this question on EJb forum and not on servlets coz this is not a servlet problem, rather this is something which is related to J2EE, ie how to deploy a war file on J2EE Server.
    This is how i have done it, but this is not working---
    (1) First i created a directory structure for the web application according to J2EE Specification.
    C:\Work\
    myServletWAR\
    META-INF\
    WEB-INF\
    classes\
    HelloServlet.class
    web.xml
    i.e within work directory, there is a dic called myServletWAR which is my application directory which contains 2 sub directories viz META-INF which contains the mainifest file being generated by the jar utility. the second directory in the myServletWAR application dir is WEB-INF, which contains one file called web.xml for servlet mapping and one directory classes which contains HelloServlet.class
    (2) I used following command for creating war file from myServletWAR director(i.e from my web application's directory).
    jar -cvf TestServletWAR.war .
    This creates the TestServletWAR.war file in myServletWAR dir.
    Here is how my Servlet and web.xml looks like...
    Servlet code
    import java.io.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    public class HelloServlet extends HttpServlet
    public void doPost ( HttpServletRequest req, HttpServletResponse res )
    throws IOException, ServletException
    doGet( req, res );
    public void doGet ( HttpServletRequest req, HttpServletResponse res )
    throws IOException, ServletException
    res.setContentType( "text/html" ); // Can also use "text/plain" or others.
    PrintWriter out = res.getWriter();
    // Get the requestor's IP address (See JavaDocs to see how to get other info):
    String addr = req.getRemoteAddr();
    // Create output (the response):
    out.println( "<HTML><HEAD><TITLE>HelloServlet in myServletWAR</TITLE></HEAD>" );
    out.println( "<BODY><H1 ALIGN=\"CENTER\">" );
    out.println( "Hello " + addr + ", from HelloServlet in myServletWAR!" );
    out.println( "</H1></BODY></HTML>" );
    out.close();
    ************************Servlet Ends Here **************************
    web.xml
    ---------------------------------------------------------- <!DOCTYPE web-app
    PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
    "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">
    <web-app>
    <display-name>myServletWAR, a first Web Application</display-name>
    <description>
    This is a simple web application containing a single servlet
    of the "Hello, World" variety.
    </description>
    <servlet>
    <servlet-name>myHello</servlet-name>
    <servlet-class>HelloServlet</servlet-class>
    </servlet>
    <servlet-mapping>
    <servlet-name>myHello</servlet-name>
    <url-pattern>/myHello</url-pattern>
    </servlet-mapping>
    </web-app>
    ****************************web.xml file ends here********************
    After deploying the TestServletWAR.war file on the weblogic 7.0, i tried to execute the servlet from the browser by the following URL
    http://localhost:7001/myServletWAR/myHello
    I am getting the HTTP 404 Error, which is an indication that weblogic was unable to find the resourse, which it was requested for. Can anybody plz tell me what i m doing worng?? do i need to use weblogic related xml file (i.e weblogic.xml) also along with web.xml. If yes, then what all i need to include that. I m not very sure. A sample weblogic.xml file for this HelloWorld example will help me a lot.
    Looking forward for your help
    Thanx in advance
    Nisha

    hi i have read ur answer regarding deploing a servlet in weblogic 7.0
    i am facing another problem
    when i try to access the servlet inside my classes directory it throwa an error stating this :
    IT DOES NOT FOUND THE CLASSES ON WHICH MY SERVLET DEPENDS.WHAT DOEES ATHIS MEAN
    KINDLY TELL ME
    PUNEET JAIN
    <May 28, 2003 1:46:25 PM IST> <Error> <HTTP> <101250> <[ServletContext(id=6057728,name=WebApp,context-path=/WebApp)]: Se
    rvlet class myclasses.Wservlet for servlet welcome could not be loaded because a class on which it depends was not found
    in the classpath D:\bea\user_projects\PuneetDomain\applications\WebApp;D:\bea\user_projects\PuneetDomain\applications\W
    ebApp\WEB-INF\classes.
    java.lang.NoClassDefFoundError: myclasses/Wservlet (wrong name: Wservlet)>
    <May 28, 2003 1:46:26 PM IST> <Error> <HTTP> <101018> <[ServletContext(id=6057728,name=WebApp,context-path=/WebApp)] Ser
    vlet failed with ServletException
    javax.servlet.ServletException: [ServletContext(id=6057728,name=WebApp,context-path=/WebApp)]: Servlet class myclasses.W
    servlet for servlet welcome could not be loaded because a class on which it depends was not found in the classpath D:\be
    a\user_projects\PuneetDomain\applications\WebApp;D:\bea\user_projects\PuneetDomain\applications\WebApp\WEB-INF\classes.
    java.lang.NoClassDefFoundError: myclasses/Wservlet (wrong name: Wservlet)
    at weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.java:791)
    at weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.java:517)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:351)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:306)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:5412)
    at weblogic.security.service.SecurityServiceManager.runAs(SecurityServiceManager.java:744)
    at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3086)
    at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2544)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:153)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:134)
    >

  • How to create the War file

    Can you help me , how to create the war file.
    I am using the tomcat 5.0 server, i have book folder in webapp.
    how i can create the war file? what is command?
    help me
    ramya

    using jar command u can create a war file
    jar -cmf myweb.war *.*<files to be included in war file>
    regd,
    ritu

  • How to create a war file of web application

    Hi Techies
    How to create a war file of the web application?
    And plz tell me the utilities used for it.

    hi,
    To compress a 'abc' web application into a "Web Archive" file named abc.war, follow the steps below:
    1> Open a command prompt and cd to the application's dir:
    <TOMCAT_HOME>\webapps\abc
    2> Use the java archive command 'jar' to bundle up your application:
    jar -cvf abc.war *
    3> Move this to any other server and work with it!! :)
    -- Abdel Raoof Olakara
    http://olakara.googlepages.com

  • How to extract the cobol files into owb

    Hi
    How to extract the cobol files in owb,I am using OWB9.2.
    Ex:I am having 2 records DCEC4000100 9159000050C those values are 5 bytes 'RAVI and 6 bytes '15000'.
    Using contorl file i am trying to load these into Oracle,But i am not able into insert these records into Oracle.
    Can any tell me how to handle this kind of situation?
    Regards,
    Rupak

    Good morning Ashok,
    Your data is in a SQL*Loader supported datatype, so basically it should not be a problem.
    Have you checked the Database Utilities guide (for Oracle9i for instance: http://www.lc.leidenuniv.nl/awcourse/oracle/server.920/a96652/toc.htm) on how to handle this?
    I'll also repeat my previous question, have you ever been able to load data into the database using SQL*Loader (either using ASCII values or any other datatype)?
    For the OWB part, have you read "Importing Data Definitions" (typically chapter 4)? More specifically, "Specifying Field Properties" in "About Flat File Sources and Targets"?
    In "SQL*Loader Properties" it says the following:
    Type Describes the data type of the field for the SQL*Loader. You can use the Flat
    File Sample Wizard to import the following data types: CHAR, DATE, DECIMAL
    EXTERNAL, FLOAT EXTERNAL, INTEGER EXTERNAL, ZONED , AND ZONED
    EXTERNAL. For complete information on SQL*Loader field and data types, refer to
    Oracle9i Utilities. Currently, only portable datatypes are supported.
    If you check the database utitlities guide (chapter 6 Field List Reference) and look for "SQL*Loader Datatypes", you'll find (packed) decimal under the Nonportable Datatypes. This implies that OWB does not support it.
    This does not mean you can't use SQL*Loader, you'll only have to define everything separate from OWB and call it separately as well.
    Good luck, Patrick

  • How to deploy a WAR file in JRun server?

    hi,
    I created one war file, now i want to deploy that file in JRun server. can anyone give me an idea of how to deploy that war file in server...

    By following the deployment documentation for your server. This isn't a general purpose "help me do everything" forum

  • How to extract a PAR File

    Hi All,
    In the procedure of changing the Portal Logon / Logoff page ,we need to extract Par file ,modify the extracted files and then put them back,can somebody tell me how to extract a PAR file ,wt is the procedure of tat.
    Regards,
    Saumya

    Hi Saumya,
    First you need to retrieve the logon PAR file from the portal file system.The file is found in your EP instance,which is located at ..
    /usr/sap/<instance>/j2ee/j2ee_00/cluster/services/servlet_jsp/work/jspTemp/irj/root/WEB-INF/deployement/pcd
    -The file that you need is called sap.portal.runtime.logon.par.bak.
    copy this file to your local directory and rename the PAR file(for eg. my.new.logon.par).It is necessary to remove the .bak extension.
    -Next you can open the PAR file and modify the appropriate files.
    -put modified files back into PAR file
    -copy the new par file back into the deployement directory
    and restart the portal to see ur changes.
    Also look at the following threads for more info -
    <a href="https://www.sdn.sap.com/irj/sdn/message?messageID=2758339">https://www.sdn.sap.com/irj/sdn/message?messageID=2758339</a>
    <a href="https://www.sdn.sap.com/irj/sdn/message?messageID=2225096">https://www.sdn.sap.com/irj/sdn/message?messageID=2225096</a>
    Regards,
    Abhishek
    (Reward Points if useful)
    Message was edited by:
            Abhishek Mehra

  • How to extract a tpz file contents ?

    Hi to all,
    does anybody know how to extract a tpz file without using XI ? I mean, I want to see the contents of the tpz file to get some code.
    Thanks in advance.

    hi
    The TPZ file contains 2 files. First is a matadata file and other is the TPT file so is there any method to view TPT or TPZ file.
    There is no tool available that I know but has some1 done any development in this field.
    quote
    regards
    krishna

  • How to install a war file as a Web Application Bundle (WAB) in CQ 5.5?

    How to install a war file as a Web Application Bundle (WAB) using CQSE and embedded OSGi Felix container? OSGi R4.2 specification specified Web application bundles which allows deploying war files as WABs insie OSGi containers. How do we do this in Felix container embedded in CQ 5.5?

    i m sorry, i intentionally wanted to post it in EJB forum, mistakenly i posted it in Servlets forum, anyways, if anyone of u know the ans, plz share it with me too.
    Thanx
    Nisha

  • How to uninstall a war file which is deployed as library in console

    Hi All,
    How to uninstall a war file which is deployed as library in console.
    Thanks in advance

    You cant uninstall it........first stop it , then delete it and then activate the session.
    Hope this helps.
    Regards,
    Karan
    Oracle Fusion Middleware Blog

  • How to create a war file of a project

    hi,
    I have a project, in my project i have used file to read & write data
    from file, i have used Ecllipse to build this project. now how i will
    create war file in Ecllipse & ho i will run it? IS there anyone who can
    help me? Please help me..
    With reagards
    Nahar

    hi,
    I m using following version of Ecllipse :lomboz-wtp-emf-gef-jem-eclipse-SDK-3.1.2-win32. With this how i will build war file of project? can u give me solution?
    With regards
    Nahar

  • How to open a .War file

    Hi all
    I have an application running on J2EE server as packed .War file .
    Does anybody know how to open the War file in NWDS ??
    And how to modify some JSP present in that application ???
    Thanks
    KK

    Hi KK
    You will ot be able to open a WAR application deployed in NWDS . Alternatively you can open it using windows ity tools like winzip outside NWDS .
    What you can do is you can create a Web module project and incude all the src including JSP's and change the reqd jsp and redeploy the application again with the changes
    hope this helps,please do not forget to reward suitable points .
    regds
    rajeshkr
    Message was edited by: Rajesh K. R.

  • How to make a WAR File

    Hi dear
    i have a JSp file Now problem is that my server dosent support JSP file
    So i ahve to make a WAR file
    So can u tell me how to make a WAR file.
    i am using TOMCAT 5.5.9 & Orion server

    use an ide and deploy the webapp
    like
    - netbeans
    - Jbuilder
    - eclipse
    - sun one studio
    or google like :
    http://www.google.com.au/search?hl=en&q=creating+war+%2B+jsp&btnG=Search&meta=
    and get as first hit
    http://access1.sun.com/techarticles/simple.WAR.html
    regs
    g00fy

  • How to deploy exploded war file(from JBoss-Eclipse IDE) to Sun Server 9

    anyone plz tell how to deploy exploded war file (from JBoss-Eclipse IDE) to sun application server 9.i deployed noramllay at tht time404 hrown.plzz tell urgent
    regards,
    S Sunder

    Hi!
    How did You deploy WAR file? Did You try to do this with Application Server Admin Console?
    Thanks,
    Roman.

  • How to deploy a WAR file to Sun One Portal Server

    Would someone please tell me the instruction of how to deploy a WAR file to Sun One Portal Server 6.2. Thank you.

    I would advise against this. We tried that and it totally hosed the server.xml file and took our staging portal server down.
    I have no idea what was "in" the server.xml or other files, but trying to deploy a .war file using the WS admin interface hosed portal server's settings.

Maybe you are looking for

  • Smartview 11.1.2.1 In Excel accessing Issue

    Hi , In my Essbase server smartview worked perfectly upto 3 months. Afterwards i am unable to see "Hyperion Smartview" ribbon under Excel office menu tabs. Reinstalled Ms office 2007 and Smarview eventhough i did not get SV Ribbon and features in exc

  • Cant mirroring my desktop on an external monitor

    Im running bootcamp (vista) on my mbp. I can plugin an external monitor and extend my desktop as a 2nd screen but NOT duplicate it. I want it mirrored. I only get a black screen on the external monitor. Can so help?? btw. I aleady installed the drive

  • Apple TV mirror reverts back to iPad

    Apple TV mirror reverts back to iPad every few minutes. Is there a fix?

  • Query taking too long when using bind variable

    Hi All, There is a query in our prod DB which runs very slow (approx 2 hours) when it uses Bind Variables (using JDBC thin client), and when i try passing the variable using TOAD/SQL developer it runs fine. Explain Plan for running Query SELECT STATE

  • Purchase iMovie as a new user?

    I have taken over a MacBook and reinstalled everything. Now I would like to purchase iMovie. But AppStore says that it has been bought before and I have to purchase it again. But I can't see how to do it? /Jan