Win a copy of Head First Android this week in the Android forum!

Deviprasad Shaw

Greenhorn
+ Follow
since Mar 24, 2009
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Deviprasad Shaw

Yes... We are using JDK1.4.2 on both the OS.

Please advice if any display related configuration need to be done on the Weblogic or OS.
Hi All,

I am using Jasper Report 2.0.1 in my application deployed in Weblogic 8.1 SP2 in Sun Solaris 10 OS and getting the below error while generating the reports.
But the same is working fine in windows xp os.

I have added all the required Jasper JAR files in the EAR file and added the below in the Weblogic startup script:
java.awt.headless = true

Please help me to resolve the issue.

The thread dump is as below:

java.lang.NoClassDefFoundError
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:141)
at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:62)
at net.sf.jasperreports.engine.util.JRGraphEnvInitializer.initializeGraphEnv(JRGraphEnvIniti
alizer.java:58)
at net.sf.jasperreports.engine.fill.JRBaseFiller.<init>(JRBaseFiller.java:361)
at net.sf.jasperreports.engine.fill.JRVerticalFiller.<init>(JRVerticalFiller.java:77)
at net.sf.jasperreports.engine.fill.JRVerticalFiller.<init>(JRVerticalFiller.java:59)
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(Genera
teReport.java:176)
at com.crimsonlogic.trade.ipapcs.reports.action.GenerateVoyageReportAction.execute(GenerateV
oyageReportAction.java:161)
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.jav
a: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(WebAppServletC
ontext.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:38
92)
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)
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
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