Importing a war file

Hi,
I mistakenly overwrote java studio creator project on my local machine with an old version of the same project. I still have the latest version running on tomcat server. Is there any way I could import the war file from server and have the updated version on my machine so that I can make changes to it. Can somebody please help. This is worrying me a lot.
Thanks,
S

Spotineni,
We don't support "import" of a WAR file, but please see the suggestions mentioned by our very own evangelist:
http://forum.sun.com/jive/thread.jspa?forumID=123&threadID=99259
Good luck.
Sandeep
--Creator Team                                                                                                                                                                                                                                                                                                                                                                                                                                                               

Similar Messages

  • Best Strategy for importing a WAR file

    I would like to import a WAR file into JDeveloper and run it against the embedded OC4J app server. What is the best strategy (the approach which minimizes the amount of cutting and pasting)??
    I tried to use the File/Import menu selection, but that didn't seem to operate the way that I expected. I also tried using the "Existing Source" from the same menu selection with "index.jsp", but JDeveloper didn't seem to like that either (it complained that it couldn't read "index.jsp" from within a zip file. So I had to resort to "New/Web Tier/JSP Page" and then cutting and pasting the source. After that JDeveloper was happy (no "not under the root server directory" errors). But I would like to have a more streamlined approach, because these WAR file has hundreds of files.
    Thanks, Norman

    Did you try creating
    "Project from an Existing WAR file" option.
    Create an emtpy workspace
    File | New
    Select General
    Select Projects
    Select "Project from an Existing WAR file" option
    raghu
    JDev Team

  • Importing a WAR file into WebLogic 8.1

    Hello,
    First post here so go easy on me :-D
    Is it possible to import a WAR file into WebLogic 8.1? If so, how?
    I have a WAR file created using Eclipse and want to test if I can take that WAR file and rebuild the project in WebLogic.
    Any help is appreciated?
    Thanks,
    Tommy

    I,
    your domain should be started in developement mode. Then, just copy your
    war file in the "applications" directory under your domain directory.
    Emmanuel
    Tommy Dunne a ?crit :
    Thanks Emmanuel, I had a look at that link you sent me.
    Im still isnt 100% clear to me...In tomcat when you have a WAR file you can just put it in the webapps directory and tomcat will automatically expand it for you and you can run the application straight away.
    Is there such functionality in weblogic? How do you get weblogic to see the WAR file? Do you have to create a project or anything?
    Sorry if this is a very basic question...

  • How to import a war file using JB_x

    Hi
    I need to move a few of *.war files from other IDE to JB_x, and further
    implement them (they are struts web-apps). I'm wondering how to import each
    of them (each war is a small project).
    I've tried extracting war, then creating new project to import the folder,
    but JB_x restructured the folder and deleted the source java files (which in
    /classes).
    Can any help?
    John woo
    Toronto

    For this you crate a deployment descriptor (if you have created the project as fusion web application, the descriptor is build automatically) for a war. Then you choose the project (viewController property normally) and select deploy and the name of the descriptor. This will create the war.
    To generate an ear you need an ear deployment descriptor which you define on the workspace. To generate the ear right click the workspace and select deploy and the name of the descriptor.
    Timo
    Edited by: Timo Hahn on 27.02.2012 23:01

  • Importing WAR file into Web Module Project

    Hi,
    I am brand new to SAP and i'm trying to help out with a proof of concept for our SAP rollout.  I am trying to import a J2EE application that currently runs on WebSphere 5.1 and was developed using WSAD.  I found a blog on the SAP site and it gave a simple run down of how to Migrate from WebSphere application server to SAP Application Server.
    Here is the link: /people/community.user/blog/2007/03/06/migrating-application-from-websphere-application-server-to-sap-was
    The steps seem simple enough yet I am having issues trying to import my WAR file into my Web Module Project in Netweaver.
    Step 4 gives the following instructions: Create a WEB Module Project and import the WAR file.
    Unfortunately, they do not give more detail besides Import the WAR file.  When I try importing my WAR file, it adds the WAR file in my Web Content folder.  I was expecting it to extract all my java classes and my jsp files but this is not the case.  To do this, I right clicked on my Web Module Project while in the J2EE Explorer view and selected import file and selected my WAR.  I'm assuming this is not correct.
    Any help would be appreciated.
    Thanks,
    Phil

    Hi Phil!
    You don't need to create previously a web module to import the war then.
    I'm assuming you're using NWDS (Netweaver Developer Studio). Try this. In NWDS: File -> Import... ->
    then, select "WAR file". After that, you need to inform the path of you WAR file and automatically it will fill in the name of your project, that you can change if you desire. After that, click in Finish and it's all.

  • Importing war file in NWDS

    Hi All,
    i wanna import a war file into netweaver developer studio, can anybody help me to achieve this.
    **valuable answers will awarded wid points.
    Thank you,
    venkat

    hi
    good
    go through this link,hope this would help you to solve  your probelm
    http://help.sap.com/saphelp_nw04/helpdata/en/43/2eafd8d2f30d24e10000000a1553f7/plain.htm
    thanks
    mrutyun^

  • Not able to create EAR file for WAR file extracted project

    Hi Experts,
    I am trying to import a WAR file, make changes to the project and create an EAR file for the same. I am not able to remove import
    errors despite of adding required jar files to it.
    Also, I am not able to create an EAR file for the same.
    I have copied the steps here with screen shots. Below are the steps :
    Import WAR file in NWDS 7.3 – Enterprise Portal perspective
    Select WAR file to create WAR and EAR project for it.
      Project created with import errors.     e.g – com.sapportals.portal.prt*
    Found jar file from Class – target jar file table. 
    e.g – for Class com.sapportals.portal.prt.resource.IResource needed jar file is tc~epbc~prt~api.jar
    Copied required jar files in WEB-INF -> lib folder.
    Configure Build path and Add External jars.
    Portalapp file screen shot
    I think errors should go now, but they still exist.
    Next I right click on WAR project and tried updating related EAR project.
      Next, Export EAR file from EAR project.
       I have tried both EAR types.
    But EAR file is not created.
    Please help me in removing the errors.
    Thanks in advance :-)
    Anubha Pandey

    Hi Anubha,
    I feel that you're missing JAR dependencies and hence not able to resolve the above import errors.
    Please go through the below thread for the AFP Masthead customization and follow the same:
    How to download and change AFP Masthead on SAP Portal 7.3
    Hope, this will help!!!
    BR,
    Anurag

  • Deploying war file websphere - urgent

    I have a .war file that has been generated using the java create a war utility. this war file contains html, xsl, images and the associated jar and class files. this war file has worked fine with tomcat and websphere application studio developer, in short, it works by just dropping the file in tomcat/webapps folder or importing the war file using application developer.
    can a war file generated this way be used with websphere application server by just dropping it into an equivalent webapps folder(if one exists) OR can i use some import war utility.
    please let me know.
    Thanks.

    You can import it into WAS 4.0 but not into earlier versions of WAS.

  • Importing a WAR project with a resource reference

    Just an observation -
    I'm importing a WAR file in Developer Studio.  My war archive includes a web.xml file with a resource-ref entry for a data source.  In ealrier Java EE 5 preview versions, the import process would create a web-j2ee-engine.xml file entry with a resource-ref entry corresponding to the one in web.xml.  I would then just need to modify the entry to add a res-link entry.
    With the Composition Environment 7.1 trail version, the import process doesn't create a resource-ref entry in web-j2ee-engine.xml.  However if I open web.xml in Developer Studio and then open web-j2ee-engine.xml, the resource-ref entry is incorporated into the file.
    I don't know if this is expected behavior or a bug; it's easy to trigger generation of the entry so I'm just noting the issue.
    Jerry

    Hi Jerry,
    It is possible that the standard meta models of the web project, were not loaded, that is why it may be needed for you needed to open the editor in order to build the DOM tree.
    As you have noticed the resource-refs are not really in the web-j2ee-engine.xml, until they have some JNDI value specified. The sap specific deployment descriptors read from standard descriptors the possible information that might altered in the specific descriptors.
    best regards,
    Dimitar

  • How to put portal logon page CE 7.3 ui.war file in NWDI Track

    Hi,
    We are using sap portal CE 7.3 in our project. I have customized portal logon page. for this I have downloaded ui.war file from portal server in my local machine that is on my desktop and this ui.war file i have imported in my NWDS and done the required modification.
    Now I have to put this development that is modified ui.war in my NWDI track which is currently lying on my local machine Desktop, please let me know how to transport this ui.war file and ear project associated with this war file into NWDI track.
    because from NWDI track only this customized logon portal page has to go to QA and Prd system.This is strict client requirement.
    Please help me.
    Thanks

    Hi Arush,
    Instead of importing the war file into NWDI track,you can create new web module project  in NWDI using New-->Development Infrastructure-->DC-->Java EE-->WebModule and copy paste the WebContent folder Jsp's and xml files which are inside the ui.war in your local machine. Then for this web module you can create ear file for deploying .I have done in this way it worked.
    Regrads,
    Srinivasan V

  • Deploying WAR files in JDeveloper

    How do I deploy war file in JDeveloper? In Tomcat, I can just place the war file in the webapps directory and it deploys by itself, but, in JDev what needs to be done?

    Try the following section in the online help:
    Testing and Optimizing Your Code >
    Running in JDeveloper >
    Running Java Programs
    http://otn.oracle.com/jdeveloper/902/help/
    You can import a war file into JDeveloper.
    I just want to know how I import a war file in JDeveloper when only one choice is given - EAR file.
    OC4J is the Oracle J2EE container (Servlet,JSP and
    EJB server). It is embedded inside JDeveloper to let
    you test run your J2EE applications.
    You can also install it stand alone on your server -
    and JDeveloper will let you deploy directly to it.

  • Deploying an existing WAR file into the Portal

    I have downloaded the Enterprise Portal and the SAP Netweaver Developer Studio (NDS) and have succeeded in creating a couple of projects of the ‘Hello World’ variety and deployed them on the Portal!  So far, so good.
    The problem I have is that need to deploy on the Portal an existing JSP/Struts application of ours which is available as a Web Archive (WAR) file.
    The problem is that I cannot find a way of deploying an existing WAR file on the Portal – either via a Project or otherwise.  I have found an entry in the Help files with the NDS which sounds promising, as it is entitled ‘Import a .WAR File into a new project’.  However, the menu entry it says you should use (File ‑> Import ‑> MDK: Import a web archive (.WAR) into a new project) this last entry does not exist on my installation of NDS.
    Any ideas or suggestions?

    Hi Mustafa (and All) - thanks you very much for your answers, which has enabled me to make good progress.
    I have created a project in the Deploy Tool, imported a simple WAR file into it, loaded to project and depployed it on my instance of the Portal - or at least I have deployed it as far as the Deploy Tool is concerned. 
    However, when I try to find it in the Portal in order to assign it to an iView in the Portal content, I can't find any evidence of its existence!!
    As another 'tack' in the NDS I have created an 'Enterprise Application Project', into which I appear to have imported the WAR file - but I cant package this as a PAR file, which is what I seem to need to do to get it into an iView on the Portal.  To create a PAR package I seem to need to create a 'Portal Application Project' - but I can't find a way of getting the WAR file into that!!
    Any further advice would be greatefully received.
    Thanks for your help to date and thanks in advance for any more you may be able to give.
    Regards,
    Dave

  • How to export application developed in CQ as WAR file?

    Hi,
    We are using Eclipse as an IDE to develop our application using Adobe CQ's WCM capabilities. Is there a way to export the project files and its dependencies as a WAR file? We need this to run automated security scans on our code.
    We are using the following guidelines for developing our code:
    http://dev.day.com/docs/en/cq/current/developing/developmenttools/developing_with_eclipse. html

    Thank you Jorg. That was helpful.
    My concern was regarding 'exporting' the application that I create using CQ in a WAR format not importing a war file onto CQ5.
    But I think what you are saying is, since CQ5 doesnt have the functionality to import a project in war format, it doesnt provide the capability to export one.
    Many thanks!

  • Struts war file inside a portlet

    Hi,
    Is it possible to import a war file using Struts and simply put it inside a
    portlet?
    Does the struts app have to have certain characteristics (such as version,
    limitiations, ...)?
    Thank you for any and all help,
    Geoffrey

    You have several options:
    1) Deploy your application in exploded form, not as a war
    2) Use getResource methods found in ServletContext to load the files.
    I would consider option 2, if the only thing you need to do is to load a file.

  • WAR file modification

    Hi,
    I am using CE711 SP1 preview addition. I would like to modify the top level navigation.
    I can't find relavent PAR files. but i found com.sap.portal.navigation.toplevel.war file under
    usr\sap\CE1\J00\j2ee\cluster\apps\sap.com\com.sap.portal.navigation.toplevel\servlet_jsp\com.sap.portal.navigation.toplevel directory.
    Do I need to import this war file to perform modification ? or I need to setup NWDI to perform this activity ?
    Regards,
    Shrikant

    Hi,
    Use class locator to find jars. That is easier and faster.
    http://sourceforge.net/projects/classlocator
    <%@ page import = "com.sapportals.portal.useragent.IUserAgent" %>
    <%@ page import = "com.sapportals.portal.useragent.IUserAgentConstants" %>
    <%@ page import = "com.sapportals.portal.useragent.IUserAgentService" %>
    Check under eclipse\plugins\com.sap.ur.ideservlet_1.0.0\ur\WEB_INF\lib\useragent_api.jar
    <%@ page import = "com.sapportals.htmlb.*" %>
    eclipse\plugins\com.sap.tc.ap_2.0.0\comp\SAP_JTECHS\DCs\sap.com\com.sapportals.htmlb\_comp\gen\default\public\default\lib\java\htmlb.jar
    <%@ page import = "com.sapportals.portal.prt.service.laf.*" %>
    <%@ page import = "com.sapportals.portal.prt.component.*" %>
    <%@ page import = "com.sapportals.portal.prt.runtime.PortalRuntime"%>
    eclipse\plugins\com.sap.ep.applicationDevelopment_7.00\prtapi.jar
    Regards,
    Harini S

Maybe you are looking for

  • HT3031 iMAC g4, flat panel

    Good morning, i recently purchased an iMAC g4...i love its great esthetics, but have been having trouble streaming netflix movies, Now i know its kinda old, heck its ancient in the IT community, but its my budget mac...and i love it! Im running macos

  • How do I save attachments with an E Mail?

    How do I save attachments with an E Mail?

  • Hi this is related to the Implementation

    Hi there I have around 4 years of experience in purchasing , inventory , quality , material costing in real industry as well 2 years experience in SAP MM & QM module on support level Now my company want to me to go for one of the implementation proje

  • Statutory forms

    Hi all What are the statutory forms that are required to be submitted by Employees and Employers. We need the correct templates of these forms. (Eg., Form 16 in India) where we get other country's (Nigeria) statutory forms list ? thanks srinu

  • JDk1.5 Vs JDK1.4

    Whether below given statement would compile in JDK 1.5. Right now it is fine in Jdk 1.4 pls tell us such we can shift from JDK1.4 to JDK 1.5 Enumeration enum = aRequest.getParameterNames();