tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stefan Langer" <mailtolan...@gmx.de>
Subject Tomcat 4.0 Servlet not recognized
Date Wed, 06 Feb 2002 19:32:41 GMT
Hello

I'm using Tomcat 4.0 standalone for developement under Eclipse. I have an
application that uses a single Servlet named Dispatcher as a request
dispatcher.
The Servlet extends HttpServlet. When I start tomcat as an Application in
Eclipse Tomcat starts up and trys to load the Servlet. The loading process
throws an exception saying that dispatcher is not a servlet.
Tomcat produces the following output at start up:

HttpConnector Opening server socket on all host IP addresses
HttpConnector Opening server socket on all host IP addresses
Starting service Tomcat-Standalone
Apache Tomcat/4.0
StandardHost[localhost]: Installing web application at context path
/AFW_Sample from URL file: C:\eclipse\workspace\AFW_Sample
WebappLoader[/AFW_Sample]: Deploying class repositories to work directory
C:\eclipse\workspace\work\localhost\AFW_Sample
StandardManager[/AFW_Sample]: Seeding random number generator class
java.security.SecureRandom
StandardManager[/AFW_Sample]: Seeding of random number generator has been
completed
ContextConfig[/AFW_Sample]: Missing default web.xml, using application
web.xml only
ContextConfig[/AFW_Sample]: Added certificates -> request attribute Valve
StandardWrapper[/AFW_Sample:jsp]: Using Jasper classloader for servlet jsp
jsp: init
StandardWrapper[/AFW_Sample:default]: Loading container servlet default
default: init
StandardWrapper[/AFW_Sample:disp]: Marking servlet disp as unavailable
StandardContext[/AFW_Sample]: Servlet /AFW_Sample threw load() exception
javax.servlet.ServletException: Class de.innuendo.uifw.http.Dispatcher is
not a Servlet
	at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:836)
	at
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:
3292)
	at
org.apache.catalina.core.StandardContext.start(StandardContext.java:3402)
	at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:785)
	at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:415)
	at org.apache.catalina.core.StandardHost.install(StandardHost.java:643)
	at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:300)
	at org.apache.catalina.startup.HostConfig.start(HostConfig.java:389)
	at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:232)
	at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSuppor
t.java:155)
	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1131)
	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)
	at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:307)
	at org.apache.catalina.core.StandardService.start(StandardService.java:388)
	at org.apache.catalina.core.StandardServer.start(StandardServer.java:505)
	at org.apache.catalina.startup.Catalina.start(Catalina.java:776)
	at org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
	at org.apache.catalina.startup.Catalina.process(Catalina.java:179)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
)
	at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25)
	at java.lang.reflect.Method.invoke(Method.java:324)
	at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:218)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
)
	at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25)
	at java.lang.reflect.Method.invoke(Method.java:324)
	at de.innuendo.uifw.generator.test.Start.main(Start.java:51)
----- Root Cause -----
java.lang.ClassCastException: de.innuendo.uifw.http.Dispatcher
	at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:832)
	at
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:
3292)
	at
org.apache.catalina.core.StandardContext.start(StandardContext.java:3402)
	at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:785)
	at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:415)
	at org.apache.catalina.core.StandardHost.install(StandardHost.java:643)
	at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:300)
	at org.apache.catalina.startup.HostConfig.start(HostConfig.java:389)
	at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:232)
	at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSuppor
t.java:155)
	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1131)
	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)
	at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:307)
	at org.apache.catalina.core.StandardService.start(StandardService.java:388)
	at org.apache.catalina.core.StandardServer.start(StandardServer.java:505)
	at org.apache.catalina.startup.Catalina.start(Catalina.java:776)
	at org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
	at org.apache.catalina.startup.Catalina.process(Catalina.java:179)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
)
	at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25)
	at java.lang.reflect.Method.invoke(Method.java:324)
	at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:218)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
)
	at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25)
	at java.lang.reflect.Method.invoke(Method.java:324)
	at de.innuendo.uifw.generator.test.Start.main(Start.java:51)

HttpConnector[8080] Starting background thread
HttpProcessor[8080][0] Starting background thread
HttpProcessor[8080][1] Starting background thread
HttpProcessor[8080][2] Starting background thread
HttpProcessor[8080][3] Starting background thread
HttpProcessor[8080][4] Starting background thread
HttpConnector[8081] Starting background thread
HttpProcessor[8081][0] Starting background thread
HttpProcessor[8081][1] Starting background thread
HttpProcessor[8081][2] Starting background thread
HttpProcessor[8081][3] Starting background thread
HttpProcessor[8081][4] Starting background thread

What is the reason for this behaviour? I have looked at the mailinglist
archive but haven't found anything.
Any help would be greatly appreciated!

Stefan
---
mailtolanger@gmx.de


--
To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>


Mime
View raw message