tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jiger Java" <jigerj...@hotmail.com>
Subject Unable to compile JSPs in Tomcat 4
Date Wed, 03 Oct 2001 13:09:14 GMT
Hi Friends,
            I am working on Tomcat 4 Final Release. The scenerio is like 
this.
  I am using XML Schema instead of DTD so I downloaded Lastest Xerces 1.4.3 
since older Xerces were creating problems. I put the latest Xerces.jar file 
in mycontext/WEB-INF/lib. Now these Xml files are read by utility classes in 
a InitServlet to initialize some properties read from XML file. Till this 
everything is working fine. No Exception.
  Then I try to access my context containing index.jsp
then it gives me the following error.


A Servlet Exception Has Occurred
Exception Report:
org.apache.jasper.JasperException: Unable to compile class for JSP
	at org.apache.jasper.servlet.JspServlet.loadJSP(Unknown Source)
	at 
org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(Unknown 
Source)
	at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(Unknown 
Source)
	at org.apache.jasper.servlet.JspServlet.serviceJspFile(Unknown Source)
	at org.apache.jasper.servlet.JspServlet.service(Unknown Source)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
	at org.apache.catalina.core.ApplicationDispatcher.invoke(Unknown Source)
	at org.apache.catalina.core.ApplicationDispatcher.doForward(Unknown Source)
	at org.apache.catalina.core.ApplicationDispatcher.forward(Unknown Source)
	at org.apache.jasper.runtime.PageContextImpl.forward(Unknown Source)
	at org.apache.jsp.index$jsp._jspService(index$jsp.java:59)
	at org.apache.jasper.runtime.HttpJspBase.service(Unknown Source)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
	at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(Unknown 
Source)
	at org.apache.jasper.servlet.JspServlet.serviceJspFile(Unknown Source)
	at org.apache.jasper.servlet.JspServlet.service(Unknown Source)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Unknown 
Source)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(Unknown Source)
	at org.apache.catalina.core.StandardWrapperValve.invoke(Unknown Source)
	at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown Source)
	at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source)
	at org.apache.catalina.core.ContainerBase.invoke(Unknown Source)
	at org.apache.catalina.core.StandardContextValve.invoke(Unknown Source)
	at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown Source)
	at org.apache.catalina.valves.CertificatesValve.invoke(Unknown Source)
	at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown Source)
	at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source)
	at org.apache.catalina.core.ContainerBase.invoke(Unknown Source)
	at org.apache.catalina.core.StandardContext.invoke(Unknown Source)
	at org.apache.catalina.core.StandardHostValve.invoke(Unknown Source)
	at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown Source)
	at org.apache.catalina.valves.AccessLogValve.invoke(Unknown Source)
	at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown Source)
	at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source)
	at org.apache.catalina.core.ContainerBase.invoke(Unknown Source)
	at org.apache.catalina.core.StandardEngineValve.invoke(Unknown Source)
	at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown Source)
	at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source)
	at org.apache.catalina.core.ContainerBase.invoke(Unknown Source)
	at org.apache.catalina.connector.http.HttpProcessor.process(Unknown Source)
	at org.apache.catalina.connector.http.HttpProcessor.run(Unknown Source)
	at java.lang.Thread.run(Thread.java:539)

Root Cause:
java.lang.ClassCastException: 
org.apache.xerces.jaxp.DocumentBuilderFactoryImpl
	at 
javax.xml.parsers.DocumentBuilderFactory.newInstance(DocumentBuilderFactory.java:116)
	at org.apache.jasper.parser.ParserUtils.parseXMLDocument(Unknown Source)
	at org.apache.jasper.compiler.TagLibraryInfoImpl.parseTLD(Unknown Source)
	at org.apache.jasper.compiler.TagLibraryInfoImpl.(Unknown Source)
	at 
org.apache.jasper.compiler.JspParseEventListener.processTaglibDirective(Unknown 
Source)
	at org.apache.jasper.compiler.JspParseEventListener.handleDirective(Unknown 
Source)
	at org.apache.jasper.compiler.DelegatingListener.handleDirective(Unknown 
Source)
	at org.apache.jasper.compiler.Parser$Directive.accept(Unknown Source)
	at org.apache.jasper.compiler.Parser.parse(Unknown Source)
	at org.apache.jasper.compiler.Parser.parse(Unknown Source)
	at org.apache.jasper.compiler.Parser.parse(Unknown Source)
	at org.apache.jasper.compiler.ParserController.parse(Unknown Source)
	at org.apache.jasper.compiler.Compiler.compile(Unknown Source)
	at org.apache.jasper.servlet.JspServlet.loadJSP(Unknown Source)
	at 
org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(Unknown 
Source)
	at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(Unknown 
Source)
	at org.apache.jasper.servlet.JspServlet.serviceJspFile(Unknown Source)
	at org.apache.jasper.servlet.JspServlet.service(Unknown Source)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
	at org.apache.catalina.core.ApplicationDispatcher.invoke(Unknown Source)
	at org.apache.catalina.core.ApplicationDispatcher.doForward(Unknown Source)
	at org.apache.catalina.core.ApplicationDispatcher.forward(Unknown Source)
	at org.apache.jasper.runtime.PageContextImpl.forward(Unknown Source)
	at org.apache.jsp.index$jsp._jspService(index$jsp.java:59)
	at org.apache.jasper.runtime.HttpJspBase.service(Unknown Source)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
	at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(Unknown 
Source)
	at org.apache.jasper.servlet.JspServlet.serviceJspFile(Unknown Source)
	at org.apache.jasper.servlet.JspServlet.service(Unknown Source)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Unknown 
Source)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(Unknown Source)
	at org.apache.catalina.core.StandardWrapperValve.invoke(Unknown Source)
	at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown Source)
	at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source)
	at org.apache.catalina.core.ContainerBase.invoke(Unknown Source)
	at org.apache.catalina.core.StandardContextValve.invoke(Unknown Source)
	at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown Source)
	at org.apache.catalina.valves.CertificatesValve.invoke(Unknown Source)
	at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown Source)
	at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source)
	at org.apache.catalina.core.ContainerBase.invoke(Unknown Source)
	at org.apache.catalina.core.StandardContext.invoke(Unknown Source)
	at org.apache.catalina.core.StandardHostValve.invoke(Unknown Source)
	at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown Source)
	at org.apache.catalina.valves.AccessLogValve.invoke(Unknown Source)
	at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown Source)
	at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source)
	at org.apache.catalina.core.ContainerBase.invoke(Unknown Source)
	at org.apache.catalina.core.StandardEngineValve.invoke(Unknown Source)
	at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown Source)
	at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source)
	at org.apache.catalina.core.ContainerBase.invoke(Unknown Source)
	at org.apache.catalina.connector.http.HttpProcessor.process(Unknown Source)
	at org.apache.catalina.connector.http.HttpProcessor.run(Unknown Source)
	at java.lang.Thread.run(Thread.java:539)

  I understand that Tomcat will use the new Xerces from all purposes incl. 
internal use like compiling Right??
Can u help me point out the problem??

Thanks,
Jiger




_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp


Mime
View raw message