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

    技术2022-05-11  70

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


    最新回复(0)