java.lang.ClassCastException: com.test.obm.struts.filter.OBMFilter incompatible with javax.servlet.Filter

I recently migrated my application from java6 to java7 and Websphere 6 to 8.5. but were getting 1 error:

[AxisServlet]: java.lang.NoClassDefFoundError: org.apache.woden.resolver.URIResolver in Axis2 1.3 and WebSphere 8.5 by doing

When I fixed the error using the approach below:

As I am bundling axis2 engine with my application, I disabled WebSphere JAX-WS runtime. I needed to:

  • configure my web moudle to PARENT LAST classloader

  • set DisableIBMJAXWSEngine: true in the META-INF/MANIFEST.MF of a WAR file

Now i am getting new error

webapp E com.ibm.ws.webcontainer.webapp.WebApp logServletError SRVE0293E: [Servlet Error]-[action]: java.lang.ClassCastException: com.test.obm.struts.filter.OBMFilter incompatible with javax.servlet.Filter

So I have tried to upgrade/degrade the javax/j2ee jar version also to solve above error javax incompatibility error but that too did not work and above error is same coming but when I am running my application by not using PARENT LAST classloader the J2EE error not coming but WSDLs are not running and getting the same:

java.lang.NoClassDefFoundError: org.apache.woden.resolver.URIResolver. again.