0 Replies Latest reply on Nov 9, 2011 12:58 AM by madumm madumm

    JasperException in Linux with Crystal report

    madumm madumm Newbie

      Hi All

       

      I have configured a crystal web service and using Linux as Web Server in DMZ. this has been configured to preview reports in web.

      But when trying to preview the report ended up with the following error shows up at the browser:

       

      JasperException

               ||

      ServletException

                ||

      NoClassDefFoundError

       

      Also tryied adding following property to the jboss.sh under JAVA_OPTS

      -Djava.awt.headless="true"

       

      Does it need to have a space like this between D and java OR no space:

      JAVA_OPTS="$JAVA_OPTS -D java.awt.headless=true"

      JAVA_OPTS="$JAVA_OPTS -Djava.awt.headless=true"

       

      Following shows the Error stack. many thenks inadvance

       

      Best Regards

      madumm


      HTTP Status 500 -
      --------------------------------------------------------------------------------
      type Exception report
      message
      description The server encountered an internal error () that prevented it from fulfilling this request.

      exception
      org.apache.jasper.JasperException: Exception in JSP: /secured/cr/QuickReportShowCR.jsp:61
      58:              session.setAttribute("filename",file_name);
      59:
      60:              IReportSourceFactory2 rsf = new JPEReportSourceFactory();
      61:     IReportSource rptSource = (IReportSource)rsf.createReportSource(file_name , request.getLocale());
      62:     viewer = new IfsCrystalReportViewer();
      63:              viewer.setReportSource(rptSource);
      64:              viewer.setHasLogo(false);

      Stacktrace:
      org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:467)
      org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:371)
      org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:315)
      org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
      org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)

      root cause
      javax.servlet.ServletException
      org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:845)
      org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:778)
      org.apache.jsp.secured.cr.QuickReportShowCR_jsp._jspService(QuickReportShowCR_jsp.java:145)
      org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
      org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:328)
      org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:315)
      org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
      org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)

      root cause
      java.lang.NoClassDefFoundError
      sun.print.UnixPrintServiceLookup.getPrintServices(UnixPrintServiceLookup.java:351)
      javax.print.PrintServiceLookup.getServices(PrintServiceLookup.java:359)
      javax.print.PrintServiceLookup.lookupPrintServices(PrintServiceLookup.java:105)
      java.awt.print.PrinterJob.lookupPrintServices(PrinterJob.java:80)
      com.crystaldecisions.reports.common.a2.e(Unknown Source)
      com.crystaldecisions.reports.common.at.g(Unknown Source)
      com.crystaldecisions.reports.common.at.d(Unknown Source)
      com.crystaldecisions.reports.common.at.f(Unknown Source)
      com.crystaldecisions.reports.common.at.a(Unknown Source)
      com.crystaldecisions.reports.reportdefinition.cy.aF(Unknown Source)
      com.crystaldecisions.reports.reportdefinition.a1.o(Unknown Source)
      com.crystaldecisions.reports.reportdefinition.a1.a(Unknown Source)
      com.crystaldecisions.reports.common.ab.a(Unknown Source)
      com.crystaldecisions.reports.common.ab.if(Unknown Source)
      com.crystaldecisions.reports.reportdefinition.a1.if(Unknown Source)
      com.crystaldecisions.reports.reportdefinition.a1.o(Unknown Source)
      com.crystaldecisions.reports.reportengineinterface.a.a(Unknown Source)
      com.crystaldecisions.reports.reportengineinterface.JPEReportSource.a(Unknown Source)
      com.crystaldecisions.reports.reportengineinterface.JPEReportSourceFactory.createReportSource(Unknown Source)
      org.apache.jsp.secured.cr.QuickReportShowCR_jsp._jspService(QuickReportShowCR_jsp.java:109)
      org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98)
      javax.servlet.http.HttpServlet.service(Htt