3 Replies Latest reply on Jul 21, 2005 6:04 PM by Ram Munjuluri

    does deploypar work in jBpm3.0?

    Ram Munjuluri Newbie

      Hello,

      I am trying to use deploypar ant task in jbpm3.0 and even though I have hibernate.cfg.xml in my class path I keep getting this exception. "could not find hibernate.cfg.xml". here is the stack trace. I am simply using a simple processdefinition.xml in a jar file and not using any web-app. so its different from the regular webapp.

      OR

      Do I have to write a command line java app to save the archive in the db?

      Any help is really appreciated.

      thanx
      -ram

      deploy.par:
      [deploypar] (cfg.Environment 464 ) Hibernate 3.0.5
      [deploypar] (cfg.Environment 482 ) loaded properties from resource hibernate.pro
      perties: {hibernate.connection.driver_class=net.sourceforge.jtds.jdbc.Driver, hibernate.cglib.use_re
      flection_optimizer=true, hibernate.dialect=net.sf.hibernate.dialect.SQLServerDialect, hibernate.quer
      y.substitutions=true 1, false 0, hibernate.connection.username=guest, hibernate.connection.url=jdbc:
      jtds:sqlserver://localhost:1136/jbpmtest;DatabaseName=jbpmtest;SelectMethod=Cursor, hibernate.show_s
      ql=false, hibernate.connection.password=****, jbpm.hibernate.cfg.xml=hibernate.cfg.xml}
      [deploypar] (cfg.Environment 510 ) using CGLIB reflection optimizer
      [deploypar] (cfg.Environment 540 ) using JDK 1.4 java.sql.Timestamp handling
      [deploypar] (cfg.Configuration 1110) configuring from resource: hibernate.cfg.xml
      [deploypar] (cfg.Configuration 1081) Configuration resource: hibernate.cfg.xml
      [deploypar] (cfg.Configuration 1086) hibernate.cfg.xml not found
      [deploypar] org.hibernate.HibernateException: hibernate.cfg.xml not found
      [deploypar] at org.hibernate.cfg.Configuration.getConfigurationInputStream(Ljava.lang.String;)Lj
      ava.io.InputStream;(Configuration.java:1087)
      [deploypar] at org.hibernate.cfg.Configuration.configure(Ljava.lang.String;)Lorg.hibernate.cfg.C
      onfiguration;(Configuration.java:1111)
      [deploypar] at org.jbpm.db.JbpmSessionFactory.createConfiguration(Ljava.lang.String;)Lorg.hibern
      ate.cfg.Configuration;(JbpmSessionFactory.java:111)
      [deploypar] at org.jbpm.db.JbpmSessionFactory.createConfiguration()Lorg.hibernate.cfg.Configurat
      ion;(JbpmSessionFactory.java:102)
      [deploypar] at org.jbpm.ant.AntTaskJbpmSessionFactory.createConfiguration(Ljava.lang.String;Ljav
      a.lang.String;)Lorg.hibernate.cfg.Configuration;(AntTaskJbpmSessionFactory.java:97)
      [deploypar] at org.jbpm.ant.AntTaskJbpmSessionFactory.getConfiguration(Ljava.lang.String;Ljava.l
      ang.String;)Lorg.hibernate.cfg.Configuration;(AntTaskJbpmSessionFactory.java:57)
      [deploypar] at org.jbpm.ant.AntTaskJbpmSessionFactory.createJbpmSessionFactory(Ljava.lang.String
      ;Ljava.lang.String;)Lorg.jbpm.db.JbpmSessionFactory;(AntTaskJbpmSessionFactory.java:74)
      [deploypar] at org.jbpm.ant.AntTaskJbpmSessionFactory.getJbpmSessionFactory(Ljava.lang.String;Lj
      ava.lang.String;)Lorg.jbpm.db.JbpmSessionFactory;(AntTaskJbpmSessionFactory.java:38)
      [deploypar] at org.jbpm.ant.DeployParTask.execute()V(DeployParTask.java:32)
      [deploypar] at org.apache.tools.ant.UnknownElement.execute()V(UnknownElement.java:275)
      [deploypar] at org.apache.tools.ant.Task.perform()V(Task.java:364)
      [deploypar] at org.apache.tools.ant.Target.execute()V(Target.java:341)
      [deploypar] at org.apache.tools.ant.Target.performTasks()V(Target.java:369)
      [deploypar] at org.apache.tools.ant.Project.executeSortedTargets(Ljava.util.Vector;)V(Project.ja
      va:1216)
      [deploypar] at org.apache.tools.ant.Project.executeTarget(Ljava.lang.String;)V(Project.java:1185
      )
      [deploypar] at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(Lorg.apache.tools.ant.
      Project;[Ljava.lang.String;)V(DefaultExecutor.java:40)
      [deploypar] at org.apache.tools.ant.Project.executeTargets(Ljava.util.Vector;)V(Project.java:106
      8)
      [deploypar] at org.apache.tools.ant.Main.runBuild(Ljava.lang.ClassLoader;)V(Main.java:668)
      [deploypar] at org.apache.tools.ant.Main.startAnt([Ljava.lang.String;Ljava.util.Properties;Ljava
      .lang.ClassLoader;)V(Main.java:187)
      [deploypar] at org.apache.tools.ant.launch.Launcher.run([Ljava.lang.String;)V(Launcher.java:246)

      [deploypar] at org.apache.tools.ant.launch.Launcher.main([Ljava.lang.String;)V(Launcher.java:67)

      [deploypar] couldn't create configuration: hibernate.cfg.xml not found
      [deploypar] at org.jbpm.ant.AntTaskJbpmSessionFactory.createConfiguration(Ljava.lang.String;Ljav
      a.lang.String;)Lorg.hibernate.cfg.Configuration;(AntTaskJbpmSessionFactory.java:113)
      [deploypar] at org.jbpm.ant.AntTaskJbpmSessionFactory.getConfiguration(Ljava.lang.String;Ljava.l
      ang.String;)Lorg.hibernate.cfg.Configuration;(AntTaskJbpmSessionFactory.java:57)
      [deploypar] at org.jbpm.ant.AntTaskJbpmSessionFactory.createJbpmSessionFactory(Ljava.lang.String
      ;Ljava.lang.String;)Lorg.jbpm.db.JbpmSessionFactory;(AntTaskJbpmSessionFactory.java:74)
      [deploypar] at org.jbpm.ant.AntTaskJbpmSessionFactory.getJbpmSessionFactory(Ljava.lang.String;Lj
      ava.lang.String;)Lorg.jbpm.db.JbpmSessionFactory;(AntTaskJbpmSessionFactory.java:38)
      [deploypar] at org.jbpm.ant.DeployParTask.execute()V(DeployParTask.java:32)
      [deploypar] at org.apache.tools.ant.UnknownElement.execute()V(UnknownElement.java:275)
      [deploypar] at org.apache.tools.ant.Task.perform()V(Task.java:364)
      [deploypar] at org.apache.tools.ant.Target.execute()V(Target.java:341)
      [deploypar] at org.apache.tools.ant.Target.performTasks()V(Target.java:369)
      [deploypar] at org.apache.tools.ant.Project.executeSortedTargets(Ljava.util.Vector;)V(Project.ja
      va:1216)
      [deploypar] at org.apache.tools.ant.Project.executeTarget(Ljava.lang.String;)V(Project.java:1185
      )
      [deploypar] at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(Lorg.apache.tools.ant.
      Project;[Ljava.lang.String;)V(DefaultExecutor.java:40)
      [deploypar] at org.apache.tools.ant.Project.executeTargets(Ljava.util.Vector;)V(Project.java:106
      8)
      [deploypar] at org.apache.tools.ant.Main.runBuild(Ljava.lang.ClassLoader;)V(Main.java:668)
      [deploypar] at org.apache.tools.ant.Main.startAnt([Ljava.lang.String;Ljava.util.Properties;Ljava
      .lang.ClassLoader;)V(Main.java:187)
      [deploypar] at org.apache.tools.ant.launch.Launcher.run([Ljava.lang.String;)V(Launcher.java:246)

      [deploypar] at org.apache.tools.ant.launch.Launcher.main([Ljava.lang.String;)V(Launcher.java:67)

      [deploypar] couldn't create JbpmSessionFactory: couldn't create configuration: hibernate.cfg.xml not
      found
      [deploypar] at org.jbpm.ant.AntTaskJbpmSessionFactory.createJbpmSessionFactory(Ljava.lang.String
      ;Ljava.lang.String;)Lorg.jbpm.db.JbpmSessionFactory;(AntTaskJbpmSessionFactory.java:81)
      [deploypar] at org.jbpm.ant.AntTaskJbpmSessionFactory.getJbpmSessionFactory(Ljava.lang.String;Lj
      ava.lang.String;)Lorg.jbpm.db.JbpmSessionFactory;(AntTaskJbpmSessionFactory.java:38)
      [deploypar] at org.jbpm.ant.DeployParTask.execute()V(DeployParTask.java:32)
      [deploypar] at org.apache.tools.ant.UnknownElement.execute()V(UnknownElement.java:275)
      [deploypar] at org.apache.tools.ant.Task.perform()V(Task.java:364)
      [deploypar] at org.apache.tools.ant.Target.execute()V(Target.java:341)
      [deploypar] at org.apache.tools.ant.Target.performTasks()V(Target.java:369)
      [deploypar] at org.apache.tools.ant.Project.executeSortedTargets(Ljava.util.Vector;)V(Project.ja
      va:1216)
      [deploypar] at org.apache.tools.ant.Project.executeTarget(Ljava.lang.String;)V(Project.java:1185
      )
      [deploypar] at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(Lorg.apache.tools.ant.
      Project;[Ljava.lang.String;)V(DefaultExecutor.java:40)
      [deploypar] at org.apache.tools.ant.Project.executeTargets(Ljava.util.Vector;)V(Project.java:106
      8)
      [deploypar] at org.apache.tools.ant.Main.runBuild(Ljava.lang.ClassLoader;)V(Main.java:668)
      [deploypar] at org.apache.tools.ant.Main.startAnt([Ljava.lang.String;Ljava.util.Properties;Ljava
      .lang.ClassLoader;)V(Main.java:187)
      [deploypar] at org.apache.tools.ant.launch.Launcher.run([Ljava.lang.String;)V(Launcher.java:246)

      [deploypar] at org.apache.tools.ant.launch.Launcher.main([Ljava.lang.String;)V(Launcher.java:67)


      BUILD FAILED
      couldn't deploy process archives : couldn't create J
      bpmSessionFactory: couldn't create configuration: hibernate.cfg.xml not found