This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Java in General and the fly likes JSP & Crystal Reports Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "JSP & Crystal Reports" Watch "JSP & Crystal Reports" New topic
Author

JSP & Crystal Reports

Naadir Peterson
Ranch Hand

Joined: Sep 22, 2004
Posts: 37
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

Joined: Sep 22, 2004
Posts: 37
I'm assuming no one on earth has used crystal reports with java...

Mudi Appu
Ranch Hand

Joined: Apr 06, 2005
Posts: 44
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


SCJP 2
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JSP & Crystal Reports
 
Similar Threads
out of Heap Space
Action mapping error !!
what's the problem ?
Problem with LoginAction.java
Error while jsp connecting to database