Hi,
I'm using Apache's Xerces 2.9 in my web application. When I try and run it, I get the following error:
SEVERE: Servlet.service() for
servlet LoginServlet threw exception
java.lang.VerifyError: (class: org/apache/xerces/jaxp/DocumentBuilderImpl, method: parse signature: (Lorg/xml/sax/InputSource
Lorg/w3c/dom/Document
Incompatible object argument for function call
at org.apache.xerces.jaxp.DocumentBuilderFactoryImpl.newDocumentBuilder(Unknown Source)
at org.netbeans.modules.schema2beans.GraphManager.createXmlDocument(GraphManager.java:414)
at org.netbeans.modules.schema2beans.GraphManager.createXmlDocument(GraphManager.java:384)
at org.netbeans.modules.schema2beans.GraphManager.createXmlDocument(GraphManager.java:331)
at org.netbeans.modules.schema2beans.GraphManager.createRootElementNode(GraphManager.java:115)
at org.netbeans.modules.web.monitor.data.MonitorData.<init>(MonitorData.java:53)
at org.netbeans.modules.web.monitor.data.MonitorData.<init>(MonitorData.java:46)
at org.netbeans.modules.web.monitor.server.MonitorFilter.setupDataRecord(MonitorFilter.java:459)
at org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:306)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Thread.java:619)
If I use Sun's internal implementation then it works fine, but I can't rely on this forever. Does anyone know how to fix this?
Thanks
Richard