[seam-issues] [JBoss JIRA] (JBSEAM-4900) jbpm with hibernate4 fails with java.lang.NoSuchMethodError: org.hibernate.SessionFactory.openSession()Lorg/hibernate/classic/Session;

Marek Schmidt (JIRA) jira-events at lists.jboss.org
Wed Feb 15 08:19:37 EST 2012


Marek Schmidt created JBSEAM-4900:
-------------------------------------

             Summary: jbpm with hibernate4 fails with java.lang.NoSuchMethodError: org.hibernate.SessionFactory.openSession()Lorg/hibernate/classic/Session;
                 Key: JBSEAM-4900
                 URL: https://issues.jboss.org/browse/JBSEAM-4900
             Project: Seam 2
          Issue Type: Bug
          Components: BPM
    Affects Versions: 2.3.0.ALPHA
         Environment: AS7.1.0.prerelase2
            Reporter: Marek Schmidt
            Assignee: Marek Novotny
             Fix For: 2.3.0.BETA1


Attempting to use jbpm included with seam 2.3.0 snapshot (2012-02-15) (org.jbpm:jbpm-jpdl:3.2.2) with hibernate4 fails with the following exception. Seems like it needs a rebuilt with hibernate4.

{noformat}
14:03:55,016 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/test]] (MSC service thread 1-4) Exception sending context initialized event to listener instance of class org.jboss.seam.servlet.SeamListener: org.jboss.seam.InstantiationException: Could not instantiate Seam component: org.jboss.seam.bpm.jbpm
        at org.jboss.seam.Component.newInstance(Component.java:2170) [jboss-seam-jsf2-2.3.0-SNAPSHOT.jar:2.3.0-SNAPSHOT]
        at org.jboss.seam.contexts.Contexts.startup(Contexts.java:304) [jboss-seam-jsf2-2.3.0-SNAPSHOT.jar:2.3.0-SNAPSHOT]
        at org.jboss.seam.contexts.Contexts.startup(Contexts.java:278) [jboss-seam-jsf2-2.3.0-SNAPSHOT.jar:2.3.0-SNAPSHOT]
        at org.jboss.seam.contexts.ServletLifecycle.endInitialization(ServletLifecycle.java:143) [jboss-seam-jsf2-2.3.0-SNAPSHOT.jar:2.3.0-SNAPSHOT]
        at org.jboss.seam.init.Initialization.init(Initialization.java:744) [jboss-seam-jsf2-2.3.0-SNAPSHOT.jar:2.3.0-SNAPSHOT]
        at org.jboss.seam.servlet.SeamListener.contextInitialized(SeamListener.java:36) [jboss-seam-jsf2-2.3.0-SNAPSHOT.jar:2.3.0-SNAPSHOT]
        at org.apache.catalina.core.StandardContext.contextListenerStart(StandardContext.java:3392) [jbossweb-7.0.10.Final.jar:]
        at org.apache.catalina.core.StandardContext.start(StandardContext.java:3850) [jbossweb-7.0.10.Final.jar:]
        at org.jboss.as.web.deployment.WebDeploymentService.start(WebDeploymentService.java:90) [jboss-as-web-7.1.0.Final-SNAPSHOT.jar:7.1.0.Final-SNAPSHOT]
        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$Worker.runTask(ThreadPoolExecutor.java:886) [rt.jar:1.6.0_30]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [rt.jar:1.6.0_30]
        at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_30]
Caused by: java.lang.RuntimeException: exception invoking: startup
        at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:154) [jboss-seam-jsf2-2.3.0-SNAPSHOT.jar:2.3.0-SNAPSHOT]
        at org.jboss.seam.Component.callComponentMethod(Component.java:2275) [jboss-seam-jsf2-2.3.0-SNAPSHOT.jar:2.3.0-SNAPSHOT]
        at org.jboss.seam.Component.callCreateMethod(Component.java:2198) [jboss-seam-jsf2-2.3.0-SNAPSHOT.jar:2.3.0-SNAPSHOT]
        at org.jboss.seam.Component.newInstance(Component.java:2158) [jboss-seam-jsf2-2.3.0-SNAPSHOT.jar:2.3.0-SNAPSHOT]
        ... 13 more
Caused by: java.lang.reflect.InvocationTargetException
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.6.0_30]
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [rt.jar:1.6.0_30]
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [rt.jar:1.6.0_30]
        at java.lang.reflect.Method.invoke(Method.java:597) [rt.jar:1.6.0_30]
        at org.jboss.seam.util.Reflections.invoke(Reflections.java:22) [jboss-seam-jsf2-2.3.0-SNAPSHOT.jar:2.3.0-SNAPSHOT]
        at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:144) [jboss-seam-jsf2-2.3.0-SNAPSHOT.jar:2.3.0-SNAPSHOT]
        ... 16 more
Caused by: java.lang.NoSuchMethodError: org.hibernate.SessionFactory.openSession()Lorg/hibernate/classic/Session;
        at org.jbpm.persistence.db.DbPersistenceService.getSession(DbPersistenceService.java:117) [jbpm-jpdl-3.2.2.jar:3.2.2 (date:12-Sep-2007 13:59)]
        at org.jbpm.persistence.db.DbPersistenceService.getGraphSession(DbPersistenceService.java:341) [jbpm-jpdl-3.2.2.jar:3.2.2 (date:12-Sep-2007 13:59)]
        at org.jbpm.JbpmContext.getGraphSession(JbpmContext.java:571) [jbpm-jpdl-3.2.2.jar:3.2.2 (date:12-Sep-2007 13:59)]
        at org.jbpm.JbpmContext.deployProcessDefinition(JbpmContext.java:173) [jbpm-jpdl-3.2.2.jar:3.2.2 (date:12-Sep-2007 13:59)]
        at org.jboss.seam.bpm.Jbpm.deployProcess(Jbpm.java:319) [jboss-seam-jsf2-2.3.0-SNAPSHOT.jar:2.3.0-SNAPSHOT]
        at org.jboss.seam.bpm.Jbpm.installProcessDefinitions(Jbpm.java:297) [jboss-seam-jsf2-2.3.0-SNAPSHOT.jar:2.3.0-SNAPSHOT]
        at org.jboss.seam.bpm.Jbpm.startup(Jbpm.java:80) [jboss-seam-jsf2-2.3.0-SNAPSHOT.jar:2.3.0-SNAPSHOT]
        ... 22 more
{noformat}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the seam-issues mailing list