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

Oracle Community | msreekanth | 9 years ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    unable to deploy a simple webservice on GFv3

    Oracle Community | 9 years ago | msreekanth
    java.lang.ClassCastException: com.smi.ws.test.Hello cannot be cast to javax.servlet.Servlet
  2. 0

    Class is not a Servlet Error - Help!!!

    Oracle Community | 1 decade ago | 843840
    java.lang.ClassCastException: Home
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    Is not a Servlet Exception

    Oracle Community | 1 decade ago | 843840
    java.lang.ClassCastException: org.stevengould.javaworld.RequestDetails

    Root Cause Analysis

    1. java.lang.ClassCastException

      com.smi.ws.test.Hello cannot be cast to javax.servlet.Servlet

      at org.apache.catalina.core.StandardWrapper.loadServlet()
    2. Glassfish Core
      ContainerBase.invoke
      1. org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1148)
      2. org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:848)
      3. org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
      4. org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:287)
      5. org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:218)
      6. org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)
      7. org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)
      8. org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:587)
      9. org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:222)
      10. org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)
      11. org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)
      12. org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:587)
      13. org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1096)
      14. org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:166)
      15. org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)
      16. org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)
      17. org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:587)
      18. org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1096)
      18 frames
    3. org.apache.coyote
      CoyoteAdapter.service
      1. org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:286)
      1 frame
    4. Grizzly WS
      DefaultProtocolFilter.execute
      1. com.sun.grizzly.http.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:605)
      2. com.sun.grizzly.http.DefaultProcessorTask.doProcess(DefaultProcessorTask.java:536)
      3. com.sun.grizzly.http.DefaultProcessorTask.process(DefaultProcessorTask.java:785)
      4. com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:137)
      4 frames
    5. Kernel Classes
      GlassfishProtocolChain.executeProtocolFilter
      1. com.sun.enterprise.v3.services.impl.HttpProtocolFilter.execute(HttpProtocolFilter.java:129)
      2. com.sun.enterprise.v3.services.impl.GlassfishProtocolChain.executeProtocolFilter(GlassfishProtocolChain.java:61)
      2 frames
    6. Grizzly WS
      WorkerThreadImpl.run
      1. com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:89)
      2. com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:75)
      3. com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:52)
      4. com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:54)
      5. com.sun.grizzly.util.WorkerThreadImpl.run(WorkerThreadImpl.java:154)
      5 frames