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

Reply via email to