java.lang.ClassCastException: com.smi.ws.test.Hello cannot be cast to javax.servlet.Servlet

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via Oracle Community by msreekanth, 1 year ago
com.smi.ws.test.Hello cannot be cast to javax.servlet.Servlet
via Coderanch by Y D Prakash, 11 months ago
com.app.wsclass.WSList cannot be cast to javax.servlet.Servlet
via hivmr.com by Unknown author, 1 year ago
com.mycompany.MySuperWebservice cannot be cast to javax.servlet.Servlet
via Stack Overflow by Georgrio
, 8 months ago
org.uiowa.logsdon.genespot.JobInformation.GeneSpotAnalysis cannot be cast to javax.servlet.Servlet
via Stack Overflow by Sanchit Jain
, 2 years ago
org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher cannot be cast to javax.servlet.Servlet
via Stack Overflow by nikhil
, 2 years ago
com.test.server.SummaryBuilderServiceImpl cannot be cast to javax.servlet.Servlet
java.lang.ClassCastException: com.smi.ws.test.Hello cannot be cast to javax.servlet.Servlet
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1148)
at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:848)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:287)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:218)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:587)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:222)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:587)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1096)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:166)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:587)
at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:286)
at com.sun.grizzly.http.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:605)
at com.sun.grizzly.http.DefaultProcessorTask.doProcess(DefaultProcessorTask.java:536)
at com.sun.grizzly.http.DefaultProcessorTask.process(DefaultProcessorTask.java:785)
at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:137)
at com.sun.enterprise.v3.services.impl.HttpProtocolFilter.execute(HttpProtocolFilter.java:129)
at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:89)
at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:75)
at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:52)
at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:54)
at com.sun.grizzly.util.WorkerThreadImpl.run(WorkerThreadImpl.java:154)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
6 more bugmates

Know the solutions? Share your knowledge to help other developers to debug faster.