aspose file tools*
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 The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript 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: 16019
    
  20

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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: problem using an XMLParser in JSP