tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robert D. Morse" <rmo...@mdesignz.com>
Subject RE: JDK 1.4 and Tomcat 4.01 - XML ClassCastException -- UPDATE
Date Sat, 05 Jan 2002 17:48:06 GMT
Sorry for the noise, this is ONLY under 1.4 beta.  1.3 works just fine.  Has
anyone successfully run Tomcat under 1.4 beta?  If so, what is the secret?

-----Original Message-----
From: Robert D. Morse [mailto:rmorse@mdesignz.com]
Sent: Saturday, January 05, 2002 9:21 AM
To: Tomcat Users List
Subject: RE: JDK 1.4 and Tomcat 4.01 - XML ClassCastException


I am getting this identical error under Linux 2.4 with JDK 1.3 or 1.4 beta.
I recently converted to using the nightly Torque stuff so I don't know if
the problem is related.  Anyone else encounter this or have any suggestions?

-----Original Message-----
From: David Sanders [mailto:dsanders@chaincast.com]
Sent: Wednesday, November 14, 2001 5:59 PM
To: 'tomcat-user@jakarta.apache.org'
Subject: JDK 1.4 and Tomcat 4.01 - XML ClassCastException


Windows 2000
JAVA_HOME=\j2sdk1.4.0-beta3
Tomcat 4.01

bin\startup produces the message below in logs/localhost_log.2001-11-14.txt.

***** This error does NOT occur when JAVA_HOME is JDK 1.3.1.  It only occurs
with 1.4.  1.4 includes javax.xml.parsers.DocumentBuilderFactory.

How can I avoid this error?  I need to use JDK 1.4 for its java.net
enhancements.



java.lang.ClassCastException:
org.apache.xerces.jaxp.DocumentBuilderFactoryImpl
	at
javax.xml.parsers.DocumentBuilderFactory.newInstance(DocumentBuilderFactory.
java:103)
	at
org.apache.jasper.parser.ParserUtils.parseXMLDocument(ParserUtils.java:183)
	at
org.apache.jasper.compiler.TldLocationsCache.processWebDotXml(TldLocationsCa
che.java:165)
	at
org.apache.jasper.compiler.TldLocationsCache.<init>(TldLocationsCache.java:1
38)
	at
org.apache.jasper.EmbededServletOptions.<init>(EmbededServletOptions.java:32
4)
	at org.apache.jasper.servlet.JspServlet.init(JspServlet.java:266)
	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.addChild(ContainerBase.java:785)
	at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:454)
	at
org.apache.catalina.core.StandardHost.install(StandardHost.java:712)
	at
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:599)
	at org.apache.catalina.startup.HostConfig.start(HostConfig.java:777)
	at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:463)

--
To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>


--
To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>


--
To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>


Mime
View raw message