Uploaded image for project: 'Seam 2'
  1. Seam 2
  2. JBSEAM-4900

jbpm with hibernate4 fails with java.lang.NoSuchMethodError: org.hibernate.SessionFactory.openSession()Lorg/hibernate/classic/Session;

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 2.3.0.ALPHA
    • Fix Version/s: 2.3.0.BETA1
    • Component/s: BPM
    • Labels:
      None

      Description

      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.

      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
      

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                manaRH Marek Novotny
                Reporter:
                maschmid Marek Schmidt
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: