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

本文解决JBPM3.1.4版本在部署过程中遇到的问题,包括配置错误、依赖缺失等,并提供了解决方案。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

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目录。解决问题。

Readme - SwingLabs SwingX Project - http://swingx.dev.java.net<br><br><br>SwingX is a library of components and utilities extending the Java Swing library; read more at our website, <br>http://swingx.dev.java.net, and Wiki page, http://wiki.java.net/bin/view/Javadesktop/SwingLabsSwingX<br><br><br>Getting the Latest Source<br>=========================<br><br>1) Check out the lastest code<br>Download the latest release from our CVS repository; full instructions are at<br>https://swingx.dev.java.net/servlets/ProjectSource<br><br>but you can check out using the generic account "guest", with these settings<br><br>cvs -d :pserver:guest@cvs.dev.java.net:/cvs login<br><br>followed by<br><br>cvs -d :pserver:guest@cvs.dev.java.net:/cvs checkout swingx <br><br><br>Building the Source<br>===================<br>SwingX relies on Ant and Ant build files for controlling compilation, building docs, testing, etc. You can use our Ant build scripts or use your own--some IDEs make this easy to do.<br><br>To compile from the command line, you'll need to have Apache Ant installed; see http://ant.apache.org. <br><br>IMPORTANT: our default task in Ant also runs our unit tests, which are written using jUnit. You need to have Ant be aware of jUnit *before* compiling SwingX. We can't help you with <br>this--it's an Ant configuration issue. <br><br>If jUnit is not properly configured, you may get an error like this:<br> BUILD FAILED<br> c:\swingx\nbproject\build-impl.xml:407: Following error occured while executing this line<br> c:\\swingx\nbproject\build-impl.xml:127: Could not create task or type of type: junit.<br><br> Ant could not find the task or a class this task relies upon.<br><br>Suggestions: <br>- for Ant 1.5.x and previous, make sure optional.jar is in your ANT_HOME\lib directory.<br>- for Ant 1.6.x and above, make sure ant-junit.jar is in your ANT_HOME\lib directory, and that jUnit.jar is either in that directory as well OR listed on your CLASSPATH.<br><br>You can build SwingX by going to the command line and typing<br>ant<br><br>That should be it--this will test and build swingx.jar in the dist directory. <br><br><br>
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值