[b]problem with deploy .war file

Hi
I am trying to deploy a war file. I have Oracle 9iAS (release 2) in Sun Solaris server.
I am using the enterprise manager gui to try to deploy a .war file as follows.
My .war file has the structure: folder META-INF, folder WEB-INF, and other folders. THe folder
WEB-INF has the file web.xml and the folder classes.
I connect to enterprise manager at port 1810 and go to the OC4J home page and under
deployed applications, I choose under applications "Deploy WAR file". It takes me to the next page
where I enter the war file (pippo.war)
Application Name: pippo
Map to URL: /pippo
THe only choice I have then is to click the Deploy button. I then get the response
"Failed to deploy web application "pippo". Jar file: /var/tmp/jar29056.tmp is missing its standard xml descriptor located at WEB-INF/web.xml"
In that path there is not that file, there are 2 folders, one with the file .war and one with the file .ear
I have no idea what this error message means.
The documentation for deploying servlets in 9ias using enterprise manager makes no mention of this.
Thanks,
Marcella

Marcella,
Are you using Oracle9iAS 9.0.3 ?
Does this happen with any war file ?
Are you able to deploy a ear file without problems ?
Can you please test if you can deploy your war in a
OC4J standalone environment ? steps from the general faq available at http://otn.oracle.com/tech/java/oc4j
How can I deploy a WAR file to OC4J standalone ?
The command line deployment tool (admin.jar) requires an EAR file as it's deployment archive. To deploy a WAR file using this, you must package the WAR file within a EAR file.
You can manually deploy a WAR file to OC4J However following are the steps involved in deploying a WAR file in OC4J.
1. Copy the file to D:\oc4j\j2ee\home\applications where d:\oc4j is the location OC4J is installed in.
copy mywar.war D:\oc4j\j2ee\home\applications
2. Open the application.xml file in D:\oc4j\j2ee\home\config directory
and add the following after the <web-module id="defaultWebApp" path="../default-web-app" />
line:
<web-module id="mywar" path="../applications/mywar.war" />
3. Open the default-web-site.xml file in D:\oc4j\j2ee\home\config directory and add the following after the <default-web-app application="default" name="defaultWebApp" /> line:
<web-app application="default" name="mywar" root="/mywar" />
In Oracle9iAS Release 2; deployment of applications is done either using EM or via the DCM commands.
thanks,
-Prasad

Similar Messages

  • Problem in deploying war file

    Hi,
    I have a problem in deploying a war file in Weblogic 7. I have deployed successfully
    a jar file containing an ejb. I would like to deploy a war file which web.xml
    has an <ejb-ref> element referencing a session bean contained in the jar previously
    deployed.
    I have the following error:
    Module Name: PSSC-web, Error: weblogic.j2ee.DeploymentException: Could not setup
    environment - with nested exception:
    [weblogic.deployment.EnvironmentException: ejb-ref ejb/PSSCLdapUserEJB requires
    an ejb-link or jndi-name]
    at weblogic.j2ee.J2EEApplicationContainer.activate(J2EEApplicationContainer.java:1093)
    at weblogic.j2ee.J2EEApplicationContainer.activate(J2EEApplicationContainer.java:1074)
    at weblogic.management.deploy.slave.SlaveDeployer.processPrepareTask(SlaveDeployer.java:1110)
    at weblogic.management.deploy.slave.SlaveDeployer.prepareUpdate(SlaveDeployer.java:730)
    at weblogic.drs.internal.SlaveCallbackHandler$1.execute(SlaveCallbackHandler.java:24)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:213)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:189)
    >
    My configuration files are:
    weblogic-ejb-jar.xml
    <weblogic-ejb-jar>
    <weblogic-enterprise-bean>
    <ejb-name>ejb/PSSCLdapUserEJB</ejb-name>
    <jndi-name>PSSCLdapUserEJB</jndi-name>
    </weblogic-enterprise-bean>
    </weblogic-ejb-jar>
    ejb-jar.xml
    <ejb-jar>
    <display-name>Ldap User</display-name>
    <enterprise-beans>
    <session>
    <ejb-name>ejb/PSSCLdapUserEJB</ejb-name>
    <home>pssc.utils.ejb.PSSCLdapUserEJHome</home>
    <remote>pssc.utils.ejb.PSSCLdapUserEJ</remote>
    <ejb-class>pssc.utils.ejb.PSSCLdapUserEJBean</ejb-class>
    <session-type>Stateful</session-type>
    <transaction-type>Container</transaction-type>
    </session>
    </enterprise-beans>
    <assembly-descriptor>
    <container-transaction>
    <method>
    <ejb-name>ejb/PSSCLdapUserEJB</ejb-name>
    <method-name>*</method-name>
    </method>
    <trans-attribute>Required</trans-attribute>
    </container-transaction>
    </assembly-descriptor>
    <ejb-client-jar>LDAPUSER</ejb-client-jar>
    </ejb-jar>
    web.xml
    <web-app>
    <ejb-ref>
    <ejb-ref-name>ejb/PSSCLdapUserEJB</ejb-ref-name>
    <ejb-ref-type>Session</ejb-ref-type>
    <home>pssc.utils.ejb.PSSCLdapUserEJHome</home>
    <remote>pssc.utils.ejb.PSSCLdapUserEJ</remote>
    </ejb-ref>
    </web-app>
    weblogic.xml
    <weblogic-web-app>
         <ejb-reference-description>
         <ejb-ref-name>
         ejb/PSSCLdapUserEJB
         </ejb-ref-name>
         <jndi-name>
         PSSCLdapUserEJB
         </jndi-name>
         </ejb-reference-description>
    </weblogic-web-app>
    Configuration files seems correct to me, but the deployment of the war is not
    working..
    Does someone have an idea of what is the problem?
    Thanks in advance,
    Giuseppe

    Hi,
    I have a problem in deploying a war file in Weblogic 7. I have deployed successfully
    a jar file containing an ejb. I would like to deploy a war file which web.xml
    has an <ejb-ref> element referencing a session bean contained in the jar previously
    deployed.
    I have the following error:
    Module Name: PSSC-web, Error: weblogic.j2ee.DeploymentException: Could not setup
    environment - with nested exception:
    [weblogic.deployment.EnvironmentException: ejb-ref ejb/PSSCLdapUserEJB requires
    an ejb-link or jndi-name]
    at weblogic.j2ee.J2EEApplicationContainer.activate(J2EEApplicationContainer.java:1093)
    at weblogic.j2ee.J2EEApplicationContainer.activate(J2EEApplicationContainer.java:1074)
    at weblogic.management.deploy.slave.SlaveDeployer.processPrepareTask(SlaveDeployer.java:1110)
    at weblogic.management.deploy.slave.SlaveDeployer.prepareUpdate(SlaveDeployer.java:730)
    at weblogic.drs.internal.SlaveCallbackHandler$1.execute(SlaveCallbackHandler.java:24)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:213)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:189)
    >
    My configuration files are:
    weblogic-ejb-jar.xml
    <weblogic-ejb-jar>
    <weblogic-enterprise-bean>
    <ejb-name>ejb/PSSCLdapUserEJB</ejb-name>
    <jndi-name>PSSCLdapUserEJB</jndi-name>
    </weblogic-enterprise-bean>
    </weblogic-ejb-jar>
    ejb-jar.xml
    <ejb-jar>
    <display-name>Ldap User</display-name>
    <enterprise-beans>
    <session>
    <ejb-name>ejb/PSSCLdapUserEJB</ejb-name>
    <home>pssc.utils.ejb.PSSCLdapUserEJHome</home>
    <remote>pssc.utils.ejb.PSSCLdapUserEJ</remote>
    <ejb-class>pssc.utils.ejb.PSSCLdapUserEJBean</ejb-class>
    <session-type>Stateful</session-type>
    <transaction-type>Container</transaction-type>
    </session>
    </enterprise-beans>
    <assembly-descriptor>
    <container-transaction>
    <method>
    <ejb-name>ejb/PSSCLdapUserEJB</ejb-name>
    <method-name>*</method-name>
    </method>
    <trans-attribute>Required</trans-attribute>
    </container-transaction>
    </assembly-descriptor>
    <ejb-client-jar>LDAPUSER</ejb-client-jar>
    </ejb-jar>
    web.xml
    <web-app>
    <ejb-ref>
    <ejb-ref-name>ejb/PSSCLdapUserEJB</ejb-ref-name>
    <ejb-ref-type>Session</ejb-ref-type>
    <home>pssc.utils.ejb.PSSCLdapUserEJHome</home>
    <remote>pssc.utils.ejb.PSSCLdapUserEJ</remote>
    </ejb-ref>
    </web-app>
    weblogic.xml
    <weblogic-web-app>
         <ejb-reference-description>
         <ejb-ref-name>
         ejb/PSSCLdapUserEJB
         </ejb-ref-name>
         <jndi-name>
         PSSCLdapUserEJB
         </jndi-name>
         </ejb-reference-description>
    </weblogic-web-app>
    Configuration files seems correct to me, but the deployment of the war is not
    working..
    Does someone have an idea of what is the problem?
    Thanks in advance,
    Giuseppe

  • Problem in deploying war file in weblogic application server 10

    Hi
              Thank you for reading my post.
              We are trying to deploy our application into weblogic but problem is that weblogic return an error like following one when we try to deploy the application.
              I should tell you that the following log was shown in a not well formatted way and i format it manually.
                        [HTTP:101216]Servlet: "com.wira.webservices.int.Wsti" failed to preload on startup in Web application: "wira.war". class:
              com.wira.webservices.int.jaxws.RequestResponse 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)
                        I should say you that we do not have a package and class like: com.wira.webservices.bpel.jaxws.RequestResponse and it looks like WLS is mistaken about this.
              Indeed this application works fine on Sun java application server 9 (java ee 5 certified). Can you please tell me why does it happens?
              here is source code of Wsti class
                        @WebService()
              public class Wsti {
                  @WebMethod(operationName="requestResponse")
                  public String requestResponse(@WebParam(name="request") String request) {
                      return ReflectionManager.call(WstiImp.class, request);
                                            for reflection we used standard JDK reflection stuff.
              and that call method call a method identified in request from WstiImp class.
              Thanks

    Following are the steps involved in deploying a WAR file in Oc4j.
    1. Copy the file to D:\oc4j\j2ee\home\applications where d:\oc4j is the location OC4J is installed in.
    copy mywar.war D:\oc4j\j2ee\home\applications
    2. Open the application.xml file in D:\oc4j\j2ee\home\config directory
    and add the following after the <web-module id="defaultWebApp" path="../default-web-app" />
    line:
    <web-module id="mywar" path="../applications/mywar.war" />
    3. Open the default-web-site.xml file in D:\oc4j\j2ee\home\config
    directory and add the following after the <default-web-app application="default" name="defaultWebApp" /> line:
    <web-app application="default" name="mywar" root="/mywar" />
    Hope this helps
    -Debu Panda
    Oracle

  • Problem in Deploying war file in oc4j

    I have developed an application using struts and packaged in war file. It runs ok in tomcat server. I want to deploy it in embedded oc4j server of E-Business Suite. Please give me directions................

    AFAIK, EBS 11.5.10 doesn't come with OC4J. It uses Apache Jserv which is Servlet 2.0 and with a special JSP engine. This doesn't support J2EE WAR files. It might support Struts but I'd not bet on that.
    Having said that, you need to get an OC4J standalone version installed (minimum) and started by the standard EBS startup scripts.
    Once this is done and if your WAR is self-contained, ie contains all the libraries, it is quite easy. Just deploy it using the command-line tools (all versions) or the web admin interface of OC4J (from 10.1.3).
    Only thing you have to change is the URL in the OAF page to point to the right server...
    --olaf                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Problem in deploying WAR file into OC4J

    I have tried deploying a .war file into oc4j (orion) application server using - Deploying Upon OC4J Server Startup option
    I have placed the intelliview.war into /applications directory
    modified server.xml & web-site.xml
    server.xml added
    <application name="intelliview" path="../applications/iviewserver.war" auto-start="true" />
    web-site.xml added
    <web-app application="intelliview" name="iviewserver" root="/iviewserver" />
    Here is the error message,
    Error instantiating application at file ....applications/intelliview.war
    Unable to read/find assembly info (META-INF/application.xml)
    Any idea?
    Thanks

    Following are the steps involved in deploying a WAR file in Oc4j.
    1. Copy the file to D:\oc4j\j2ee\home\applications where d:\oc4j is the location OC4J is installed in.
    copy mywar.war D:\oc4j\j2ee\home\applications
    2. Open the application.xml file in D:\oc4j\j2ee\home\config directory
    and add the following after the <web-module id="defaultWebApp" path="../default-web-app" />
    line:
    <web-module id="mywar" path="../applications/mywar.war" />
    3. Open the default-web-site.xml file in D:\oc4j\j2ee\home\config
    directory and add the following after the <default-web-app application="default" name="defaultWebApp" /> line:
    <web-app application="default" name="mywar" root="/mywar" />
    Hope this helps
    -Debu Panda
    Oracle

  • Problem in deploying war file to weblogicportlet

    Hi,
    while running build file of portletpreparer tool to create .portlet files from the war.
    The build file extracts war file into tempDir and its raises null pointer exception when it runs "com.bea.task.PreparePortlets" class.
    code is :
    <taskdef name="preparePortlets" classname="com.bea.task.PreparePortlets" classpath="classes" classpathref="class.path"/>
    <property name="tempDir" value="tempDir"/>
    <target name="clean">
    <delete dir="${tempDir}"/>
    </target>
    <target name="extractWar" depends="clean">
    <mkdir dir="${tempDir}"/>
    <unwar src="${war.file}" dest="${tempDir}"/>
    <preparePortlets tempDir="${tempDir}" portletDir="${tempDir}/portlets"/>
    </target>
    Running the above build also fails for DeployingJavaPortlets.zip obtained from URL
    http://dev2dev.bea.com/pub/a/2004/09/deployJava81sp3.html download link.
    If any one knows help me.

    Hi,
    while running build file of portletpreparer tool to create .portlet files from the war.
    The build file extracts war file into tempDir and its raises null pointer exception when it runs "com.bea.task.PreparePortlets" class.
    code is :
    <taskdef name="preparePortlets" classname="com.bea.task.PreparePortlets" classpath="classes" classpathref="class.path"/>
    <property name="tempDir" value="tempDir"/>
    <target name="clean">
    <delete dir="${tempDir}"/>
    </target>
    <target name="extractWar" depends="clean">
    <mkdir dir="${tempDir}"/>
    <unwar src="${war.file}" dest="${tempDir}"/>
    <preparePortlets tempDir="${tempDir}" portletDir="${tempDir}/portlets"/>
    </target>
    Running the above build also fails for DeployingJavaPortlets.zip obtained from URL
    http://dev2dev.bea.com/pub/a/2004/09/deployJava81sp3.html download link.
    If any one knows help me.

  • Problem with deploy .war (Jboss3.2.1-JBuilder8)

    Hi.
    I'm trying to deploy a web application with JBuilder8 into JBoss3.2.1
    I use a plug-in (Voyager2.6) to integrate JBuilder with JBoss.
    The .war compiles OK. But when I try to run it, it take me a lot of errors:
    11:17:45,715 ERROR [NamingService] Could not start on port 1099
    java.net.BindException: Address already in use
         at java.net.PlainSocketImpl.socketBind(Native Method)
         at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:331)
         at java.net.ServerSocket.bind(ServerSocket.java:309)
         at java.net.ServerSocket.<init>(ServerSocket.java:183)
         at javax.net.DefaultServerSocketFactory.createServerSocket(DashoA6275)
         at org.jnp.server.Main.initJnpInvoker(Main.java:327)
         at org.jnp.server.Main.start(Main.java:225)
         at org.jboss.naming.NamingService.startService(NamingService.java:154)
    11:17:48,429 WARN [MainDeployer] The manifest entry in file:/home/amartin/mnt/TOMCAT/tomcatServer/opt/jboss-3.2.1_tomcat-4.1.24/server/forJBuilder/deploy/jbossweb-tomcat.sar/tomcat-util.jar references URL file:/home/amartin/mnt/TOMCAT/tomcatServer/opt/jboss-3.2.1_tomcat-4.1.24/server/forJBuilder/deploy/jbossweb-tomcat.sar/log4j.jar which could not be opened, entry ignored
    11:17:48,433 WARN [MainDeployer] The manifest entry in file:/home/amartin/mnt/TOMCAT/tomcatServer/opt/jboss-3.2.1_tomcat-4.1.24/server/forJBuilder/deploy/jbossweb-tomcat.sar/tomcat-util.jar references URL file:/home/amartin/mnt/TOMCAT/tomcatServer/opt/jboss-3.2.1_tomcat-4.1.24/server/forJBuilder/deploy/jbossweb-tomcat.sar/log4j-core.jar which could not be opened, entry ignored
    11:17:48,438 WARN [MainDeployer] The manifest entry in file:/home/amartin/mnt/TOMCAT/tomcatServer/opt/jboss-3.2.1_tomcat-4.1.24/server/forJBuilder/deploy/jbossweb-tomcat.sar/tomcat-util.jar references URL file:/home/amartin/mnt/TOMCAT/tomcatServer/opt/jboss-3.2.1_tomcat-4.1.24/server/forJBuilder/deploy/jbossweb-tomcat.sar/mx4j.jar which could not be opened, entry ignored
    11:17:49,102 WARN [MainDeployer] The manifest entry in file:/home/amartin/mnt/TOMCAT/tomcatServer/opt/jboss-3.2.1_tomcat-4.1.24/server/forJBuilder/deploy/jbossweb-tomcat.sar/bootstrap.jar references URL file:/home/amartin/mnt/TOMCAT/tomcatServer/opt/jboss-3.2.1_tomcat-4.1.24/server/forJBuilder/deploy/jbossweb-tomcat.sar/commons-daemon.jar which could not be opened, entry ignored
    11:17:50,133 WARN [MainDeployer] The manifest entry in file:/home/amartin/mnt/TOMCAT/tomcatServer/opt/jboss-3.2.1_tomcat-4.1.24/server/forJBuilder/deploy/jbossweb-tomcat.sar/tomcat-jk2.jar references URL file:/home/amartin/mnt/TOMCAT/tomcatServer/opt/jboss-3.2.1_tomcat-4.1.24/server/forJBuilder/deploy/jbossweb-tomcat.sar/workers.jar which could not be opened, entry ignored
    11:17:50,138 WARN [MainDeployer] The manifest entry in file:/home/amartin/mnt/TOMCAT/tomcatServer/opt/jboss-3.2.1_tomcat-4.1.24/server/forJBuilder/deploy/jbossweb-tomcat.sar/tomcat-jk2.jar references URL file:/home/amartin/mnt/TOMCAT/tomcatServer/opt/jboss-3.2.1_tomcat-4.1.24/server/forJBuilder/deploy/classes/ which could not be opened, entry ignored
    11:17:50,223 WARN [MainDeployer] The manifest entry in file:/home/amartin/mnt/TOMCAT/tomcatServer/opt/jboss-3.2.1_tomcat-4.1.24/server/forJBuilder/deploy/jbossweb-tomcat.sar/tomcat-jk2.jar references URL file:/home/amartin/mnt/TOMCAT/tomcatServer/opt/jboss-3.2.1_tomcat-4.1.24/server/forJBuilder/deploy/jbossweb-tomcat.sar/log4j.jar which could not be opened, entry ignored
    11:17:53,035 WARN [MainDeployer] The manifest entry in file:/home/amartin/mnt/TOMCAT/tomcatServer/opt/jboss-3.2.1_tomcat-4.1.24/server/forJBuilder/deploy/jbossweb-tomcat.sar/commons-logging.jar references URL file:/home/amartin/mnt/TOMCAT/tomcatServer/opt/jboss-3.2.1_tomcat-4.1.24/server/forJBuilder/deploy/jbossweb-tomcat.sar/log4j.jar which could not be opened, entry ignored
    11:17:53,039 WARN [MainDeployer] The manifest entry in file:/home/amartin/mnt/TOMCAT/tomcatServer/opt/jboss-3.2.1_tomcat-4.1.24/server/forJBuilder/deploy/jbossweb-tomcat.sar/commons-logging.jar references URL file:/home/amartin/mnt/TOMCAT/tomcatServer/opt/jboss-3.2.1_tomcat-4.1.24/server/forJBuilder/deploy/jbossweb-tomcat.sar/log4j-core.jar which could not be opened, entry ignored
    11:17:54,705 WARN [JkMain] No properties file found /home/amartin/mnt/TOMCAT/tomcatServer/opt/jboss-3.2.1_tomcat-4.1.24/server/forJBuilder/tmp/deploy/server/forJBuilder/deploy/conf/jk2.properties
    11:17:56,084 INFO [MainDeployer] Starting deployment of package: file:/home/amartin/mnt/TOMCAT/tomcatServer/opt/jboss-3.2.1_tomcat-4.1.24/server/forJBuilder/deploy/JBossExample.war/
    11:17:56,314 INFO [EmbeddedCatalinaService41] deploy, ctxPath=/JBossExample, warUrl=file:/home/amartin/mnt/TOMCAT/tomcatServer/opt/jboss-3.2.1_tomcat-4.1.24/server/forJBuilder/deploy/JBossExample.war/
    11:17:56,538 ERROR [MainDeployer] could not start deployment: file:/home/amartin/mnt/TOMCAT/tomcatServer/opt/jboss-3.2.1_tomcat-4.1.24/server/forJBuilder/deploy/JBossExample.war/
    org.jboss.deployment.DeploymentException: Error during deploy; - nested throwable: (javax.naming.NameAlreadyBoundException)
         at org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:369)
         at org.jboss.deployment.MainDeployer.start(MainDeployer.java:832)
         at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:640)
         at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:613)
         at sun.reflect.GeneratedMethodAccessor20.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:324)
         at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
         at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:549)
         at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
         at $Proxy7.deploy(Unknown Source)
    Can anybody help me, please?
    Thanks in advance,
    Ana

    check the first line.
    port is already in use.
    try to bind the service on some other ports
    this will solve the problem!

  • Customizing AM Images & Facing Problem in Update & Deploy War files

    Hey Guys!
    This is Yash Bansal from Gurgaon, India. i am new to access manager. i am now customizing it and facing problem in customizing.
    I have customized images which is present in directory path:
    opt/SUNWam/web-src/services/images/
    and updated services.war file which is present in directory path:
    opt/SUNWam/war/
    with command
    jar -uvf services.war /opt/SUNWam/web-src/services/images/login-backimage.jpg
    then deployed configuration from the web server 7.0 admin console.
    after that when i open the url
    http://<hostname>/amserver/console
    then Page Not Found error comes in the browser.
    Just wanted to ask you guys am i doing the steps right. please help if someone know how to update and deploy war file on Sun Web server 7.0.
    Thanks & Regards,
    Yash Bansal

    Hi!
    Deploying the configuration does not (re)deploy the application. Webserver stores a copy of the deployed application and all configurations in the admin instance. When you change anything in the webserver console it is first written there and only applied to the productive instance when you deploy configuration.
    When you add images, jsps or something else to /opt/SUNWam/... and want it redeployed you have to use amconfig command. in /opt/SUNWam/bin there is a file called amsamplesilent. You have to fill the values in this file and then use
    ./amconfig -s amsamplesilent
    I believe for a redeploy you have to set DEPLOY_LEVEL to 21, not sure here, check documentation.
    I personally usually do not redeploy for images and such, I simply copy them directly the deployed location.
    Why http://.../amserver/console does not work anymore, I have no idea. But at least after a redeploy it should be there again.
    hth Chris

  • How to deploy war file in wesphere5.1

    hi
    i am new to websphere 5.1. i am trying to deploy war file in websphere admin it giving an error that ear file is corrupt. same file is working with weblogicc..
    so please tell me step by step .
    if is there any other site where can i get the step step process..
    thanks
    anagh

    first step: read documentation
    second step: apply gathered knowledge
    a few pointers, if i am not mistaken your problem is that a weblogic ear uses weblogic specific application.xml, you might wanna focus on that

  • Deploying WAR files under a single virtual-host

    I wonder why when you deploy war files with the ASADMIN tool and tell it to run them under one virtual server with the --virtual-servers option it deploy's them under all the virtual servers you have defined on the AS?.. why is that?
    Chris.

    Hi, Chris
    I will assume you are using the J2EE SDK1.4 FCS bundle.
    I've tried this myself on solaris machine today, and seems working fine for me.
    1. I created a virtual server called server2 and created new http-listener-3 which listens at port 8081.
    2. Then I used this command to deploy:
    <J2EE_HOME>/bin/asadmin deploy --virtualservers server2 foo.war
    From the server log, it shows this war is only loaded under virtual server "server2" and not the others.
    And if I use my browser to point to
    http://localhost:8080/foo (which is where the virtual server "server" listens)
    I got a HTTP 404 which is expected.
    And I point my browser to
    http://localhost:8081/foo (which is where the virtual server "server2" listens)
    I can access the web app and it runs fine.
    If you still see problems, please provide the exact steps you tried so we can try to reproduce it.
    Thanks,
    - Hong

  • Error while deploying war file using JRUN JMC

    Hi,
    I am getting "Deployment service failed to deploy war file" Error
    while trying to deploy a war file using JRUN Mgmt console.
    If anyone has any idea about it, please help.
    Thanks
    Jit

    Check the logs. There might be a detailed exception in it. My guess is that it might have something to do with the deployment descriptors.
    If you could post the deployment descriptors and the exception stack trace, it would be easier to figure out.

  • How to deploy WAR file in tomcat.?

    Can anybody please provide step by step information of deploying war file to Jakarta tomcat without IDE.
    I am working on Windows XP with jakarta tomcat 4.1.30.
    Thanks in advance.
    Regards,
    Aman Aggarwal

    See if tomcat runs as a service in your operating system. If you can locate it, you can set the start type to automatic. A very crud way is to run the tomcat startup file from autoexe.bat.
    I don't know how to do this in Linux. Here is a link for tomcat 6. Maybe it is the same in tomcat 4
    [http://tomcat.apache.org/tomcat-6.0-doc/setup.html]
    Edited by: nirvan on Dec 29, 2008 9:15 AM

  • Deploying WAR file using IAS Test Drive edition...

    Hi:
    Is it okay to deploy a build using a WAR file instead of an EAR file? Is
    there any documentation for deploying WAR files? All the available docs and
    examples start with EAR files.
    Thanks,
    George

    Hi,
    A war file is okay if you are using servlets & JSP, WAR means Web Archive.
    So you can very well go ahead with a war file, incase you are thinking of EJB's
    then a .ear file will help you.
    Regards
    Raj
    George Sang wrote:
    Hi:
    Is it okay to deploy a build using a WAR file instead of an EAR file? Is
    there any documentation for deploying WAR files? All the available docs and
    examples start with EAR files.
    Thanks,
    George

  • Images and js files within a deployed war file are generating 404 errors.

    Greetings,
    I have an odd situation in that image files and js files that are part of a deployed war file are generating 404 (not found) errors when accessed via https but ARE found when accessed via http.
    Unfortunately we are required to use https.
    I have verified via jar -tf that the files are indeed part of the war file. So, it is not that they are missing as is evident when accessed via http. (they appear as expected)
    A work around is to create the sub directories under the document root, on the ohs, and populate the sub directories with the images and js files that were used as part of the war file build. While this works, it doesn't explain why they would generate a 404 error when referenced from within the war via https.
    The war file works correctly on our 10g installation.
    I also have a very simple deployed war file and it too seems to have an issue finding direcotries/files that are part of the war file when referenced via https but not http.
    We are using Oracle 11g OHS and using the WLS Admin Console to do the deploying. We also are using the OSSO for the performing the required authentication.
    I have an SR in with oracle and have been working with them but I thought I would post here too.
    Suggestions?
    Thanks in advance.
    Edited by: emmett on Jan 5, 2011 2:47 PM

    Don't crosspost. Continue here: http://forum.java.sun.com/thread.jspa?threadID=5251627

  • Problem regarding running war file in Tomcat 4.1

    i uploaded a war file in Tomcat application manager..
    Running status of application is false ...
    By pressing START in COMMANDS still it shows false in RUNNING ..
    i got error
    FAIL - Application at context path /kannan could not be started...........

    hi
    restart your system and again you deploy in tomcat manager,
    or
    better you place your .war file under webapps and restart ur tomcat server once again ..
    after u c one folder create with ur war file name,
    after u go and access
    thats it..
    i hope it will helps u

Maybe you are looking for