You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Lawence <al...@yahoo.com> on 2003/10/07 17:39:21 UTC

JavaMail doesn't work

Dear all,
 
I installed Tomcat4.1.27 on one win2000 and one winXP. I tried the SendMailServlet that ships with it. The servlet worked fine on win2000 and it gave the following message on winXP:java.lang.NoClassDefFoundError: javax/mail/Message
 
I guess this is because somehow Tomcat can't find the class. (This is wierd since I do not have the problem on win2000). So I downloaded the JavaMail and copied the mail.jar and activation.jar to $CATALINA_HOME/server/lib. But the problem was still there.
 
Any suggestions? Thanks!
 


---------------------------------
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search

Re: JavaMail doesn't work

Posted by Yann C�bron <ya...@yahoo.de>.
> I installed Tomcat4.1.27 on one win2000 and one winXP. I tried the
SendMailServlet that ships with it. The servlet worked fine on win2000 and
it gave the following message on winXP:java.lang.NoClassDefFoundError:
javax/mail/Message
>
> I guess this is because somehow Tomcat can't find the class. (This is
wierd since I do not have the problem on win2000). So I downloaded the
JavaMail and copied the mail.jar and activation.jar to
$CATALINA_HOME/server/lib. But the problem was still there.

put them in $CATALINA_HOME/common/lib, that should work

    Yann




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


RE: JavaMail doesn't work

Posted by John Corrigan <jo...@johncorrigan.net>.
I ran into this problem and I think it was related to having installed
multiple versions of Sun's JSDK on the Win2K machine in question.  I
resolved it by removing all installations of Java and Tomcat and then
reinstalling.  Not sure what the underlying problem was.  My solution was
probably overkill, but it worked :)

-----Original Message-----
From: Lawence [mailto:allforlinux@yahoo.com]
Sent: Tuesday, October 07, 2003 8:39 AM
To: Tomcat Users List
Subject: JavaMail doesn't work


Dear all,

I installed Tomcat4.1.27 on one win2000 and one winXP. I tried the
SendMailServlet that ships with it. The servlet worked fine on win2000 and
it gave the following message on winXP:java.lang.NoClassDefFoundError:
javax/mail/Message

I guess this is because somehow Tomcat can't find the class. (This is wierd
since I do not have the problem on win2000). So I downloaded the JavaMail
and copied the mail.jar and activation.jar to $CATALINA_HOME/server/lib. But
the problem was still there.

Any suggestions? Thanks!



---------------------------------
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search



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