java.lang.ClassCastException: org.mitre.hotspotting.live.web.SimpleRestService cannot be cast to javax.servlet.Servlet at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.ja va:1132) at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java: 832) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperVal ve.java:197) at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardCo ntextValve.java:271) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextVal ve.java:202) at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.jav a:632) at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.jav a:577)

Oracle Community | 392 Guest | 9 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    web.xml for restful jax-ws web service (using HTTPBinding)

    Oracle Community | 9 years ago | 392 Guest
    java.lang.ClassCastException: org.mitre.hotspotting.live.web.SimpleRestService cannot be cast to javax.servlet.Servlet at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.ja va:1132) at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java: 832) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperVal ve.java:197) at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardCo ntextValve.java:271) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextVal ve.java:202) at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.jav a:632) at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.jav a:577)
  2. 0

    'org.apache.struts2.dispatcher.FilterDispatcher cannot be cast to' - MARC

    marc.info | 1 year ago
    java.lang.ClassCastException: org.apache.struts2.dispatcher.FilterDispatche= r cannot be cast to javax.servlet.Filter at com.sun.enterprise.web.WebContainer.createFilterInstance(WebCont= ainer.java:715) at com.sun.enterprise.web.WebModule.createFilterInstance(WebModule.= java:1948) at org.apache.catalina.core.ApplicationFilterConfig.getFilter(Appli= cationFilterConfig.java:248) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter= (ApplicationFilterChain.java:237) at org.apache.catalina.core.ApplicationFilterChain.doFilter(Applica= tionFilterChain.java:215) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWra= pperValve.java:277) at org.apache.catalina.core.StandardContextValve.invoke(StandardCon= textValve.java:188) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipelin= e.java:641)

    Root Cause Analysis

    1. java.lang.ClassCastException

      org.mitre.hotspotting.live.web.SimpleRestService cannot be cast to javax.servlet.Servlet at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.ja va:1132) at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java: 832) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperVal ve.java:197) at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardCo ntextValve.java:271) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextVal ve.java:202) at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.jav a:632) at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.jav a:577)

      at com.sun.enterprise.web.WebPipeline.invoke()
    2. Glassfish
      WebPipeline.invoke
      1. com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:94)
      1 frame