2 Replies Latest reply on Aug 3, 2003 3:12 AM by klutus

    Servlet mapped JSPs fail (Jboss3.2.1/Jetty/win2k)

    klutus Newbie

      I have a very simple web, in this web I have mapped some URLs to servlets.

      these servlets are JSPs


      <servlet-name>web31</servlet-name>
      <jsp-file>parser.jsp</jsp-file>

      <servlet-mapping>
      <servlet-name>web31</servlet-name>
      <url-pattern>*.htm</url-pattern>
      </servlet-mapping>

      then jsp does this and that.......

      this have worked well in Orion, now I'm migrating to Jboss/Jetty and I would like it work there as well :-)

      Basically I'm using it to very simply handle all htm's equally and add some decorations around a htm page.

      the parser jsp also slects format of these decorations depending on browser type.


      ANY JSP run through a servlet mapping like the above, generate this error; all other JSP's work fine, including calling that very same parser.jsp directly

      00:24:24,015 WARN [jbossweb] WARNING: Exception for /web31/plugnplay.htm
      java.lang.StringIndexOutOfBoundsException: String index out of range: 0
      at java.lang.String.charAt(String.java:455)
      at org.apache.jasper.JspCompilationContext.(JspCompilationContext.java:135)
      at org.apache.jasper.servlet.JspServletWrapper.(JspServletWrapper.java:123)
      at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:288)
      at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
      at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:360)
      at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:294)
      at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:558)
      at org.mortbay.http.HttpContext.handle(HttpContext.java:1714)
      at org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext.java:507)
      at org.mortbay.http.HttpContext.handle(HttpContext.java:1664)
      at org.mortbay.http.HttpServer.service(HttpServer.java:863)
      at org.jboss.jetty.Jetty.service(Jetty.java:460)
      at org.mortbay.http.HttpConnection.service(HttpConnection.java:775)
      at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:939)
      at org.mortbay.http.HttpConnection.handle(HttpConnection.java:792)
      at org.mortbay.http.SocketListener.handleConnection(SocketListener.java:201)
      at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:289)
      at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:455)

      I need heko on this one!

      // Jan