7 Replies Latest reply on Aug 4, 2004 11:50 AM by briana

    Simple Web App Deploy Fails

    briana

      I'm new to Jboss and I'm getting a deploy failure when deploying a test.war file to \jboss-3.2.5\server\default\deploy for a simple servlet test.
      My Web application fails install (No EJBs), so I'm going to basics. Am I missing something here?

      The war file includes:

      WEB-INF\web.xml
      WEB-INF\jboss-web.xml (nothing added from empty template)
      WEB-INF\classes\TestingServlet.class

      Any suggestions are appreciated.

      Error Message:
      MBeans waiting for other MBeans:
      ObjectName: jboss.web.deployment:war=test.war,id=-106315609
      state: FAILED
      I Depend On:
      Depends On Me: MBeanException: org.jboss.deployment.DeploymentException: URL fi
      le:/E:/jboss-3.2.5/server/default/tmp/deploy/tmp62196test.war/ deployment failed

      Cause: org.jboss.deployment.DeploymentException: URL file:/E:/jboss-3.2.5/server
      /default/tmp/deploy/tmp62196test.war/ deployment failed

      MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM:
      ObjectName: jboss.web.deployment:war=test.war,id=-106315609
      state: FAILED
      I Depend On:
      Depends On Me: MBeanException: org.jboss.deployment.DeploymentException: URL fi
      le:/E:/jboss-3.2.5/server/default/tmp/deploy/tmp62196test.war/ deployment failed

      Cause: org.jboss.deployment.DeploymentException: URL file:/E:/jboss-3.2.5/server
      /default/tmp/deploy/tmp62196test.war/ deployment failed

      12:21:19,012 INFO [Server] JBoss (MX MicroKernel) [3.2.5 (build: CVSTag=JBoss_3
      _2_5 date=200406251954)] Started in 13s:813ms
      12:21:19,012 INFO [Tomcat5] Saw org.jboss.system.server.started notification, s
      tarting connectors
      12:21:19,074 INFO [Http11Protocol] Starting Coyote HTTP/1.1 on http-0.0.0.0-808
      0
      12:21:19,215 INFO [ChannelSocket] JK2: ajp13 listening on /0.0.0.0:8009
      12:21:19,230 INFO [JkMain] Jk running ID=0 time=0/46 config=null

        • 1. Re: Simple Web App Deploy Fails
          briana

          Here is the servlet code... pretty straight forward.

          import javax.servlet.*;
          import javax.servlet.http.*;
          import java.io.*;
          import java.util.*;

          public class TestingServlet extends HttpServlet {

          public void doGet(HttpServletRequest request,
          HttpServletResponse response)
          throws ServletException, IOException {

          PrintWriter out = response.getWriter();
          out.println("");
          out.println("");
          out.println("Servlet Testing");
          out.println("");
          out.println("");
          out.println("Welcome to the Servlet Testing Center");
          out.println("");
          out.println("");
          }
          }

          • 2. Re: Simple Web App Deploy Fails
            darranl

            Are there any errors higher in the output?

            • 3. Re: Simple Web App Deploy Fails
              briana

              I think I got them all, but I just realized I should also be checking the log files. I looked at server.log and see some additional detail. One error is

              ERROR [org.apache.catalina.startup.ContextConfig] Parse error in application web.xml
              java.lang.IllegalArgumentException: Servlet mapping specifies an unknown servlet name TestingServlet

              A second is "Incomplete Deployment Listing"

              Here's the web.xml - I tried also tried adding the tag <servlet-class>TestingServlet</servlet-class> with the same errors. Are there other required config files for this simple servlet deployment?

              <?xml version="1.0"?>
              <!DOCTYPE web-app PUBLIC
              "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
              "http://java.sun.com/dtd/web-app_2_3.dtd">
              <web-app>
              <display-name>HR</display-name>
              HR Misc Apps

              <servlet-mapping>
              <servlet-name>TestingServlet</servlet-name>
              <url-pattern>/test</url-pattern>
              </servlet-mapping>
              </web-app>

              Here's the full report from the server startup console:

              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
              sorImpl.java:25)
              at java.lang.reflect.Method.invoke(Method.java:324)
              at org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.
              java:60)
              at org.jboss.mx.server.Invocation.dispatch(Invocation.java:61)
              at org.jboss.mx.server.Invocation.dispatch(Invocation.java:53)
              at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
              at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.
              java:185)
              at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:473)
              at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
              at $Proxy31.start(Unknown Source)
              at org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:31
              3)
              at org.jboss.deployment.MainDeployer.start(MainDeployer.java:836)
              at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:645)
              at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:608)
              at sun.reflect.GeneratedMethodAccessor17.invoke(Unknown Source)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
              sorImpl.java:25)
              at java.lang.reflect.Method.invoke(Method.java:324)
              at org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.
              java:60)
              at org.jboss.mx.server.Invocation.dispatch(Invocation.java:61)
              at org.jboss.mx.server.Invocation.dispatch(Invocation.java:53)
              at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
              at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.
              java:185)
              at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:473)
              at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
              at $Proxy7.deploy(Unknown Source)
              at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymen
              tScanner.java:304)
              at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentS
              canner.java:478)
              at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.
              doScan(AbstractDeploymentScanner.java:201)
              at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(A
              bstractDeploymentScanner.java:274)
              at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanS
              upport.java:271)
              at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMB
              eanSupport.java:221)
              at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
              sorImpl.java:25)
              at java.lang.reflect.Method.invoke(Method.java:324)
              at org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.
              java:60)
              at org.jboss.mx.server.Invocation.dispatch(Invocation.java:61)
              at org.jboss.mx.server.Invocation.dispatch(Invocation.java:53)
              at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
              at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.
              java:185)
              at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:473)
              at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceControl
              ler.java:837)
              at $Proxy0.start(Unknown Source)
              at org.jboss.system.ServiceController.start(ServiceController.java:367)
              at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
              sorImpl.java:25)
              at java.lang.reflect.Method.invoke(Method.java:324)
              at org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.
              java:60)
              at org.jboss.mx.server.Invocation.dispatch(Invocation.java:61)
              at org.jboss.mx.server.Invocation.dispatch(Invocation.java:53)
              at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
              at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.
              java:185)
              at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:473)
              at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
              at $Proxy4.start(Unknown Source)
              at org.jboss.deployment.SARDeployer.start(SARDeployer.java:251)
              at org.jboss.deployment.MainDeployer.start(MainDeployer.java:836)
              at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:645)
              at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:608)
              at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:592)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
              java:39)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
              sorImpl.java:25)
              at java.lang.reflect.Method.invoke(Method.java:324)
              at org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.
              java:60)
              at org.jboss.mx.server.Invocation.dispatch(Invocation.java:61)
              at org.jboss.mx.server.Invocation.dispatch(Invocation.java:53)
              at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
              at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.
              java:185)
              at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:473)
              at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
              at $Proxy5.deploy(Unknown Source)
              at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:407)
              at org.jboss.system.server.ServerImpl.start(ServerImpl.java:311)
              at org.jboss.Main.boot(Main.java:145)
              at org.jboss.Main$1.run(Main.java:399)
              at java.lang.Thread.run(Thread.java:534)
              Caused by: org.jboss.deployment.DeploymentException: URL file:/E:/jboss-3.2.5/se
              rver/default/tmp/deploy/tmp23703test.war/ deployment failed
              at org.jboss.web.tomcat.tc5.TomcatDeployer.performDeployInternal(TomcatD
              eployer.java:306)
              at org.jboss.web.tomcat.tc5.TomcatDeployer.performDeploy(TomcatDeployer.
              java:70)
              at org.jboss.web.AbstractWebDeployer.start(AbstractWebDeployer.java:306)

              at org.jboss.web.WebModule.startModule(WebModule.java:62)
              at org.jboss.web.WebModule.startService(WebModule.java:40)
              at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanS
              upport.java:271)
              at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMB
              eanSupport.java:221)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
              java:39)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
              sorImpl.java:25)
              at java.lang.reflect.Method.invoke(Method.java:324)
              at org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.
              java:60)
              ... 85 more
              11:40:18,800 ERROR [MainDeployer] could not start deployment: file:/E:/jboss-3.2
              .5/server/default/deploy/test.war
              org.jboss.deployment.DeploymentException: URL file:/E:/jboss-3.2.5/server/defaul
              t/tmp/deploy/tmp23703test.war/ deployment failed
              at org.jboss.web.tomcat.tc5.TomcatDeployer.performDeployInternal(TomcatD
              eployer.java:306)
              at org.jboss.web.tomcat.tc5.TomcatDeployer.performDeploy(TomcatDeployer.
              java:70)
              at org.jboss.web.AbstractWebDeployer.start(AbstractWebDeployer.java:306)

              at org.jboss.web.WebModule.startModule(WebModule.java:62)
              at org.jboss.web.WebModule.startService(WebModule.java:40)
              at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanS
              upport.java:271)
              at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMB
              eanSupport.java:221)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
              java:39)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
              sorImpl.java:25)
              at java.lang.reflect.Method.invoke(Method.java:324)
              at org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.
              java:60)
              at org.jboss.mx.server.Invocation.dispatch(Invocation.java:61)
              at org.jboss.mx.server.Invocation.dispatch(Invocation.java:53)
              at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
              at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.
              java:185)
              at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:473)
              at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceControl
              ler.java:837)
              at $Proxy17.start(Unknown Source)
              at org.jboss.system.ServiceController.start(ServiceController.java:367)
              at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
              sorImpl.java:25)
              at java.lang.reflect.Method.invoke(Method.java:324)
              at org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.
              java:60)
              at org.jboss.mx.server.Invocation.dispatch(Invocation.java:61)
              at org.jboss.mx.server.Invocation.dispatch(Invocation.java:53)
              at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
              at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.
              java:185)
              at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:473)
              at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
              at $Proxy31.start(Unknown Source)
              at org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:31
              3)
              at org.jboss.deployment.MainDeployer.start(MainDeployer.java:836)
              at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:645)
              at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:608)
              at sun.reflect.GeneratedMethodAccessor17.invoke(Unknown Source)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
              sorImpl.java:25)
              at java.lang.reflect.Method.invoke(Method.java:324)
              at org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.
              java:60)
              at org.jboss.mx.server.Invocation.dispatch(Invocation.java:61)
              at org.jboss.mx.server.Invocation.dispatch(Invocation.java:53)
              at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
              at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.
              java:185)
              at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:473)
              at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
              at $Proxy7.deploy(Unknown Source)
              at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymen
              tScanner.java:304)
              at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentS
              canner.java:478)
              at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.
              doScan(AbstractDeploymentScanner.java:201)
              at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(A
              bstractDeploymentScanner.java:274)
              at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanS
              upport.java:271)
              at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMB
              eanSupport.java:221)
              at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
              sorImpl.java:25)
              at java.lang.reflect.Method.invoke(Method.java:324)
              at org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.
              java:60)
              at org.jboss.mx.server.Invocation.dispatch(Invocation.java:61)
              at org.jboss.mx.server.Invocation.dispatch(Invocation.java:53)
              at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
              at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.
              java:185)
              at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:473)
              at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceControl
              ler.java:837)
              at $Proxy0.start(Unknown Source)
              at org.jboss.system.ServiceController.start(ServiceController.java:367)
              at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
              sorImpl.java:25)
              at java.lang.reflect.Method.invoke(Method.java:324)
              at org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.
              java:60)
              at org.jboss.mx.server.Invocation.dispatch(Invocation.java:61)
              at org.jboss.mx.server.Invocation.dispatch(Invocation.java:53)
              at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
              at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.
              java:185)
              at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:473)
              at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
              at $Proxy4.start(Unknown Source)
              at org.jboss.deployment.SARDeployer.start(SARDeployer.java:251)
              at org.jboss.deployment.MainDeployer.start(MainDeployer.java:836)
              at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:645)
              at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:608)
              at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:592)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
              java:39)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
              sorImpl.java:25)
              at java.lang.reflect.Method.invoke(Method.java:324)
              at org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.
              java:60)
              at org.jboss.mx.server.Invocation.dispatch(Invocation.java:61)
              at org.jboss.mx.server.Invocation.dispatch(Invocation.java:53)
              at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
              at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.
              java:185)
              at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:473)
              at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
              at $Proxy5.deploy(Unknown Source)
              at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:407)
              at org.jboss.system.server.ServerImpl.start(ServerImpl.java:311)
              at org.jboss.Main.boot(Main.java:145)
              at org.jboss.Main$1.run(Main.java:399)
              at java.lang.Thread.run(Thread.java:534)
              11:40:18,816 ERROR [URLDeploymentScanner] Incomplete Deployment listing:
              Incompletely deployed packages:
              org.jboss.deployment.DeploymentInfo@f9a9c0a7 { url=file:/E:/jboss-3.2.5/server/d
              efault/deploy/test.war }
              deployer: org.jboss.web.tomcat.tc5.Tomcat5@1603522
              status: Deployment FAILED reason: URL file:/E:/jboss-3.2.5/server/default/tmp/
              deploy/tmp23703test.war/ deployment failed
              state: FAILED
              watch: file:/E:/jboss-3.2.5/server/default/deploy/test.war
              lastDeployed: 1091547618535
              lastModified: 1091547618503
              mbeans:

              MBeans waiting for other MBeans:
              ObjectName: jboss.web.deployment:war=test.war,id=-106315609
              state: FAILED
              I Depend On:
              Depends On Me: MBeanException: org.jboss.deployment.DeploymentException: URL fi
              le:/E:/jboss-3.2.5/server/default/tmp/deploy/tmp23703test.war/ deployment failed

              Cause: org.jboss.deployment.DeploymentException: URL file:/E:/jboss-3.2.5/server
              /default/tmp/deploy/tmp23703test.war/ deployment failed

              MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM:
              ObjectName: jboss.web.deployment:war=test.war,id=-106315609
              state: FAILED
              I Depend On:
              Depends On Me: MBeanException: org.jboss.deployment.DeploymentException: URL fi
              le:/E:/jboss-3.2.5/server/default/tmp/deploy/tmp23703test.war/ deployment failed

              Cause: org.jboss.deployment.DeploymentException: URL file:/E:/jboss-3.2.5/server
              /default/tmp/deploy/tmp23703test.war/ deployment failed

              11:40:18,956 INFO [Server] JBoss (MX MicroKernel) [3.2.5 (build: CVSTag=JBoss_3
              _2_5 date=200406251954)] Started in 13s:999ms
              11:40:18,972 INFO [Tomcat5] Saw org.jboss.system.server.started notification, s
              tarting connectors
              11:40:19,019 INFO [Http11Protocol] Starting Coyote HTTP/1.1 on http-0.0.0.0-808
              0
              11:40:19,175 INFO [ChannelSocket] JK2: ajp13 listening on /0.0.0.0:8009
              11:40:19,175 INFO [JkMain] Jk running ID=0 time=0/47 config=null

              • 4. Re: Simple Web App Deploy Fails
                john_anderson_ii

                 

                "briana" wrote:

                <?xml version="1.0"?>
                <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">
                <web-app>
                <display-name>HR</display-name>
                <description>HR Misc Apps</description>

                <servlet-mapping>
                <servlet-name>TestingServlet</servlet-name>
                <url-pattern>/test</url-pattern>
                </servlet-mapping>
                </web-app>


                Is this the full text of your web.xml file? If so, you need to declare the servlet before you declare it's mapping. Like this:

                <?xml version="1.0"?>
                <!DOCTYPE web-app PUBLIC
                 "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
                 "http://java.sun.com/dtd/web-app_2_3.dtd">
                <web-app>
                
                 <servlet>
                 <servlet-name>TestServlet</servlet-name>
                 <display-name>Test Servlet</display-name>
                 <description><![CDATA[None Available]]></description>
                 <servlet-class>org.yourpackage.web.TestServlet</servlet-class>
                 </servlet>
                
                 <servlet-mapping>
                 <servlet-name>TestServlet</servlet-name>
                 <url-pattern>test</url-pattern>
                 </servlet-mapping>
                </web-app>
                


                • 5. Re: Simple Web App Deploy Fails
                  briana

                  I tried your suggestion and it looks like we're making progress. The server.log now gives the below error. The exact web.xml is also listed below. Do you know why this URL pattern would be invalid?

                  2004-08-03 15:48:25,488 ERROR [org.apache.catalina.startup.ContextConfig] Parse error in application web.xml
                  java.lang.IllegalArgumentException: Invalid <url-pattern> test in servlet mapping


                  web.xml:
                  <?xml version="1.0"?>
                  <!DOCTYPE web-app PUBLIC
                  "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
                  "http://java.sun.com/dtd/web-app_2_3.dtd">
                  <web-app>
                  <display-name>HR</display-name>
                  HR Misc Apps


                  <servlet-name>TestingServlet</servlet-name>
                  <display-name>Test Servlet</display-name>
                  Test Servlet
                  <servlet-class>TestingServlet</servlet-class>


                  <servlet-mapping>
                  <servlet-name>TestingServlet</servlet-name>
                  <url-pattern>test</url-pattern>
                  </servlet-mapping>
                  </web-app>

                  • 6. Re: Simple Web App Deploy Fails
                    john_anderson_ii

                    I hope the un-tag-enclosed strings "HR Misc Apps" and "Test Servlet" are actually in CDATA tags like this:

                    <description><![CDATA[None Available]]></description>
                    


                    If you use the code and /code tags inside [] it will display your code properly.

                    The URL patter must begin with a "/" So try /test instead of test, or you could try /test/testservlet. This path is relative to the context root of the webserver, so with /test as a URL pattern your servlet would be accessed via something like http://localhost:8080/test. Using the /test/testservlet pattern your servlet would be accessed via http://localhost:8080/test/testservlet.

                    There is a possible pitfall here. If you did not define a form with a METHOD=POST declaration, and use that html form to access your servlet your servlet will not work! If you try to browse to http://localhost:8080/test directly you will get an error. The reason why is that you implemented the doPost method, and a browser's default action is GET.

                    • 7. Re: Simple Web App Deploy Fails
                      briana

                      Adding the / to test corrected the issue and JBoss is now deploying it without errors. I haven't set up an html file to test this and just wanted to be able to deploy the servlet. I'll go back to my Web app and appropriately configure the web.xml and attempt to deploy it. It's odd that Tomcat 3.2.4 allowed it to run fine without many of the tags required by either the newer version or JBoss 3.2.5

                      Thanks for your assistance!