tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Duffy <duff...@yahoo.com>
Subject Servlet Deployment Problem
Date Wed, 23 Apr 2003 20:09:47 GMT
I'm trying to deploy a servlet to Tomcat 4.1.24, using
Ant and the Catalina install task with context.xml and
web.xml descriptors.

When I deploy the servlet I get this exception out in
the context log file:

2003-04-23 14:18:35
StandardWrapper[/api-prototype:default]: Loading
container servlet default
2003-04-23 14:18:35 StandardContext[/api-prototype]:
Servlet /api-prototype threw load() exception
javax.servlet.ServletException: Servlet.init() for
servlet APIPrototypeServlet threw exception
	at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:963)
	at
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:823)
	at
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3420)
	at
org.apache.catalina.core.StandardContext.start(StandardContext.java:3608)
	at
org.apache.catalina.startup.HostConfig.checkWebXmlLastModified(HostConfig.java:614)
	at
org.apache.catalina.startup.HostConfig.run(HostConfig.java:854)
	at java.lang.Thread.run(Thread.java:536)
----- Root Cause -----
java.lang.NullPointerException
	at
javax.servlet.GenericServlet.getServletContext(GenericServlet.java:204)
	at
com.kaman.api.control.APIPrototypeServlet.init(Unknown
Source)
	at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:935)
	at
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:823)
	at
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3420)
	at
org.apache.catalina.core.StandardContext.start(StandardContext.java:3608)
	at
org.apache.catalina.startup.HostConfig.checkWebXmlLastModified(HostConfig.java:614)
	at
org.apache.catalina.startup.HostConfig.run(HostConfig.java:854)
	at java.lang.Thread.run(Thread.java:536)

I've never seen this before.  Can anyone tell me what
I've done wrong?  The web.xml and context.xml are both
well-formed XML, according to XMLNotepad.  Thanks - MOD

__________________________________________________
Do you Yahoo!?
The New Yahoo! Search - Faster. Easier. Bingo
http://search.yahoo.com

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message