在JBPM開發過程當中常見問題彙總:java
1. 不用ant 也能直接生成數據庫表web
在下載後的jbpm-4.4.zip 包下的\install\src\db\create 文件夾下,找到要執行的數據庫腳本,到對應數據庫下執行便可。數據庫
2.使用jbpm4 畫圖時中文亂碼? apache
若是使用的是eclipse: 則在eclipse.ini 里加入-Dfile.encoding=UTF-8
若是使用的是myeclipse:則在myeclipse.ini中也添加了-Dfile.encoding=UTF-8 api
3.JBPM4的web項目運行時出錯或JBPM4不與TOMCAT兼容性問題? 錯誤以下:
javax.servlet.ServletException: java.lang.LinkageError: loader constraint violation: when resolving interface method "javax.servlet.jsp.JspApplicationContext.getExpressionFactory()Ljavax/el/ExpressionFactory;" the class loader (instance of org/apache/jasper/servlet/JasperLoader) of the current class, org/apache/jsp/OnDuty/wfmanage_jsp, and the class loader (instance of org/apache/catalina/loader/StandardClassLoader) for resolved class, javax/servlet/jsp/JspApplicationContext, have different Class objects for the type javax/el/ExpressionFactory used in the signature
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:275)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)tomcat
。。。。eclipse
緣由是項目中WEB-INF\lib中的三個jar包(juel.jar, juel-engine.jar, juel-impl.jar)和tomcat6下lib中jar包(el-api.jar)衝突
解決方法:
方法一:換成tomcat5.5 一點問題也沒有了
方法二:將juel.jar, juel-engine.jar, juel-impl.jar這三個包複製到tomcat6下lib中,並刪除原來的el-api.jar,切記要把WEB-INF\lib中的juel.jar, juel-engine.jar, juel-impl.jar刪除。否則仍是要衝突。
jsp