Hi,

After a post in tomcat-user and not getting a reply, I dug into the
Exception below myself and based on that I think it is appropiate to put it
here.

java.lang.NullPointerException
        at javax.servlet.http.HttpUtils.getRequestURL(HttpUtils.java:338)
        at
org.apache.catalina.connector.HttpResponseBase.toAbsolute(HttpResponseBase.j
ava:669)
        at
org.apache.catalina.connector.HttpResponseBase.sendRedirect(HttpResponseBase
.java:1072)
        at
org.apache.catalina.connector.HttpResponseFacade.sendRedirect(HttpResponseFa
cade.java:150)
        at
org.apache.catalina.servlets.DefaultServlet.serveResource(DefaultServlet.jav
a:1072)
        at
org.apache.catalina.servlets.DefaultServlet.doGet(DefaultServlet.java:519)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
<snap a lot <if intersting stuff is snapped, please let me know>


According to the code it tries to get the welcome page and doesn't succeed
and just redirects to null. This is only when using tomcat through apache,
on port 80 it's working fine.
So if you do :
http://<servername>/examples/
You get a nice directory listing. After you click on servlets, you will get
the exception. If you just type
http://<servername>/examples/servlets/index.html then everything is ok and
you can process the servlets..


Mvgr,
Martin

Reply via email to