JBPM中运行build.deploy.xml及build.xml遇到的一些问题

来源:互联网 发布:手机淘宝辅助工具 编辑:程序博客网 时间:2024/06/06 10:44

JBPM3.1.4中运行build.deploy.xml及build.xml遇到的一些问题

1、运行build.deploy.xml的create.db时,出现"jbpm schema export unsuccessful"错误。
解决方法:
改build.properties中的ant.home,jbpm.home,jboss.home路径,必须是绝对路径,我试过%JBOSS_HOME%这样的,不行。
2、运行build.xml的test时,出现"Could not create task or type of type: junit."错误。
解决方法:
在eclipse环境中窗口->首选项->ant->运行时中的类路径加上junit.jar的路径。 

3、运行build.deploy.xml之后,会在%JBOSS_HOME%/server文件中生成jbpm文件夹。打开CMD,到%JBOSS_HOME%/bin,输入run.bat -c jbpm。出现错误:

ERROR [CommandExecutorThread] org.hibernate.HibernateException: Could not parse configuration: hibernate.cfg.xml

3.1.4版本默认的hibernate.cfg.xml比3.1.2的多了一行

<property name="hibernate.cache.provider_class">org.hibernate.cache.HashtableCacheProvider</property>

找到ehcache-1.1.jar,复制到%JBOSS_HOME%/server/jbpm2/deploy/jbpm.sar目录。解决问题。

原创粉丝点击