Topic
  • 3 replies
  • Latest Post - ‏2016-10-26T19:38:21Z by phx85050ali
SystemAdmin
SystemAdmin
37421 Posts

Pinned topic class cast exception in WAS 8.0 with axis 2 even after disabling jaxwseng

‏2012-11-26T11:13:24Z |
Hi,
I have a war which is using axis 1.4.1 and i am trying to deploy this war in WAS 8.0 .I have disabled the IBMJAXWSEngine using JVM options/Manifest file/Custom Properties parameter.(tried all three things ) and my class loader property is set to parent last.
I am getting following error every time.Please help.

WarBasedAxisC E org.apache.axis2.deployment.WarBasedAxisConfigurator <init> org.apache.axis2.jaxws.dispatchers.GenericProviderDispatcher incompatible with org.apache.axis2.engine.Handler
org.apache.axis2.deployment.DeploymentException: org.apache.axis2.jaxws.dispatchers.GenericProviderDispatcher incompatible with org.apache.axis2.engine.Handler
at org.apache.axis2.deployment.util.Utils.loadHandler(Utils.java:185)
at org.apache.axis2.deployment.AxisConfigBuilder.processPhaseList(AxisConfigBuilder.java:513)
at org.apache.axis2.deployment.AxisConfigBuilder.processPhaseOrders(AxisConfigBuilder.java:544)
at org.apache.axis2.deployment.AxisConfigBuilder.populateConfig(AxisConfigBuilder.java:145)
at org.apache.axis2.deployment.DeploymentEngine.populateAxisConfiguration(DeploymentEngine.java:641)
at org.apache.axis2.deployment.WarBasedAxisConfigurator.<init>(WarBasedAxisConfigurator.java:157)
at org.apache.axis2.transport.http.AxisServlet.initConfigContext(AxisServlet.java:516)
at org.apache.axis2.transport.http.AxisServlet.init(AxisServlet.java:436)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.init(ServletWrapper.java:336)
at com.ibm.ws.webcontainer.servlet.ServletWrapperImpl.init(ServletWrapperImpl.java:168)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.loadOnStartupCheck(ServletWrapper.java:1351)
at com.ibm.ws.webcontainer.webapp.WebApp.doLoadOnStartupActions(WebApp.java:609)
at com.ibm.ws.webcontainer.webapp.WebApp.commonInitializationFinally(WebApp.java:578)
at com.ibm.ws.webcontainer.webapp.WebAppImpl.initialize(WebAppImpl.java:421)
at com.ibm.ws.webcontainer.webapp.WebGroupImpl.addWebApplication(WebGroupImpl.java:88)
at com.ibm.ws.webcontainer.VirtualHostImpl.addWebApplication(VirtualHostImpl.java:169)
at com.ibm.ws.webcontainer.WSWebContainer.addWebApp(WSWebContainer.java:749)
at com.ibm.ws.webcontainer.WSWebContainer.addWebApplication(WSWebContainer.java:634)
at com.ibm.ws.webcontainer.component.WebContainerImpl.install(WebContainerImpl.java:422)
at com.ibm.ws.webcontainer.component.WebContainerImpl.start(WebContainerImpl.java:714)
at com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:1160)
at com.ibm.ws.runtime.component.DeployedApplicationImpl.fireDeployedObjectStart(DeployedApplicationImpl.java:1369)
at com.ibm.ws.runtime.component.DeployedModuleImpl.start(DeployedModuleImpl.java:639)
at com.ibm.ws.runtime.component.DeployedApplicationImpl.start(DeployedApplicationImpl.java:967)
at com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(ApplicationMgrImpl.java:766)
at com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:2153)
at com.ibm.ws.runtime.component.CompositionUnitMgrImpl.start(CompositionUnitMgrImpl.java:445)
at com.ibm.ws.runtime.component.CompositionUnitImpl.start(CompositionUnitImpl.java:123)
at com.ibm.ws.runtime.component.CompositionUnitMgrImpl.start(CompositionUnitMgrImpl.java:388)
at com.ibm.ws.runtime.component.CompositionUnitMgrImpl.access$500(CompositionUnitMgrImpl.java:116)
at com.ibm.ws.runtime.component.CompositionUnitMgrImpl$CUInitializer.run(CompositionUnitMgrImpl.java:994)
at com.ibm.wsspi.runtime.component.WsComponentImpl$_AsynchInitializer.run(WsComponentImpl.java:349)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1690)
Caused by: java.lang.ClassCastException: org.apache.axis2.jaxws.dispatchers.GenericProviderDispatcher incompatible with org.apache.axis2.engine.Handler
at org.apache.axis2.deployment.util.Utils.loadHandler(Utils.java:167)
... 32 more
Updated on 2012-12-17T12:17:04Z at 2012-12-17T12:17:04Z by bpaskin
  • SystemAdmin
    SystemAdmin
    37421 Posts

    Re: class cast exception in WAS 8.0 with axis 2 even after disabling jaxwseng

    ‏2012-12-12T17:13:15Z  
    Did you ever find a fix for this? I'm having the same problem on WAS 8.5.
  • bpaskin
    bpaskin
    5743 Posts

    Re: class cast exception in WAS 8.0 with axis 2 even after disabling jaxwseng

    ‏2012-12-17T12:17:04Z  
    Hi, it appears that the WAS AXIS handler is turned off. Can you turn on verbose class loading and see where it is loading the Axis classes?

    Regards,
    Brian
  • phx85050ali
    phx85050ali
    1 Post

    Re: class cast exception in WAS 8.0 with axis 2 even after disabling jaxwseng

    ‏2016-10-26T19:38:21Z  

    Just in case if someone facing this issue during WAS upgrade, you can include axis2-jaxws in the classpath (maven build) to resolve the issue. It worked well with axis2-16.4

    Updated on 2016-10-26T21:01:29Z at 2016-10-26T21:01:29Z by phx85050ali