(Note: this is a copy of a topic I posted at SourceForge before I found this nice forum.)
I just downloaded JFreeChart 0.8.1 and I am trying to get the servlet demo working. I am using WebLogic and I am trying to get the servlet demo working in an existing web app (just to keep it simple). I have placed the JFreeChart jars in my web apps WEB-INF's lib and classes directory. In my WEB-INF web.xml file I have put:
<servlet>
<servlet-name>JFreeChartServletDemo</servlet-name>
<servlet-class>com.jrefinery.chart.demo.JFreeChartServletDemo</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>JFreeChartServletDemo</servlet-name>
<url-pattern>/JFreeChartServletDemo</url-pattern>
</servlet-mapping>
After adding the above I restarted WebLogic.
####<Apr 8, 2002 11:14:48 AM EDT> <Error> <HTTP> <2000-6550> <erouteServer> <ExecuteThread: '11' for queue: 'default'> <admin@biller1> <> <101018> <[WebAppServletContext(5255163,testbiller,/testbiller)] Servlet failed with ServletException>
javax.servlet.ServletException: Servlet class: 'com.jrefinery.chart.demo.JFreeChartServletDemo' could not be loaded - the requested class wasn't found in the classpath: 'D:\Bea\wlserver6.1\config\eroute\applications\testbiller;D:\Bea\wlserver6.1\.\config\eroute\applications\testbiller\WEB-INF\classes;D:\Bea\wlserver6.1\.\config\eroute\applications\testbiller\WEB-INF\_tmp_war_erouteServer_erouteServer_testbiller\WEB-INF\lib\dom4j23356.jar;D:\Bea\wlserver6.1\.\config\eroute\applications\testbiller\WEB-INF\_tmp_war_erouteServer_erouteServer_testbiller\WEB-INF\lib\eroute_accessbean23357.jar;D:\Bea\wlserver6.1\.\config\eroute\applications\testbiller\WEB-INF\_tmp_war_erouteServer_erouteServer_testbiller\WEB-INF\lib\eroute_ejb_client23358.jar;D:\Bea\wlserver6.1\.\config\eroute\applications\testbiller\WEB-INF\_tmp_war_erouteServer_erouteServer_testbiller\WEB-INF\lib\eroute_servlet23359.jar;D:\Bea\wlserver6.1\.\config\eroute\applications\testbiller\WEB-INF\_tmp_war_erouteServer_erouteServer_testbiller\WEB-INF\lib\eroute_web23360.jar;D:\Bea\wlserver6.1\.\config\eroute\applications\testbiller\WEB-INF\_tmp_war_erouteServer_erouteServer_testbiller\WEB-INF\lib\jsTMP23361.jar;D:\Bea\wlserver6.1\.\config\eroute\applications\testbiller\WEB-INF\_tmp_war_erouteServer_erouteServer_testbiller\WEB-INF\lib\standard23362.jar;D:\Bea\wlserver6.1\.\config\eroute\applications\testbiller\WEB-INF\_tmp_war_erouteServer_erouteServer_testbiller\WEB-INF\lib\struts23363.jar;D:\Bea\wlserver6.1\.\config\eroute\applications\testbiller\WEB-INF\_tmp_war_erouteServer_erouteServer_testbiller\WEB-INF\lib\xtags23364.jar;D:\Bea\wlserver6.1\config\eroute\applications\testbiller\WEB-INF\_tmp_war_erouteServer_erouteServer_testbiller'
at weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.java:594)
at weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.java:368)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:242)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:200)
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:2495)
at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2204)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
Does anyone have any advice they could please give me?
Thanks,
Erich
Trouble with demo servlet
Re: Trouble with demo servlet
Hi again,
I found that if I took the extra periods out of the jar names Weblogic then redeployed them correctly and the demo works.
I renamed jfreechart-0.8.1.jar to jfreechart.jar and jcommon-0.6.1.jar to jcommon.jar.
Maybe its a bug in WebLogic or something?!
Thanks!
Erich Kilmer
I found that if I took the extra periods out of the jar names Weblogic then redeployed them correctly and the demo works.
I renamed jfreechart-0.8.1.jar to jfreechart.jar and jcommon-0.6.1.jar to jcommon.jar.
Maybe its a bug in WebLogic or something?!
Thanks!
Erich Kilmer
Re: Trouble with demo servlet
Almost forgot, the charts look great!!!
Thanks!
Erich
Thanks!
Erich