0

1.on websphere server getting java.lang.ClassCastException: org.jboss.seam.web.ContextFilter incompatible with javax.servlet.Filter

2.it is working on jboss app server.

3.ContextFilter is a filter applied to /* in web.xml hence when applications is accessed , error is shown.

3.class hierarchy of ContextFilter
ContextFilter extends AbstractFilter

AbstractFilter implements javax.servlet.Filter

4.but still while application is accessed from it is showing "not a filter"

5.ContextFilter is a class in jar : jboss-seam.jar this jar file and class file in present in web-inf/lib

6.complete stack trace : 12/20/22 13:10:23:075 IST] 0000006b webapp ᅠ ᅠ ᅠ ᅠE com.ibm.ws.webcontainer.webapp.WebApp logServletError SRVE0293E: [Servlet Error]-[com.ibm.ws.webcontainer.extension.DefaultExtensionProcessor]: java.lang.ClassCastException: org.jboss.seam.web.ContextFilter incompatible with javax.servlet.Filter ᅠ ᅠ ᅠ ᅠ at com.ibm.ws.webcontainer.filter.WebAppFilterManager._loadFilter(WebAppFilterManager.java:572) ᅠ ᅠ ᅠ ᅠ at com.ibm.ws.webcontainer.filter.WebAppFilterManager.loadFilter(WebAppFilterManager.java:514) ᅠ ᅠ ᅠ ᅠ at com.ibm.ws.webcontainer.filter.WebAppFilterManager.getFilterInstanceWrapper(WebAppFilterManager.java:319) ᅠ ᅠ ᅠ ᅠ at com.ibm.ws.webcontainer.filter.WebAppFilterManager.getFilterChain(WebAppFilterManager.java:392) ᅠ ᅠ ᅠ ᅠ at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:931) ᅠ ᅠ ᅠ ᅠ at com.ibm.ws.webcontainer.filter.WebAppFilterManager.invokeFilters(WebAppFilterManager.java:1107) ᅠ ᅠ ᅠ ᅠ at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:4047) ᅠ ᅠ ᅠ ᅠ at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:304) ᅠ ᅠ ᅠ ᅠ at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:1016) ᅠ ᅠ ᅠ ᅠ at com.ibm.ws.webcontainer.WSWebContainer.handleRequest(WSWebContainer.java:1817) ᅠ ᅠ ᅠ ᅠ at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:213) ᅠ ᅠ ᅠ ᅠ at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:463) ᅠ ᅠ ᅠ ᅠ at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewRequest(HttpInboundLink.java:530) ᅠ ᅠ ᅠ ᅠ at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.processRequest(HttpInboundLink.java:316) ᅠ ᅠ ᅠ ᅠ at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.ready(HttpInboundLink.java:287) ᅠ ᅠ ᅠ ᅠ at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.sendToDiscriminators(NewConnectionInitialReadCallback.java:214) ᅠ ᅠ ᅠ ᅠ at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.complete(NewConnectionInitialReadCallback.java:113) ᅠ ᅠ ᅠ ᅠ at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:175) ᅠ ᅠ ᅠ ᅠ at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217) ᅠ ᅠ ᅠ ᅠ at com.ibm.io.async.AsyncChannelFuture$1.run(AsyncChannelFuture.java:205) ᅠ ᅠ ᅠ ᅠ at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1892)

Pranjal
  • 35
  • 3

0 Answers0