tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Adrian Wilford <adri...@peregrine.co.za>
Subject Class GtorActionServlet is not a Servlet
Date Mon, 21 Feb 2005 14:41:05 GMT
Hi,
I am having a problem with Tomcat - I am running JBOSS 4.0.1 using Tomcat as 
the web container, and I am getting this odd Exception thrown, it says that 
my class (which definitely extends Servlet) is not a Servlet ?!?!?

I see that a ClassCastException is the root cause.

Anyone have any idea what may cause this?

Any help appreciated.

Thanks,
Adrian Wilford 

(see stack trace below)

14:47:51,278 INFO  [TomcatDeployer] deploy, ctxPath=/, 
warUrl=file:/usr/local/bin/jboss-4.0.0/server/default/tmp/deploy/tmp18955Gtor.ear-contents/Gtor-exp.war/
14:47:51,811 INFO  [Engine] StandardContext[]Marking servlet Gtor as 
unavailable
14:47:51,812 ERROR [Engine] StandardContext[]Servlet  threw load() exception
javax.servlet.ServletException: Class GtorActionServlet is not a Servlet
        at 
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:991)
        at 
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:862)
        at 
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4013)
        at 
org.apache.catalina.core.StandardContext.start(StandardContext.java:4357)
        at 
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:823)
        at 
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807)
        at 
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:595)
        at sun.reflect.GeneratedMethodAccessor97.invoke(Unknown Source)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:324)
        at 
org.apache.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java:503)
        at 
org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:150)
        at 
org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642)
        at 
org.apache.catalina.core.StandardContext.init(StandardContext.java:5441)
        at sun.reflect.GeneratedMethodAccessor96.invoke(Unknown Source)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:324)
        at 
org.apache.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java:503)
        at 
org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:150)
        at 
org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642)
        at 
org.jboss.web.tomcat.tc5.TomcatDeployer.performDeployInternal(TomcatDeployer.java:336)
        at 
org.jboss.web.tomcat.tc5.TomcatDeployer.performDeploy(TomcatDeployer.java:83)
        at 
org.jboss.web.AbstractWebDeployer.start(AbstractWebDeployer.java:370)
        at org.jboss.web.WebModule.startModule(WebModule.java:62)
        at org.jboss.web.WebModule.startService(WebModule.java:40)
        at 
org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:271)
        at 
org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:221)
        at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:324)
        at 
org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
        at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
        at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
        at 
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:242)
        at 
org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642)
        at 
org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:891)
        at $Proxy0.start(Unknown Source)
        at 
org.jboss.system.ServiceController.start(ServiceController.java:416)
        at sun.reflect.GeneratedMethodAccessor7.invoke(Unknown Source)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:324)
        at 
org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
        at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
        at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
        at 
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:242)
        at 
org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642)
        at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
        at $Proxy24.start(Unknown Source)
        at 
org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:362)
        at org.jboss.deployment.MainDeployer.start(MainDeployer.java:935)
        at org.jboss.deployment.MainDeployer.start(MainDeployer.java:927)
        at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:746)
        at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:709)
        at sun.reflect.GeneratedMethodAccessor16.invoke(Unknown Source)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:324)
        at 
org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
        at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
        at 
org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:119)
        at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
        at 
org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:131)
        at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
        at 
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:242)
        at 
org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642)
        at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
        at $Proxy8.deploy(Unknown Source)
        at 
org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:305)
        at 
org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:463)
        at 
org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:204)
        at 
org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:215)
        at 
org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:194)
14:47:51,854 ERROR [Engine] ----- Root Cause -----
java.lang.ClassCastException
        at 
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:987)
        at 
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:862)
        at 
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4013)
        at 
org.apache.catalina.core.StandardContext.start(StandardContext.java:4357)
        at 
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:823)
        at 
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807)
        at 
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:595)


---------------------------------------------------------------------
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