compilation problem in tomcat 3.2.1

0
By: rohan - rohan0101
compilation problem in tomcat 3.2.1
2002-12-11 16:55
hi ,

i am trying using this command in jsp deployed in
tomcat 3.2.1
JasperCompileManager.compileReportToFile(application.getRealPath("/reports/newReport1.xml"),application.getRealPath("/reports/temp.xml"));

while doing so i get the following error
java.lang.NullPointerException
at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:878)
at org.apache.commons.digester.Digester.parse(Digester.java:1178)
at dori.jasper.engine.xml.JRXmlLoader.loadXML(JRXmlLoader.java:567)
at dori.jasper.engine.xml.JRXmlLoader.load(JRXmlLoader.java:342)
at dori.jasper.engine.JasperCompileManager.compileReportToFile(JasperCom
pileManager.java:115)
at jsp._0002fjsp_0002fjasperDemo_0002ejspjasperDemo_jsp_46._jspService(_
0002fjsp_0002fjasperDemo_0002ejspjasperDemo_jsp_46.java:124)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspSer
vlet.java:177)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:3
18)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:391)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:4
04)
at org.apache.tomcat.core.Handler.service(Handler.java:286)
at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372
)
at org.apache.tomcat.core.ContextManager.internalService(ContextManager.
java:797)
at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743
)
at org.apache.tomcat.service.http.HttpConnectionHandler.processConnectio
n(HttpConnectionHandler.java:210)
at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:
416)
at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java
:498)
at java.lang.Thread.run(Thread.java:479)

NESTED BY :
dori.jasper.engine.JRException
at dori.jasper.engine.xml.JRXmlLoader.loadXML(JRXmlLoader.java:571)
at dori.jasper.engine.xml.JRXmlLoader.load(JRXmlLoader.java:342)
at dori.jasper.engine.JasperCompileManager.compileReportToFile(JasperCom
pileManager.java:115)
at jsp._0002fjsp_0002fjasperDemo_0002ejspjasperDemo_jsp_46._jspService(_
0002fjsp_0002fjasperDemo_0002ejspjasperDemo_jsp_46.java:124)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspSer
vlet.java:177)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:3
18)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:391)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:4
04)
at org.apache.tomcat.core.Handler.service(Handler.java:286)
at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372
)
at org.apache.tomcat.core.ContextManager.internalService(ContextManager.
java:797)
at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743
)
at org.apache.tomcat.service.http.HttpConnectionHandler.processConnectio
n(HttpConnectionHandler.java:210)
at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:
416)
at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java
:498)
at java.lang.Thread.run(Thread.java:479)
Exception exnull


I checked my classpath everything was in proper place

Can some one plz help me out

Thx,
rohan
2001 JI Open Discussion's picture
Joined: Aug 10 2006 - 3:26am
Last seen: 13 years 3 months ago

0 Answers:

No answers yet
Feedback