0 Replies Latest reply on Apr 9, 2011 9:04 AM by Abhishek Bhargava

    Error : java.lang.ClassCastException: org.apache.catalina.connector.RequestFacade at FilterDispatcher.doFilter

    Abhishek Bhargava Newbie

      Hi,

          I am using jboss-5.1.0.GA and Struts2.1 based application.

          Deployment has been successfully done, but whenever I tried to access any resource(using url) the below mentioned exception occurs

       

      18:22:04,609 ERROR [[default]] Servlet.service() for servlet default threw exception

      java.lang.ClassCastException: org.apache.catalina.connector.RequestFacade

          at org.apache.struts2.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:354)

          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)

          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

          at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)

          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)

          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

          at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:235)

          at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)

          at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:190)

          at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:92)

          at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEstablishmentValve.java:126)

          at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:70)

          at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)

          at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)

          at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158)

          at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)

          at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:330)

          at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:829)

          at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:598)

          at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)

          at java.lang.Thread.run(Unknown Source)

       

      I searched this on net as well, where it has been mentioned regarding the misplaced location for servlet-api jar.

      Presently in application servlet-api jar is present in common\lib folder of Jboss and not present at any other place.

       

      Waiting for your replies.

       

      Thanks in advance.

      Regards

      Abhishek