tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefanos Karasavvidis <>
Subject getServletContext() throws NullPoinetException
Date Tue, 10 Jul 2001 14:46:04 GMT
I've just installed tomcat 3.2.2 and have the following problem.

I want to call getServletContext() from a servlets service method but 
get the folowing exception
*Internal Servlet Error:*

	at javax.servlet.GenericServlet.getServletContext(
	at TestServlet.service(
	at org.apache.tomcat.core.ServletWrapper.doService(
	at org.apache.tomcat.core.Handler.service(
	at org.apache.tomcat.core.ServletWrapper.service(
	at org.apache.tomcat.core.ContextManager.internalService(
	at org.apache.tomcat.core.ContextManager.service(
	at org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection(
	at org.apache.tomcat.service.TcpWorkerThread.runIt(
	at org.apache.tomcat.util.ThreadPool$

Moreover the getServletConfig() returns null which is probably the main 
reason for this problem

Any ideas??


View raw message