Thanks for all the replies!
 
Placing the mail.jar and activation.jar under $CATALINA_HOME/common/lib/ solves this 
problem. But I still don't understand the cause of the problem  Also what is the 
searching order of tomcat when it looks for a java class?
 


Phillip Qin <[EMAIL PROTECTED]> wrote:
Use $CATALINA_HOME/common/lib/mail.jar and activation.jar

-----Original Message-----
From: John Corrigan [mailto:[EMAIL PROTECTED] 
Sent: October 7, 2003 7:29 PM
To: Tomcat Users List
Subject: RE: JavaMail doesn't work

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:[EMAIL PROTECTED]
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


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

Reply via email to