使用版本: resin3.0.21
jbpm4.3
在java类中使用jbpm4提供的api一切正常,但在resin下配置站点打算从页面调用时出现无法解析jbpm4配置文件的问题,原因在于resin缺省没有用xerces解析xml。
解决办法:
1. 将 xercesImpl.jar,xml-apis.jar 添加到 resin/lib 下,如果用到 xslt,还需要添加 xalan.jar;
2. 将下面几行加入到 resin.conf 中 resin 根结点下:
<system-property javax.xml.parsers.DocumentBuilderFactory='org.apache.xerces.jaxp.DocumentBuilderFactoryImpl'/>
<system-property javax.xml.parsers.SAXParserFactory='org.apache.xerces.jaxp.SAXParserFactoryImpl'/>