1 Reply Latest reply on Dec 14, 2005 7:58 AM by Abhijit Paranjape

    deploy the process error :couldn't save process definition '

    shi jimeng Newbie

       

      [deploypar] 12:14:15,421 WARN QuerySplitter : no persistent classes found for query class: select pd from org.jbpm.graph.def.ProcessDefinition as pd where pd.name = :name order by pd.version desc
      [deploypar] 12:14:15,468 DEBUG DefaultSaveOrUpdateEventListener : saving transient instance
      [deploypar] 12:14:15,484 ERROR GraphSession : org.hibernate.MappingException: Unknown entity: org.jbpm.graph.def.ProcessDefinition
      [deploypar] 12:14:15,484 DEBUG JDBCTransaction : rollback
      [deploypar] 12:14:15,484 DEBUG JDBCContext : before transaction completion
      [deploypar] 12:14:15,484 DEBUG SessionImpl : before transaction completion
      [deploypar] 12:14:15,484 DEBUG JDBCTransaction : rolled back JDBC Connection
      [deploypar] 12:14:15,484 DEBUG JDBCContext : after transaction completion
      [deploypar] 12:14:15,484 DEBUG SessionImpl : after transaction completion
      [deploypar] 12:14:15,515 DEBUG SessionImpl : closing session
      [deploypar] 12:14:15,515 DEBUG ConnectionManager : closing JDBC connection [ (open PreparedStatements: 0, globally: 0) (open ResultSets: 0, globally: 0)]
      [deploypar] 12:14:15,515 DEBUG JDBCContext : after transaction completion
      [deploypar] 12:14:15,515 DEBUG SessionImpl : after transaction completion
      [deploypar] 12:14:15,531 WARN JbpmSession : can't pop current session: are you calling JbpmSession.close() multiple times ?
      [deploypar] java.lang.RuntimeException: couldn't save process definition 'ProcessDefinition(leave)'
      [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.MappingException: Unknown entity: org.jbpm.graph.def.ProcessDefinition
      [deploypar] at org.hibernate.impl.SessionFactoryImpl.getEntityPersister(SessionFactoryImpl.java:569)
      [deploypar] at org.hibernate.impl.SessionImpl.getEntityPersister(SessionImpl.java:1086)
      [deploypar] at org.hibernate.event.def.AbstractSaveEventListener.saveWithGeneratedId(AbstractSaveEventListener.java:83)
      [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