[jdom-interest] Xerces

Ian Lea ian.lea at blackwell.co.uk
Mon Jun 11 12:56:30 PDT 2001


Probably a mismatch between versions of xerces and/or other parser
stuff in the classpath.  Try putting the xerces.jar that came with
JDOM in the tomcat/lib directory (as opposed to WEB-INF/lib) and
make sure that you don't have other parser stuff floating around
in extensions directory or anywhere else.

May also need to lose tomcat/lib/jaxp.jar.


--
Ian.
ian.lea at blackwell.co.uk


Peter Giannopoulos wrote:
> 
> Hello all,
> Can anyone tell me how to properly use Xerces with Jdom in tomcat 3-2.1.
> 
> Every time I try to request a DOM or SAX parser with the following code
> (with a custom jsp tag )
> 
> Builder builder = new DOMBuilder("org.jdom.adapaters.XercesDOMAdapter");
> 
> I get a class not found error:
> 
> java.lang.NoClassDefFoundError: org/w3c/dom/Node
>         at com.gemplus.bragi.mcdc.taglib.TestTag.testID(TestTag.java:113)
>         at com.gemplus.bragi.mcdc.taglib.TestTag.doEndTag(TestTag.java:83)
>         at
> _0002ftest_0002ejsptest_jsp_0._jspService(_0002ftest_0002ejsptest_jsp_0.java
> :89)
>         at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>         at
> org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
> va:177)
>         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:318)
>         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:391)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>         at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)
>         at org.apache.tomcat.core.Handler.service(Handler.java:286)
>         at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
>         at
> org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:79
> 7)
>         at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
>         at
> org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection
> (Ajp12ConnectionHandler.java:166)
>         at
> org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
>         at
> org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
>         at java.lang.Thread.run(Thread.java:484)
> 
> Can anyone tell me what is happening here??
> 
> ----------------------------------------------------------
> 
>  Peter Giannopoulos,            Software Designer
>  Gemplus Software,              Advanced Projects Group



More information about the jdom-interest mailing list