2 Replies Latest reply on Oct 20, 2005 10:47 AM by Hannes Stillerich

    deploying .par via ANT & setting up DB

    Hannes Stillerich Newbie

      I have some questions about deploying and undeploying (using 3.0.1 starterkit).
      The .par is designed with the GPD contains following lines:

      <process-definition xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xsi:noNamespaceSchemaLocation="http://jbpm.org/xsd/jpdl-3.0.xsd" name="simpleAdet">

      The ant-file:
      ...
       <target name="deploy.process.adet">
       <taskdef file="src/java.jbpm/org/jbpm/ant/jbpm.ant.tasks.properties" format="properties">
       <classpath refid="classpath.ant" />
       </taskdef>
       <deploypar properties="src/resources/hsqldb/create.db.hibernate.properties">
       <fileset dir="build" includes="simpleAdet.par" />
       </deploypar>
       </target>
      ...

      Furthermore \src\resources\hsqldb\create.db.hibernate.properties needed this change:
      hibernate.connection.url=jdbc:hsqldb:${jboss.server.data.dir}${/}hypersonic${/}localDB

      Calling the ant-task given above causes:
      [deploypar] deploying process archive D:\dems7qh2\Downloads\jbpm-starters-kit-3.0.1\jbpm\build\simpleAdet.par ...
      [deploypar] 12:30:04,713 DEBUG JpdlXmlReader : process definition line 3: TargetNamespace.2: Expecting no namespace, but the schema document has a target namespace of 'http://jbpm.org/3/jpdl'.
      [deploypar] org.jbpm.jpdl.JpdlException: [[ERROR] process definition line 3: TargetNamespace.2: Expecting no namespace, but the schema document has a target namespace of 'http://jbpm.org/3/jpdl'.]

      [deploypar] at org.jbpm.jpdl.xml.JpdlXmlReader.readProcessDefinition(JpdlXmlReader.java:119)
      [deploypar] at org.jbpm.jpdl.par.JpdlArchiveParser.readFromArchive(JpdlArchiveParser.java:27)
      [deploypar] at org.jbpm.jpdl.par.ProcessArchive.parseProcessDefinition(ProcessArchive.java:46)
      [deploypar] at org.jbpm.graph.def.ProcessDefinition.parseParZipInputStream(ProcessDefinition.java:154)
      [deploypar] at org.jbpm.jpdl.par.ProcessArchiveDeployer.deployZipInputStream(ProcessArchiveDeployer.java:46)
      [deploypar] at org.jbpm.ant.DeployParTask.deploy(DeployParTask.java:69)
      [deploypar] at org.jbpm.ant.DeployParTask.execute(DeployParTask.java:57)
      [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.eclipse.ant.internal.ui.antsupport.EclipseDefaultExecutor.executeTargets(EclipseDefaultExecutor.java:32)
      [deploypar] at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
      [deploypar] at org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.run(InternalAntRunner.java:423)
      [deploypar] at org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.main(InternalAntRunner.java:137)
      [deploypar] 12:30:04,763 DEBUG FileDefinition : preparing file 'processimage.jpg' for storage in the database
      [deploypar] 12:30:04,793 DEBUG FileDefinition : preparing file 'gpd.xml' for storage in the database
      [deploypar] 12:30:05,334 DEBUG ProcessArchiveDeployer : starting transaction to deploy process ProcessDefinition(b86944)
      [deploypar] Hibernate: insert into JBPM_PROCESSDEFINITION (NAME_, VERSION_, ISTERMINATIONIMPLICIT_, STARTSTATE_, ID_) values (?, ?, ?, ?, null)
      [deploypar] 12:30:06,806 WARN JDBCExceptionReporter : SQL Error: -22, SQLState: S0002
      [deploypar] 12:30:06,816 ERROR JDBCExceptionReporter : Table not found: JBPM_PROCESSDEFINITION in statement [insert into JBPM_PROCESSDEFINITION (NAME_, VERSION_, ISTERMINATIONIMPLICIT_, STARTSTATE_, ID_) values (?, ?, ?, ?, null)]
      [deploypar] 12:30:06,836 WARN JDBCExceptionReporter : SQL Error: -22, SQLState: S0002
      [deploypar] 12:30:06,836 ERROR JDBCExceptionReporter : Table not found: JBPM_PROCESSDEFINITION in statement [insert into JBPM_PROCESSDEFINITION (NAME_, VERSION_, ISTERMINATIONIMPLICIT_, STARTSTATE_, ID_) values (?, ?, ?, ?, null)]
      [deploypar] 12:30:06,846 ERROR GraphSession : org.hibernate.exception.SQLGrammarException: could not insert: [org.jbpm.graph.def.ProcessDefinition]
      [deploypar] 12:30:06,846 WARN JbpmSession : can't pop current session: are you calling JbpmSession.close() multiple times ?
      [deploypar] java.lang.RuntimeException: couldn't save process definition 'ProcessDefinition(b86944)'
      [deploypar] at org.jbpm.db.GraphSession.saveProcessDefinition(GraphSession.java:35)
      [deploypar] at org.jbpm.jpdl.par.ProcessArchiveDeployer.deployProcessDefinition(ProcessArchiveDeployer.java:77)
      [deploypar] at org.jbpm.jpdl.par.ProcessArchiveDeployer.deployZipInputStream(ProcessArchiveDeployer.java:47)
      [deploypar] at org.jbpm.ant.DeployParTask.deploy(DeployParTask.java:69)
      [deploypar] at org.jbpm.ant.DeployParTask.execute(DeployParTask.java:57)
      [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.eclipse.ant.internal.ui.antsupport.EclipseDefaultExecutor.executeTargets(EclipseDefaultExecutor.java:32)
      [deploypar] at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
      [deploypar] at org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.run(InternalAntRunner.java:423)
      [deploypar] at org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.main(InternalAntRunner.java:137)
      [deploypar] Caused by: org.hibernate.exception.SQLGrammarException: could not insert: [org.jbpm.graph.def.ProcessDefinition]
      [deploypar] at org.hibernate.exception.ErrorCodeConverter.convert(ErrorCodeConverter.java:70)
      [deploypar] at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:43)
      [deploypar] at org.hibernate.persister.entity.BasicEntityPersister.insert(BasicEntityPersister.java:1777)
      [deploypar] at org.hibernate.persister.entity.BasicEntityPersister.insert(BasicEntityPersister.java:2178)
      [deploypar] at org.hibernate.action.EntityIdentityInsertAction.execute(EntityIdentityInsertAction.java:34)
      [deploypar] at org.hibernate.engine.ActionQueue.execute(ActionQueue.java:239)
      [deploypar] at org.hibernate.event.def.AbstractSaveEventListener.performSaveOrReplicate(AbstractSaveEventListener.java:240)
      [deploypar] at org.hibernate.event.def.AbstractSaveEventListener.performSave(AbstractSaveEventListener.java:160)
      [deploypar] at org.hibernate.event.def.AbstractSaveEventListener.saveWithGeneratedId(AbstractSaveEventListener.java:95)
      [deploypar] at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.saveWithGeneratedOrRequestedId(DefaultSaveOrUpdateEventListener.java:184)
      [deploypar] at org.hibernate.event.def.DefaultSaveEventListener.saveWithGeneratedOrRequestedId(DefaultSaveEventListener.java:33)
      [deploypar] at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.entityIsTransient(DefaultSaveOrUpdateEventListener.java:173)
      [deploypar] at org.hibernate.event.def.DefaultSaveEventListener.performSaveOrUpdate(DefaultSaveEventListener.java:27)
      [deploypar] at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.onSaveOrUpdate(DefaultSaveOrUpdateEventListener.java:69)
      [deploypar] at org.hibernate.impl.SessionImpl.save(SessionImpl.java:481)
      [deploypar] at org.hibernate.impl.SessionImpl.save(SessionImpl.java:476)
      [deploypar] at org.jbpm.db.GraphSession.saveProcessDefinition(GraphSession.java:31)
      [deploypar] ... 15 more
      [deploypar] Caused by: java.sql.SQLException: Table not found: JBPM_PROCESSDEFINITION in statement [insert into JBPM_PROCESSDEFINITION (NAME_, VERSION_, ISTERMINATIONIMPLICIT_, STARTSTATE_, ID_) values (?, ?, ?, ?, null)]
      [deploypar] at org.hsqldb.jdbc.Util.throwError(Unknown Source)
      [deploypar] at org.hsqldb.jdbc.jdbcPreparedStatement.(Unknown Source)
      [deploypar] at org.hsqldb.jdbc.jdbcConnection.prepareStatement(Unknown Source)
      [deploypar] at com.mchange.v2.c3p0.impl.NewProxyConnection.prepareStatement(NewProxyConnection.java:189)
      [deploypar] at org.hibernate.jdbc.AbstractBatcher.getPreparedStatement(AbstractBatcher.java:396)
      [deploypar] at org.hibernate.jdbc.AbstractBatcher.prepareStatement(AbstractBatcher.java:76)
      [deploypar] at org.hibernate.persister.entity.BasicEntityPersister.insert(BasicEntityPersister.java:1739)
      [deploypar] ... 29 more

      BUILD FAILED

      After removing the namespaces from the processdefinition.xml, I get following output:
      [deploypar] deploying process archive D:\dems7qh2\Downloads\jbpm-starters-kit-3.0.1\jbpm\build\simpleAdet.par ...
      [deploypar] 12:34:29,421 DEBUG FileDefinition : preparing file 'processimage.jpg' for storage in the database
      [deploypar] 12:34:29,442 DEBUG FileDefinition : preparing file 'gpd.xml' for storage in the database
      [deploypar] 12:34:29,912 DEBUG ProcessArchiveDeployer : starting transaction to deploy process ProcessDefinition(simpleAdet)
      [deploypar] Hibernate: select processdef0_.ID_ as col_0_0_ from JBPM_PROCESSDEFINITION processdef0_ where processdef0_.NAME_=? order by processdef0_.VERSION_ desc
      [deploypar] 12:34:32,075 WARN JDBCExceptionReporter : SQL Error: -22, SQLState: S0002
      [deploypar] 12:34:32,075 ERROR JDBCExceptionReporter : Table not found: JBPM_PROCESSDEFINITION in statement [select processdef0_.ID_ as col_0_0_ from JBPM_PROCESSDEFINITION processdef0_ where processdef0_.NAME_=? order by processdef0_.VERSION_ desc]
      [deploypar] 12:34:32,105 WARN JDBCExceptionReporter : SQL Error: -22, SQLState: S0002
      [deploypar] 12:34:32,105 ERROR JDBCExceptionReporter : Table not found: JBPM_PROCESSDEFINITION in statement [select processdef0_.ID_ as col_0_0_ from JBPM_PROCESSDEFINITION processdef0_ where processdef0_.NAME_=? order by processdef0_.VERSION_ desc]
      [deploypar] 12:34:32,115 ERROR GraphSession : org.hibernate.exception.SQLGrammarException: could not execute query using iterate
      [deploypar] 12:34:32,115 WARN JbpmSession : can't pop current session: are you calling JbpmSession.close() multiple times ?
      [deploypar] java.lang.RuntimeException: couldn't find process definition 'simpleAdet'

      [deploypar] at org.jbpm.db.GraphSession.findLatestProcessDefinition(GraphSession.java:98)
      [deploypar] at org.jbpm.jpdl.par.ProcessArchiveDeployer.deployProcessDefinition(ProcessArchiveDeployer.java:65)
      [deploypar] at org.jbpm.jpdl.par.ProcessArchiveDeployer.deployZipInputStream(ProcessArchiveDeployer.java:47)
      [deploypar] at org.jbpm.ant.DeployParTask.deploy(DeployParTask.java:69)
      [deploypar] at org.jbpm.ant.DeployParTask.execute(DeployParTask.java:57)
      [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.eclipse.ant.internal.ui.antsupport.EclipseDefaultExecutor.executeTargets(EclipseDefaultExecutor.java:32)
      [deploypar] at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
      [deploypar] at org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.run(InternalAntRunner.java:423)
      [deploypar] at org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.main(InternalAntRunner.java:137)
      [deploypar] Caused by: org.hibernate.exception.SQLGrammarException: could not execute query using iterate
      [deploypar] at org.hibernate.exception.ErrorCodeConverter.convert(ErrorCodeConverter.java:70)
      [deploypar] at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:43)
      [deploypar] at org.hibernate.loader.hql.QueryLoader.iterate(QueryLoader.java:432)
      [deploypar] at org.hibernate.hql.ast.QueryTranslatorImpl.iterate(QueryTranslatorImpl.java:281)
      [deploypar] at org.hibernate.impl.SessionImpl.iterate(SessionImpl.java:935)
      [deploypar] at org.hibernate.impl.QueryImpl.iterate(QueryImpl.java:41)
      [deploypar] at org.jbpm.db.GraphSession.findLatestProcessDefinition(GraphSession.java:91)
      [deploypar] ... 15 more
      [deploypar] Caused by: java.sql.SQLException: Table not found: JBPM_PROCESSDEFINITION in statement [select processdef0_.ID_ as col_0_0_ from JBPM_PROCESSDEFINITION processdef0_ where processdef0_.NAME_=? order by processdef0_.VERSION_ desc]
      [deploypar] at org.hsqldb.jdbc.Util.throwError(Unknown Source)
      [deploypar] at org.hsqldb.jdbc.jdbcPreparedStatement.(Unknown Source)
      [deploypar] at org.hsqldb.jdbc.jdbcConnection.prepareStatement(Unknown Source)
      [deploypar] at com.mchange.v2.c3p0.impl.NewProxyConnection.prepareStatement(NewProxyConnection.java:189)
      [deploypar] at org.hibernate.jdbc.AbstractBatcher.getPreparedStatement(AbstractBatcher.java:396)
      [deploypar] at org.hibernate.jdbc.AbstractBatcher.getPreparedStatement(AbstractBatcher.java:334)
      [deploypar] at org.hibernate.jdbc.AbstractBatcher.prepareQueryStatement(AbstractBatcher.java:88)
      [deploypar] at org.hibernate.loader.Loader.prepareQueryStatement(Loader.java:1162)
      [deploypar] at org.hibernate.loader.hql.QueryLoader.iterate(QueryLoader.java:410)
      [deploypar] ... 19 more

      BUILD FAILED

      The simpleAdet.par - file seems to be ok (includes the 2 xmls and 2 jpg) - even if the process is very simple (start-state -> endstate), the error occurs.
      ----
      The other issue:
      Looking deeper at the build.deploy.xml - there, a new (hsql)database is being created locally. But I want to clean & settup a currently running db, too. First thing pure jBpm (necessary tables and data), other thing the jbpm-applications, like websale. What tasks I have to use and what has to be modified?

      Regards,
      Hannes

        • 1. Re: deploying .par via ANT & setting up DB
          Hannes Stillerich Newbie

          I'm sorry that I have to bother again, but I really stuck :(

          "Hannes" wrote:
          I have some questions about deploying and undeploying (using 3.0.1 starterkit).
          The .par is designed with the GPD contains following lines:
          <process-definition xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
           xsi:noNamespaceSchemaLocation="http://jbpm.org/xsd/jpdl-3.0.xsd" name="simpleAdet">

          That was created bei the old GPD, the GPD (jbpm-gpd-site-3.0.2.zip, downloaded today) creates exactly that definition:
          <?xml version="1.0" encoding="UTF-8"?>
          
          <process-definition
           xmlns="http://jbpm.org/3/jpdl xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
           xsi:schemaLocation="http://jbpm.org/3/jpdl http://jbpm.org/xsd/jpdl-3.0.xsd"
           name="test2">
           <start-state name="start">
           <transition name="tr1" to="end1"></transition>
           </start-state>
           <end-state name="end1"></end-state>
          </process-definition>

          There is a little bug: the " is missing at the end of xmlns="http://jbpm.org/3/jpdl .

          But thats not the problem: I started from the scratch and noted every step:
          • unzip jbpm-starters-kit-3.0.1.zip
          • run AS and test websale (OK)
          • import jbpm-3.0.x project (from the kit) in eclipse (with latest GPD installed)
          • add jBPM Process Definition with Wizard and model a simple workflow (see above) and correct the little error (")
          • adjust build.properties:

            # jbpm.version only used for creating javadocs and the distribution package
            jbpm.version=3.0.1

            # ant.home is only used in the ant.install.libs target for copying the junit and clover libs
            ant.home=D:/Programme/java/apache-ant-1.6.5

            # jbpm.home is only to allow build scripts to open the browser with the html test results
            jbpm.home=D:/jbpm-starters-kit-3.0.1/jbpm

            # jboss config proper only used for deployment
            jboss.home=D:/jbpm-starters-kit-3.0.1/jbpm-server
            jboss.version=4.0.x
            jboss.source.configuration=default

            # for creating the distribution
            jbpm.gpd.site.file=../jbpm-gpd-site-3.0.2.zip

          • add 2 (undepended) tasks to the build.deploy.xml ant script:
            <target name="build.process.simple" description="builds a simple process">
             <mkdir dir="build/simple" />
             <copy todir="build/simple">
             <fileset dir="src/process.examples/simple.par" />
             </copy>
             <zip destfile="build/simple.par">
             <fileset dir="build/simple" />
             </zip>
             </target>
            
             <target name="deploy.process.simple" depends="build.process.simple" description="deploys the simple process">
             <taskdef file="src/java.jbpm/org/jbpm/ant/jbpm.ant.tasks.properties" format="properties">
             <classpath refid="classpath.ant" />
             </taskdef>
             <deploypar properties="src/resources/hsqldb/create.db.hibernate.properties">
             <fileset dir="build" includes="simple.par" />
             </deploypar>
             </target>

          • adjusted src/resources/hsqldb/create.db.hibernate.properties:
            hibernate.dialect=org.hibernate.dialect.HSQLDialect
            hibernate.connection.driver_class=org.hsqldb.jdbcDriver
            #hibernate.connection.url=jdbc:hsqldb:hsql://localhost:1701
            hibernate.connection.url=jdbc:hsqldb:${jboss.server.data.dir}${/}hypersonic${/}localDB
            hibernate.connection.username=sa
            hibernate.connection.password=
            hibernate.c3p0.min_size=1
            hibernate.c3p0.max_size=3
            hibernate.show_sql=true

          • start the 2 tasks within eclipse (I'm sorry for the long trace)
            Buildfile: D:\jbpm-starters-kit-3.0.1\jbpm\build.deploy.xml
            build.process.simple:
            deploy.process.simple:
            [deploypar] 14:35:16,488 DEBUG AntTaskJbpmSessionFactory : checking jbpm session factory cache for key [null, src/resources/hsqldb/create.db.hibernate.properties]
            [deploypar] 14:35:16,518 DEBUG AntTaskJbpmSessionFactory : jbpm session factory cache: {}
            [deploypar] 14:35:16,528 DEBUG AntTaskJbpmSessionFactory : creating new jbpm session factory
            [deploypar] 14:35:16,528 DEBUG AntTaskJbpmSessionFactory : checking hibernate config cache for key [null, src/resources/hsqldb/create.db.hibernate.properties]
            [deploypar] 14:35:16,528 DEBUG AntTaskJbpmSessionFactory : hibernate config cache: {}
            [deploypar] 14:35:16,538 DEBUG AntTaskJbpmSessionFactory : creating new hibernate config
            [deploypar] 14:35:16,568 DEBUG AntTaskJbpmSessionFactory : using the default jbpm configured hibernate configuration
            [deploypar] 14:35:16,668 DEBUG JbpmConfiguration : jbpm.task.instance.class=org.jbpm.taskmgmt.exe.TaskInstance
            [deploypar] 14:35:16,698 DEBUG JbpmConfiguration : jbpm.scheduler.service.factory=org.jbpm.scheduler.impl.SchedulerServiceImpl
            [deploypar] 14:35:16,968 INFO Environment : Hibernate 3.0.5
            [deploypar] 14:35:16,978 INFO Environment : hibernate.properties not found
            [deploypar] 14:35:16,988 INFO Environment : using CGLIB reflection optimizer
            [deploypar] 14:35:16,998 INFO Environment : using JDK 1.4 java.sql.Timestamp handling
            [deploypar] 14:35:17,539 DEBUG JbpmSessionFactory : using the default hibernate configuration file: hibernate.cfg.xml
            [deploypar] 14:35:17,539 INFO Configuration : configuring from resource: /hibernate.cfg.xml
            [deploypar] 14:35:17,549 INFO Configuration : Configuration resource: /hibernate.cfg.xml
            [deploypar] 14:35:18,310 INFO Configuration : Mapping resource: org/jbpm/identity/User.hbm.xml
            [deploypar] 14:35:18,941 INFO HbmBinder : Mapping class: org.jbpm.identity.User -> JBPM_ID_USER
            [deploypar] 14:35:19,212 INFO HbmBinder : Mapping collection: org.jbpm.identity.User.permissions -> JBPM_ID_PERMISSIONS
            [deploypar] 14:35:19,212 INFO Configuration : Mapping resource: org/jbpm/identity/Group.hbm.xml
            [deploypar] 14:35:19,352 INFO HbmBinder : Mapping class: org.jbpm.identity.Group -> JBPM_ID_GROUP
            [deploypar] 14:35:19,382 INFO HbmBinder : Mapping collection: org.jbpm.identity.Group.permissions -> JBPM_ID_PERMISSIONS
            [deploypar] 14:35:19,382 INFO Configuration : Mapping resource: org/jbpm/identity/Membership.hbm.xml
            [deploypar] 14:35:19,582 INFO HbmBinder : Mapping class: org.jbpm.identity.Membership -> JBPM_ID_MEMBERSHIP
            [deploypar] 14:35:20,063 INFO HbmBinder : Mapping collection: org.jbpm.identity.Membership.permissions -> JBPM_ID_PERMISSIONS
            [deploypar] 14:35:20,063 INFO Configuration : Mapping resource: org/jbpm/graph/def/ProcessDefinition.hbm.xml
            [deploypar] 14:35:20,213 INFO HbmBinder : Mapping class: org.jbpm.graph.def.ProcessDefinition -> JBPM_PROCESSDEFINITION
            [deploypar] 14:35:20,444 INFO Configuration : Mapping resource: org/jbpm/graph/def/Node.hbm.xml
            [deploypar] 14:35:20,534 INFO HbmBinder : Mapping class: org.jbpm.graph.def.Node -> JBPM_NODE
            [deploypar] 14:35:20,804 INFO Configuration : Mapping resource: org/jbpm/graph/def/Transition.hbm.xml
            [deploypar] 14:35:20,984 INFO HbmBinder : Mapping class: org.jbpm.graph.def.Transition -> JBPM_TRANSITION
            [deploypar] 14:35:21,004 INFO Configuration : Mapping resource: org/jbpm/graph/def/Event.hbm.xml
            [deploypar] 14:35:21,075 INFO HbmBinder : Mapping class: org.jbpm.graph.def.Event -> JBPM_EVENT
            [deploypar] 14:35:21,095 INFO Configuration : Mapping resource: org/jbpm/graph/def/Action.hbm.xml
            [deploypar] 14:35:21,155 INFO HbmBinder : Mapping class: org.jbpm.graph.def.Action -> JBPM_ACTION
            [deploypar] 14:35:21,175 INFO Configuration : Mapping resource: org/jbpm/graph/def/SuperState.hbm.xml
            [deploypar] 14:35:21,746 INFO HbmBinder : Mapping subclass: org.jbpm.graph.def.SuperState -> JBPM_NODE
            [deploypar] 14:35:21,756 INFO Configuration : Mapping resource: org/jbpm/graph/def/ExceptionHandler.hbm.xml
            [deploypar] 14:35:21,836 INFO HbmBinder : Mapping class: org.jbpm.graph.def.ExceptionHandler -> JBPM_EXCEPTIONHANDLER
            [deploypar] 14:35:21,846 INFO Configuration : Mapping resource: org/jbpm/instantiation/Delegation.hbm.xml
            [deploypar] 14:35:21,966 INFO HbmBinder : Mapping class: org.jbpm.instantiation.Delegation -> JBPM_DELEGATION
            [deploypar] 14:35:22,036 INFO Configuration : Mapping resource: org/jbpm/graph/node/StartState.hbm.xml
            [deploypar] 14:35:22,196 INFO HbmBinder : Mapping subclass: org.jbpm.graph.node.StartState -> JBPM_NODE
            [deploypar] 14:35:22,196 INFO Configuration : Mapping resource: org/jbpm/graph/node/EndState.hbm.xml
            [deploypar] 14:35:22,246 INFO HbmBinder : Mapping subclass: org.jbpm.graph.node.EndState -> JBPM_NODE
            [deploypar] 14:35:22,256 INFO Configuration : Mapping resource: org/jbpm/graph/node/ProcessState.hbm.xml
            [deploypar] 14:35:22,316 INFO HbmBinder : Mapping subclass: org.jbpm.graph.node.ProcessState -> JBPM_NODE
            [deploypar] 14:35:22,326 INFO Configuration : Mapping resource: org/jbpm/graph/node/Decision.hbm.xml
            [deploypar] 14:35:22,437 INFO HbmBinder : Mapping subclass: org.jbpm.graph.node.Decision -> JBPM_NODE
            [deploypar] 14:35:22,437 INFO HbmBinder : Mapping collection: org.jbpm.graph.node.Decision.decisionConditions -> JBPM_DECISIONCONDITIONS
            [deploypar] 14:35:22,447 INFO Configuration : Mapping resource: org/jbpm/graph/node/Fork.hbm.xml
            [deploypar] 14:35:22,567 INFO HbmBinder : Mapping subclass: org.jbpm.graph.node.Fork -> JBPM_NODE
            [deploypar] 14:35:22,567 INFO Configuration : Mapping resource: org/jbpm/graph/node/Join.hbm.xml
            [deploypar] 14:35:22,657 INFO HbmBinder : Mapping subclass: org.jbpm.graph.node.Join -> JBPM_NODE
            [deploypar] 14:35:22,657 INFO Configuration : Mapping resource: org/jbpm/graph/node/State.hbm.xml
            [deploypar] 14:35:22,797 INFO HbmBinder : Mapping subclass: org.jbpm.graph.node.State -> JBPM_NODE
            [deploypar] 14:35:22,797 INFO Configuration : Mapping resource: org/jbpm/graph/node/TaskNode.hbm.xml
            [deploypar] 14:35:22,877 INFO HbmBinder : Mapping subclass: org.jbpm.graph.node.TaskNode -> JBPM_NODE
            [deploypar] 14:35:22,927 INFO Configuration : Mapping resource: org/jbpm/graph/action/Script.hbm.xml
            [deploypar] 14:35:23,058 INFO HbmBinder : Mapping subclass: org.jbpm.graph.action.Script -> JBPM_ACTION
            [deploypar] 14:35:23,158 INFO Configuration : Mapping resource: org/jbpm/context/def/ContextDefinition.hbm.xml
            [deploypar] 14:35:23,578 INFO Configuration : Mapping resource: org/jbpm/context/def/VariableAccess.hbm.xml
            [deploypar] 14:35:23,668 INFO HbmBinder : Mapping class: org.jbpm.context.def.VariableAccess -> JBPM_VARIABLEACCESS
            [deploypar] 14:35:23,698 INFO Configuration : Mapping resource: org/jbpm/taskmgmt/def/TaskMgmtDefinition.hbm.xml
            [deploypar] 14:35:23,729 INFO Configuration : Mapping resource: org/jbpm/taskmgmt/def/Swimlane.hbm.xml
            [deploypar] 14:35:23,819 INFO HbmBinder : Mapping class: org.jbpm.taskmgmt.def.Swimlane -> JBPM_SWIMLANE
            [deploypar] 14:35:23,829 INFO Configuration : Mapping resource: org/jbpm/taskmgmt/def/Task.hbm.xml
            [deploypar] 14:35:23,939 INFO HbmBinder : Mapping class: org.jbpm.taskmgmt.def.Task -> JBPM_TASK
            [deploypar] 14:35:23,969 INFO Configuration : Mapping resource: org/jbpm/taskmgmt/def/TaskController.hbm.xml
            [deploypar] 14:35:24,099 INFO HbmBinder : Mapping class: org.jbpm.taskmgmt.def.TaskController -> JBPM_TASKCONTROLLER
            [deploypar] 14:35:24,109 INFO Configuration : Mapping resource: org/jbpm/module/def/ModuleDefinition.hbm.xml
            [deploypar] 14:35:24,229 INFO HbmBinder : Mapping class: org.jbpm.module.def.ModuleDefinition -> JBPM_MODULEDEFINITION
            [deploypar] 14:35:24,239 INFO Configuration : Mapping resource: org/jbpm/bytes/ByteArray.hbm.xml
            [deploypar] 14:35:24,359 INFO HbmBinder : Mapping class: org.jbpm.bytes.ByteArray -> JBPM_BYTEARRAY
            [deploypar] 14:35:24,369 INFO HbmBinder : Mapping collection: org.jbpm.bytes.ByteArray.byteBlocks -> JBPM_BYTEBLOCK
            [deploypar] 14:35:24,379 INFO Configuration : Mapping resource: org/jbpm/file/def/FileDefinition.hbm.xml
            [deploypar] 14:35:24,450 INFO HbmBinder : Mapping subclass: org.jbpm.file.def.FileDefinition -> JBPM_MODULEDEFINITION
            [deploypar] 14:35:24,450 INFO Configuration : Mapping resource: org/jbpm/scheduler/def/CreateTimerAction.hbm.xml
            [deploypar] 14:35:24,500 INFO HbmBinder : Mapping subclass: org.jbpm.scheduler.def.CreateTimerAction -> JBPM_ACTION
            [deploypar] 14:35:24,690 INFO Configuration : Mapping resource: org/jbpm/scheduler/def/CancelTimerAction.hbm.xml
            [deploypar] 14:35:24,720 INFO HbmBinder : Mapping subclass: org.jbpm.scheduler.def.CancelTimerAction -> JBPM_ACTION
            [deploypar] 14:35:24,730 INFO Configuration : Mapping resource: org/jbpm/graph/exe/Comment.hbm.xml
            [deploypar] 14:35:25,010 INFO HbmBinder : Mapping class: org.jbpm.graph.exe.Comment -> JBPM_COMMENT
            [deploypar] 14:35:25,040 INFO Configuration : Mapping resource: org/jbpm/graph/exe/ProcessInstance.hbm.xml
            [deploypar] 14:35:25,121 INFO HbmBinder : Mapping class: org.jbpm.graph.exe.ProcessInstance -> JBPM_PROCESSINSTANCE
            [deploypar] 14:35:25,161 INFO Configuration : Mapping resource: org/jbpm/graph/exe/Token.hbm.xml
            [deploypar] 14:35:25,251 INFO HbmBinder : Mapping class: org.jbpm.graph.exe.Token -> JBPM_TOKEN
            [deploypar] 14:35:25,311 INFO Configuration : Mapping resource: org/jbpm/graph/exe/RuntimeAction.hbm.xml
            [deploypar] 14:35:25,401 INFO HbmBinder : Mapping class: org.jbpm.graph.exe.RuntimeAction -> JBPM_RUNTIMEACTION
            [deploypar] 14:35:25,431 INFO Configuration : Mapping resource: org/jbpm/module/exe/ModuleInstance.hbm.xml
            [deploypar] 14:35:25,461 INFO HbmBinder : Mapping class: org.jbpm.module.exe.ModuleInstance -> JBPM_MODULEINSTANCE
            [deploypar] 14:35:25,541 INFO Configuration : Mapping resource: org/jbpm/context/exe/ContextInstance.hbm.xml
            [deploypar] 14:35:25,561 INFO HbmBinder : Mapping subclass: org.jbpm.context.exe.ContextInstance -> JBPM_MODULEINSTANCE
            [deploypar] 14:35:25,571 INFO Configuration : Mapping resource: org/jbpm/context/exe/TokenVariableMap.hbm.xml
            [deploypar] 14:35:25,681 INFO HbmBinder : Mapping class: org.jbpm.context.exe.TokenVariableMap -> JBPM_TOKENVARIABLEMAP
            [deploypar] 14:35:25,762 INFO Configuration : Mapping resource: org/jbpm/context/exe/VariableInstance.hbm.xml
            [deploypar] 14:35:25,802 INFO HbmBinder : Mapping class: org.jbpm.context.exe.VariableInstance -> JBPM_VARIABLEINSTANCE
            [deploypar] 14:35:25,822 INFO Configuration : Mapping resource: org/jbpm/context/exe/variableinstance/ByteArrayInstance.hbm.xml
            [deploypar] 14:35:25,902 INFO HbmBinder : Mapping subclass: org.jbpm.context.exe.variableinstance.ByteArrayInstance -> JBPM_VARIABLEINSTANCE
            [deploypar] 14:35:25,932 INFO Configuration : Mapping resource: org/jbpm/context/exe/variableinstance/DateInstance.hbm.xml
            [deploypar] 14:35:25,962 INFO HbmBinder : Mapping subclass: org.jbpm.context.exe.variableinstance.DateInstance -> JBPM_VARIABLEINSTANCE
            [deploypar] 14:35:26,022 INFO Configuration : Mapping resource: org/jbpm/context/exe/variableinstance/DoubleInstance.hbm.xml
            [deploypar] 14:35:26,072 INFO HbmBinder : Mapping subclass: org.jbpm.context.exe.variableinstance.DoubleInstance -> JBPM_VARIABLEINSTANCE
            [deploypar] 14:35:26,072 INFO Configuration : Mapping resource: org/jbpm/context/exe/variableinstance/HibernateLongInstance.hbm.xml
            [deploypar] 14:35:26,162 INFO HbmBinder : Mapping subclass: org.jbpm.context.exe.variableinstance.HibernateLongInstance -> JBPM_VARIABLEINSTANCE
            [deploypar] 14:35:26,192 INFO Configuration : Mapping resource: org/jbpm/context/exe/variableinstance/HibernateStringInstance.hbm.xml
            [deploypar] 14:35:26,513 INFO HbmBinder : Mapping subclass: org.jbpm.context.exe.variableinstance.HibernateStringInstance -> JBPM_VARIABLEINSTANCE
            [deploypar] 14:35:26,523 INFO Configuration : Mapping resource: org/jbpm/context/exe/variableinstance/LongInstance.hbm.xml
            [deploypar] 14:35:26,603 INFO HbmBinder : Mapping subclass: org.jbpm.context.exe.variableinstance.LongInstance -> JBPM_VARIABLEINSTANCE
            [deploypar] 14:35:26,603 INFO Configuration : Mapping resource: org/jbpm/context/exe/variableinstance/StringInstance.hbm.xml
            [deploypar] 14:35:26,663 INFO HbmBinder : Mapping subclass: org.jbpm.context.exe.variableinstance.StringInstance -> JBPM_VARIABLEINSTANCE
            [deploypar] 14:35:26,663 INFO Configuration : Mapping resource: org/jbpm/taskmgmt/exe/TaskMgmtInstance.hbm.xml
            [deploypar] 14:35:26,783 INFO HbmBinder : Mapping subclass: org.jbpm.taskmgmt.exe.TaskMgmtInstance -> JBPM_MODULEINSTANCE
            [deploypar] 14:35:26,793 INFO Configuration : Mapping resource: org/jbpm/taskmgmt/exe/TaskInstance.hbm.xml
            [deploypar] 14:35:26,903 INFO HbmBinder : Mapping class: org.jbpm.taskmgmt.exe.TaskInstance -> JBPM_TASKINSTANCE
            [deploypar] 14:35:26,993 INFO HbmBinder : Mapping collection: org.jbpm.taskmgmt.exe.TaskInstance.pooledActors -> JBPM_TASKACTORPOOL
            [deploypar] 14:35:27,023 INFO Configuration : Mapping resource: org/jbpm/taskmgmt/exe/PooledActor.hbm.xml
            [deploypar] 14:35:27,054 INFO HbmBinder : Mapping class: org.jbpm.taskmgmt.exe.PooledActor -> JBPM_POOLEDACTOR
            [deploypar] 14:35:27,104 INFO HbmBinder : Mapping collection: org.jbpm.taskmgmt.exe.PooledActor.taskInstances -> JBPM_TASKACTORPOOL
            [deploypar] 14:35:27,104 INFO Configuration : Mapping resource: org/jbpm/taskmgmt/exe/SwimlaneInstance.hbm.xml
            [deploypar] 14:35:27,154 INFO HbmBinder : Mapping class: org.jbpm.taskmgmt.exe.SwimlaneInstance -> JBPM_SWIMLANEINSTANCE
            [deploypar] 14:35:27,224 INFO Configuration : Mapping resource: org/jbpm/scheduler/exe/Timer.hbm.xml
            [deploypar] 14:35:27,274 INFO HbmBinder : Mapping class: org.jbpm.scheduler.exe.Timer -> JBPM_TIMER
            [deploypar] 14:35:27,304 INFO Configuration : Mapping resource: org/jbpm/logging/log/ProcessLog.hbm.xml
            [deploypar] 14:35:27,664 INFO HbmBinder : Mapping class: org.jbpm.logging.log.ProcessLog -> JBPM_LOG
            [deploypar] 14:35:27,674 INFO Configuration : Mapping resource: org/jbpm/logging/log/MessageLog.hbm.xml
            [deploypar] 14:35:27,765 INFO HbmBinder : Mapping subclass: org.jbpm.logging.log.MessageLog -> JBPM_LOG
            [deploypar] 14:35:27,765 INFO Configuration : Mapping resource: org/jbpm/logging/log/CompositeLog.hbm.xml
            [deploypar] 14:35:27,815 INFO HbmBinder : Mapping subclass: org.jbpm.logging.log.CompositeLog -> JBPM_LOG
            [deploypar] 14:35:27,875 INFO Configuration : Mapping resource: org/jbpm/graph/log/ActionLog.hbm.xml
            [deploypar] 14:35:27,975 INFO HbmBinder : Mapping subclass: org.jbpm.graph.log.ActionLog -> JBPM_LOG
            [deploypar] 14:35:27,975 INFO Configuration : Mapping resource: org/jbpm/graph/log/NodeLog.hbm.xml
            [deploypar] 14:35:28,085 INFO HbmBinder : Mapping subclass: org.jbpm.graph.log.NodeLog -> JBPM_LOG
            [deploypar] 14:35:28,095 INFO Configuration : Mapping resource: org/jbpm/graph/log/ProcessInstanceCreateLog.hbm.xml
            [deploypar] 14:35:28,145 INFO HbmBinder : Mapping subclass: org.jbpm.graph.log.ProcessInstanceCreateLog -> JBPM_LOG
            [deploypar] 14:35:28,215 INFO Configuration : Mapping resource: org/jbpm/graph/log/ProcessInstanceEndLog.hbm.xml
            [deploypar] 14:35:28,245 INFO HbmBinder : Mapping subclass: org.jbpm.graph.log.ProcessInstanceEndLog -> JBPM_LOG
            [deploypar] 14:35:28,305 INFO Configuration : Mapping resource: org/jbpm/graph/log/SignalLog.hbm.xml
            [deploypar] 14:35:28,366 INFO HbmBinder : Mapping subclass: org.jbpm.graph.log.SignalLog -> JBPM_LOG
            [deploypar] 14:35:28,366 INFO Configuration : Mapping resource: org/jbpm/graph/log/TokenCreateLog.hbm.xml
            [deploypar] 14:35:28,446 INFO HbmBinder : Mapping subclass: org.jbpm.graph.log.TokenCreateLog -> JBPM_LOG
            [deploypar] 14:35:28,446 INFO Configuration : Mapping resource: org/jbpm/graph/log/TokenEndLog.hbm.xml
            [deploypar] 14:35:28,786 INFO HbmBinder : Mapping subclass: org.jbpm.graph.log.TokenEndLog -> JBPM_LOG
            [deploypar] 14:35:28,846 INFO Configuration : Mapping resource: org/jbpm/graph/log/TransitionLog.hbm.xml
            [deploypar] 14:35:28,886 INFO HbmBinder : Mapping subclass: org.jbpm.graph.log.TransitionLog -> JBPM_LOG
            [deploypar] 14:35:28,886 INFO Configuration : Mapping resource: org/jbpm/context/log/VariableLog.hbm.xml
            [deploypar] 14:35:28,916 INFO HbmBinder : Mapping subclass: org.jbpm.context.log.VariableLog -> JBPM_LOG
            [deploypar] 14:35:28,926 INFO Configuration : Mapping resource: org/jbpm/context/log/VariableCreateLog.hbm.xml
            [deploypar] 14:35:28,976 INFO HbmBinder : Mapping subclass: org.jbpm.context.log.VariableCreateLog -> JBPM_LOG
            [deploypar] 14:35:28,976 INFO Configuration : Mapping resource: org/jbpm/context/log/VariableDeleteLog.hbm.xml
            [deploypar] 14:35:29,067 INFO HbmBinder : Mapping subclass: org.jbpm.context.log.VariableDeleteLog -> JBPM_LOG
            [deploypar] 14:35:29,087 INFO Configuration : Mapping resource: org/jbpm/context/log/VariableUpdateLog.hbm.xml
            [deploypar] 14:35:29,117 INFO HbmBinder : Mapping subclass: org.jbpm.context.log.VariableUpdateLog -> JBPM_LOG
            [deploypar] 14:35:29,117 INFO Configuration : Mapping resource: org/jbpm/context/log/variableinstance/ByteArrayUpdateLog.hbm.xml
            [deploypar] 14:35:29,167 INFO HbmBinder : Mapping subclass: org.jbpm.context.log.variableinstance.ByteArrayUpdateLog -> JBPM_LOG
            [deploypar] 14:35:29,177 INFO Configuration : Mapping resource: org/jbpm/context/log/variableinstance/DateUpdateLog.hbm.xml
            [deploypar] 14:35:29,227 INFO HbmBinder : Mapping subclass: org.jbpm.context.log.variableinstance.DateUpdateLog -> JBPM_LOG
            [deploypar] 14:35:29,227 INFO Configuration : Mapping resource: org/jbpm/context/log/variableinstance/DoubleUpdateLog.hbm.xml
            [deploypar] 14:35:29,307 INFO HbmBinder : Mapping subclass: org.jbpm.context.log.variableinstance.DoubleUpdateLog -> JBPM_LOG
            [deploypar] 14:35:29,307 INFO Configuration : Mapping resource: org/jbpm/context/log/variableinstance/HibernateLongUpdateLog.hbm.xml
            [deploypar] 14:35:29,427 INFO HbmBinder : Mapping subclass: org.jbpm.context.log.variableinstance.HibernateLongUpdateLog -> JBPM_LOG
            [deploypar] 14:35:29,437 INFO Configuration : Mapping resource: org/jbpm/context/log/variableinstance/HibernateStringUpdateLog.hbm.xml
            [deploypar] 14:35:29,517 INFO HbmBinder : Mapping subclass: org.jbpm.context.log.variableinstance.HibernateStringUpdateLog -> JBPM_LOG
            [deploypar] 14:35:29,527 INFO Configuration : Mapping resource: org/jbpm/context/log/variableinstance/LongUpdateLog.hbm.xml
            [deploypar] 14:35:29,878 INFO HbmBinder : Mapping subclass: org.jbpm.context.log.variableinstance.LongUpdateLog -> JBPM_LOG
            [deploypar] 14:35:29,878 INFO Configuration : Mapping resource: org/jbpm/context/log/variableinstance/StringUpdateLog.hbm.xml
            [deploypar] 14:35:29,918 INFO HbmBinder : Mapping subclass: org.jbpm.context.log.variableinstance.StringUpdateLog -> JBPM_LOG
            [deploypar] 14:35:29,918 INFO Configuration : Mapping resource: org/jbpm/taskmgmt/log/TaskLog.hbm.xml
            [deploypar] 14:35:29,948 INFO HbmBinder : Mapping subclass: org.jbpm.taskmgmt.log.TaskLog -> JBPM_LOG
            [deploypar] 14:35:29,958 INFO Configuration : Mapping resource: org/jbpm/taskmgmt/log/TaskCreateLog.hbm.xml
            [deploypar] 14:35:30,018 INFO HbmBinder : Mapping subclass: org.jbpm.taskmgmt.log.TaskCreateLog -> JBPM_LOG
            [deploypar] 14:35:30,028 INFO Configuration : Mapping resource: org/jbpm/taskmgmt/log/TaskAssignLog.hbm.xml
            [deploypar] 14:35:30,118 INFO HbmBinder : Mapping subclass: org.jbpm.taskmgmt.log.TaskAssignLog -> JBPM_LOG
            [deploypar] 14:35:30,128 INFO Configuration : Mapping resource: org/jbpm/taskmgmt/log/TaskEndLog.hbm.xml
            [deploypar] 14:35:30,168 INFO HbmBinder : Mapping subclass: org.jbpm.taskmgmt.log.TaskEndLog -> JBPM_LOG
            [deploypar] 14:35:30,168 INFO Configuration : Mapping resource: org/jbpm/taskmgmt/log/SwimlaneLog.hbm.xml
            [deploypar] 14:35:30,198 INFO HbmBinder : Mapping subclass: org.jbpm.taskmgmt.log.SwimlaneLog -> JBPM_LOG
            [deploypar] 14:35:30,258 INFO Configuration : Mapping resource: org/jbpm/taskmgmt/log/SwimlaneCreateLog.hbm.xml
            [deploypar] 14:35:30,308 INFO HbmBinder : Mapping subclass: org.jbpm.taskmgmt.log.SwimlaneCreateLog -> JBPM_LOG
            [deploypar] 14:35:30,318 INFO Configuration : Mapping resource: org/jbpm/taskmgmt/log/SwimlaneAssignLog.hbm.xml
            [deploypar] 14:35:30,419 INFO HbmBinder : Mapping subclass: org.jbpm.taskmgmt.log.SwimlaneAssignLog -> JBPM_LOG
            [deploypar] 14:35:30,419 INFO Configuration : Configured SessionFactory: null
            [deploypar] 14:35:30,429 DEBUG JbpmSessionFactory : building hibernate session factory
            [deploypar] 14:35:30,439 INFO Configuration : processing extends queue
            [deploypar] 14:35:30,439 INFO HbmBinder : Mapping subclass: org.jbpm.context.def.ContextDefinition -> JBPM_MODULEDEFINITION
            [deploypar] 14:35:30,439 INFO HbmBinder : Mapping subclass: org.jbpm.taskmgmt.def.TaskMgmtDefinition -> JBPM_MODULEDEFINITION
            [deploypar] 14:35:30,449 INFO Configuration : processing collection mappings
            [deploypar] 14:35:30,449 INFO HbmBinder : Mapping collection: org.jbpm.identity.User.memberships -> JBPM_ID_MEMBERSHIP
            [deploypar] 14:35:30,499 INFO HbmBinder : Mapping collection: org.jbpm.identity.Group.memberships -> JBPM_ID_MEMBERSHIP
            [deploypar] 14:35:30,509 INFO HbmBinder : Mapping collection: org.jbpm.graph.def.ProcessDefinition.events -> JBPM_EVENT
            [deploypar] 14:35:30,539 INFO HbmBinder : Mapping collection: org.jbpm.graph.def.ProcessDefinition.exceptionHandlers -> JBPM_EXCEPTIONHANDLER
            [deploypar] 14:35:30,539 INFO HbmBinder : Mapping collection: org.jbpm.graph.def.ProcessDefinition.nodes -> JBPM_NODE
            [deploypar] 14:35:30,539 INFO HbmBinder : Mapping collection: org.jbpm.graph.def.ProcessDefinition.actions -> JBPM_ACTION
            [deploypar] 14:35:30,549 INFO HbmBinder : Mapping collection: org.jbpm.graph.def.ProcessDefinition.definitions -> JBPM_MODULEDEFINITION
            [deploypar] 14:35:30,549 INFO HbmBinder : Mapping collection: org.jbpm.graph.def.Node.events -> JBPM_EVENT
            [deploypar] 14:35:30,549 INFO HbmBinder : Mapping collection: org.jbpm.graph.def.Node.exceptionHandlers -> JBPM_EXCEPTIONHANDLER
            [deploypar] 14:35:30,559 INFO HbmBinder : Mapping collection: org.jbpm.graph.def.Node.leavingTransitions -> JBPM_TRANSITION
            [deploypar] 14:35:30,559 INFO HbmBinder : Mapping collection: org.jbpm.graph.def.Node.arrivingTransitions -> JBPM_TRANSITION
            [deploypar] 14:35:30,569 INFO HbmBinder : Mapping collection: org.jbpm.graph.def.Transition.events -> JBPM_EVENT
            [deploypar] 14:35:30,569 INFO HbmBinder : Mapping collection: org.jbpm.graph.def.Transition.exceptionHandlers -> JBPM_EXCEPTIONHANDLER
            [deploypar] 14:35:30,569 INFO HbmBinder : Mapping collection: org.jbpm.graph.def.Event.actions -> JBPM_ACTION
            [deploypar] 14:35:30,659 INFO HbmBinder : Mapping collection: org.jbpm.graph.def.SuperState.nodes -> JBPM_NODE
            [deploypar] 14:35:30,659 INFO HbmBinder : Mapping collection: org.jbpm.graph.def.ExceptionHandler.actions -> JBPM_ACTION
            [deploypar] 14:35:30,669 INFO HbmBinder : Mapping collection: org.jbpm.graph.node.ProcessState.variableAccesses -> JBPM_VARIABLEACCESS
            [deploypar] 14:35:30,679 INFO HbmBinder : Mapping collection: org.jbpm.graph.node.TaskNode.tasks -> JBPM_TASK
            [deploypar] 14:35:30,679 INFO HbmBinder : Mapping collection: org.jbpm.graph.action.Script.variableAccesses -> JBPM_VARIABLEACCESS
            [deploypar] 14:35:30,689 INFO HbmBinder : Mapping collection: org.jbpm.taskmgmt.def.Swimlane.tasks -> JBPM_TASK
            [deploypar] 14:35:30,689 INFO HbmBinder : Mapping collection: org.jbpm.taskmgmt.def.Task.events -> JBPM_EVENT
            [deploypar] 14:35:30,689 INFO HbmBinder : Mapping collection: org.jbpm.taskmgmt.def.Task.exceptionHandlers -> JBPM_EXCEPTIONHANDLER
            [deploypar] 14:35:30,779 INFO HbmBinder : Mapping collection: org.jbpm.taskmgmt.def.TaskController.variableAccesses -> JBPM_VARIABLEACCESS
            [deploypar] 14:35:30,789 INFO HbmBinder : Mapping collection: org.jbpm.file.def.FileDefinition.processFiles -> JBPM_BYTEARRAY
            [deploypar] 14:35:30,799 INFO HbmBinder : Mapping collection: org.jbpm.graph.exe.ProcessInstance.runtimeActions -> JBPM_RUNTIMEACTION
            [deploypar] 14:35:30,799 INFO HbmBinder : Mapping collection: org.jbpm.graph.exe.ProcessInstance.instances -> JBPM_MODULEINSTANCE
            [deploypar] 14:35:30,799 INFO HbmBinder : Mapping collection: org.jbpm.graph.exe.Token.children -> JBPM_TOKEN
            [deploypar] 14:35:30,809 INFO HbmBinder : Mapping collection: org.jbpm.graph.exe.Token.comments -> JBPM_COMMENT
            [deploypar] 14:35:30,809 INFO HbmBinder : Mapping collection: org.jbpm.context.exe.ContextInstance.tokenVariableMaps -> JBPM_TOKENVARIABLEMAP
            [deploypar] 14:35:30,809 INFO HbmBinder : Mapping collection: org.jbpm.context.exe.TokenVariableMap.variableInstances -> JBPM_VARIABLEINSTANCE
            [deploypar] 14:35:30,809 INFO HbmBinder : Mapping collection: org.jbpm.taskmgmt.exe.TaskMgmtInstance.swimlaneInstances -> JBPM_SWIMLANEINSTANCE
            [deploypar] 14:35:30,819 INFO HbmBinder : Mapping collection: org.jbpm.taskmgmt.exe.TaskMgmtInstance.taskInstances -> JBPM_TASKINSTANCE
            [deploypar] 14:35:30,909 INFO HbmBinder : Mapping collection: org.jbpm.taskmgmt.exe.TaskInstance.comments -> JBPM_COMMENT
            [deploypar] 14:35:30,909 INFO HbmBinder : Mapping collection: org.jbpm.taskmgmt.exe.SwimlaneInstance.pooledActors -> JBPM_POOLEDACTOR
            [deploypar] 14:35:30,909 INFO HbmBinder : Mapping collection: org.jbpm.logging.log.CompositeLog.children -> JBPM_LOG
            [deploypar] 14:35:30,919 INFO HbmBinder : Mapping collection: org.jbpm.taskmgmt.def.TaskMgmtDefinition.swimlanes -> JBPM_SWIMLANE
            [deploypar] 14:35:30,919 INFO HbmBinder : Mapping collection: org.jbpm.taskmgmt.def.TaskMgmtDefinition.tasks -> JBPM_TASK
            [deploypar] 14:35:30,919 INFO Configuration : processing association property references
            [deploypar] 14:35:30,929 INFO Configuration : processing foreign key constraints
            [deploypar] 14:35:31,570 INFO C3P0ConnectionProvider : C3P0 using driver: org.hsqldb.jdbcDriver at URL: jdbc:hsqldb:${jboss.server.data.dir}${/}hypersonic${/}localDB
            [deploypar] 14:35:31,570 INFO C3P0ConnectionProvider : Connection properties: {user=sa, password=****}
            [deploypar] 14:35:31,580 INFO C3P0ConnectionProvider : autocommit mode: false
            [deploypar] Initializing c3p0 pool... com.mchange.v2.c3p0.PoolBackedDataSource@6fa9fc [ connectionPoolDataSource -> com.mchange.v2.c3p0.WrapperConnectionPoolDataSource@26d607 [ acquireIncrement -> 1, acquireRetryAttempts -> 30, acquireRetryDelay -> 1000, autoCommitOnClose -> false, automaticTestTable -> null, breakAfterAcquireFailure -> false, checkoutTimeout -> 0, connectionTesterClassName -> com.mchange.v2.c3p0.impl.DefaultConnectionTester, factoryClassLocation -> null, forceIgnoreUnresolvedTransactions -> false, idleConnectionTestPeriod -> 0, initialPoolSize -> 1, maxIdleTime -> 0, maxPoolSize -> 3, maxStatements -> 0, maxStatementsPerConnection -> 0, minPoolSize -> 1, nestedDataSource -> com.mchange.v2.c3p0.DriverManagerDataSource@68c26c [ description -> null, driverClass -> null, factoryClassLocation -> null, jdbcUrl -> jdbc:hsqldb:${jboss.server.data.dir}${/}hypersonic${/}localDB, properties -> {user=******, password=******} ] , preferredTestQuery -> null, propertyCycle -> 300, testConnectionOnCheckin -> false, testConnectionOnCheckout -> false, usesTraditionalReflectiveProxies -> false ] , factoryClassLocation -> null, numHelperThreads -> 3, poolOwnerIdentityToken -> 6fa9fc ]
            [deploypar] 14:35:35,176 INFO SettingsFactory : RDBMS: HSQL Database Engine, version: 1.8.0
            [deploypar] 14:35:35,186 INFO SettingsFactory : JDBC driver: HSQL Database Engine Driver, version: 1.8.0
            [deploypar] 14:35:35,336 INFO Dialect : Using dialect: org.hibernate.dialect.HSQLDialect
            [deploypar] 14:35:35,446 INFO TransactionFactoryFactory : Using default transaction strategy (direct JDBC transactions)
            [deploypar] 14:35:35,466 INFO TransactionManagerLookupFactory : No TransactionManagerLookup configured (in JTA environment, use of read-write or transactional second-level cache is not recommended)
            [deploypar] 14:35:35,466 INFO SettingsFactory : Automatic flush during beforeCompletion(): disabled
            [deploypar] 14:35:35,486 INFO SettingsFactory : Automatic session close at end of transaction: disabled
            [deploypar] 14:35:35,486 INFO SettingsFactory : JDBC batch size: 15
            [deploypar] 14:35:35,496 INFO SettingsFactory : JDBC batch updates for versioned data: disabled
            [deploypar] 14:35:35,496 INFO SettingsFactory : Scrollable result sets: enabled
            [deploypar] 14:35:35,506 INFO SettingsFactory : JDBC3 getGeneratedKeys(): disabled
            [deploypar] 14:35:35,506 INFO SettingsFactory : Connection release mode: null
            [deploypar] 14:35:35,516 INFO SettingsFactory : Default batch fetch size: 1
            [deploypar] 14:35:35,516 INFO SettingsFactory : Generate SQL with comments: disabled
            [deploypar] 14:35:35,576 INFO SettingsFactory : Order SQL updates by primary key: disabled
            [deploypar] 14:35:35,576 INFO SettingsFactory : Query translator: org.hibernate.hql.ast.ASTQueryTranslatorFactory
            [deploypar] 14:35:35,626 INFO ASTQueryTranslatorFactory : Using ASTQueryTranslatorFactory
            [deploypar] 14:35:35,626 INFO SettingsFactory : Query language substitutions: {}
            [deploypar] 14:35:35,626 INFO SettingsFactory : Second-level cache: enabled
            [deploypar] 14:35:35,626 INFO SettingsFactory : Query cache: disabled
            [deploypar] 14:35:35,707 INFO SettingsFactory : Cache provider: org.hibernate.cache.EhCacheProvider
            [deploypar] 14:35:35,747 INFO SettingsFactory : Optimize cache for minimal puts: disabled
            [deploypar] 14:35:35,747 INFO SettingsFactory : Structured second-level cache entries: disabled
            [deploypar] 14:35:35,867 INFO SettingsFactory : Echoing all SQL to stdout
            [deploypar] 14:35:35,877 INFO SettingsFactory : Statistics: disabled
            [deploypar] 14:35:35,877 INFO SettingsFactory : Deleted entity synthetic identifier rollback: disabled
            [deploypar] 14:35:35,887 INFO SettingsFactory : Default entity-mode: pojo
            [deploypar] 14:35:36,588 INFO SessionFactoryImpl : building session factory
            [deploypar] 14:35:37,760 WARN EhCacheProvider : Could not find configuration [org.jbpm.graph.def.Node]; using defaults.
            [deploypar] 14:35:38,200 WARN EhCacheProvider : Could not find configuration [org.jbpm.instantiation.Delegation]; using defaults.
            [deploypar] 14:35:38,721 WARN EhCacheProvider : Could not find configuration [org.jbpm.taskmgmt.def.Task]; using defaults.
            [deploypar] 14:35:39,292 WARN EhCacheProvider : Could not find configuration [org.jbpm.graph.def.ProcessDefinition]; using defaults.
            [deploypar] 14:35:40,273 WARN EhCacheProvider : Could not find configuration [org.jbpm.graph.def.ExceptionHandler]; using defaults.
            [deploypar] 14:35:40,283 WARN EhCacheProvider : Could not find configuration [org.jbpm.module.def.ModuleDefinition]; using defaults.
            [deploypar] 14:35:41,515 WARN EhCacheProvider : Could not find configuration [org.jbpm.graph.def.Action]; using defaults.
            [deploypar] 14:35:41,786 WARN EhCacheProvider : Could not find configuration [org.jbpm.graph.def.Event]; using defaults.
            [deploypar] 14:35:42,126 WARN EhCacheProvider : Could not find configuration [org.jbpm.context.def.VariableAccess]; using defaults.
            [deploypar] 14:35:42,387 WARN EhCacheProvider : Could not find configuration [org.jbpm.graph.def.Transition]; using defaults.
            [deploypar] 14:35:43,218 WARN EhCacheProvider : Could not find configuration [org.jbpm.taskmgmt.def.TaskController]; using defaults.
            [deploypar] 14:35:46,503 INFO SessionFactoryObjectFactory : Not binding factory to JNDI, no JNDI name configured
            [deploypar] 14:35:46,513 INFO SessionFactoryImpl : Checking 0 named queries
            [deploypar] deploying process archive D:\jbpm-starters-kit-3.0.1\jbpm\build\simple.par ...
            [deploypar] 14:35:47,374 DEBUG FileDefinition : preparing file 'processimage.jpg' for storage in the database
            [deploypar] 14:35:47,384 DEBUG FileDefinition : preparing file 'gpd.xml' for storage in the database
            [deploypar] 14:35:47,725 DEBUG ProcessArchiveDeployer : starting transaction to deploy process ProcessDefinition(simple)
            [deploypar] Hibernate: select processdef0_.ID_ as col_0_0_ from JBPM_PROCESSDEFINITION processdef0_ where processdef0_.NAME_=? order by processdef0_.VERSION_ desc
            [deploypar] 14:35:49,147 WARN JDBCExceptionReporter : SQL Error: -22, SQLState: S0002
            [deploypar] 14:35:49,167 ERROR JDBCExceptionReporter : Table not found: JBPM_PROCESSDEFINITION in statement [select processdef0_.ID_ as col_0_0_ from JBPM_PROCESSDEFINITION processdef0_ where processdef0_.NAME_=? order by processdef0_.VERSION_ desc]
            [deploypar] 14:35:49,177 WARN JDBCExceptionReporter : SQL Error: -22, SQLState: S0002
            [deploypar] 14:35:49,177 ERROR JDBCExceptionReporter : Table not found: JBPM_PROCESSDEFINITION in statement [select processdef0_.ID_ as col_0_0_ from JBPM_PROCESSDEFINITION processdef0_ where processdef0_.NAME_=? order by processdef0_.VERSION_ desc]
            [deploypar] 14:35:49,177 ERROR GraphSession : org.hibernate.exception.SQLGrammarException: could not execute query using iterate
            [deploypar] 14:35:49,187 WARN JbpmSession : can't pop current session: are you calling JbpmSession.close() multiple times ?
            [deploypar] java.lang.RuntimeException: couldn't find process definition 'simple'
            [deploypar] at org.jbpm.db.GraphSession.findLatestProcessDefinition(GraphSession.java:98)
            [deploypar] at org.jbpm.jpdl.par.ProcessArchiveDeployer.deployProcessDefinition(ProcessArchiveDeployer.java:65)
            [deploypar] at org.jbpm.jpdl.par.ProcessArchiveDeployer.deployZipInputStream(ProcessArchiveDeployer.java:47)
            [deploypar] at org.jbpm.ant.DeployParTask.deploy(DeployParTask.java:69)
            [deploypar] at org.jbpm.ant.DeployParTask.execute(DeployParTask.java:57)
            [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.eclipse.ant.internal.ui.antsupport.EclipseDefaultExecutor.executeTargets(EclipseDefaultExecutor.java:32)
            [deploypar] at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
            [deploypar] at org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.run(InternalAntRunner.java:423)
            [deploypar] at org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.main(InternalAntRunner.java:137)
            [deploypar] Caused by: org.hibernate.exception.SQLGrammarException: could not execute query using iterate
            [deploypar] at org.hibernate.exception.ErrorCodeConverter.convert(ErrorCodeConverter.java:70)
            [deploypar] at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:43)
            [deploypar] at org.hibernate.loader.hql.QueryLoader.iterate(QueryLoader.java:432)
            [deploypar] at org.hibernate.hql.ast.QueryTranslatorImpl.iterate(QueryTranslatorImpl.java:281)
            [deploypar] at org.hibernate.impl.SessionImpl.iterate(SessionImpl.java:935)
            [deploypar] at org.hibernate.impl.QueryImpl.iterate(QueryImpl.java:41)
            [deploypar] at org.jbpm.db.GraphSession.findLatestProcessDefinition(GraphSession.java:91)
            [deploypar] ... 15 more
            [deploypar] Caused by: java.sql.SQLException: Table not found: JBPM_PROCESSDEFINITION in statement [select processdef0_.ID_ as col_0_0_ from JBPM_PROCESSDEFINITION processdef0_ where processdef0_.NAME_=? order by processdef0_.VERSION_ desc]
            [deploypar] at org.hsqldb.jdbc.Util.throwError(Unknown Source)
            [deploypar] at org.hsqldb.jdbc.jdbcPreparedStatement.<init>(Unknown Source)
            [deploypar] at org.hsqldb.jdbc.jdbcConnection.prepareStatement(Unknown Source)
            [deploypar] at com.mchange.v2.c3p0.impl.NewProxyConnection.prepareStatement(NewProxyConnection.java:189)
            [deploypar] at org.hibernate.jdbc.AbstractBatcher.getPreparedStatement(AbstractBatcher.java:396)
            [deploypar] at org.hibernate.jdbc.AbstractBatcher.getPreparedStatement(AbstractBatcher.java:334)
            [deploypar] at org.hibernate.jdbc.AbstractBatcher.prepareQueryStatement(AbstractBatcher.java:88)
            [deploypar] at org.hibernate.loader.Loader.prepareQueryStatement(Loader.java:1162)
            [deploypar] at org.hibernate.loader.hql.QueryLoader.iterate(QueryLoader.java:410)
            [deploypar] ... 19 more


            BUILD FAILED
            D:\jbpm-starters-kit-3.0.1\jbpm\build.deploy.xml:218: couldn't deploy process archives : couldn't find process definition 'simple'

            Total time: 36 seconds


            Thereby it doesn't matter whether jBoss is running or not. In both cases the same error.
            Please help me! It's so frustrating :(


          • 2. Re: deploying .par via ANT & setting up DB
            Hannes Stillerich Newbie

            so, today I've worked on the ant-stuff. One important thing that caused a lot of headache: http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6295519
            I added always the propertie-files (e.g. hibernate.cfg.xml) one by one to my classpath.

            One more hint: if the hsql-server (started by a ant-task) stucks after the line:

            [starthsqldb] [Server@1a758cb]: Initiating startup sequence...
            ,
            the port maybe isn't be freed. That happens always after somethings goes wrong. Helpful is a tool like "activ ports" that shows which prozesses owns which ports and provides at once a kill-proc button..