]
Robert Becker commented on JBSEAM-5115:
---------------------------------------
I'll try org.jbpm.jbpm3:jbpm-jpdl:jar:3.2.10.SP3_seam2. Thanks for the help!
Add compatibility to hibernate 3.6 because of JBPM3
---------------------------------------------------
Key: JBSEAM-5115
URL:
https://issues.jboss.org/browse/JBSEAM-5115
Project: Seam 2
Issue Type: Enhancement
Components: BPM
Affects Versions: 2.3.0.ALPHA, 2.3.0.BETA1, 2.3.0.BETA2, 2.3.0.CR1, 2.3.0.Final,
2.3.1.CR1
Reporter: Robert Becker
Priority: Blocker
As Seam 2.3 is still bundled with JBPM 3 (which is good), it needs to be compatible with
at least hibernate 3.6 since JBPM 3 does not work with hibernate 4. For many users,
upgrading to a newer JBPM version is not an option as there are many running business
processes which can not be converted or migrated. In my case, this dependency keeps me,
and essentially all other users who integrated JBPM into their application, from migrating
to Seam 2.3 and JSF 2.
When trying to use Hibernate 3.6 with seam 2.3 on AS7, the following exception occurs:
{code}
16:03:16,837 WARN [org.jboss.modules] (MSC service thread 1-6) Failed to define class
org.jboss.seam.persistence.HibernateSessionProxy in Module
"deployment.SAMS.war:main" from Service Module Loader: java.lang.LinkageError:
Failed to link org/jboss/seam/persistence/HibernateSessionProxy (Module
"deployment.SAMS.war:main" from Service Module Loader)
at org.jboss.modules.ModuleClassLoader.defineClass(ModuleClassLoader.java:396)
at org.jboss.modules.ModuleClassLoader.loadClassLocal(ModuleClassLoader.java:243)
at org.jboss.modules.ModuleClassLoader$1.loadClassLocal(ModuleClassLoader.java:73)
at org.jboss.modules.Module.loadModuleClass(Module.java:517)
at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:182)
at
org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:468)
at
org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:456)
at
org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:398)
at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:120)
at
org.jboss.seam.persistence.HibernatePersistenceProvider.proxySession(HibernatePersistenceProvider.java:115)
[jboss-seam.jar:2.3.1.CR1]
at
org.jboss.seam.persistence.HibernatePersistenceProvider.proxyDelegate(HibernatePersistenceProvider.java:165)
[jboss-seam.jar:2.3.1.CR1]
at
org.jboss.seam.persistence.EntityManagerInvocationHandler.handleGetDelegate(EntityManagerInvocationHandler.java:81)
[jboss-seam.jar:2.3.1.CR1]
at
org.jboss.seam.persistence.EntityManagerInvocationHandler.invoke(EntityManagerInvocationHandler.java:40)
[jboss-seam.jar:2.3.1.CR1]
at com.sun.proxy.$Proxy127.getDelegate(Unknown Source)
at
org.jboss.seam.persistence.HibernatePersistenceProvider.getSession(HibernatePersistenceProvider.java:410)
[jboss-seam.jar:2.3.1.CR1]
at
org.jboss.seam.persistence.HibernatePersistenceProvider.setFlushModeManual(HibernatePersistenceProvider.java:182)
[jboss-seam.jar:2.3.1.CR1]
at
org.jboss.seam.persistence.ManagedPersistenceContext.setEntityManagerFlushMode(ManagedPersistenceContext.java:332)
[jboss-seam.jar:2.3.1.CR1]
at
org.jboss.seam.persistence.ManagedPersistenceContext.initEntityManager(ManagedPersistenceContext.java:82)
[jboss-seam.jar:2.3.1.CR1]
at
org.jboss.seam.persistence.ManagedPersistenceContext.getEntityManager(ManagedPersistenceContext.java:108)
[jboss-seam.jar:2.3.1.CR1]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.7.0_21]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
[rt.jar:1.7.0_21]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[rt.jar:1.7.0_21]
at java.lang.reflect.Method.invoke(Method.java:601) [rt.jar:1.7.0_21]
at org.jboss.seam.util.Reflections.invoke(Reflections.java:22)
[jboss-seam.jar:2.3.1.CR1]
at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:144)
[jboss-seam.jar:2.3.1.CR1]
at org.jboss.seam.Component.callComponentMethod(Component.java:2313)
[jboss-seam.jar:2.3.1.CR1]
at org.jboss.seam.Component.unwrap(Component.java:2339) [jboss-seam.jar:2.3.1.CR1]
at org.jboss.seam.Component.getInstance(Component.java:2054) [jboss-seam.jar:2.3.1.CR1]
at org.jboss.seam.Component.getInstance(Component.java:1996) [jboss-seam.jar:2.3.1.CR1]
at org.jboss.seam.Component.getInstanceInAllNamespaces(Component.java:2414)
[jboss-seam.jar:2.3.1.CR1]
at org.jboss.seam.Component.getValueToInject(Component.java:2366)
[jboss-seam.jar:2.3.1.CR1]
at org.jboss.seam.Component.injectAttributes(Component.java:1743)
[jboss-seam.jar:2.3.1.CR1]
at org.jboss.seam.Component.inject(Component.java:1561) [jboss-seam.jar:2.3.1.CR1]
at org.jboss.seam.core.BijectionInterceptor.aroundInvoke(BijectionInterceptor.java:63)
[jboss-seam.jar:2.3.1.CR1]
at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
[jboss-seam.jar:2.3.1.CR1]
at
org.jboss.seam.bpm.BusinessProcessInterceptor.aroundInvoke(BusinessProcessInterceptor.java:51)
[jboss-seam.jar:2.3.1.CR1]
at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
[jboss-seam.jar:2.3.1.CR1]
at
org.jboss.seam.core.MethodContextInterceptor.aroundInvoke(MethodContextInterceptor.java:44)
[jboss-seam.jar:2.3.1.CR1]
at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
[jboss-seam.jar:2.3.1.CR1]
at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:107)
[jboss-seam.jar:2.3.1.CR1]
at
org.jboss.seam.intercept.JavaBeanInterceptor.interceptInvocation(JavaBeanInterceptor.java:196)
[jboss-seam.jar:2.3.1.CR1]
at org.jboss.seam.intercept.JavaBeanInterceptor.invoke(JavaBeanInterceptor.java:114)
[jboss-seam.jar:2.3.1.CR1]
at
eu.rbecker.configuration.action.ConfigBean_$$_javassist_seam_0.init(ConfigBean_$$_javassist_seam_0.java)
[classes:]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.7.0_21]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
[rt.jar:1.7.0_21]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[rt.jar:1.7.0_21]
at java.lang.reflect.Method.invoke(Method.java:601) [rt.jar:1.7.0_21]
at org.jboss.seam.util.Reflections.invoke(Reflections.java:22)
[jboss-seam.jar:2.3.1.CR1]
at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:144)
[jboss-seam.jar:2.3.1.CR1]
at org.jboss.seam.Component.callComponentMethod(Component.java:2313)
[jboss-seam.jar:2.3.1.CR1]
at org.jboss.seam.Component.callCreateMethod(Component.java:2236)
[jboss-seam.jar:2.3.1.CR1]
at org.jboss.seam.Component.newInstance(Component.java:2196) [jboss-seam.jar:2.3.1.CR1]
at org.jboss.seam.contexts.Contexts.startup(Contexts.java:343)
[jboss-seam.jar:2.3.1.CR1]
at org.jboss.seam.contexts.Contexts.startup(Contexts.java:317)
[jboss-seam.jar:2.3.1.CR1]
at org.jboss.seam.contexts.ServletLifecycle.endInitialization(ServletLifecycle.java:143)
[jboss-seam.jar:2.3.1.CR1]
at org.jboss.seam.init.Initialization.init(Initialization.java:813)
[jboss-seam.jar:2.3.1.CR1]
at org.jboss.seam.servlet.SeamListener.contextInitialized(SeamListener.java:36)
[jboss-seam.jar:2.3.1.CR1]
at
org.apache.catalina.core.StandardContext.contextListenerStart(StandardContext.java:3392)
[jbossweb-7.0.13.Final.jar:]
at org.apache.catalina.core.StandardContext.start(StandardContext.java:3850)
[jbossweb-7.0.13.Final.jar:]
at org.jboss.as.web.deployment.WebDeploymentService.start(WebDeploymentService.java:90)
[jboss-as-web-7.1.1.Final.jar:7.1.1.Final]
at
org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811)
at
org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
[rt.jar:1.7.0_21]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
[rt.jar:1.7.0_21]
at java.lang.Thread.run(Thread.java:722) [rt.jar:1.7.0_21]
Caused by: java.lang.NoClassDefFoundError: org/hibernate/engine/spi/SessionImplementor
at java.lang.ClassLoader.defineClass1(Native Method) [rt.jar:1.7.0_21]
at java.lang.ClassLoader.defineClass(ClassLoader.java:791) [rt.jar:1.7.0_21]
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
[rt.jar:1.7.0_21]
at org.jboss.modules.ModuleClassLoader.doDefineOrLoadClass(ModuleClassLoader.java:327)
at org.jboss.modules.ModuleClassLoader.defineClass(ModuleClassLoader.java:391)
... 64 more
Caused by: java.lang.ClassNotFoundException: org.hibernate.engine.spi.SessionImplementor
from [Module "deployment.SAMS.war:main" from Service Module Loader]
at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:190)
at
org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:468)
at
org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:456)
at
org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:398)
at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:120)
... 69 more
16:03:16,901 ERROR
[org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/SAMS]] (MSC service
thread 1-6) Exception sending context initialized event to listener instance of class
org.jboss.seam.servlet.SeamListener: org.jboss.seam.InstantiationException: Could not
instantiate Seam component: configBean
at org.jboss.seam.Component.newInstance(Component.java:2208) [jboss-seam.jar:2.3.1.CR1]
at org.jboss.seam.contexts.Contexts.startup(Contexts.java:343)
[jboss-seam.jar:2.3.1.CR1]
at org.jboss.seam.contexts.Contexts.startup(Contexts.java:317)
[jboss-seam.jar:2.3.1.CR1]
at org.jboss.seam.contexts.ServletLifecycle.endInitialization(ServletLifecycle.java:143)
[jboss-seam.jar:2.3.1.CR1]
at org.jboss.seam.init.Initialization.init(Initialization.java:813)
[jboss-seam.jar:2.3.1.CR1]
at org.jboss.seam.servlet.SeamListener.contextInitialized(SeamListener.java:36)
[jboss-seam.jar:2.3.1.CR1]
at
org.apache.catalina.core.StandardContext.contextListenerStart(StandardContext.java:3392)
[jbossweb-7.0.13.Final.jar:]
at org.apache.catalina.core.StandardContext.start(StandardContext.java:3850)
[jbossweb-7.0.13.Final.jar:]
at org.jboss.as.web.deployment.WebDeploymentService.start(WebDeploymentService.java:90)
[jboss-as-web-7.1.1.Final.jar:7.1.1.Final]
at
org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811)
at
org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
[rt.jar:1.7.0_21]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
[rt.jar:1.7.0_21]
at java.lang.Thread.run(Thread.java:722) [rt.jar:1.7.0_21]
Caused by: java.lang.RuntimeException: exception invoking: getEntityManager
at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:154)
[jboss-seam.jar:2.3.1.CR1]
at org.jboss.seam.Component.callComponentMethod(Component.java:2313)
[jboss-seam.jar:2.3.1.CR1]
at org.jboss.seam.Component.unwrap(Component.java:2339) [jboss-seam.jar:2.3.1.CR1]
at org.jboss.seam.Component.getInstance(Component.java:2054) [jboss-seam.jar:2.3.1.CR1]
at org.jboss.seam.Component.getInstance(Component.java:1996) [jboss-seam.jar:2.3.1.CR1]
at org.jboss.seam.Component.getInstanceInAllNamespaces(Component.java:2414)
[jboss-seam.jar:2.3.1.CR1]
at org.jboss.seam.Component.getValueToInject(Component.java:2366)
[jboss-seam.jar:2.3.1.CR1]
at org.jboss.seam.Component.injectAttributes(Component.java:1743)
[jboss-seam.jar:2.3.1.CR1]
at org.jboss.seam.Component.inject(Component.java:1561) [jboss-seam.jar:2.3.1.CR1]
at org.jboss.seam.core.BijectionInterceptor.aroundInvoke(BijectionInterceptor.java:63)
[jboss-seam.jar:2.3.1.CR1]
at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
[jboss-seam.jar:2.3.1.CR1]
at
org.jboss.seam.bpm.BusinessProcessInterceptor.aroundInvoke(BusinessProcessInterceptor.java:51)
[jboss-seam.jar:2.3.1.CR1]
at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
[jboss-seam.jar:2.3.1.CR1]
at
org.jboss.seam.core.MethodContextInterceptor.aroundInvoke(MethodContextInterceptor.java:44)
[jboss-seam.jar:2.3.1.CR1]
at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
[jboss-seam.jar:2.3.1.CR1]
at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:107)
[jboss-seam.jar:2.3.1.CR1]
at
org.jboss.seam.intercept.JavaBeanInterceptor.interceptInvocation(JavaBeanInterceptor.java:196)
[jboss-seam.jar:2.3.1.CR1]
at org.jboss.seam.intercept.JavaBeanInterceptor.invoke(JavaBeanInterceptor.java:114)
[jboss-seam.jar:2.3.1.CR1]
at
eu.rbecker.configuration.action.ConfigBean_$$_javassist_seam_0.init(ConfigBean_$$_javassist_seam_0.java)
[classes:]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.7.0_21]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
[rt.jar:1.7.0_21]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[rt.jar:1.7.0_21]
at java.lang.reflect.Method.invoke(Method.java:601) [rt.jar:1.7.0_21]
at org.jboss.seam.util.Reflections.invoke(Reflections.java:22)
[jboss-seam.jar:2.3.1.CR1]
at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:144)
[jboss-seam.jar:2.3.1.CR1]
at org.jboss.seam.Component.callComponentMethod(Component.java:2313)
[jboss-seam.jar:2.3.1.CR1]
at org.jboss.seam.Component.callCreateMethod(Component.java:2236)
[jboss-seam.jar:2.3.1.CR1]
at org.jboss.seam.Component.newInstance(Component.java:2196) [jboss-seam.jar:2.3.1.CR1]
... 13 more
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.7.0_21]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
[rt.jar:1.7.0_21]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[rt.jar:1.7.0_21]
at java.lang.reflect.Method.invoke(Method.java:601) [rt.jar:1.7.0_21]
at org.jboss.seam.util.Reflections.invoke(Reflections.java:22)
[jboss-seam.jar:2.3.1.CR1]
at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:144)
[jboss-seam.jar:2.3.1.CR1]
... 40 more
Caused by: java.lang.NoClassDefFoundError:
org/jboss/seam/persistence/HibernateSessionProxy
at
org.jboss.seam.persistence.HibernatePersistenceProvider.proxySession(HibernatePersistenceProvider.java:115)
[jboss-seam.jar:2.3.1.CR1]
at
org.jboss.seam.persistence.HibernatePersistenceProvider.proxyDelegate(HibernatePersistenceProvider.java:165)
[jboss-seam.jar:2.3.1.CR1]
at
org.jboss.seam.persistence.EntityManagerInvocationHandler.handleGetDelegate(EntityManagerInvocationHandler.java:81)
[jboss-seam.jar:2.3.1.CR1]
at
org.jboss.seam.persistence.EntityManagerInvocationHandler.invoke(EntityManagerInvocationHandler.java:40)
[jboss-seam.jar:2.3.1.CR1]
at com.sun.proxy.$Proxy127.getDelegate(Unknown Source)
at
org.jboss.seam.persistence.HibernatePersistenceProvider.getSession(HibernatePersistenceProvider.java:410)
[jboss-seam.jar:2.3.1.CR1]
at
org.jboss.seam.persistence.HibernatePersistenceProvider.setFlushModeManual(HibernatePersistenceProvider.java:182)
[jboss-seam.jar:2.3.1.CR1]
at
org.jboss.seam.persistence.ManagedPersistenceContext.setEntityManagerFlushMode(ManagedPersistenceContext.java:332)
[jboss-seam.jar:2.3.1.CR1]
at
org.jboss.seam.persistence.ManagedPersistenceContext.initEntityManager(ManagedPersistenceContext.java:82)
[jboss-seam.jar:2.3.1.CR1]
at
org.jboss.seam.persistence.ManagedPersistenceContext.getEntityManager(ManagedPersistenceContext.java:108)
[jboss-seam.jar:2.3.1.CR1]
... 46 more
Caused by: java.lang.ClassNotFoundException:
org.jboss.seam.persistence.HibernateSessionProxy from [Module
"deployment.SAMS.war:main" from Service Module Loader]
at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:190)
at
org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:468)
at
org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:456)
at
org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:398)
at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:120)
... 56 more
{code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: