JFree chart on iseries V5R3

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
sham
Posts: 2
Joined: Tue Dec 23, 2008 9:47 am

JFree chart on iseries V5R3

Post by sham » Tue Dec 23, 2008 9:55 am

Hi ,

I was able to run the jfree chart on windows environment [windows xp]
through IBM Rational Developer 6.0

I move the same .ear file to iseries WAS 6.0 [v5r3] and
I have placed the jfree required jars such as jfreechart.jar,jcommon.jar
in library /QIBM/UserData/Java400/ext/
and SystemDefault.properties in /QIBM/UserData/Java400 library

When i try to call the jsp i am getting the error as below:

E SRVE0068E: Could not invoke the service() method on servlet /chart.jsp. Exception thrown : javax.servlet.ServletException: org/jfree/chart/axis/CategoryAxis
at java.lang.Throwable.<init>(Throwable.java:195)
at java.lang.Exception.<init>(Exception.java:41)
at javax.servlet.ServletException.<init>(ServletException.java:161)
at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:650)
at com.ibm._jsp._chart._jspService(_chart.java:156)
at com.ibm.ws.jsp.runtime.HttpJspBase.service(HttpJspBase.java:91)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:851)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1246)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:380)
at com.ibm.wsspi.webcontainer.servlet.GenericServletWrapper.handleRequest(GenericServletWrapper.java:117)
at com.ibm.ws.jsp.webcontainerext.JSPExtensionServletWrapper.handleRequest(JSPExtensionServletWrapper.java:125)
at com.ibm.ws.jsp.webcontainerext.JSPExtensionProcessor.handleRequest(JSPExtensionProcessor.java:264)
at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:2884)
at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:218)
at com.ibm.ws.webcontainer.VirtualHost.handleRequest(VirtualHost.java:201)
at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:1743)
at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:79)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:422)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:319)
at com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.java:84)
at com.ibm.ws.tcp.channel.impl.WorkQueueManager.requestComplete(WorkQueueManager.java:537)
at com.ibm.ws.tcp.channel.impl.WorkQueueManager.attemptIO(WorkQueueManager.java:593)
at com.ibm.ws.tcp.channel.impl.WorkQueueManager.workerRun(WorkQueueManager.java:946)
at com.ibm.ws.tcp.channel.impl.WorkQueueManager$Worker.run(WorkQueueManager.java:1038)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1447)
---- Begin backtrace for Nested Throwables
java.lang.NoClassDefFoundError: org/jfree/chart/axis/CategoryAxis
at java.lang.Throwable.<init>(Throwable.java:195)
at java.lang.LinkageError.<init>(LinkageError.java:36)
at java.lang.NoClassDefFoundError.<init>(NoClassDefFoundError.java:40)
at org.jfree.chart.ChartFactory.createLineChart(ChartFactory.java:874)
at com.ibm._jsp._chart._jspService(_chart.java:119)
at com.ibm.ws.jsp.runtime.HttpJspBase.service(HttpJspBase.java:91)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:851)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1246)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:380)
at com.ibm.wsspi.webcontainer.servlet.GenericServletWrapper.handleRequest(GenericServletWrapper.java:117)
at com.ibm.ws.jsp.webcontainerext.JSPExtensionServletWrapper.handleRequest(JSPExtensionServletWrapper.java:125)
at com.ibm.ws.jsp.webcontainerext.JSPExtensionProcessor.handleRequest(JSPExtensionProcessor.java:264)
at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:2884)
at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:218)
at com.ibm.ws.webcontainer.VirtualHost.handleRequest(VirtualHost.java:201)
at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:1743)
at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:79)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:422)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:319)
at com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.java:84)
at com.ibm.ws.tcp.channel.impl.WorkQueueManager.requestComplete(WorkQueueManager.java:537)
at com.ibm.ws.tcp.channel.impl.WorkQueueManager.attemptIO(WorkQueueManager.java:593)
at com.ibm.ws.tcp.channel.impl.WorkQueueManager.workerRun(WorkQueueManager.java:946)
at com.ibm.ws.tcp.channel.impl.WorkQueueManager$Worker.run(WorkQueueManager.java:1038)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1447)

Please guide us in this regard.

Taqua
JFreeReport Project Leader
Posts: 698
Joined: Fri Mar 14, 2003 3:34 pm
Contact:

Post by Taqua » Tue Dec 23, 2008 12:56 pm

FAQ Item 10: Is the headless mode active?

sham
Posts: 2
Joined: Tue Dec 23, 2008 9:47 am

JfreeChart on Iseries V5R3

Post by sham » Wed Dec 24, 2008 4:26 am

yes... set the environment as
java.awt.headless=true. in QIBM_RPG_JAVA_PROPERTIES

and also we have put the SystemDefault.properties with the following values
os400.awt.native=true
java.awt.headless=true

in /QIBM/UserData/Java400/ library


but still getting the same error Classnotfound Exception.

Locked