当前位置: 代码迷 >> JBoss >> JBPM4.0在tomcat5.5下运行时报错
  详细解决方案

JBPM4.0在tomcat5.5下运行时报错

热度:4380   发布时间:2013-02-26 00:00:00.0
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