This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes JSP and the fly likes problem using an XMLParser in JSP Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "problem using an XMLParser in JSP" Watch "problem using an XMLParser in JSP" New topic
Author

problem using an XMLParser in JSP

madhu gun
Greenhorn

Joined: Nov 21, 2001
Posts: 25
Hi
In my application I am using a Servlet forwarding a simple request to a JSP,the JSP contacting a Bean for converting an XML document into an HTML .The bean uses a parser called XalanParser(java class)for converting the XML into html using an XSL file .When I request the JSP page ,I am getting the following exception in the Tomcat Console.What could be the problem.Please help.
javax.servlet.ServletException: mantra/ir2/util/XalanParser
at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:457)
at org.apache.jsp.testBean$jsp._jspService(testBean$jsp.java:104)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:1264)
at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspSer
vlet.java:201)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:3
81)
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(ApplicationDisp
atcher.java:672)
at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationD
ispatcher.java:430)
at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDis
patcher.java:354)
at CallJspSlet2.doGet(CallJspSlet2.java:16)
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(Appl
icationFilterChain.java:247)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:193)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
alve.java:243)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline
.java:566)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
a:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
alve.java:215)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline
.java:566)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
a: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.j
ava:164)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline
.java:566)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:
462)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline
.java:564)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
a:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
ve.java:163)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline
.java:566)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
a:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcesso
r.java:1005)
at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.ja
va:1098)
at java.lang.Thread.run(Unknown Source)

Thaking you,
madhu
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 15960
    
  19

Unfortunately, there's no real information there, but I wouldn't be surprised if you haven't run into a problem specific to Catalina -- conflicting XML parsers. In the pre-Catalina Tomcat, this was a problem because of shared classpaths between the server and its apps. In Catalina the classpaths have been separated. There's an explanation specifically mentioning XML parsers on the Tomcat website.


Customer surveys are for companies who didn't pay proper attention to begin with.
madhu gun
Greenhorn

Joined: Nov 21, 2001
Posts: 25
hi tim
Thanq very much.can you please eloborate what you know further.Now,I will go to Tomcat site and try to find information .
madhu
 
 
subject: problem using an XMLParser in JSP
 
Similar Threads
NullFormatException : Null
How do i correct this error
the web client of the Duke's Bank in The J2EE 1.3 Tutorial supported by sun can't run
Error from TomCat on starting an application
struts-example.war