tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Arnaud Héritier <aherit...@sopragroup.com>
Subject the classloader doesn't like XML in TC 3.2.3 and TC 4.0
Date Tue, 20 Nov 2001 16:58:46 GMT
Snifffff, I'm in despair :-)

I'm developping a web application with the Struts Framework. All worked 
correctly until I need to develop a new servlet used to transform XML 
Documents in HTML with Xalan.
I used xerces with Struts, and all was good.
But now I added xalan (xalan.jar,xml-apis.jar, and replace the xerces.jar) 
from the xalan J2 D13 distribution in the lib directory of my web 
application.
So from now after each time when I access to my Xalan Servlet I can't 
access to the JSPs.
Jasper give me this error :

java.lang.ClassCastException: 
org.apache.xerces.jaxp.DocumentBuilderFactoryImpl
	at 
javax.xml.parsers.DocumentBuilderFactory.newInstance(DocumentBuilderFact  
ory.java:116)
	at 
org.apache.jasper.parser.ParserUtils.parseXMLDocument(ParserUtils.java:183)
	at 
org.apache.jasper.compiler.TagLibraryInfoImpl.parseTLD(TagLibraryInfoImp  
l.java:278)
	at 
org.apache.jasper.compiler.TagLibraryInfoImpl.(TagLibraryInfoImpl.java:219)
	at org.apache.jasper.compiler.JspParseEventListener.processTaglibDirect  
ive(JspParseEventListener.java:1150)
	at 
org.apache.jasper.compiler.JspParseEventListener.handleDirective(JspPars  
eEventListener.java:755)
	at 
org.apache.jasper.compiler.DelegatingListener.handleDirective(Delegating  
Listener.java:121)
	at org.apache.jasper.compiler.Parser$Directive.accept(Parser.java:243)
	at org.apache.jasper.compiler.Parser.parse(Parser.java:1132)
	at org.apache.jasper.compiler.Parser.parse(Parser.java:1091)
	at org.apache.jasper.compiler.Parser.parse(Parser.java:1087)
	at 
org.apache.jasper.compiler.ParserController.parse(ParserController.java:  
213)
	at org.apache.jasper.compiler.Compiler.compile(Compiler.java:210)
	at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:543)
	at 
org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(J  
spServlet.java:176)
	at 
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServle  
t.java:188)
	at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:  
381)
	at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:473)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:1264)
	at 
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatc  
her.java:672)
	at 
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDisp  
atcher.java:430)
	at 
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispat  
cher.java:354)
	at 
org.apache.struts.action.ActionServlet.processActionForward(ActionServle  
t.java:1758)
	at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1595)
	at 
com.sopra.projet.aladin.pfe.stock.gui.servlet.PFEActionServlet.process(P  
FEActionServlet.java:137)
	at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:491)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:1125)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:1264)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(App  
licationFilterChain.java:247)
	at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt  
erChain.java:193)
	at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv  
e.java:243)
	at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.ja  
va:566)
	at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
	at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv  
e.java:215)
	at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.ja  
va:566)
	at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
	at 
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2366)
	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.  
java:164)
	at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.ja  
va:566)
	at 
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:462)
	at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.ja  
va:564)
	at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
	at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.  
java:163)
	at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.ja  
va:566)
	at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
	at org.apache.ajp.tomcat4.Ajp13Processor.process(Ajp13Processor.java:371)
	at org.apache.ajp.tomcat4.Ajp13Processor.run(Ajp13Processor.java:424)
	at java.lang.Thread.run(Thread.java:484)
I read the ClassLoader doc off TC 4.0 and search in the archives and I 
don't understand why it doesn't work.
I have a similar problem with TC 3.2.3.
I would like to adapt my web-app without touch to tomcat but I don't know 
what to do.
I don't understand how there's a conflict even though web-app classloader 
and Jasper are separated :-(

Is someone can help me please ??

thanx a lot




Arnaud HERITIER
EAI Consulting
Sopra Group
Tél. : +33 (0)1 53 33 44 74
email : aheritier@sopragroup.com

Ce message est exclusivement destiné aux personnes dont le nom figure 
ci-dessus. Il peut contenir des informations confidentielles dont la 
divulgation est à ce titre rigoureusement interdite. Dans l'hypothèse où 
vous avez reçu ce message par erreur, merci de le renvoyer à l'adresse 
e-mail ci-dessus et de détruire toute copie.

This message may contain confidential and proprietary material for the sole 
use of the intended recipient. Any review or distribution by others is 
strictly prohibited. If you are not the intended recipient, please contact 
the sender and delete all copies.



--
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