List
Subject: Re: Sending mail with JavaMail
Looks like the usual Tomcat classloader hierarchy SNAFU.
Try with ONLY in tomcat/common/lib.
--On Friday, October 07, 2005 12:04 PM +0200 Andrés Reyes [EMAIL PROTECTED]
wrote:
activation.jar and mail.jar are placed both in /common/lib, and in
/WEB
David Tonhofer, m-plify S.A. wrote:
--On Friday, October 07, 2005 1:08 PM +0200 Andrés Reyes
[EMAIL PROTECTED] wrote:
It doesn't work.
No way???
Back to basics: find all the places where mail.jar is in this
hierarchy of classloaders. Make sure there is only one.
Make sure that jaf.jar
Did you add the Java Activation Famework jar to your WEB-INF/lib?
Check this out:
http://java.sun.com/products/javabeans/glasgow/jaf.html
--On Friday, October 07, 2005 9:33 AM +0200 Andrés Reyes [EMAIL PROTECTED]
wrote:
Hi. I need to send an email using a servlet (Tomcat 4.1 / Debian
David Tonhofer, m-plify S.A. wrote:
Did you add the Java Activation Famework jar to your WEB-INF/lib?
Check this out:
http://java.sun.com/products/javabeans/glasgow/jaf.html
Yes, activation.jar and mail.jar are placed both in /WEB-INF/lib. I
forget to comment it. Sorry.
--
The doPost exception is in the line 63 of the servlet, which is:
---
MimeMessage message = new MimeMessage(s);
---
--
/***
* Andrés Reyes ( [EMAIL PROTECTED] )
* TCOR Desarrollos y Sistemas, S.L.
* Teléfono: 957 76 42 48
* Fax : 957 76 42 49
Andrés Reyes wrote:
Yes, activation.jar and mail.jar are placed both in /WEB-INF/lib.
Try to put them in tomcat's common/lib. It works for me.
--
Mikolaj Rydzewski [EMAIL PROTECTED]
Becomo S.A.
tel. (12) 2927104
-
To
[EMAIL PROTECTED]
Received: 10/7/2005 10:14 AM
To: Tomcat Users List tomcat-user@jakarta.apache.org
Subject: Re: Sending mail with JavaMail
Andrés Reyes wrote:
Yes, activation.jar and mail.jar are placed both in /WEB-INF/lib.
Try to put them in tomcat's common/lib. It works for me
Confirmation: I have them in common/lib, too. If the mail.jar is in common/lib,
then the jaf.jar must *also* be in common/lib.
--On Friday, October 07, 2005 11:15 AM +0200 Mikolaj Rydzewski [EMAIL
PROTECTED] wrote:
Andrés Reyes wrote:
Yes, activation.jar and mail.jar are placed both in
-plify S.A. [EMAIL PROTECTED]
Received: 10/7/2005 10:21 AM
To: Tomcat Users List tomcat-user@jakarta.apache.org
Subject: Re: Sending mail with JavaMail
Confirmation: I have them in common/lib, too. If the mail.jar is in
common/lib,
then the jaf.jar must *also* be in common/lib
I have them both in /tomcat4/common/lib and included in the CLASSPATH
and the servlet doesn't work (the same javax/activation/datasource
exception in the line which MimeMessage is initialized).
David Tonhofer, m-plify S.A. wrote:
Confirmation: I have them in common/lib, too. If the mail.jar
==
Date: Fri, 07 Oct 2005 11:46:45 +0200
From: =?ISO-8859-1?Q?Andr=E9s_Reyes?= [EMAIL PROTECTED]
To: Tomcat Users List tomcat-user@jakarta.apache.org
Subject: Re: Sending mail with JavaMail
==
I have them both in /tomcat4/common/lib
[EMAIL PROTECTED]
Received: 10/7/2005 10:58 AM
To: Tomcat Users List tomcat-user@jakarta.apache.org
Subject: Re: Sending mail with JavaMail
==
Date: Fri, 07 Oct 2005 11:46:45 +0200
From: =?ISO-8859-1?Q?Andr=E9s_Reyes?= [EMAIL PROTECTED]
To: Tomcat Users List
:
==
Date: Fri, 07 Oct 2005 11:46:45 +0200
From: =?ISO-8859-1?Q?Andr=E9s_Reyes?= [EMAIL PROTECTED]
To: Tomcat Users List tomcat-user@jakarta.apache.org
Subject: Re: Sending mail with JavaMail
==
I have them both in /tomcat4/common/lib and included in the CLASSPATH
[EMAIL PROTECTED]
Received: 10/7/2005 11:03 AM
To: Tomcat Users List tomcat-user@jakarta.apache.org
Subject: Re: Sending mail with JavaMail
activation.jar and mail.jar are placed both in /common/lib, and in
/WEB-INF/lib (and also in JAVA_HOME/lib)
¿Any other place?
;)
¿Maybe the error
On 10/7/05, Andrés Reyes [EMAIL PROTECTED] wrote:
activation.jar and mail.jar are placed both in /common/lib, and in
/WEB-INF/lib (and also in JAVA_HOME/lib)
¿Any other place?
;)
¿Maybe the error be in activation.jar itself? ( I want to believe that
it isn't :( ).
Hmm... unlikely... but
[EMAIL PROTECTED]
Received: 10/7/2005 11:17 AM
To: Tomcat Users List tomcat-user@jakarta.apache.org
Subject: Re: Sending mail with JavaMail
On 10/7/05, Andrés Reyes [EMAIL PROTECTED] wrote:
activation.jar and mail.jar are placed both in /common/lib, and in
/WEB-INF/lib (and also in JAVA_HOME
Looks like the usual Tomcat classloader hierarchy SNAFU.
Try with ONLY in tomcat/common/lib.
--On Friday, October 07, 2005 12:04 PM +0200 Andrés Reyes [EMAIL PROTECTED]
wrote:
activation.jar and mail.jar are placed both in /common/lib, and in /WEB-INF/lib
(and also in JAVA_HOME/lib)
¿Any
-plify S.A. [EMAIL PROTECTED]
Received: 10/7/2005 11:23 AM
To: Tomcat Users List tomcat-user@jakarta.apache.org
Subject: Re: Sending mail with JavaMail
Looks like the usual Tomcat classloader hierarchy SNAFU.
Try with ONLY in tomcat/common/lib.
--On Friday, October 07, 2005 12:04 PM +0200
==
Date: Fri, 07 Oct 2005 12:04:37 +0200
From: =?ISO-8859-1?Q?Andr=E9s_Reyes?= [EMAIL PROTECTED]
To: Tomcat Users List tomcat-user@jakarta.apache.org
Subject: Re: Sending mail with JavaMail
==
activation.jar and mail.jar are placed both
[EMAIL PROTECTED]
Received: 10/7/2005 11:31 AM
To: Tomcat Users List tomcat-user@jakarta.apache.org
Subject: Re: Sending mail with JavaMail
==
Date: Fri, 07 Oct 2005 12:04:37 +0200
From: =?ISO-8859-1?Q?Andr=E9s_Reyes?= [EMAIL PROTECTED]
To: Tomcat Users List
It doesn't work.
David Tonhofer, m-plify S.A. wrote:
Looks like the usual Tomcat classloader hierarchy SNAFU.
Try with ONLY in tomcat/common/lib.
--On Friday, October 07, 2005 12:04 PM +0200 Andrés Reyes
[EMAIL PROTECTED] wrote:
activation.jar and mail.jar are placed both in /common/lib,
--On Friday, October 07, 2005 1:08 PM +0200 Andrés Reyes [EMAIL PROTECTED]
wrote:
It doesn't work.
No way???
Back to basics: find all the places where mail.jar is in this
hierarchy of classloaders. Make sure there is only one.
Make sure that jaf.jar is at the same level or above it.
-plify S.A. [EMAIL PROTECTED]
Received: 10/7/2005 1:24 PM
To: Tomcat Users List tomcat-user@jakarta.apache.org
Subject: Re: Sending mail with JavaMail
--On Friday, October 07, 2005 1:08 PM +0200 Andrés Reyes [EMAIL PROTECTED]
wrote:
It doesn't work.
No way???
Back to basics: find
Classification: UNCLASSIFIED
Caveats: NONE
Are you including your JAR files your BUILD.XML classpath ?
-Original Message-
From: David Tonhofer, m-plify S.A. [mailto:[EMAIL PROTECTED]
Sent: Friday, October 07, 2005 6:25 AM
To: Tomcat Users List
Subject: Re: Sending mail with JavaMail
24 matches
Mail list logo