How to deploy a WAR onto the NW AS?

I have a WAR which runs quite well under Tomcat. I want now to deploy it onto the SAP NW AS. With which tool can I do this?

Hallo Thomas,
It is actually the only way. You cannot deploy a WAR file as it is on the WAS. You need to import the files into NWDS, and create a new WAR out of it, then an EAR archive and then deploy it.
The reason for the new archives is that the NWDS adds new descriptors specific to the Web Application Server.
Here is how you can do it. Unzip the WAR into a temporary folder somewhere. Then in NWDS, you create a project of type Web Module and import your contents into the webContent folder of your NWDS project.
Now create a project of type Enterprise Module and add a reference to the Web Module Project. If the reference has been set correctly, you should be able to see module reference unter the tab "modules" in your application.xml (Enterprise Project). After that, right click on the Enterprise Project and click "Build Application Archive" and the EAR file will be built. Just right click on the EAR file to deploy it on the server.
In case you do not have administrator rights for deployment, you can send the new EAR file to the concerned Administrator.
Bye,
Sameer

Similar Messages

  • How to deploy a war file from a different app server to the SAP one

    Hello,
    I hve recieved a war file from Tomcat that needs to be deployed on the SAP Java App server. As far as I know the SDM only allows to deploy ear files. How can I deploy this war to the app server?

    Hi Roy,
    in order to deploy the WAR file you have to wrap an EAR around it. I had the same problem.
    You can do this using Netweaver Developer studio.
    Perform the following steps:
    - Start NWDS
    - Create a New Enterprise Application Project
    - Create a New Web Module Project (name it like your war file => e.g. your war file is called myApp.war => call your Web Module myApp)
    - Edit the application.xml of your Enterprise App if necessary (description, Displayname etc.)
    - Link your Web Archive to your application archive (right Mouse click on Application Archive and from the Context Menu choose "Add Modules" => In the list choose your Web Module)
    => You can also perform a right mouse click on your web Module and from the context menu choose "Add to EAR Project" => In the list choose your Enterprise Application!
    - Build Web Archive (right mouse click on your Web Module and from the context menu choose "Build Web Archive" => This will create a war file that has the same name as your war file! => If you do not see it try to switch to resource perspective!)
    - Build Application archive (right mouse click on Application archive => from the context menu choose "Build Application Archive")
    You are done
    The EAR file is generated and will be created in your workspace.
    Now browse to your workspace. Unpack the EAR using WinZip or any other Archiver program.
    Replace the contained war with your war and repack the ear file (You can also use tools like Total Commander to directly replace the war file in the EAR with your war without having to unpack the war). You can also import your war into NWDS and rebuild it so you won't have to replace the WAR in the EAR but as your WAR is already built I would just replace it as described!
    You can now deploy the ear file to SAP J2EE
    Hope this helps (Reward points for helpful answers are appreciated!)
    Cheers

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

  • How to deploy my .WAR as a portlet, not a new page.

    Hi,
    I already know how to deploy my war file in the Portal. But How can I deploy it as a portlet?
    I have tried deploy a simple helloworld.jsp into sample provider. And it works. But when I try to create a new provider (which already config .properties , and provider.xml file). It always gives me "404 Not found" error.
    Oracle support said it must be something wrong with setting problem. But we havn't solve this problem yet.
    Can anyone give me a help or advice?
    help~~~~ please

    hi Harsha,
    Thanks for help.
    I post my instruction to deploye my war file. It was from Oracle support. But it still doesn't work well.
    Could you check?
    Thanks a lot
    1.Go to the Middletier ORACLE_HOME
    2.Go to ORACLE_HOME\j2ee\OC4J_Portal\applications\jpdk\jpdk\htdocs\
    3.Create a folder called test
    4.Copy your jsp files under this "test" folder
    5.Go to ORACLE_HOME\j2ee\OC4J_Portal\applications\jpdk\jpdk\WEB-INF\deployment
    6.Copy the file sample.properties which is there to a file called test.properties
    7.Edit test.properties and make the following changes:
    serviceClass=oracle.webdb.provider.v2.adapter.soapV1.ProviderAdapter
    loaderClass=oracle.portal.provider.v2.http.DefaultProviderLoader
    showTestPage=true
    definition=providers/test/provider.xml
    autoReload=true
    testPageURI=/htdocs/testpage/TestPage.jsp
    8.Go to ORACLE_HOME\j2ee\OC4J_Portal\applications\jpdk\jpdk\WEB-INF\providers
    9.Create a folder called test
    10.Create a file called provider.xml and put the contents as follows:
    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <?providerDefinition version="3.1"?>
    <provider class="oracle.portal.provider.v2.DefaultProviderDefinition">
    <localePersonalizationLevel>none</localePersonalizationLevel>
    <session>true</session>
    <defaultLocale>en</defaultLocale>
    <preferenceStore class="oracle.portal.provider.v2.preference.FilePreferenceSt
    ore">
    <name>prefStore1</name>
    <useHashing>true</useHashing>
    </preferenceStore>
    <portlet class="oracle.portal.provider.v2.DefaultPortletDefinition">
    <id>1</id>
    <name>MyJsp</name>
    <title>MyJsp</title>
    <shortTitle>MyJsp</shortTitle>
    <description>This portlet is a sample implemented by Me.</description>
    <timeout>40</timeout>
    <timeoutMessage>MyJsp timed out</timeoutMessage>
    <showEdit>false</showEdit>
    <showEditDefault>false</showEditDefault>
    <showPreview>false</showPreview>
    <showDetails>false</showDetails>
    <hasHelp>false</hasHelp>
    <hasAbout>false</hasAbout>
    <acceptContentType>text/html</acceptContentType>
    <renderer class="oracle.portal.provider.v2.render.RenderManager">
    <renderContainer>true</renderContainer>
    <contentType>text/html</contentType>
    <showPage>/htdocs/test/test.jsp</showPage>
    </renderer>
    </portlet>
    <portlet class="oracle.portal.provider.v2.DefaultPortletDefinition">
    <id>2</id>
    <name>MyJsp2</name>
    <title>MyJsp2</title>
    <shortTitle>MyJsp2</shortTitle>
    <description>This portlet is a sample implemented by Me.</description>
    <timeout>40</timeout>
    <timeoutMessage>MyJsp2 timed out</timeoutMessage>
    <showEdit>false</showEdit>
    <showEditDefault>false</showEditDefault>
    <showPreview>false</showPreview>
    <showDetails>false</showDetails>
    <hasHelp>false</hasHelp>
    <hasAbout>false</hasAbout>
    <acceptContentType>text/html</acceptContentType>
    <renderer class="oracle.portal.provider.v2.render.RenderManager">
    <renderContainer>true</renderContainer>
    <contentType>text/html</contentType>
    <showPage>/htdocs/test/test1.jsp</showPage>
    </renderer>
    </portlet>
    </provider>
    11.In the above change the name of the jsp files from test.jsp and test1.jsp to whatever the name of your jsp file is
    12.Test that the following provider test page comes up:
    http://midtier:port/jpdk/providers/test
    (It should show the name of the 2 portlets above)
    13.If there is a 500 Internal server error, restart OC4J_Portal and try again
    14.Once you get the test page above, go to Portal and register the provider.
    Give the URL as http://midtier:port/jpdk/providers
    and the Service Id as urn:test
    15.Add the portlet to the page.

  • I have some presentation on the ipad 2 which went missing even though it is still on the icloud.  how do i load them onto the ipad again?  I have already updated the keynote and am currently on ios8

    i have some presentation on the ipad 2 which went missing even though it is still on the icloud.  how do i load them onto the ipad again?  I have already updated the keynote and am currently on ios8

    Here you go:
    You should be able to hit the "Agree" button, if you are on an iPhone right now. On a Mac, you should just left click the button where it said "Accept". I hope this helped.
    To quit the app store, simply hit these keys:
    Than, you should come up with this window:
    Select the app store with:
              a) The up and down arrow keys
              b) Your cursor
    Than hit the 'Enter' button twice. This should close the app store. The force quit window is also accesible through the apple logo in the top left corner of the screen. It should say:
    Force Quit...

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

  • I own CS6, I am upgrading my computer.  How do I get this onto the new computer when it arrives?

    Having purchased the download version of CS6, how do I get this onto the new computer?
    Thanks,
    Peter

    Download your installer from here
    http://helpx.adobe.com/x-productkb/policy-pricing/cs6-product-downloads.html
    and enter your serial number when asked.
    Gene

  • How to deploy a war file with no descriptors in WLS - quick question

    Hi All
    How do we deploy a war file, which doesnt have weblogic.xml nor web.xml in it ?
    We have these xml files.
    1- How do we include these xml files ? any command line to do that ?
    2- Which is an easier approach to deploy a war file
    a) include these xml files into the war and then deploy with WLS using weblogic.Deployer or
    b) explode the war and then copy these xml files to its WEB-INF ?
    Is there an example we could use to follow to deploy our war file ?
    Thanks

    Puthanampatti, thanks for responding.
    What is the complete command line to deploy the war to a managed server, not Admin Server ?
    Our thinking is to deploy an exploded war directory but copy the descriptor files first.
    What do you think ?

  • I have elements 12, running on PCS. Just bought a Mac mini, no DVD, how can I get elements onto the Mac?

    I just upgraded from a Pc to a Mac mini, how can I get elements 12 onto the Mac?

    Try this link and after installing validate with your 24 digit serial number - click here for PSE downloads

  • How to get a dvd onto the video tab only on itunes

    i want to get a dvd onto the video tab only on itunes and not on my ipod how do i do that?

    haha, do you copy and paste that all the time cause i swear ive seen that answer more than once. nice time saver though, since theres always new posts about getting videos onto ipod.

  • Versioned deployments: how to deploy different version of the same app ?

    I 'd like to deploy on a server (single instance) different versions of the same web application, say:
    webapp1.war
    webapp2.war
    webapp3.war
    The wars have the same ContextRoot.
    It is possible to version them with an attribute in MANIFEST.MF, but is it possible to have the N applications ACTIVE and running ? I'd like that one IP will be served from webapp1, another IP from webapp2, another IP from webapp3, etc.

    It may your 'requirement' but I have serious doubts that the app review team will approve it. Save yourself the waste of time and follow my original suggestion of one app. That's the only correct 'method' (w/IAP of course) that will have a chance of success.
    See the iOS Human Interface Guidelines and the App Review Guidelines before you go any further. In the case where you need 'official' guidance, consider using support event w/DTS

  • How do i get videos onto the new ipod?

    haven't been able to figure out how to get videos onto the ipod. tried to click and drag a home video into the video section but that didn't work. any help would be greatly appreciated.
    also, where do i go to get an episode to download onto the ipod?

    Hi Sebastian,
    Use iTunes to put videos onto your iPod. Make sure you have the newest version (by pressing Help, then selecting check for iTunes updates).
    Once you are sure you have the newest version of iTunes, just press File -> add file to library, or drag your video file onto the iTunes library. Then all you need to do is update your iPod.
    - Greg.

  • How does thw firm ware for the built in web cam on a pavilion G6 get reactivated or re-loaded?cc=US

    how does the firm ware for the built in web cam on a pavilion G6 get reactivated or re-loaded? I have been attempting to get this done all day. I have downloaded new drivers from HP, used the recovery manager etc and nothing seems to work. I have owned this HP pavilion G6 for a couple of months and am already sick of the problems I am having. Windows 7 and HP; what a great team!

    i m facing same problem.
    dont know how HP!! can Cheat Customers in India??
    i don't think they supply GOOD pieces to the 125 Million Country??!!

Maybe you are looking for

  • Does LiceCycle Designer support different languages

    We would like to roll out a US based form to other non english speaking countries. Is it possible to design a form in different languages ? if so, where can I find more information on it ? Thanks Aditya

  • Duplicate messages from weeks ago

    Ever since upgrading to Leopard last month, Mail has been retrieving messages from one of my accounts that date back to weeks previous, which have already been retrieved. Every day I receive 5-20 "new messages" which I have already read. I saw this i

  • Screen sizes of 17" and 20"

    Can someone who has one post the actual screen sizes, W and H (in inches) of the 17" and 20" iMac. thx :{)

  • Reference to array?

    Can someone tell me how to make a reference to an array from a different class?

  • Include a css page

    Hi Forum! I need to include a css in my htmlb document. I write: <%@page language="abap"%> <%@extension name="htmlb" prefix="htmlb"%> <%@extension name="phtmlb" prefix="phtmlb"%> <htmlb:content design="design2003">   <htmlb:document >     <htmlb:docu