tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From William Brogden <wbrog...@bga.com>
Subject NullPointerException - home page
Date Fri, 17 Mar 2000 19:11:21 GMT
I have set Tomcat up on Win98 with no problem but on my WinNT system
I get a null pointer exception on trying for 
 http://localhost:8080/
Here is the complete tomcat.log

<l:addContext path="/examples"  docBase="webapps/examples" />
<l:addContext path=""  docBase="webapps/ROOT" />
<l:addContext path="/test"  docBase="webapps/test" />
<l:tomcat home="F:\jakarta-tomcat"
classPath="F:\jakarta-tomcat\classes;F:\jakarta-tomcat\lib\webserver.jar;F:\jakarta-tomcat\lib\jasper.jar;F:\jakarta-tomcat\lib\xml.jar;F:\jakarta-tomcat\lib\servlet.jar;D:\JDK1.2\lib\tools.jar"
/>
<l:addContext path="/admin"  docBase="webapps/admin" />
<l:startEndpoint port="8080"
handler="org.apache.tomcat.service.http.HttpConnectionHandler" />
<l:startEndpoint port="8007"
handler="org.apache.tomcat.service.connector.Ajp12ConnectionHandler"
/>
<l:ctx path="" ><b>Internal Servlet Error:</b><br>
<pre>
java.lang.NullPointerException
	at
org.apache.tomcat.servlets.DefaultServlet.serveFile(DefaultServlet.java:279)
	at
org.apache.tomcat.servlets.DefaultServlet.doGet(DefaultServlet.java:204)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:499)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
	at
org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java:390)
	at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:523)
	at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:146)
	at
org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoint.java:334)
	at java.lang.Thread.run(Thread.java:479)
</pre>
</l:ctx>
<l:removeContext path="/admin" />
<l:removeContext path="/examples" />


I think the location corresponds to the first use of contextF in the
serveFile
method (if I am reading the source correctly).

Java version is 

java version "1.2.2"
HotSpot VM (1.0fcs, mixed mode, build E)

Frankly, I'm mystified.

Mime
View raw message