0 Replies Latest reply on Dec 1, 2003 2:53 AM by Dmitry Mozheyko

    WAR deploy

    Dmitry Mozheyko Novice

      I need to create simple servlet and i make next steps:

      1. jar cfv simple.war WEB-INF
      added manifest
      adding: WEB-INF/(in = 0) (out= 0)(stored 0%)
      adding: WEB-INF/classes/(in = 0) (out= 0)(stored 0%)
      adding: WEB-INF/classes/SomeServlet.class(in = 1793) (out= 1184)(deflated 33%)
      adding: WEB-INF/classes/SomeClass.class(in = 1785) (out= 1063)(deflated 40%)
      adding: WEB-INF/jboss-web.xml(in = 129) (out= 104)(deflated 19%)
      adding: WEB-INF/web.xml(in = 1257) (out= 460)(deflated 63%)

      2.Deploy this file into jboss with tomcat
      14:38:28,876 INFO [MainDeployer] Starting deployment of package: file:/home/jboss/jboss-3.2.2/server/default/deploy/simple.war
      14:38:29,055 INFO [EmbeddedTomcatService] deploy, ctxPath=/simple, warUrl=file:/home/jboss/jboss-3.2.2/server/default/tmp/deploy/tmp60749simple.war/
      14:38:29,441 INFO [Engine] ContextConfig[/simple]: Added certificates -> request attribute Valve
      14:38:29,442 INFO [Engine] ContextConfig[/simple]: Configured an authenticator for method BASIC
      14:38:29,456 WARN [EmbeddedTomcatService] Unable to invoke setDelegate on class loader:org.jboss.web.tomcat.tc4.WebCtxLoader$ENCLoader@14323d5
      14:38:29,457 INFO [Engine] StandardManager[/simple]: Seeding random number generator class java.security.SecureRandom
      14:38:29,458 INFO [Engine] StandardManager[/simple]: Seeding of random number generator has been completed
      14:38:29,460 INFO [Engine] StandardWrapper[/simple:default]: Loading container servlet default
      14:38:29,462 INFO [Engine] StandardWrapper[/simple:invoker]: Loading container servlet invoker
      14:38:30,296 INFO [MainDeployer] Deployed package: file:/home/jboss/jboss-3.2.2/server/default/deploy/simple.war

      3.On my request to this resource i receive:
      11:42:30,914 ERROR [Engine] StandardWrapperValve[SomeServlet]: Servlet.service() for servlet SomeServlet threw exception
      javax.servlet.ServletException: Servlet execution threw an exception
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256)
      at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
      at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
      at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
      at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
      at org.jboss.web.tomcat.security.JBossSecurityMgrRealm.invoke(JBossSecurityMgrRealm.java:220)
      at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
      at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:553)
      at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
      at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
      at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
      at org.jboss.web.tomcat.tc4.statistics.ContainerStatsValve.invoke(ContainerStatsValve.java:76)
      at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
      at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
      at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
      at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2416)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
      at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
      at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171)
      at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
      at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
      at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:65)
      at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
      at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:577)
      at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
      at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
      at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
      at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
      at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
      at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
      at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1040)
      at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1151)
      at java.lang.Thread.run(Thread.java:534)
      14:38:43,995 ERROR [Engine] ----- Root Cause -----
      java.lang.NoClassDefFoundError: SomeClass
      at Servlet.doGet(Servlet.java:16)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256)
      ...and more

      What's wrong ?