RE: JavaMail doesn't work

2003-10-08 Thread Phillip Qin
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]


RE: JavaMail doesn't work

2003-10-08 Thread Lawence
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

RE: JavaMail doesn't work

2003-10-08 Thread Mike Curwen
read this page:
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/class-loader-howto.html
 
Also, every page under the 'configuration' and 'administrators' on the
left hand side, is of interest to developers as well.

 -Original Message-
 From: Lawence [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, October 08, 2003 10:51 AM
 To: Tomcat Users List
 Subject: RE: JavaMail doesn't work
 
 
 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
 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



JavaMail doesn't work

2003-10-07 Thread Lawence
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

2003-10-07 Thread Bodycombe, Andrew
Try placing those jars in /common/lib instead

-Original Message-
From: Lawence [mailto:[EMAIL PROTECTED] 
Sent: 07 October 2003 16:39
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]



Re: JavaMail doesn't work

2003-10-07 Thread Yann Cébron

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



RE: JavaMail doesn't work

2003-10-07 Thread John Corrigan
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]