3 Replies Latest reply on Oct 31, 2005 6:06 PM by Ronald van Kuijk

    Got exception when I ran the example code (JBPM 2.0)?

    Maran Rajan Newbie

      Hi

      I read the getting started guide and downloaded the JBPM 2.0, installed and followed the procedure which was mentioned in the Getting Started guide.

      When I ran the "ant deploy.process.archives" (no quotes), got the following exception.

      Could you guide/help me what I did wrong here?

      Thanks,
      Maran

      Exception

      build.core:
      
      compile:
      
      build:
      
      compile:
      
      build.process.archives:
      
      declare.jbpm.tasks:
      
      deploy.process.archives:
      [deploypar] Oct 28, 2005 5:00:48 PM net.sf.hibernate.cfg.Environment <clinit>
      [deploypar] INFO: Hibernate 2.1.1
      [deploypar] Oct 28, 2005 5:00:48 PM net.sf.hibernate.cfg.Environment <clinit>
      [deploypar] INFO: hibernate.properties not found
      [deploypar] Oct 28, 2005 5:00:48 PM net.sf.hibernate.cfg.Environment <clinit>
      [deploypar] INFO: using CGLIB reflection optimizer
      [deploypar] Oct 28, 2005 5:00:48 PM net.sf.hibernate.cfg.Configuration addClass
      [deploypar] INFO: Mapping resource: org/jbpm/persistence/hibernate/SequenceBlock.hbm.xml
      [deploypar] Oct 28, 2005 5:00:48 PM net.sf.hibernate.cfg.Configuration add
      
      [deploypar] SEVERE: Could not compile the mapping document
      [deploypar] net.sf.hibernate.MappingException: persistent class [org.jbpm.persistence.hibernate.SequenceBlock] not found
      [deploypar] at net.sf.hibernate.cfg.Binder.bindClass(Binder.java:84)
      [deploypar] at net.sf.hibernate.cfg.Binder.bindRootClass(Binder.java:217)
      [deploypar] at net.sf.hibernate.cfg.Binder.bindRoot(Binder.java:1204)
      [deploypar] at net.sf.hibernate.cfg.Configuration.add(Configuration.java:247)
      [deploypar] at net.sf.hibernate.cfg.Configuration.addInputStream(Configuration.java:281)
      [deploypar] at net.sf.hibernate.cfg.Configuration.addClass(Configuration.java:322)
      [deploypar] at org.jbpm.persistence.hibernate.HibernateSessionFactory.createHibernateConfiguration(HibernateSessionFactory.java:87)
      [deploypar] at org.jbpm.persistence.hibernate.HibernateSessionFactory.initialize(HibernateSessionFactory.java:39)
      [deploypar] at org.jbpm.persistence.hibernate.HibernateSessionFactory.<init>(HibernateSessionFactory.java:26)
      [deploypar] at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      [deploypar] at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
      [deploypar] at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
      [deploypar] at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
      [deploypar] at org.jbpm.JbpmConfiguration.instantiate(JbpmConfiguration.java:502)
      [deploypar] at org.jbpm.JbpmConfiguration.instantiateConfiguredObjects(JbpmConfiguration.java:462)
      [deploypar] at org.jbpm.JbpmConfiguration.<init>(JbpmConfiguration.java:254)
      [deploypar] at org.jbpm.ant.DeployParTask.execute(DeployParTask.java:28)
      [deploypar] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
      [deploypar] at org.apache.tools.ant.Task.perform(Task.java:364)
      [deploypar] at org.apache.tools.ant.Target.execute(Target.java:341)
      [deploypar] at org.apache.tools.ant.Target.performTasks(Target.java:369)
      [deploypar] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
      [deploypar] at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
      [deploypar] at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)
      [deploypar] at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
      [deploypar] at org.apache.tools.ant.Main.runBuild(Main.java:668)
      [deploypar] at org.apache.tools.ant.Main.startAnt(Main.java:187)
      [deploypar] at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
      [deploypar] at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
      [deploypar] Caused by: java.lang.ClassNotFoundException: org.jbpm.persistence.hibernate.SequenceBlock
      [deploypar] at java.net.URLClassLoader$1.run(URLClassLoader.java:199)
      [deploypar] at java.security.AccessController.doPrivileged(Native Method)
      [deploypar] at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
      [deploypar] at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
      [deploypar] at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
      [deploypar] at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
      [deploypar] at java.lang.Class.forName0(Native Method)
      [deploypar] at java.lang.Class.forName(Class.java:141)
      [deploypar] at net.sf.hibernate.util.ReflectHelper.classForName(ReflectHelper.java:86)
      [deploypar] at net.sf.hibernate.cfg.Binder.bindClass(Binder.java:81)
      [deploypar] ... 28 more
      [deploypar] net.sf.hibernate.MappingException: Error reading resource: org/jbpm/persistence/hibernate/SequenceBlock.hbm.xml
      [deploypar] at net.sf.hibernate.cfg.Configuration.addClass(Configuration.java:325)
      [deploypar] at org.jbpm.persistence.hibernate.HibernateSessionFactory.createHibernateConfiguration(HibernateSessionFactory.java:87)
      [deploypar] at org.jbpm.persistence.hibernate.HibernateSessionFactory.initialize(HibernateSessionFactory.java:39)
      [deploypar] at org.jbpm.persistence.hibernate.HibernateSessionFactory.<init>(HibernateSessionFactory.java:26)
      [deploypar] at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      [deploypar] at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
      [deploypar] at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
      [deploypar] at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
      [deploypar] at org.jbpm.JbpmConfiguration.instantiate(JbpmConfiguration.java:502)
      [deploypar] at org.jbpm.JbpmConfiguration.instantiateConfiguredObjects(JbpmConfiguration.java:462)
      [deploypar] at org.jbpm.JbpmConfiguration.<init>(JbpmConfiguration.java:254)
      [deploypar] at org.jbpm.ant.DeployParTask.execute(DeployParTask.java:28)
      [deploypar] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
      [deploypar] at org.apache.tools.ant.Task.perform(Task.java:364)
      [deploypar] at org.apache.tools.ant.Target.execute(Target.java:341)
      [deploypar] at org.apache.tools.ant.Target.performTasks(Target.java:369)
      [deploypar] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
      [deploypar] at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
      [deploypar] at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)
      [deploypar] at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
      [deploypar] at org.apache.tools.ant.Main.runBuild(Main.java:668)
      [deploypar] at org.apache.tools.ant.Main.startAnt(Main.java:187)
      [deploypar] at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
      [deploypar] at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
      [deploypar] Caused by: net.sf.hibernate.MappingException: persistent class [org.jbpm.persistence.hibernate.SequenceBlock] not found
      [deploypar] at net.sf.hibernate.cfg.Binder.bindClass(Binder.java:84)
      [deploypar] at net.sf.hibernate.cfg.Binder.bindRootClass(Binder.java:217)
      [deploypar] at net.sf.hibernate.cfg.Binder.bindRoot(Binder.java:1204)
      [deploypar] at net.sf.hibernate.cfg.Configuration.add(Configuration.java:247)
      [deploypar] at net.sf.hibernate.cfg.Configuration.addInputStream(Configuration.java:281)
      [deploypar] at net.sf.hibernate.cfg.Configuration.addClass(Configuration.java:322)
      [deploypar] ... 23 more
      [deploypar] Caused by: java.lang.ClassNotFoundException: org.jbpm.persistence.hibernate.SequenceBlock
      [deploypar] at java.net.URLClassLoader$1.run(URLClassLoader.java:199)
      [deploypar] at java.security.AccessController.doPrivileged(Native Method)
      [deploypar] at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
      [deploypar] at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
      [deploypar] at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
      [deploypar] at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
      [deploypar] at java.lang.Class.forName0(Native Method)
      [deploypar] at java.lang.Class.forName(Class.java:141)
      [deploypar] at net.sf.hibernate.util.ReflectHelper.classForName(ReflectHelper.java:86)
      [deploypar] at net.sf.hibernate.cfg.Binder.bindClass(Binder.java:81)
      [deploypar] ... 28 more
      [deploypar] (java.lang.reflect.InvocationTargetException) null
      [deploypar] at org.jbpm.JbpmConfiguration.instantiate(JbpmConfiguration.java:516)
      [deploypar] at org.jbpm.JbpmConfiguration.instantiateConfiguredObjects(JbpmConfiguration.java:462)
      [deploypar] at org.jbpm.JbpmConfiguration.<init>(JbpmConfiguration.java:254)
      [deploypar] at org.jbpm.ant.DeployParTask.execute(DeployParTask.java:28)
      [deploypar] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
      [deploypar] at org.apache.tools.ant.Task.perform(Task.java:364)
      [deploypar] at org.apache.tools.ant.Target.execute(Target.java:341)
      [deploypar] at org.apache.tools.ant.Target.performTasks(Target.java:369)
      [deploypar] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
      [deploypar] at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
      [deploypar] at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)
      [deploypar] at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
      [deploypar] at org.apache.tools.ant.Main.runBuild(Main.java:668)
      [deploypar] at org.apache.tools.ant.Main.startAnt(Main.java:187)
      [deploypar] at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
      [deploypar] at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
      [deploypar] Caused by: java.lang.reflect.InvocationTargetException
      [deploypar] at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      [deploypar] at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
      [deploypar] at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
      [deploypar] at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
      [deploypar] at org.jbpm.JbpmConfiguration.instantiate(JbpmConfiguration.java:502)
      [deploypar] ... 15 more
      [deploypar] Caused by: (net.sf.hibernate.MappingException) Error reading resource: org/jbpm/persistence/hibernate/SequenceBlock.hbm.xml
      [deploypar] at org.jbpm.persistence.hibernate.HibernateSessionFactory.createHibernateConfiguration(HibernateSessionFactory.java:106)
      [deploypar] at org.jbpm.persistence.hibernate.HibernateSessionFactory.initialize(HibernateSessionFactory.java:39)
      [deploypar] at org.jbpm.persistence.hibernate.HibernateSessionFactory.<init>(HibernateSessionFactory.java:26)
      [deploypar] ... 20 more
      [deploypar] Caused by: net.sf.hibernate.MappingException: Error reading resource: org/jbpm/persistence/hibernate/SequenceBlock.hbm.xml
      [deploypar] at net.sf.hibernate.cfg.Configuration.addClass(Configuration.java:325)
      [deploypar] at org.jbpm.persistence.hibernate.HibernateSessionFactory.createHibernateConfiguration(HibernateSessionFactory.java:87)
      [deploypar] ... 22 more
      [deploypar] Caused by: net.sf.hibernate.MappingException: persistent class [org.jbpm.persistence.hibernate.SequenceBlock] not found
      [deploypar] at net.sf.hibernate.cfg.Binder.bindClass(Binder.java:84)
      [deploypar] at net.sf.hibernate.cfg.Binder.bindRootClass(Binder.java:217)
      [deploypar] at net.sf.hibernate.cfg.Binder.bindRoot(Binder.java:1204)
      [deploypar] at net.sf.hibernate.cfg.Configuration.add(Configuration.java:247)
      [deploypar] at net.sf.hibernate.cfg.Configuration.addInputStream(Configuration.java:281)
      [deploypar] at net.sf.hibernate.cfg.Configuration.addClass(Configuration.java:322)
      [deploypar] ... 23 more
      [deploypar] Caused by: java.lang.ClassNotFoundException: org.jbpm.persistence.hibernate.SequenceBlock
      [deploypar] at java.net.URLClassLoader$1.run(URLClassLoader.java:199)
      [deploypar] at java.security.AccessController.doPrivileged(Native Method)
      [deploypar] at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
      [deploypar] at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
      [deploypar] at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
      [deploypar] at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
      [deploypar] at java.lang.Class.forName0(Native Method)
      [deploypar] at java.lang.Class.forName(Class.java:141)
      [deploypar] at net.sf.hibernate.util.ReflectHelper.classForName(ReflectHelper.java:86)
      [deploypar] at net.sf.hibernate.cfg.Binder.bindClass(Binder.java:81)
      [deploypar] ... 28 more
      [deploypar] Caused by: java.lang.reflect.InvocationTargetException
      [deploypar] at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      [deploypar] at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
      [deploypar] at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
      [deploypar] at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
      [deploypar] at org.jbpm.JbpmConfiguration.instantiate(JbpmConfiguration.java:502)
      [deploypar] at org.jbpm.JbpmConfiguration.instantiateConfiguredObjects(JbpmConfiguration.java:462)
      [deploypar] at org.jbpm.JbpmConfiguration.<init>(JbpmConfiguration.java:254)
      [deploypar] at org.jbpm.ant.DeployParTask.execute(DeployParTask.java:28)
      [deploypar] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
      [deploypar] at org.apache.tools.ant.Task.perform(Task.java:364)
      [deploypar] at org.apache.tools.ant.Target.execute(Target.java:341)
      [deploypar] at org.apache.tools.ant.Target.performTasks(Target.java:369)
      [deploypar] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
      [deploypar] at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
      [deploypar] at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)
      [deploypar] at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
      [deploypar] at org.apache.tools.ant.Main.runBuild(Main.java:668)
      [deploypar] at org.apache.tools.ant.Main.startAnt(Main.java:187)
      [deploypar] at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
      [deploypar] at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
      [deploypar] Caused by: (net.sf.hibernate.MappingException) Error reading resource: org/jbpm/persistence/hibernate/SequenceBlock.hbm.xml
      [deploypar] at org.jbpm.persistence.hibernate.HibernateSessionFactory.createHibernateConfiguration(HibernateSessionFactory.java:106)
      [deploypar] at org.jbpm.persistence.hibernate.HibernateSessionFactory.initialize(HibernateSessionFactory.java:39)
      [deploypar] at org.jbpm.persistence.hibernate.HibernateSessionFactory.<init>(HibernateSessionFactory.java:26)
      [deploypar] ... 20 more
      [deploypar] Caused by: net.sf.hibernate.MappingException: Error reading resource: org/jbpm/persistence/hibernate/SequenceBlock.hbm.xml
      [deploypar] at net.sf.hibernate.cfg.Configuration.addClass(Configuration.java:325)
      [deploypar] at org.jbpm.persistence.hibernate.HibernateSessionFactory.createHibernateConfiguration(HibernateSessionFactory.java:87)
      [deploypar] ... 22 more
      [deploypar] Caused by: net.sf.hibernate.MappingException: persistent class [org.jbpm.persistence.hibernate.SequenceBlock] not found
      [deploypar] at net.sf.hibernate.cfg.Binder.bindClass(Binder.java:84)
      [deploypar] at net.sf.hibernate.cfg.Binder.bindRootClass(Binder.java:217)
      [deploypar] at net.sf.hibernate.cfg.Binder.bindRoot(Binder.java:1204)
      [deploypar] at net.sf.hibernate.cfg.Configuration.add(Configuration.java:247)
      [deploypar] at net.sf.hibernate.cfg.Configuration.addInputStream(Configuration.java:281)
      [deploypar] at net.sf.hibernate.cfg.Configuration.addClass(Configuration.java:322)
      [deploypar] ... 23 more
      [deploypar] Caused by: java.lang.ClassNotFoundException: org.jbpm.persistence.hibernate.SequenceBlock
      [deploypar] at java.net.URLClassLoader$1.run(URLClassLoader.java:199)
      [deploypar] at java.security.AccessController.doPrivileged(Native Method)
      [deploypar] at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
      [deploypar] at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
      [deploypar] at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
      [deploypar] at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
      [deploypar] at java.lang.Class.forName0(Native Method)
      [deploypar] at java.lang.Class.forName(Class.java:141)
      [deploypar] at net.sf.hibernate.util.ReflectHelper.classForName(ReflectHelper.java:86)
      [deploypar] at net.sf.hibernate.cfg.Binder.bindClass(Binder.java:81)
      [deploypar] ... 28 more
      
      BUILD FAILED
      
      C:\JBPM\jbpm-2.0\web\build.xml:54: java.lang.RuntimeException: couldn't deploy process archives : couldn't instantiate class org.jbpm.persistence.hibernate.HibernateSessionFactory (as configured in key jbpm.persistence.session.factory)
      .