0 Replies Latest reply on Mar 4, 2013 4:50 AM by nasir naseem

    not able to integrate simple Jbpm  todo example in seam 2.2.1

    nasir naseem Newbie

      I am new to jBpm trying to  integrate JBPM in an  seam application .

       

      i am getting error

       

      ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/Ticket-book]] (MSC service thread 1-6) Exception sending context initialized event to listener instance of class org.jboss.seam.servlet.SeamListener: java.lang.RuntimeException: Could not create Component: org.jboss.seam.bpm.jbpm

                at org.jboss.seam.init.Initialization.addComponent(Initialization.java:1202) [jboss-seam-2.3.0-20120313.053927-58.jar:2.3.0-SNAPSHOT]

                at org.jboss.seam.init.Initialization.installComponents(Initialization.java:1118) [jboss-seam-2.3.0-20120313.053927-58.jar:2.3.0-SNAPSHOT]

                at org.jboss.seam.init.Initialization.init(Initialization.java:737) [jboss-seam-2.3.0-20120313.053927-58.jar:2.3.0-SNAPSHOT]

                at org.jboss.seam.servlet.SeamListener.contextInitialized(SeamListener.java:36) [jboss-seam-2.3.0-20120313.053927-58.jar:2.3.0-SNAPSHOT]

                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$Worker.runTask(ThreadPoolExecutor.java:886) [rt.jar:1.6.0_33]

                at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [rt.jar:1.6.0_33]

                at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_33]

      Caused by: java.lang.NoClassDefFoundError: org/hibernate/HibernateException

                at java.lang.Class.getDeclaredMethods0(Native Method) [rt.jar:1.6.0_33]

                at java.lang.Class.privateGetDeclaredMethods(Class.java:2427) [rt.jar:1.6.0_33]

                at java.lang.Class.privateGetPublicMethods(Class.java:2547) [rt.jar:1.6.0_33]

                at java.lang.Class.getMethods(Class.java:1410) [rt.jar:1.6.0_33]

                at org.jboss.seam.Component.hasAnnotation(Component.java:1161) [jboss-seam-2.3.0-20120313.053927-58.jar:2.3.0-SNAPSHOT]

                at org.jboss.seam.Component.<init>(Component.java:221) [jboss-seam-2.3.0-20120313.053927-58.jar:2.3.0-SNAPSHOT]

                at org.jboss.seam.Component.<init>(Component.java:208) [jboss-seam-2.3.0-20120313.053927-58.jar:2.3.0-SNAPSHOT]

                at org.jboss.seam.init.Initialization.addComponent(Initialization.java:1186) [jboss-seam-2.3.0-20120313.053927-58.jar:2.3.0-SNAPSHOT]

                ... 11 more

      Caused by: java.lang.ClassNotFoundException: org.hibernate.HibernateException from [Module "deployment.Ticket-book.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.performLoadClassChecked(ConcurrentClassLoader.java:423)

                at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:398)

                at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:120)

                ... 19 more

       

       

      my lib contains

      commons-beanutils.jar

      commons-digester.jar

      commons-validator-1.3.1.jar

      eclipselink.jar

      hibernate-commons-annotations-3.1.0.GA.jar

      hibernate-search-3.1.1.GA.jar

      hibernate-validator.jar

      j2ee-1.4.jar

      javax.persistence_1.0.0.jar

      javax.persistence_2.0.0.jar

      javax.persistence_2.0.4.v201112161009.jar

      jboss-el-1.0_02.CR6.jar

      jboss-el.jar

      jboss-seam-2.3.0-20120313.053927-58.jar

      jboss-seam-debug-2.3.0-20120313.054415-49.jar

      jboss-seam-ui-2.3.0-20120313.054040-57.jar

      jbpm-jpdl-3.2.2.jar

      jsf-api.jar

      jsf-facelets.jar

      jsf-impl.jar

      jstl-1.1.2.jar

      jstl-api-1.2.jar

      jstl-impl-1.2.jar

      mongo-2.9.1.jar

      myfaces-api-2.0.3 (1).jar

      org.eclipse.persistence.nosql_2.4.0.v20120608-r11652.jar

      richfaces-api.jar

      richfaces-impl.jar

      richfaces-ui.jar

      slf4j-api.jar

      slf4j-log4j12.jar

      todo-ejb-2.3.0-SNAPSHOT.jar

      validation-api-1.0.0.GA.jar

       

      I am running it on JBoss as-7 ,my seam aplication is using mongodb as database and jbpm is using   H2 databse. my application is using seam with eclipse link.

      i have defined process defination in components.xml

       

      todo-ejb-2.3.0-SNAPSHOT.jar contains

       

      hibernate.cfg.xml

      jbpm.cfg.xml

      seam.properties

      todo.jpdl.xml

       

      and class files

      login.java

      todo.java

       

      can anyone help how to inetgarte it or tell me what error i have made in integrating it .

      Thanks in advance