2 Replies Latest reply on Oct 13, 2002 7:49 PM by Max Wippert

    Accessing servlets via http://.../servlet/... does not work!

    Max Wippert Newbie

      Hi, my problem is, that I can not access my servlet with http://localhost/servlet/HelloWorld

      In META-INF/application I defined
      <context-root>/</context-root>
      and in WEB-INF/web.xml I defined
      <welcome-file-list>
      <welcome-file>index.html</welcome-file>
      <welcome-file>index.htm</welcome-file>
      </welcome-file-list>


      I can access http://localhost (and of course http://localhost/index.htm)

      But I can't access http://localhost/servlet/HelloWorld

      After defining
      <servlet-mapping>
      <servlet-name>HelloWorld</servlet-name>
      <url-pattern>*.maxHTML</url-pattern>
      </servlet-mapping>

      in WEB-INF/web.xml I can access my HelloWorld servlet with URLs like
      http://localhost/blub.maxHTML or http://localhost/what/is/going/wrong.maxHTML

      Any Idea what I am doing wrong?

      btw: dos.ear from http://www.jboss.org/modules/bb/index.html?module=bb&op=viewtopic&t=forums/ shows the same problem...

      I use JBoss3.0.3 with Tomcat4.1.12 with Java1.4.0_02 on Win2000. I attached my helloWorld.ear

      thanx, Max