Uploaded image for project: 'DeltaSpike'
  1. DeltaSpike
  2. DELTASPIKE-747

Classcast Excepption while starting Deltaspike enabled App on Websphere

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Not A Problem
    • 1.1.0
    • None
    • CdiControl, Core
    • None
    • IBM Websphere 8.5

    Description

      I'm getting the following Exception on Websphere 8.5 if I try to start my Application. The only two Deltaspike modules in the apps classpath are core-api and core-impl. I'm not sure what is causing this problem, if it is a bug or a configuration problem. Normally deploying anything called -api on websphere causes classloader problems, but then the documentation clearly states adding both core-api and core-impl.

      java.lang.ClassCastException: org.apache.deltaspike.core.impl.exclude.extension.ExcludeExtension_$$_javassist_17 incompatible with javassist.util.proxy.ProxyObject
      	at org.apache.webbeans.proxy.JavassistProxyFactory.createNormalScopedBeanProxy(JavassistProxyFactory.java:225)
      	at org.apache.webbeans.container.BeanManagerImpl.getReference(BeanManagerImpl.java:870)
      	at org.apache.webbeans.event.ObserverMethodImpl.notify(ObserverMethodImpl.java:279)
      	at org.apache.webbeans.event.NotificationManager.fireEvent(NotificationManager.java:455)
      	at org.apache.webbeans.container.BeanManagerImpl.fireEvent(BeanManagerImpl.java:415)
      	at org.apache.webbeans.util.WebBeansUtil.fireProcessAnnotatedTypeEvent(WebBeansUtil.java:2630)
      	at org.apache.webbeans.config.BeansDeployer.deploySingleAnnotatedType(BeansDeployer.java:533)
      	at org.apache.webbeans.config.BeansDeployer.deployFromClassPath(BeansDeployer.java:488)
      	at org.apache.webbeans.config.BeansDeployer.deploy(BeansDeployer.java:171)
      	at org.apache.webbeans.lifecycle.AbstractLifeCycle.startApplication(AbstractLifeCycle.java:124)
      	at org.apache.webbeans.web.lifecycle.WebContainerLifecycle.startApplication(WebContainerLifecycle.java:78)
      	at com.ibm.ws.webbeans.common.CommonLifeCycle.startApplication(CommonLifeCycle.java:106)
      	at com.ibm.ws.webbeans.services.JCDIServletContainerInitializer.onStartup(JCDIServletContainerInitializer.java:85)
      	at com.ibm.ws.webcontainer.webapp.WebAppImpl.initializeServletContainerInitializers(WebAppImpl.java:613)
      	at com.ibm.ws.webcontainer.webapp.WebAppImpl.initialize(WebAppImpl.java:409)
      	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:746)
      	at com.ibm.ws.webcontainer.WSWebContainer.addWebApplication(WSWebContainer.java:634)
      	at com.ibm.ws.webcontainer.component.WebContainerImpl.install(WebContainerImpl.java:426)
      	at com.ibm.ws.webcontainer.component.WebContainerImpl.start(WebContainerImpl.java:718)
      	at com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:1175)
      	at com.ibm.ws.runtime.component.DeployedApplicationImpl.fireDeployedObjectStart(DeployedApplicationImpl.java:1370)
      	at com.ibm.ws.runtime.component.DeployedModuleImpl.start(DeployedModuleImpl.java:639)
      	at com.ibm.ws.runtime.component.DeployedApplicationImpl.start(DeployedApplicationImpl.java:968)
      	at com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(ApplicationMgrImpl.java:774)
      	at com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplicationDynamically(ApplicationMgrImpl.java:1374)
      	at com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:2179)
      	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$1.run(CompositionUnitMgrImpl.java:663)
      	at com.ibm.ws.security.auth.ContextManagerImpl.runAs(ContextManagerImpl.java:5384)
      	at com.ibm.ws.security.auth.ContextManagerImpl.runAsSystem(ContextManagerImpl.java:5600)
      	at com.ibm.ws.security.core.SecurityContext.runAsSystem(SecurityContext.java:255)
      	at com.ibm.ws.runtime.component.CompositionUnitMgrImpl.startCompositionUnit(CompositionUnitMgrImpl.java:677)
      	at com.ibm.ws.runtime.component.CompositionUnitMgrImpl.startCompositionUnit(CompositionUnitMgrImpl.java:621)
      	at com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(ApplicationMgrImpl.java:1266)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:88)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:55)
      	at java.lang.reflect.Method.invoke(Method.java:613)
      	at sun.reflect.misc.Trampoline.invoke(MethodUtil.java:68)
      	at sun.reflect.GeneratedMethodAccessor53.invoke(Unknown Source)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:55)
      	at java.lang.reflect.Method.invoke(Method.java:613)
      	at sun.reflect.misc.MethodUtil.invoke(MethodUtil.java:287)
      	at javax.management.modelmbean.RequiredModelMBean$4.run(RequiredModelMBean.java:1256)
      	at java.security.AccessController.doPrivileged(AccessController.java:252)
      	at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:87)
      	at javax.management.modelmbean.RequiredModelMBean.invokeMethod(RequiredModelMBean.java:1250)
      	at javax.management.modelmbean.RequiredModelMBean.invoke(RequiredModelMBean.java:1088)
      	at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:831)
      	at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:804)
      	at com.ibm.ws.management.AdminServiceImpl$1.run(AdminServiceImpl.java:1335)
      	at com.ibm.ws.security.util.AccessController.doPrivileged(AccessController.java:118)
      	at com.ibm.ws.management.AdminServiceImpl.invoke(AdminServiceImpl.java:1228)
      	at com.ibm.ws.management.connector.AdminServiceDelegator.invoke(AdminServiceDelegator.java:181)
      	at sun.reflect.GeneratedMethodAccessor58.invoke(Unknown Source)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:55)
      	at java.lang.reflect.Method.invoke(Method.java:613)
      	at com.ibm.ws.management.connector.soap.SOAPConnector.invoke(SOAPConnector.java:478)
      	at com.ibm.ws.management.connector.soap.SOAPConnector.service(SOAPConnector.java:314)
      	at com.ibm.ws.management.connector.soap.SOAPConnection.handleRequest(SOAPConnection.java:65)
      	at com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:733)
      	at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:522)
      	at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1862)
      

      My App runs fine on Glassfish/Wildfly, any help or hint is appreciated.

      Attachments

        Activity

          People

            struberg Mark Struberg
            bes82 Björn Schmidt
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: