Results 1 to 4 of 4
  1. #1
    Join Date
    Jan 2005
    Posts
    1

    Unanswered: Help - CR10 with JSP - cannot find report

    Hello,

    I get the error below and cannot figure out what I am doing wrong.
    Where do I place my report?
    Thanks for the help.

    Frank

    java.lang.NoClassDefFoundError
    com.crystaldecisions.reports.reportengineinterface .JPEReportSourceFactory.createReportSource(Unknown Source)
    org.apache.jsp.test_jsp._jspService(test_jsp.java: 61)
    org.apache.jasper.runtime.HttpJspBase.service(Http JspBase.java:94)
    javax.servlet.http.HttpServlet.service(HttpServlet .java:802)
    org.apache.jasper.servlet.JspServletWrapper.servic e(JspServletWrapper.java:324)
    org.apache.jasper.servlet.JspServlet.serviceJspFil e(JspServlet.java:292)
    org.apache.jasper.servlet.JspServlet.service(JspSe rvlet.java:236)
    javax.servlet.http.HttpServlet.service(HttpServlet .java:802)

    Here is my code:

    <%@ page import="com.crystaldecisions.report.web.viewer.*" %>
    <%@ page import="com.crystaldecisions.reports.reportenginei nterface.JPEReportSourceFactory" %>
    <%@ page import="com.crystaldecisions.sdk.occa.report.repor tsource.IReportSourceFactory2" %>
    <%@ page import="com.crystaldecisions.sdk.occa.report.repor tsource.IReportSource" %>
    <%@ page import="com.crystaldecisions.reports.reportenginei nterface.JPEReportSource" %>


    <%

    String report = "report1.rpt";

    IReportSourceFactory2 rptSrcFactory = new JPEReportSourceFactory();

    IReportSource reportSource = (IReportSource) rptSrcFactory.createReportSource(report, request.getLocale());


    CrystalReportViewer viewer = new CrystalReportViewer();

    viewer.setReportSource(reportSource);

    viewer.processHttpRequest(request, response, getServletConfig().getServletContext(), null);

    viewer.dispose();

    %>

  2. #2
    Join Date
    Feb 2005
    Posts
    2
    Hi Frank,
    i guess, required files are not set in the classpath or not in exact location.

  3. #3
    Join Date
    Feb 2005
    Posts
    2

    Talking Required files

    Hello,
    can any one list list files who needed to connect .rpt to JSP or a link to such list?

    10x ahead,
    netanel

  4. #4
    Join Date
    Feb 2005
    Posts
    6

    hi..

    can i have any sample on JSP files as well as Java files which related to Crystal Report...



    your helps is very much appreciate....



    thanks...





    kianchoong@yahoo.com

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •