• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JSP & Crystal Reports

 
Naadir Peterson
Ranch Hand
Posts: 37
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I'm new to crystal reports. I'm busy evaluating CR 10 and have been going through there examples. I'm having problems trying to view the report in my jsp page. I get the following error:

----------------------------------------------------
javax.servlet.ServletException: org/apache/xerces/jaxp/DocumentBuilderFactoryImpl
org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:825)
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:758)
org.apache.jsp.basic_jsp._jspService(org.apache.jsp.basic_jsp:62)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:325)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:296)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:246)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

root cause

java.lang.NoClassDefFoundError: org/apache/xerces/jaxp/DocumentBuilderFactoryImpl
com.crystaldecisions.reports.reportengineinterface.JPEReportSourceFactory.createReportSource(Unknown Source)
org.apache.jsp.basic_jsp._jspService(org.apache.jsp.basic_jsp:51)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:325)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:296)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:246)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
-------------------------------------------------------------

I'm assuming that it cant find the report. I have all the libraries in place and even copied the reports all over the place. Set the path to the reports in the xml file as stated in the start up guide. I've been struggling with this problem all week. There's so little help on the net regarding this and the help on bussines object's website is useless...
I'm using tomcat 5.
 
Naadir Peterson
Ranch Hand
Posts: 37
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm assuming no one on earth has used crystal reports with java...

 
Mudi Appu
Ranch Hand
Posts: 44
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have used Crystal reports with java. The crystal sever I used is Crystal Enterprise 9.0 and the web server is WebLogic.
I also have experienced this ClassNotFound issue. I guess this happens because of there are two different versions of a class is placed in two different jar files in you class and because of the order you have given in your class path it picks incorrect version of the class. You can overcome this problem by changing the order of jar files in your class path. Try following order
cecore.jar
cereports.jar
cesession.jar
celib.jar
ebus405.jar
corbaidl.jar;
rascore.jar
Serialization.jar
rasapp.jar
webreporting.jar
xerces.jar
 
Consider Paul's rocket mass heater.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic