Meaningless Drivel is fun!*
The moose likes Other Open Source Projects and the fly likes JasperReports - Run time error: java.lang.NoClassDefFoundError Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "JasperReports - Run time error: java.lang.NoClassDefFoundError " Watch "JasperReports - Run time error: java.lang.NoClassDefFoundError " New topic
Author

JasperReports - Run time error: java.lang.NoClassDefFoundError

Deviprasad Shaw
Greenhorn

Joined: Mar 24, 2009
Posts: 4
Hi All,

I am using iReport-2.0.1 for genearting reports. I have successfully generated (PDF, Excel & CSV) reports and tested in my local environment:
Windows XP sp2, Weblogic 8.1 sp2, J2EE application.

But the same application i have deployed in SUN Solaris system with weblogic 8.1 sp5. There i am getting the following error:

java.lang.NoClassDefFoundError
at net.sf.jasperreports.engine.fill.JRFiller.createFiller(JRFiller.java:147)

at net.sf.jasperreports.engine.fill.JRFiller.fillReport(JRFiller.java:83)
at net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillManager.java:601)
etc....

I have searched few forums and as per there suggestion did the below changes:

1. DISPLAY=192.168.20.24:0.0
where 192.168.20.24 is my sun Solaris ip address.
2. -Djava.awt.headless=true
3. put the below jar files in the classpath:
jasperreports-2.0.1.jar
jxl-2.6.jar
commons-beanutils-1.7.jar
commons-collections-2.1.jar
commons-digester-1.7.jar
commons-javaflow-20060411.jar
commons-logging-1.0.2.jar
itext-1.3.1.jar


But still I am facing the same error. Please let me know if you have the solution or suggestion for these types of issues.

Thanks & Regards
Devi
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 39548
    
  27
Is that the complete stack trace of the exception? It should mention which class is not found, possibly above or below the stack trace.


Ping & DNS - updated with new look and Ping home screen widget
Deviprasad Shaw
Greenhorn

Joined: Mar 24, 2009
Posts: 4
Yes... the stack trace is only showing 'NoClassDefFoundError'... For your reference please check the details below:

I am calling the 'JasperFillManager.fillReport' from my java class. After this i am geting the error as belw:


This is the details in the log file:
2009-03-16 13:15:57,285 INFO [GenerateReport] [fillReportWithDataSource] jasper template path = /sns/datafiles/trade/ipapcs/report_templates/PCSPortMessages.jasper
2009-03-16 13:15:57,316 INFO [GenerateReport] [fillReportWithDataSource] jasper file loaded OK ...
2009-03-16 13:15:57,323 ERROR [GenerateReport] [fillReportWithDataSource] Caught Throwable: Error while generating the report=java.lang.NoClassDefFoundError

Weblogic Console Log:
java.lang.NoClassDefFoundError
at net.sf.jasperreports.engine.fill.JRFiller.createFiller(JRFiller.java:147)
at net.sf.jasperreports.engine.fill.JRFiller.fillReport(JRFiller.java:83)
at net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillManager.java:601)
at com.crimsonlogic.trade.ipapcs.reports.util.GenerateReport.fillReportWithDataSource(GenerateReport.java:176)
at com.crimsonlogic.trade.ipapcs.reports.action.PCSPortMessagesGenerateAction.execute(PCSPortMessagesGenerateAction.java:120)
at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:421)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:226)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:415)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1072)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:465)
at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:28)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
at com.crimsonlogic.cps.filter.PortalRedirectFilter.doFilter(PortalRedirectFilter.java:90)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6987)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3892)
at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2766)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:224)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:183)
After excecute the SERVLET
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JasperReports - Run time error: java.lang.NoClassDefFoundError
 
Similar Threads
Problems with Jasper Reports
some JAR problems.
Jasper Report Error
Generating JasperReport in PDF
Upload files from client