Wendy Smoak napisał(a):
On 11/27/05, Daniel Łaś <[EMAIL PROTECTED]> wrote:
Full stack trace in localhost_log is:
2005-11-27 16:45:08 StandardWrapperValve[action]: Servlet.service() for
servlet action threw exception
java.lang.NoClassDefFoundError
at
org.jfree.chart.ChartFactory.createBarChart3D(ChartFactory.java:739)
at
com.edirect.pl.app.admin.struts.control.getGlobalVisitsHourChart.execute(getGlobalVisitsHourChart.java:36)
Make sure you've got exactly one copy of the classes that JFreeChart
needs on the classpath.
(Look in WEB-INF/lib and make sure all the required libraries are
present. Also check that you don't have another copy somewhere else--
common/lib or shared/lib for Tomcat. Sometimes having multiple copies
of a class available will cause strange class loading errors.)
If you haven't already, stop Tomcat and clean out the work directory
for this webapp, then restart. (This is the equivalent of rebooting
Windows and hoping the problem goes away-- it may not fix the problem
but it isn't going to hurt anything.)
It's probably working in Eclipse because you have the classpath set up
properly, but when you build and deploy the webapp, something is
missing or duplicated.
--
Wendy
Hi
I copied all required libraries into my WEB-INF/lib library. My Eclipse
project uses libraries from this directory (except servlet-api.jar). The
only difference is that in Eclipse I have "JRE System library"
referenced. There are no duplicate jars in WEB-INF/lib and tomcat shared
directories. I have been restarting Tomcat many times. Still the same
exception.
Regards
--
Daniel Łaś <[EMAIL PROTECTED]>
e-direct Polska sp. z o.o.
ul. 1-go Maja 9
45-068 Opole
tel. +48 77 44 17 868
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]