1 Reply Latest reply on Feb 10, 2002 8:09 PM by sbm5c2j8

    NPE when only context name is entered as URL

    sbm5c2j8 Newbie

      http://localhost:8080/mytest/index.jsp works.
      but
      http://localhost:8080/mytest does not display index.jsp file.

      in web.xml
      <welcome-file-list>
      <welcome-file>index.jsp</welcome-file>
      </welcome-file-list>

      If I remove all servlets, it works OK. I am using CVS from today. (Feb 10, 2002)

      2002-02-10 20:00:32,350 WARN [org.jboss.jetty.Jetty] WARNING: Servlet Exception for /mytest/index.jsp
      java.lang.NullPointerException

      at java.util.Hashtable.get(Unknown Source)

      at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:376)

      at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:474)

      at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)

      at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:327)

      at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:556)

      at org.mortbay.http.HttpContext.handle(HttpContext.java:1273)

      at org.mortbay.jetty.servlet.FilterHandler$Chain.doFilter(FilterHandler.java:347)

      at org.mortbay.jetty.servlet.FilterHandler.handle(FilterHandler.java:207)

      at org.mortbay.http.HttpContext.handle(HttpContext.java:1273)

      at org.mortbay.http.handler.ResourceHandler.handleGet(ResourceHandler.java:374)

      at org.mortbay.http.handler.ResourceHandler.handle(ResourceHandler.java:272)

      at org.mortbay.http.HttpContext.handle(HttpContext.java:1273)

      at org.mortbay.jetty.servlet.FilterHandler$Chain.doFilter(FilterHandler.java:347)

      at org.mortbay.jetty.servlet.FilterHandler.handle(FilterHandler.java:207)

      at org.mortbay.http.HttpContext.handle(HttpContext.java:1273)

      at org.mortbay.http.HttpContext.handle(HttpContext.java:1227)

      at org.mortbay.http.HttpServer.service(HttpServer.java:733)

      at org.mortbay.http.HttpConnection.service(HttpConnection.java:748)

      at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:921)

      at org.mortbay.http.HttpConnection.handle(HttpConnection.java:763)

      at org.mortbay.http.SocketListener.handleConnection(SocketListener.java:145)

      at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:287)

      at org.mortbay.util.ThreadPool$JobRunner.run(ThreadPool.java:715)

      at java.lang.Thread.run(Unknown Source)