0 Replies Latest reply on Apr 7, 2003 5:34 PM by lacehater

    Subdirectory-Problem with Servlets

    lacehater

      Hi,

      i have quite a strange Problem with getting a Servlet to react to requests for http://localhost:8080/ejbTest/client/launch.jnlp

      I have an ejbTest.war in the deploy-Directory of the server, which contains the following structure:

      /client/launch.jnlp
      /client/client.jar
      /WEB-INF/web.xml
      /WEB-INF/jboss-web.xml
      /WEB-INF/lib/jnlp-servlet.jar

      web.xml has the following content:

      <?xml version="1.0" encoding="UTF-8"?>
      <!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-name>JnlpDownloadServlet</servlet-name>
      <servlet-class>com.sun.javaws.servlet.JnlpDownloadServlet</servlet-class>


      <servlet-mapping>
      <servlet-name>JnlpDownloadServlet</servlet-name>
      <url-pattern>/client/launch.jnlp</url-pattern>
      </servlet-mapping>

      </web-app>

      This war-deployment works quite fine using only tomcat.

      However when using JBoss, the plain-text launch.jnlp gets delivered to the client, instead of calling the servlet.

      What's strange, however, is that if calling http://localhost:8080/ejbTest/launch.jnlp, it works as it should work when /ejbTest/client/launch.jnlp would be called.

      Has anyone ever experienced such strange Problems with subdirectorys? Am I missing something?

      Attatched is the war-file containing the application, it contains some other classes, too, but the ones specified above are affected.

      Thanks for any help.

      Michael