2 Replies Latest reply on Aug 7, 2003 12:40 AM by Jon Barnett

    problem of deploying a simple example

    sys user Master

      hi, I got a problem when I deployed a very simple
      sample under jboss-3.2.1_tomcat-4.1.24, the same
      sample works well under jboss-3.2.1 with a Jetty
      container. The file structure of the war file
      "example2.war" is :
      ====================
      index.jsp
      - WEB-INF
      web.xml
      - classes
      HelloWorld.class
      - lib
      ====================

      web.xml has nothing special:
      ===================================
      <?xml version="1.0" encoding="ISO-8859-1"?>

      <!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>
      </web-app>
      ====================================

      every time I try to call HelloWorld servlet by
      http://localhost:8080/example2/servlet/HelloWorld
      404 error happens. index.jsp can be displayed
      correctly by
      http://localhost:8080/example2/index.jsp

      the same war file works well under jboss-3.2.1
      with Jetty container, but wrong under
      jboss-3.2.1_tomcat-4.1.24 with that problem.

      I am wondering why a ".../servlet/..." needed here,
      since there is no any mapping action in web.xml,
      anyone knows what's happenned and how to fix
      it?

      Thanks