tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From John Turner <tomcat-u...@johnturner.com>
Subject Re: More java.lang.NoClassDefFoundError
Date Fri, 11 Jul 2003 12:51:11 GMT

It means that the class you told your servlet to use is not the class that 
it is actually finding.

Typically, this means that you have more than one copy of a JAR file (like 
servlet.jar) in Tomcat's ClassLoader path, and Tomcat is telling you that 
it doesn't know which one to use.

John

On Thu, 10 Jul 2003 22:09:01 -0700, <taf@pgmguild.com> wrote:

> Well, I'm back again for some help.  I'm running Java 1.3.1, Tomcat 3.3.1
>
> I have a small proof of concept java program which uses javax.mail and 
> which successfully sends off a note.
>
> When I incorporate the proof of concept code into a servlet, I get:
>
> java.lang.NoClassDefFoundError: javax/activation/DataSource
>
> What am I missing that the straight Java code runs but the servlet can't 
> seem to find the parts used by the proof code?
>
> Is there a general approach for dealing with NoClassDef errors?  I know 
> that the message indicates something other than ClassNotFound, but what 
> really does it mean?  Pointers to existing doc gratefully received.
>
> Thanks!
>
> Regards, Terry Fuller
> taf@pgmguild.com
> -------------------------------------------------------
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
>



-- 
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message