jbpm部署流程问题
部署jbpm流程出错:
:55:05,906 [main] DEBUG Services : closing service 'persistence': org.jbpm.persistence.db.DbPersistenceService@1386918
org.hibernate.MappingNotFoundException: resource: org/jbpm/identity/User.hbm.xml not found
at org.hibernate.cfg.Configuration.addResource(Configuration.java:569)
at org.hibernate.cfg.Configuration.parseMappingElement(Configuration.java:1593)
at org.hibernate.cfg.Configuration.parseSessionFactory(Configuration.java:1561)
at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1540)
at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1514)
at org.hibernate.cfg.Configuration.configure(Configuration.java:1434)
at org.jbpm.db.hibernate.HibernateHelper.createConfiguration(HibernateHelper.java:83)
at org.jbpm.persistence.db.DbPersistenceServiceFactory.getConfiguration(DbPersistenceServiceFactory.java:76)
at org.jbpm.persistence.db.DbPersistenceServiceFactory.getSessionFactory(DbPersistenceServiceFactory.java:105)
at org.jbpm.persistence.db.DbPersistenceService.getSessionFactory(DbPersistenceService.java:95)
at org.jbpm.persistence.db.DbPersistenceService.getSession(DbPersistenceService.java:99)
at org.jbpm.persistence.db.DbPersistenceService.getGraphSession(DbPersistenceService.java:351)
at org.jbpm.JbpmContext.getGraphSession(JbpmContext.java:639)
at org.jbpm.JbpmContext.deployProcessDefinition(JbpmContext.java:173)
at test.DeployTest.main(DeployTest.java:19)
代码如下:package test;
import java.io.FileInputStream;
import java.util.zip.ZipInputStream;
import org.jbpm.JbpmConfiguration;
import org.jbpm.JbpmContext;
import org.jbpm.graph.def.ProcessDefinition;
public class DeployTest {
public static void main(String args[])throws Exception
{
JbpmContext jbpmContext = JbpmConfiguration.getInstance().createJbpmContext();
try
{
FileInputStream fin=new FileInputStream("c:/helloworld.zip");
ZipInputStream zipin=new ZipInputStream(fin);
ProcessDefinition processDefinition=ProcessDefinition.parseParZipInputStream(zipin);
jbpmContext.deployProcessDefinition(processDefinition);
System.out.println("流程发布成功");
}
finally{
jbpmContext.close();
}
}
}
知道的请告知本人,谢谢
[解决办法]
jbpm-identity.jar