JBPM4.0在tomcat5.5上运行时报错
Configuration configuration = new Configuration();调用这个时候报错
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
javax.servlet.ServletException: Servlet execution threw an exception
root cause
java.lang.AbstractMethodError: org.apache.xerces.dom.ElementNSImpl.setUserData(Ljava/lang/String;Ljava/lang/Object;Lorg/w3c/dom/UserDataHandler;)Ljava/lang/Object;
org.jbpm.pvm.internal.xml.DomBuilder.startElement(DomBuilder.java:318)
org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)
org.apache.xerces.impl.dtd.XMLDTDValidator.startElement(Unknown Source)
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unknown Source)
org.apache.xerces.impl.XMLDocumentScannerImpl$ContentDispatcher.scanRootElementHook(Unknown Source)
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
org.jbpm.pvm.internal.xml.Parser.buildDom(Parser.java:451)
org.jbpm.pvm.internal.xml.Parser.execute(Parser.java:387)
org.jbpm.pvm.internal.xml.Parse.execute(Parse.java:157)
org.jbpm.pvm.internal.wire.xml.WireParser.<clinit>(WireParser.java:279)
org.jbpm.pvm.internal.env.JbpmConfigurationParser.<init>(JbpmConfigurationParser.java:47)
org.jbpm.pvm.internal.env.JbpmConfigurationParser.<clinit>(JbpmConfigurationParser.java:50)
org.jbpm.pvm.internal.cfg.JbpmConfiguration.parse(JbpmConfiguration.java:165)
org.jbpm.pvm.internal.cfg.JbpmConfiguration.setResource(JbpmConfiguration.java:137)
org.jbpm.pvm.internal.cfg.JbpmConfiguration.buildProcessEngine(JbpmConfiguration.java:100)
org.jbpm.api.Configuration.buildProcessEngine(Configuration.java:137)
bbb.JbmpServlet.getLatestProcessDefinition(JbmpServlet.java:112)
bbb.JbmpServlet.doPost(JbmpServlet.java:83)
javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
note The full stack trace of the root cause is available in the Apache Tomcat/5.5.25 logs.
[解决办法]
我遇到的问题和你一样,我整合jbpm4和sprring的时候遇到的,我觉得这是jar版本的问题,这个最麻烦。。。。。。。。
[解决办法]
原以为是jdk1.6的原因,降到1.5好像也不起效果,感觉是parse的时候出问题了,请大牛就我于水火?
protected void parse(StreamInput streamSource) {
isConfigured = true;
JbpmConfigurationParser.getInstance()
.createParse()
.pushObject(this)
.setStreamSource(streamSource)
.execute()
.checkErrors("jbpm configuration " + streamSource);
}
就是跟到这里出错了。
[解决办法]
找找看tomcat lib 文件夹下是否有 xercesImpl.jar
换成最新版本就OK
[解决办法]
jbpm4.0的问题,我换成jbpm4.2之后问题消失