Build WAR file in NWDS 7.1

Hi,
How can we create a WAR file in NWDS 7.1? Please provide any inputs.
With Regards,
Ramesh G.

Hi Ramesh,
We canu2019t create in WAR file in Webdynpro JAVA Perspective in NWDS 7.1
Only we can create the WAR file by using java application in JAVA Perspective in NWDS 7.1
Please Refer to this Link. This is having how to create WAR File in JAVA Prespective:http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/503193d9-f586-2b10-4eb6-e8b46dc096db?quicklink=index&overridelayout=true
How to create WAR file
[Manual Development|http://help.sap.com/saphelp_nw04/helpdata/en/43/2eafd8d2f30d24e10000000a1553f7/plain.htm]    
I hope this is helpfull for you,
Regards
Vijay

Similar Messages

  • Importing existing only WAR file in NWDS for deployment on WAS

    Hi,
    I have WAR file created on the eclispe platform by someone. I am required to import that into NWDS and embed into EAR and then deploy on WAS.
    However, i found no direct way to import existing only WAR file into NWDS. Simply importing a file in the web module project will only copy the contents, without that getting extracted.
    Kindly let me know in detail, how to acheive the same.
    Regards,
    Apeksha

    Hi,
    don't worry. It will work. If done this with a Web Application I received from a vendor. Normally it is deployed on Tomcat but we had to integrate the functionality into SAP Portal / SAP Web AS.
    So I just created an empty Web Module Project and the Enterprise Project, linked them and built the EAR.
    I just replaced the empty WAR in the generated EAR with the WAR I received from my Vendor and deployed it on SAP J2EE using Visual Admin.
    In general you should be able to deploy every WAR on every APP Server with a servlet engine that conforms the SUN J2EE Specifications (SAP J2EE does)!
    Does this mean that Web module project is never executed, since that WAR added in the EAR is only getting executed?
    I don't really understand this question? The result of your Web Module Built is the WAR file. By linking it to your EAR you just achieve that the WAR File is put into EAR when you build the EAR. Since your Web Module Project has the same name as your WAR File (I hope it does) you just pretend that the WAR File you are putting in the EAR replacing the empty one was the one that was built within NWDS.
    The Web Module is the one that is being executed after deployment. It contains all the Code. The Enterprise App is just a wrapper around it. I don't know why it is not possible to directly deploy a WAR File to J2EE.
    It could be that you get some problems with Libraries in your Web App that also exist on J2EE (e.g. Java Mail)
    I had the problem with Java Mail. The Version in WebApp was newer than the one used in J2EE so some functionality did not work at the beginning. Since there seems to be no way to tell the J2EE Classloader to load the Child Libraries first instead of parent I had to replace the mail.jar in SAP J2EE with my own one.
    You will probably not even face such a problem so just ignore it for now!!
    Unpack the WAR to some folder in your local filesystem using a ZIP Program. Then open your File Browser (e.g. Windows Explorer if you are on Windows) and put your NWDS besides it. Then just drag and drop the files from your File Explorer to NWDS using the Resource Perspective (as described above)
    It is some manual work but there is no other way around this if you want to build your Web App in NWDS in order to avoid exchanging the WAR in your EAR everytime you deploy it!
    If you have further questions let me know
    Cheers

  • JSP precompilation and my .java files compilation issues /  building WAR file using ANT

    Hello.
    I am new to working with WAR files and the whole process of it. A little
    background on what we are using. We are using, WLS 6.1 SP3. I am using the
    ant.bat that is supplied in the bin directory of the WLS install.
    I am trying to work with ANT and getting it to build the file. I am making
    progress, but at a point where I am having trouble getting my java code
    files to compile using ant. I am having one issue and looking to do one
    other item.
    1) I would like to precompile the JSPs if possible prior to putting into the
    WAR file. Not sure if this is done or not, but there was a utility when I
    was working with ibm's app server that gave us the ability to do a batch
    complile. Was thinking that maybe a similair concept is possibly here.
    2) Having issue getting ant to compile code properly. In the compile
    section of the build.xml file for ant, I tell it where the source files are,
    and the destionation folder for the compiled class files. I then try to set
    the classpath so that it finds the .jar files that are necessary for my
    source files to complile. But, it won't find them. And not sure how come.
    I may be going about this all wrong, but dont know. Here is the compile
    section of the build.xml I am using:
    <target name="compile" depends="prepare">
    <javac srcdir="classes" destdir="${deploy.home}/WEB-INF/classes"
    classpath="$(lib.home)"
    debug="on" optimize="on" deprecation="off"/>
    </target>
    One note, I've tried many different items in the classpath line, which
    don't work. if I do *.jar it fails at complie time, invalid argument. As
    well as if I use *.* and so on. if I list the explicit file names, it still
    doesn't seem to find them.
    I was wondering if anyone could help, if you need anymore information let me
    know, I can send the entire build.xml if necessary. I may be missing
    items, seeing that this is my first try at using ANT.
    Any help is appreciated and thanks in advance. Hopefully not sounding too
    off the wall. Hopefully get some clarification and understanding.
    Thank you.
    Kevin.

    Kevin Price wrote:
    Hello.
    I am new to working with WAR files and the whole process of it. A little
    background on what we are using. We are using, WLS 6.1 SP3. I am using the
    ant.bat that is supplied in the bin directory of the WLS install.
    I am trying to work with ANT and getting it to build the file. I am making
    progress, but at a point where I am having trouble getting my java code
    files to compile using ant. I am having one issue and looking to do one
    other item.
    1) I would like to precompile the JSPs if possible prior to putting into the
    WAR file. Not sure if this is done or not, but there was a utility when I
    was working with ibm's app server that gave us the ability to do a batch
    complile. Was thinking that maybe a similair concept is possibly here.you can use weblogic.jspc
    http://e-docs.bea.com/wls/docs70/jsp/reference.html#57794
    or just set the precompile flag in weblogic.xml
    You can configure WebLogic Server to precompile your JSPs when a Web
    Application is deployed or re-deployed or when WebLogic Server starts up
    by setting the precompile parameter to true in the <jsp-descriptor>
    element of the weblogic.xml deployment descriptor.
    >
    2) Having issue getting ant to compile code properly. In the compile
    section of the build.xml file for ant, I tell it where the source files are,
    and the destionation folder for the compiled class files. I then try to set
    the classpath so that it finds the .jar files that are necessary for my
    source files to complile. But, it won't find them. And not sure how come.
    I may be going about this all wrong, but dont know. Here is the compile
    section of the build.xml I am using:
    <target name="compile" depends="prepare">
    <javac srcdir="classes" destdir="${deploy.home}/WEB-INF/classes"
    classpath="$(lib.home)"
    debug="on" optimize="on" deprecation="off"/>
    </target>
    maybe because you are not using curly braces there on lib.home??
    if you do it the way above, you would have to list all your jars
    classpath="$(lib.home)\lib1.jar:$(lib.home)\lib2.jar"
    or you can nest
    <javac srcdir="classes" destdir="${deploy.home}/WEB-INF/classes"
    debug="on" optimize="on" deprecation="off">
         <classpath>
              <fileset dir="${lib.home}" includes="*.jar" />
         </classpath>
    </javac>
    One note, I've tried many different items in the classpath line, which
    don't work. if I do *.jar it fails at complie time, invalid argument. As
    well as if I use *.* and so on. if I list the explicit file names, it still
    doesn't seem to find them.
    I was wondering if anyone could help, if you need anymore information let me
    know, I can send the entire build.xml if necessary. I may be missing
    items, seeing that this is my first try at using ANT.
    Any help is appreciated and thanks in advance. Hopefully not sounding too
    off the wall. Hopefully get some clarification and understanding.
    Thank you.
    Kevin.

  • Building WAR files

    Is there a way not to include my local file(s), but only the ones that are already in CVS when building a WAR file. I'll try and explain this. I started adding a new feature to our current web app. I had to create a few new classes and JSPs on my local computer but I will not add them to CVS until I am completely done with the feature. So now when I have to fix a current bug and create a new WAR file, I don't want these local files to be included. Is there a way to do this? Maybe using Ant or something in those lines? Any suggestions?

    You could write an ant target called "buildFromCM" or something that will pull the source out of version control to another subdirectory and war from there rather than your normal source tree.
    Lee

  • 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

  • Plz...  How to Create .war file in tomcat 5.0

    plz...
    i want clear steps to create .war file
    for jsp or servlet in tomcat 5.0.
    yours
    vijay

    Here is the sample script, U can use this script to build war file:
    Change the following before running the script:
    WebAppDir path to the Tomcat webapps directory
    AppsName value to ur Project Name ie Ajax to diff name.
    basedir - Give webapps dir of ur src files.
    <project default="build" basedir=".">
    <target name="build">
    <tstamp/>
         <property name="WebAppsDir" value="c:\Tomcat\webapps"/>
    <property name="AppsName" value="Ajax"/>
         <delete dir="${WebAppsDir}\${AppsName}"/>
    <delete file="${WebAppsDir}\${AppsName}.war"/>
    <jar jarfile="${WebAppsDir}/${AppsName}.war"
              basedir="D:\eclipse\AjaxEx\webapps"
    includes="**" />
    </target>
    </project>
    Once you run this file. It will create war file in the webapps dir of ur tomcat.
    Bye,
    Vinay

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

  • Fail to Deploy the applicaiton WAR file build by Spring2.5 framework

    The War File build by Spring2.5 Framework can deploy and run successfully on Local WebLogic (10.3.6)
    but this WAR file can not deploy on Java Cloud Service ;
    I tried to deploy it on the Java Cloud Services Control pages and with OEPE (the Eclipse IDE whichi download from Oracle Cloud Official ) ,but these two were all failed !
    the error logs as below ,and their no noticeable info in logs , ple help to fix it
    Thanks
    LOGS
    Deployment to Oracle Cloud failed, please check Error Log for detail.
    [deploy]
    2013-02-21 01:18:56 CST: Starting action "Deploy Application"
    2013-02-21 01:18:56 CST: Deploy Application started
    2013-02-21 01:19:02 CST: weblogic.application.ModuleException:
    2013-02-21 01:19:02 CST: WLS action state: failed
    2013-02-21 01:19:02 CST: Action FAILED with WLS state: failed
    2013-02-21 01:19:02 CST: Application deployment failed.
    2013-02-21 01:19:03 CST: [Deployer:149194]Operation 'remove' on application 'helloSpring' has succeeded on 'm0'
    2013-02-21 01:19:03 CST: WLS action state: completed
    2013-02-21 01:19:03 CST: "Deploy Application" complete: status FAILED
    [virus-scan]
    2013-02-21 01:18:36 CST: Starting action "Virus Scan"
    2013-02-21 01:18:36 CST: Virus Scan started
    2013-02-21 01:18:53 CST: ----------------------------------------------------------------------
    2013-02-21 01:18:53 CST: File Scanned:     "helloSpring.war".
    2013-02-21 01:18:53 CST: File Size:     "4049531".
    2013-02-21 01:18:53 CST: File Status:     "CLEAN".
    2013-02-21 01:18:53 CST: ----------------------------------------------------------------------
    2013-02-21 01:18:53 CST: Virus scan passed.
    2013-02-21 01:18:53 CST: "Virus Scan" complete: status SUCCESS
    [whitelist]
    2013-02-21 01:18:53 CST: Starting action "API Whitelist"
    2013-02-21 01:18:53 CST: API Whitelist started
    2013-02-21 01:18:56 CST: WARNING - There are 3 warnings(s) found for helloSpring.war.
    2013-02-21 01:18:56 CST: WARNING - Path:helloSpring.war (3 Warnings)
    2013-02-21 01:18:56 CST: WARNING - Path:helloSpring.war (3 Warnings)
    2013-02-21 01:18:56 CST: WARNING - Path:WEB-INF**** (1 Warning)
    2013-02-21 01:18:56 CST: WARNING - 1:Recommended child element "login-config" missing under element /
    javaee:web-app.
    If you want to make your application public, you can have empty
    <login-config/> in your web.xml. If you need authentication then you must
    have <login-config> and its child <auth-method> element in web.xml.
    Without this element(<login-config>), users may be challenged by SSO, but
    the application code will be executed as anonymous user only. Line No:5.
    2013-02-21 01:18:56 CST: WARNING - Path:WEB-INF**** (2 Warnings)
    2013-02-21 01:18:56 CST: WARNING - 1:Recommended child element "jsp-descriptor" missing under element /
    orcl-weblogic:weblogic-web-app.
    If you have a JSP file that is not pre-compiled, The compilation errors
    could be shown on the browser. It is recommended to include
    <jsp-descriptor><verbose>false<****><****-descriptor> in weblogic.xml.
    Line No:2.
    2013-02-21 01:18:56 CST: WARNING - 2:Recommended child element "session-descriptor" missing under element /
    orcl-weblogic:weblogic-web-app.
    You will be required to have distinct cookie-path, if multiple
    applications are accessed with in the same SSO session or if you have
    multiple applications with different auth-method(CLIENT-CERT, FORM, BASIC)
    in the same service instance.
    Line No:2.
    2013-02-21 01:18:56 CST: WARNING - helloSpring.war had 3 warning(s).
    2013-02-21 01:18:56 CST: INFO - Whitelist validation has completed with 0 error(s) and 3 warning(s).
    2013-02-21 01:18:56 CST: Whitelist validation passed.
    2013-02-21 01:18:56 CST: "API Whitelist" complete: status SUCCESS

    This kind of deployment error is typically caused by usage of certain API's or an attempt by the SpringFramework to get certain restricted resources .
    Can you please find the Service logs (Via Java service Console " View Service Logs" link ) and se if anything is reported in the timeframe when this deployment error happend.

  • Cannot build EJB jar file in NWDS

    hello,
    I changed java beans file, and tried to build jar file again, then the "build EJB archive" context menu is disabled so I can not make EJB jar file!
    So frustrated.. NWDS recognizes the changes in the java files , right? How come there 's no Build menu..
    Is there any pre-requisite to enable the menu?
    I have no idea how I can build jar file..
    Please give me a advice.. Thanks~!

    You might check the weblogic.developer.interest.ejb.tools new group.
    Make sure that the tool doesn't leave this ejbcgen directory around. It
    should delete
    that temp dir. When it doesn't it keeps all the old generated stuff around
    and your changes won't be
    reflected in the new jar.
    Rodrigo Ruiz Aguayo <[email protected]> wrote in message
    news:[email protected]..
    Hi,
    I have a problem with the EJBDeployerTool. When I want to update
    a class file (for example, because I corrected any problem), the
    deployer tool doesn't update the file correctly. It keeps the
    old version of the class file.
    In order to update a jar I have to copy the newer version in the
    .ejbdeployer/provider-projects directory by hand. Is it a bug?
    Is there any other way to do this? We are wasting too much time
    in this task, instead of programming :_(
    Thanks in advance,
    José Rodrigo Ruiz Aguayo e-mail : [email protected]
    I.T. en Informática de Sistemas webpage : ---------------------
    "Simulation is perfect, whenever we're not talking about reality"

  • Building a war file with a folder structure

    How do a build a war file with a folder structure? I have code that creates JarEntrys and writes jar files and resource files etc. to the war. When I look at the war that gets created using winzip the path names for all the entries are correct and everything appears correct. When I try to deploy this to Tomcat nothing deploys. It appears my war is in a folder structure. How can a build this folder structure in the war? When I look at a good war using BeyondCompare I see folders and files in the folders just like I would see looking at a directory on my system. When I use BeyondCompare to view one of my "bad" war files that I have created everything is in the root. There are no folders and no folder structure. I am using the java.util.jar API to create the war but I don't see any methods or any API that will let me build up any sort of folder structure. It seems like I am missing something basic here.

    command is same for creating jar/war/ear.
    u simply need to execute jar /? for detail.

  • How to build an EJB as a war file

    Hi All,
    I am new to EJB . I am trying to build the EJB project as a WAR file. I am supposed to use EJB as a war file instead of EAR.Can any one provide a sample script to build EJB project as a war file which loads the xml files using spring.
    Thanks in advance.

    900161 wrote:
    Hi All,
    I am new to EJB . I am trying to build the EJB project as a WAR file. I am supposed to use EJB as a war file instead of EAR.Can any one provide a sample script to build EJB project as a war file which loads the xml files using spring.A sample script. There are so many different types of scripts for so many different tools and so many different platforms. Shall we guess which is the one you need or are you going to provide actual details?
    Of course you're not going to actually get it, nobody here is going to do your work for you.

  • Build a war file from cf 8 standard

    hi all,
    i need to deploy cf 8 standard edition by tomcat. i've built
    a war-file from the developer edition, but because of the
    limitations of the dev edition, i need to upgrade this to a
    standard edition. unfortunately it seems not to be possible to
    enter the license key in the adminstrator (don't ask me why, adobes
    support had not anwered yet) , so i need to build a war file. is it
    possible to make a war from a usual cf standard installation? as
    far as i've seen i need to pack wwwroot into a war.
    thanx!

    I believe you're going to need the Enterprise edition to do
    what you want to do, and still have any glimmer of a shine of hope
    of support.

  • How to compile and build a war file for JAX-RPC

    Hi all,
    I know that all who use JAX-RPC knows it.
    How to compile JAX-RPC code which was not the sample code of JWSDP example?.
    Which jar file is to be included in classpath?.
    After compiling,how to make a WAR file so i can deploy it in TOMCAT ...anyone plz

    Nobody answers.But i found a right article which was quite helpfull to do it.
    http://java.sun.com/developer/technicalArticles/WebServices/getstartjaxrpc/

Maybe you are looking for

  • Rented a movie from iTunes, playback has stopped and no longer works.

    Today I rented and downloaded a movie from the iTunes store. Got about 5 minutes into it and the playback froze.... I tried to fast forward... Nothing. Tried to rewind. Nothing. So I closed iTunes completely and reopened. Now when I try to play the r

  • Security- To get or not to get?

    I'm relatively new to the Mac world. Having a great experience thusfar. Security has been on my mind though. Is it essential that I buy anti-virus / anti-spyware software? The word I get from more experienced Mac users is, "Nah, it's not really neces

  • Dummy title

    I am trying to log into my bank account through firefox mobile on my i-phone and once I put my username and password it goes to a light blue screen and says - Dummy Title. What is this? Why can't I log into my bank account?

  • CS3 Mac: eyedropper tool failure?

    I'm having repeated but inconstant problems with using the eyedropper tool to change background colors in CSS using the CSS panel in DWCS3. I will click on a color on a dw page in development and I'll hear a beep and although the color appears in the

  • How to unmask data in OEM 10gR5

    Management has asked (I don't know WHY), if there is a way to unmask data that has been masked ! So I reviewed the following: Oracle® Enterprise Manager Concepts 10g Release 5 (10.2.0.5) Part Number B31949-10 Chapter 5 Database Management Masking Sen