[jdom-interest] JDOM Xerces and Xalan versions

Joel P. Worrall jworrall at commnav.com
Wed Oct 24 12:53:36 PDT 2001


Greetings:

I am experiencing ClassCastException when attempting to use the JDOM
SAXBuilder with Tomcat 4.0.1 on the JDK 1.4.  It's trying to cast a
SAXParser to an XMLReader (which I have built the source for and know it
implements... very strange)

A couple questions.  Is JDOM capable of working with both those products?

Also, what are the versions of xerces and xalan that ship with jdom7?  Can
they work with the latest of both thsoe projects?

Exception below:

org.jdom.JDOMException: Error in building:
org.apache.xerces.parsers.SAXParser
	at org.jdom.input.SAXBuilder.build(SAXBuilder.java:411)
	at org.jdom.input.SAXBuilder.build(SAXBuilder.java:428)
	at
com.commnav.sbh.framework.config.ServletConfigConfiguration.<init>(ServletCo
nfigConfiguration.java:41)
	at com.commnav.sbh.servlets.ControlServlet.init(ControlServlet.java:90)
	at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:852)
	at
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:
3267)
	at
org.apache.catalina.core.StandardContext.start(StandardContext.java:3384)
	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)
	at org.apache.catalina.core.StandardHost.start(StandardHost.java:612)
	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)
	at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:307)
	at org.apache.catalina.core.StandardService.start(StandardService.java:388)
	at org.apache.catalina.core.StandardServer.start(StandardServer.java:505)
	at org.apache.catalina.startup.Catalina.start(Catalina.java:776)
	at org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
	at org.apache.catalina.startup.Catalina.process(Catalina.java:179)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:42
)
	at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:28)
	at java.lang.reflect.Method.invoke(Method.java:313)
	at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)
Root cause: java.lang.ClassCastException:
org.apache.xerces.parsers.SAXParser
	at org.jdom.input.SAXBuilder.build(SAXBuilder.java:295)
	at org.jdom.input.SAXBuilder.build(SAXBuilder.java:428)
	at
com.commnav.sbh.framework.config.ServletConfigConfiguration.<init>(ServletCo
nfigConfiguration.java:41)
	at com.commnav.sbh.servlets.ControlServlet.init(ControlServlet.java:90)
	at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:852)
	at
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:
3267)
	at
org.apache.catalina.core.StandardContext.start(StandardContext.java:3384)
	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)
	at org.apache.catalina.core.StandardHost.start(StandardHost.java:612)
	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)
	at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:307)
	at org.apache.catalina.core.StandardService.start(StandardService.java:388)
	at org.apache.catalina.core.StandardServer.start(StandardServer.java:505)
	at org.apache.catalina.startup.Catalina.start(Catalina.java:776)
	at org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
	at org.apache.catalina.startup.Catalina.process(Catalina.java:179)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:42
)
	at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:28)
	at java.lang.reflect.Method.invoke(Method.java:313)
	at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)

------------------------
    Joel P. Worrall
Senior Software Engineer
     CommNav, Inc.
  (717) 796-1936 x274
  jworrall at commnav.com
jpworrall at programmer.net
 home - (717) 796-2314
 Tango the gifted Llama
-------------------------





More information about the jdom-interest mailing list