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)
>

Similar Messages

  • 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 an Ear File into Weblogic Server

    Hello,
    i have created an ADF application successfully and make it as an EAR file.
    How can we deploy that EAR file into weblogic server..?
    Let me know step-by-step procedure.
    Regards.

    Hi,
    Steps to deploy EAR file on Weblogic server:
    1) login to http://<hostname>:<port>/console
    2) Go to deployments and then install your ear on weblogic server.
    Also you will need to create a data source with same name as given in your Application Module.
    Following link contains steps for data source creation - http://www.oracle.com/webfolder/technetwork/jdeveloper/howto/11114/managedserver/wlsadfms.html ( section - "Configure a JDBC Data Source")
    Thanks,
    Randhir

  • How to deploy the war file in weblogic 6.0 with sp1?

    I write a jap and a web.xml files and also pack these files into a war file.
              When I use the console to deploy the war, the console think the war is a
              application, not web application.
              I attach the test.war.
              [test.war]
              

    change your web-inf directory name to WEB-INF. This should fix your problem.
              Kumar.
              Alex wrote:
              > I write a jap and a web.xml files and also pack these files into a war file.
              > When I use the console to deploy the war, the console think the war is a
              > application, not web application.
              > I attach the test.war.
              >
              > Name: test.war
              > test.war Type: unspecified type (application/octet-stream)
              > Encoding: x-uuencode
              

  • Problem in deploying Application War file on weblogic 8.1.

    Hi All,
    <BR><BR>
    I am getting folowing error while deploying a war file in weblogic server.
    <BR><BR>
    <b>####<May 9, 2006 4:35:43 AM BST> <Error> <HTTP> <dygenint01> <admin_dyressit> <ExecuteThread: '13' for queue: 'weblogic.kernel.Default'> <<WLS Kernel>> <> <BEA-101018> <[ServletContext(id=6530739,name=OneViewWriteback,context-path=/OneViewWriteback)] Servlet failed with ServletException
    java.lang.Throwable: Servlet class: 'com.corizon.ps.oneview.servlet.OneViewWritebackResultServlet' doesn't have a default constructor
         at weblogic.servlet.internal.ServletStubImpl$ServletInitAction.run(ServletStubImpl.java:1032)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
         at weblogic.servlet.internal.ServletStubImpl.createServlet(ServletStubImpl.java:904)
         at weblogic.servlet.internal.ServletStubImpl.createInstances(ServletStubImpl.java:883)
         at weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.java:822)
         at weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.java:535)
         at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:373)
         at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:315)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6718)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
         at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3764)
         at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2644)
         at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219)
         at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178)</b>
    <BR><BR>
    I am using weblogic version 8.1 .
    <BR><BR>
    How can I get rid of this error ?
    <BR><BR>
    Can any body Please guide me on this ?
    <BR><BR>
    Thanks in advance.
    <BR><BR>
    Ninad

    dkarr, Thanks for your reply.<BR>
    here is the constructor I got for the class 'com.corizon.ps.oneview.servlet.OneViewWritebackResultServlet'
    <BR><BR>
    <b> public OneViewWritebackResultServlet()<BR>
    {<BR>
    senderThread = null;<BR>
    jmsConnectionHandler = null;<BR>
    closureManager = null;<BR>
    mRequestSenderThread = null;<BR>
    connected = false;<BR>
    }</b><BR>
    <BR>
    Is this ok ?
    <BR>
    Thanks,<BR>
    -Ninad<BR>

  • Remote deploy a war file in weblogic using ant script

    Hi,
    How do I remote deploy a war file in weblogic using ant script
    Thanks

    http://download.oracle.com/docs/cd/E13222_01/wls/docs100/programming/wldeploy.html

  • Problem deploying a WAR file in Weblogic 10

    I get an error trying to deploy a WAR file on WebLogic 10 on two of my co-workers computers. On my computer it works fine and on our development server running on SUSE 10 it is also fine. We are using Struts 2, Hibernate 3 and Spring 2.5. The exception says that weblogic.wsee.async.AsyncResponseBean failed to preload because weblogic.wsee.async.jaxws.OnAsyncDelivery could not be found. We are not knowingly trying to use these classes. We do not have web services. The full text of the error we get when trying to deploy is:
    <Aug 20, 2008 3:01:45 PM CDT> <Error> <Deployer> <BEA-149231> <Unable to set the activation state to true for the application '_appsdir_pilotVacation_war'.
    weblogic.application.ModuleException: [HTTP:101216]Servlet: "weblogic.wsee.async.AsyncResponseBean" failed to preload on startup in Web application: "pilotVacation.war".
    class: weblogic.wsee.async.jaxws.OnAsyncDelivery could not be found
    at com.sun.xml.ws.model.RuntimeModeler.getClass(RuntimeModeler.java:272)
    at com.sun.xml.ws.model.RuntimeModeler.processDocWrappedMethod(RuntimeModeler.java:566)
    at com.sun.xml.ws.model.RuntimeModeler.processMethod(RuntimeModeler.java:513)
    at com.sun.xml.ws.model.RuntimeModeler.processClass(RuntimeModeler.java:358)
    at com.sun.xml.ws.model.RuntimeModeler.buildRuntimeModel(RuntimeModeler.java:245)
    at com.sun.xml.ws.server.EndpointFactory.createSEIModel(EndpointFactory.java:229)
    at com.sun.xml.ws.server.EndpointFactory.createEndpoint(EndpointFactory.java:161)
    at com.sun.xml.ws.api.server.WSEndpoint.create(WSEndpoint.java:291)
    at com.sun.xml.ws.api.server.WSEndpoint.create(WSEndpoint.java:315)
    at weblogic.wsee.jaxws.JAXWSServlet.registerEndpoint(JAXWSServlet.java:125)
    at weblogic.wsee.jaxws.JAXWSServlet.init(JAXWSServlet.java:64)
    at javax.servlet.GenericServlet.init(GenericServlet.java:241)
    at weblogic.servlet.internal.StubSecurityHelper$ServletInitAction.run(StubSecurityHelper.java:282)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(Lweblogic.security.acl.internal.AuthenticatedSubject;Lweblogic.security.acl.internal.AuthenticatedSubject;Ljava.security.PrivilegedAction;)Ljava.lang.Object;(Unknown Source)
    at weblogic.servlet.internal.StubSecurityHelper.createServlet(StubSecurityHelper.java:63)
    at weblogic.servlet.internal.StubLifecycleHelper.createOneInstance(StubLifecycleHelper.java:58)
    at weblogic.servlet.internal.StubLifecycleHelper.<init>(StubLifecycleHelper.java:48)
    at weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.java:504)
    at weblogic.servlet.internal.WebAppServletContext.preloadServlet(WebAppServletContext.java:1830)
    at weblogic.servlet.internal.WebAppServletContext.loadServletsOnStartup(WebAppServletContext.java:1807)
    at weblogic.servlet.internal.WebAppServletContext.preloadResources(WebAppServletContext.java:1727)
    at weblogic.servlet.internal.WebAppServletContext.start(WebAppServletContext.java:2890)
    at weblogic.servlet.internal.WebAppModule.startContexts(WebAppModule.java:948)
    at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:353)
    at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:204)
    at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:26)
    at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:60)
    at weblogic.application.internal.flow.ScopedModuleDriver.start(ScopedModuleDriver.java:200)
    at weblogic.application.internal.flow.ModuleListenerInvoker.start(ModuleListenerInvoker.java:117)
    at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:204)
    at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:26)
    at weblogic.servlet.internal.WebAppModule.startContexts(WebAppModule.java:950)
    at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:353)
    at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:204)
    at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:26)
    at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:60)
    Truncated. see log file for complete stacktrace
    class: weblogic.wsee.async.jaxws.OnAsyncDelivery could not be found
    at com.sun.xml.ws.model.RuntimeModeler.getClass(RuntimeModeler.java:272)
    at com.sun.xml.ws.model.RuntimeModeler.processDocWrappedMethod(RuntimeModeler.java:566)
    at com.sun.xml.ws.model.RuntimeModeler.processMethod(RuntimeModeler.java:513)
    at com.sun.xml.ws.model.RuntimeModeler.processClass(RuntimeModeler.java:358)
    at com.sun.xml.ws.model.RuntimeModeler.buildRuntimeModel(RuntimeModeler.java:245)
    Truncated. see log file for complete stacktrace
    >

    Hey,
    From what I understand, your configuration is obviously different from your co-workers' config.
    So you've got two choices : either you make their environments work like yours, or you make the application to work anywhere !
    In order to do so, I would advise you to use a comparison tool, such as BeyondCompare (excellent) and compare your domain configurations (config directories)
    Or as James suggested it, you go hunt for unnecessary libraries in your application DD.
    Extra question : have you tried to create a new domain, and activate the Workshop extension ? Try then to deploy your application and tell us what's the result.
    If you created your application in Workshop, mind the facets : if you do not chose the correct set of facets, you'll have lots of extra libs, more annoying than helping.

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

  • Deploy only WAR File to Weblogic and not EAR File

    Hi,
    I want know if exist a way to only deploy de WAR file to Weblogic?

    Hi,
    Below is the command to deploy ear file.
    java weblogic.Deployer -adminurl t3://<adminserver>:port -username admin -password password -deploy -stage -source <ear file name for example vas.war> -name <name of the application, this value is showed in console, For ex 'vas'> -targets <Managed server separated by comma>
    Thanks.
    Vijay Bheemineni.

  • How to deploy Oracle Forms & Reports in Weblogic Server 11g (10.3)?

    Hi
    How to deploy Oracle Forms & Reports in Weblogic Server 11g (10.3)?
    Thanks

    Hi
    when i am going through your bleow link.
    I am not able understand the 3.3.1 step :2
    http://download.oracle.com/docs/cd/E15523_01/web.1111/e10240/basics.htm#i1010040
    edit this file in the Web Configuration,
    configuration of an application called "my_application" with a form module called "form=hrapp.fmx":
    can deploy only.fmx file ?
    if not how to find the realation between my_application and hrapp.fmx ?
    Thanks in Adavance
    Regards
    Ram

  • How to deploy DAC enterprise application on WebLogic Server

    hi,
    i have installed DAC server on Linux machine and DAC client on windows machine. I can able to log in to DAC by stand alone mode and
    Currently we are unable to login to the DAC 11g client by FMW(Web mode)
    To login into DAC client by FMW mode we need to deploy DAC enterprise application on WebLogic Server, could anybody help how to deploy DAC enterprise application on weblogic server ?
    Thanks in advance..
    Vinoth

    follow this doc http://docs.oracle.com/cd/E35287_01/fusionapps.7964/e14849.pdf
    mark if it helps

  • Default data adaptor error when deploying a war file in weblogic

    Hi All,
    Newbie here with a few questions regarding the deployment of OPA 10.1. Really hoping you guys can help...
    1) I'm attempting to deploy an unexploded web-determinations.war file on WebLogic. Thanks to this forum I've got past the issues of "rulebase directory not found" etc. However, i'm now faced with an issue which I can't find any info on. Please see below.
    3672074 [[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'] WARN com.or
    acle.determinations.web.platform.controller.actions.StartSessionAction - Could not instansate defau
    lt data adaptor
    java.lang.NullPointerException
    at java.io.File.<init>(File.java:194)
    at com.oracle.determinations.web.platform.plugins.data.XDSDataAdaptor.<init>(XDSDataAdaptor.
    java:55)
    at com.oracle.determinations.web.platform.controller.actions.StartSessionAction.createInterv
    iewSession(StartSessionAction.java:173)
    at com.oracle.determinations.web.platform.controller.actions.StartSessionAction.getResource(
    StartSessionAction.java:66)
    at com.oracle.determinations.web.platform.servlet.WebDeterminationsServlet.doGet(WebDetermin
    ationsServlet.java:67)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
    at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.
    java:226)
    at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:124)
    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:283)
    at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
    at com.oracle.determinations.web.platform.util.CharsetFilter.doFilter(CharsetFilter.java:46)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletC
    ontext.java:3393)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(Unknown Source)
    at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2
    140)
    at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2046)
    at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1366)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:200)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:172)
    I've got the following entry in the application.properties file too...
    # Default XDS data adaptor file path
    #xds.file.path =data
    From what we can see we believe the code is getting a null pointer because of the following method in the WebDeterminationsServletContext class.
    public String resolveFullPath(String path)
    File f = new File(path);
    return f.isAbsolute() ? f.getAbsolutePath() : this.servletContext.getRealPath(path);
    We believe the getRealPath(path), highlighted in red, is returning null. Any ideas how we can resolve this?
    2) The second issue I'm facing is with regards the plugins.libraries property in the application.properties file. I've got the entry as
    plugin.libraries =DataAdaptor.DA;
    which should point to our customised data adaptor. However I'm getting the following error.
    4242994 [[ACTIVE] ExecuteThread: '2' for queue: 'weblogic.kernel.Default (self-tuning)'] WARN com.or
    acle.determinations.web.platform.servlet.WebDeterminationsServletContext - Can not find class: Data
    Adaptor.DA
    4243025 [[ACTIVE] ExecuteThread: '2' for queue: 'weblogic.kernel.Default (self-tuning)'] WARN com.or
    acle.determinations.interview.engine.local.LocalInterviewEngine - Can not find class: DataAdaptor.D
    A
    3) Also, does anyone know if it's possible to deploy a web-determinations.war file containing additional internal application code? What we're attempting to do is deliver a single war file which not only holds the web determination code but also all the code for an application which wraps the OWD within it. At present this just isn't working. I'm not sure what the conflict is exactly. The only way i seem to be able to get this working is by deploying the code in two seperate war files.
    Any help on these issues would be greaty appreciated.
    Thanks,
    Taj

    (2) is being caused because your data adaptor plugin is not installed properly. The jar that contains your plugin needs to go in the WEB-INF/lib directory and you must specify the fully qualified class name in the plugin.libraries property of the application.properties file.
    If you haven't provided a custom data adaptor, Web Determinations will configure and attach the default one for use instead, which is file based. If you are deploying to WebLogic as an unxeploded war, you must configure the directory the default data directory the plugin will uses by specifying an absolute path that your instance of Web Determinations has read/write permissions to in the xds.file.path property of the application.properties file. In your case (1) is basically being caused by (2) since if the your data adaptor was loaded correctly the default one wouldn't load at all.
    As for (3) yes it's likely possible, provided you don't have library conflicts. How it's done really depends on what these additional customisations consist of.

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

  • 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

Maybe you are looking for

  • Error while installing oracle 10.2.0.3 in the laptop, which has already 9i

    Hi all, i have an error while installing 10g in laptop which has already have 9i on it. 10g version was 10.2.0.3, i know it will not support in xp, but in other system which has xp it was working fine. System details, 1GB Ram,Win XP Laptop. Oracle 9i

  • Windows Vista Home Basic: Disc burner or software not found..

    Need some help please!? I have searched sites across that internet in hopes to find a solution to this problem. I hope someone can help. I have an acer running windows home basic. I have recently installed iTunes (its the best!!). I went to burn a di

  • Prob in float...

    this is my insertion query in the database, my problem is that when i insert decimal values like 15464545454.32, it displays like 1.54645E7..plz do something...i want to display as the same decimal values as i eneterd.... PreparedStatement pstmt = co

  • Powerbook G3 Motherboard Swap

    Hey I just got two powerbook G3's for free and was wondering... Can I fit a dual core intel macbook motherboard inside? Where can I Find One? The case is big enough and power supply is no issue...can it be done? If it can, i just ended up with 2 medi

  • How to remove unused codepage from system

    Hello all, Has anyone yet removed codepage (customer codepages) from the system. If so, could you please tell me how to do so? I tryed with SPAD, but the option "delete" is always inactive. This customer codepages are also not found with transaction