You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@deltaspike.apache.org by "Mark Struberg (JIRA)" <ji...@apache.org> on 2014/10/22 22:05:35 UTC

[jira] [Commented] (DELTASPIKE-747) Classcast Excepption while starting Deltaspike enabled App on Websphere

    [ https://issues.apache.org/jira/browse/DELTASPIKE-747?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14180444#comment-14180444 ] 

Mark Struberg commented on DELTASPIKE-747:
------------------------------------------

hi!

adding *-api.jar only causes problems if those are javax.* spec jars. Otherwise it's just a normal jar file.

The issue you see looks more like incompatible javassist versions in your WAS installation. 
Please check what dependencies your have in your deployment.

I can tell you from personal experience that deltaspike-core-api and deltaspike-core-impl run perfectly fine in WAS-8.0.0.1, 8.0.0.2, 8.5.0.1, 8.5.5.1 and 8.5.5.3.



> Classcast Excepption while starting Deltaspike enabled App on Websphere
> -----------------------------------------------------------------------
>
>                 Key: DELTASPIKE-747
>                 URL: https://issues.apache.org/jira/browse/DELTASPIKE-747
>             Project: DeltaSpike
>          Issue Type: Bug
>          Components: CdiControl, Core
>    Affects Versions: 1.0.4
>         Environment: IBM Websphere 8.5
>            Reporter: Björn Schmidt
>            Assignee: Mark Struberg
>
> 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.
> {code}
> 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)
> {code}
> My App runs fine on Glassfish/Wildfly, any help or hint is appreciated.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)