Re: Sending mail with JavaMail (UNCLASSIFIED)

2005-10-10 Thread Andrés Reyes

Samara, Fadi N Mr ACSIM/ASPEX wrote:

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

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 other place?
;)

¿Maybe the error be in activation.jar itself? ( I want to believe that it
   


isn't  :( ).

No.



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Classification:  UNCLASSIFIED 
Caveats: NONE



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


 


I'm not compiling with Ant.

--
/***
* Andrés Reyes ( [EMAIL PROTECTED] )
* TCOR Desarrollos y Sistemas, S.L.
* Teléfono: 957 76 42 48 
* Fax : 957 76 42 49

***/


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



Re: Sending mail with JavaMail (solved)

2005-10-10 Thread Andrés Reyes

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 is at the same level or above it.


  Bootstrap: uses JVM classes  looks in $JAVA_HOME/jre/lib/ext
 |
  System:uses $CATALINA_HOME/bin/bootstrap.jar
 |   and  $JAVA_HOME/lib/tools.jar
 |
  Common:uses $CATALINA_HOME/common/lib
/  \ and $CATALINA_HOME/common/classes
   /\and $CATALINA_HOME/common/endorsed
  /  \jsp and servlet API jars are here
 /+-+
/   |
Catalina:  uses $CATALINA_HOME/server/lib   |
   and $CATALINA_HOME/server/classes|
catalina.jar is here  |
 Shared: uses 
$CATALINA_BASE/shared/lib
   / \and 
$CATALINA_BASE/shared/classes

  /   \
 Webapp1  Webapp2 ... --- 
**GREEDY** CLASSLOADERS





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



It is solved.
I put both (activation.jar and mail.jar) in $JAVA_HOME/jre/lib/ext and 
removed it from any other place, and it works.
Now, I get MessagingException: invalid provider, but I think it is 
about the mail server.

Thanks for your answers.


--
/***
* Andrés Reyes ( [EMAIL PROTECTED] )
* TCOR Desarrollos y Sistemas, S.L.
* Teléfono: 957 76 42 48 
* Fax : 957 76 42 49

***/


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



Sending mail with JavaMail

2005-10-07 Thread Andrés Reyes
Hi. I need to send an email using a servlet (Tomcat 4.1 / Debian 3.1), 
but when I send the form from the jsp page that call the servlet, i get 
this exception:


javax.servlet.ServletException: Servlet execution threw an exception
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:222)
at 
org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:51)
(...)


*root cause*

java.lang.NoClassDefFoundError: javax/activation/DataSource at 
AltaCliente.doPost(AltaCliente.java:63) at 
javax.servlet.http.HttpServlet.service(HttpServlet.java:760) at 
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)


This is the code of the servlet (which compiles with no problem):

-
import java.io.*;
...
...

try {
   Properties props = new Properties();
   props.put(mail.smtp.host, mail.***.***);
   Session s = Session.getInstance(props);
   MimeMessage message = new MimeMessage(s);

   InternetAddress from = new 
InternetAddress([EMAIL PROTECTED]);

   message.setFrom(from);
   InternetAddress to = new 
InternetAddress([EMAIL PROTECTED]);

   message.addRecipient(Message.RecipientType.TO, to);

   message.setSubject(Prueba de JavaMail.);
   message.setText(Hola desde JavaMail ( y Tomcat 
). );


   Store store = s.getStore(pop3);
   store.connect(mail..***, 
[EMAIL PROTECTED], areyes);


   Transport.send(message);
   store.close();
} catch ( MessagingException e ) {
   out.println(h1MessagingException:  + 
e.getMessage() + /h1);

...
...
-

The content of the /WEB-INF/web.xml is ok (only describe the servlet and 
others that I use), and the xml configuration for the context is:  


-
Context path=/* docBase=/usr/share/tomcat4/server/webapps/**
   debug=0 privileged=false
Resource name=mail/Session scope=Shareable type=javax.mail.Session/
 ResourceParams name=mail/Session
   parameter
 namemail.smtp.host/name
 valuemail../value
   /parameter
 /ResourceParams

/Context
-

Thanks in advance.

--
/***
* Andrés Reyes ( [EMAIL PROTECTED] )
* TCOR Desarrollos y Sistemas, S.L.
* Teléfono: 957 76 42 48 
* Fax : 957 76 42 49

***/


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



Re: Sending mail with JavaMail

2005-10-07 Thread David Tonhofer, m-plify S.A.

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 3.1), but when 
I send the form from the jsp page that call the servlet, i get this exception:

javax.servlet.ServletException: Servlet execution threw an exception
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:222)
at 
org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:51)
(...)


*root cause*

java.lang.NoClassDefFoundError: javax/activation/DataSource at 
AltaCliente.doPost(AltaCliente.java:63) at 
javax.servlet.http.HttpServlet.service(HttpServlet.java:760) at 
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)

This is the code of the servlet (which compiles with no problem):

-
import java.io.*;
...
...

try {
Properties props = new Properties();
props.put(mail.smtp.host, mail.***.***);
Session s = Session.getInstance(props);
MimeMessage message = new MimeMessage(s);

InternetAddress from = new InternetAddress([EMAIL 
PROTECTED]);
message.setFrom(from);
InternetAddress to = new InternetAddress([EMAIL 
PROTECTED]);
message.addRecipient(Message.RecipientType.TO, to);

message.setSubject(Prueba de JavaMail.);
message.setText(Hola desde JavaMail ( y Tomcat ). );

Store store = s.getStore(pop3);
store.connect(mail..***, [EMAIL PROTECTED], 
areyes);

Transport.send(message);
store.close();
 } catch ( MessagingException e ) {
out.println(h1MessagingException:  + e.getMessage() + 
/h1);
...
...
-

The content of the /WEB-INF/web.xml is ok (only describe the servlet and others 
that I use), and the xml configuration for the context is:
-
Context path=/* docBase=/usr/share/tomcat4/server/webapps/**
debug=0 privileged=false
 Resource name=mail/Session scope=Shareable type=javax.mail.Session/
  ResourceParams name=mail/Session
parameter
  namemail.smtp.host/name
  valuemail../value
/parameter
  /ResourceParams

/Context
-

Thanks in advance.

--
/***
* Andrés Reyes ( [EMAIL PROTECTED] )
* TCOR Desarrollos y Sistemas, S.L.
* Teléfono: 957 76 42 48 * Fax : 957 76 42 49
***/


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







-- David Tonhofer

  M-PLIFY S.A.
  Resp. Informatique
  47, av. de la Liberté
  L-1931 Luxembourg
  Tel: +352 261846-52
  Fax: +352 261846-46
  Mob: +352 021-139031


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



Re: Sending mail with JavaMail

2005-10-07 Thread Andrés Reyes

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.


--
/***
* Andrés Reyes ( [EMAIL PROTECTED] )
* TCOR Desarrollos y Sistemas, S.L.
* Teléfono: 957 76 42 48 
* Fax : 957 76 42 49

***/


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



Re: Sending mail with JavaMail

2005-10-07 Thread Andrés Reyes

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

***/


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



Re: Sending mail with JavaMail

2005-10-07 Thread Mikolaj Rydzewski

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



Re: Sending mail with JavaMail [255611:132100]

2005-10-07 Thread RTE - Meridian Club
Many thanks for your email. This is an automated response acknowledging receipt.

Please be advised that Badge mailing commences beginning of October 2005.

Should your message require a response we will respond shortly.

Regards
Meridian Club


 -Original Message-
 From: Mikolaj Rydzewski [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.
 
 -- 
 Mikolaj Rydzewski  [EMAIL PROTECTED]
 Becomo S.A.
 tel. (12) 2927104
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

--
Meridian Club
Unit 5, Caxton Centre
Porters Wood
St Albans
Herts
UNITED KINGDOM
AL3 6XT

Tel: +44 1727 738855
Fax: +44 1700 578955
email: [EMAIL PROTECTED]


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



Re: Sending mail with JavaMail

2005-10-07 Thread David Tonhofer, m-plify S.A.

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



Re: Sending mail with JavaMail [255621:132113]

2005-10-07 Thread RTE - Meridian Club
Many thanks for your email. This is an automated response acknowledging receipt.

Please be advised that Badge mailing commences beginning of October 2005.

Should your message require a response we will respond shortly.

Regards
Meridian Club


 -Original Message-
 From: David Tonhofer, m-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.
 
 --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 /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 unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

--
Meridian Club
Unit 5, Caxton Centre
Porters Wood
St Albans
Herts
UNITED KINGDOM
AL3 6XT

Tel: +44 1727 738855
Fax: +44 1700 578955
email: [EMAIL PROTECTED]


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



Re: Sending mail with JavaMail

2005-10-07 Thread Andrés Reyes
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 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 /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 unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





--
/***
* Andrés Reyes ( [EMAIL PROTECTED] )
* TCOR Desarrollos y Sistemas, S.L.
* Teléfono: 957 76 42 48 
* Fax : 957 76 42 49

***/


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



Re: Sending mail with JavaMail

2005-10-07 Thread Giuseppe Briotti
 ==
 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
 and the servlet doesn't work (the same javax/activation/datasource
 exception in the line which MimeMessage is initialized).
 

I think that another jar is required to send the mail. It is activation.jar,
check for it...

G.

--

Giuseppe Briotti
[EMAIL PROTECTED]

Alme Sol, curru nitido diem qui 
promis et celas aliusque et idem 
nasceris, possis nihil urbe Roma 
visere maius.
(Orazio)





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



Re: Sending mail with JavaMail [255646:132140]

2005-10-07 Thread RTE - Meridian Club
Many thanks for your email. This is an automated response acknowledging receipt.

Please be advised that Badge mailing commences beginning of October 2005.

Should your message require a response we will respond shortly.

Regards
Meridian Club


 -Original Message-
 From: Giuseppe Briotti [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 tomcat-user@jakarta.apache.org
  Subject: Re: Sending mail with JavaMail
  ==
  
  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).
  
 
 I think that another jar is required to send the mail. It is activation.jar,
 check for it...
 
 G.
 
 --
 
 Giuseppe Briotti
 [EMAIL PROTECTED]
 
 Alme Sol, curru nitido diem qui 
 promis et celas aliusque et idem 
 nasceris, possis nihil urbe Roma 
 visere maius.
 (Orazio)
 
 
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

--
Meridian Club
Unit 5, Caxton Centre
Porters Wood
St Albans
Herts
UNITED KINGDOM
AL3 6XT

Tel: +44 1727 738855
Fax: +44 1700 578955
email: [EMAIL PROTECTED]


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



Re: Sending mail with JavaMail

2005-10-07 Thread Andrés Reyes
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  :( ).


Thanks for your answers.

Giuseppe Briotti wrote:


==
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
and the servlet doesn't work (the same javax/activation/datasource
exception in the line which MimeMessage is initialized).

   



I think that another jar is required to send the mail. It is activation.jar,
check for it...

G.

--

Giuseppe Briotti
[EMAIL PROTECTED]

Alme Sol, curru nitido diem qui 
promis et celas aliusque et idem 
nasceris, possis nihil urbe Roma 
visere maius.

   (Orazio)





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


 




--
/***
* Andrés Reyes ( [EMAIL PROTECTED] )
* TCOR Desarrollos y Sistemas, S.L.
* Teléfono: 957 76 42 48 
* Fax : 957 76 42 49

***/


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



Re: Sending mail with JavaMail [255649:132143]

2005-10-07 Thread RTE - Meridian Club
Many thanks for your email. This is an automated response acknowledging receipt.

Please be advised that Badge mailing commences beginning of October 2005.

Should your message require a response we will respond shortly.

Regards
Meridian Club


 -Original Message-
 From: Andrés Reyes [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 be in activation.jar itself? ( I want to believe that 
 it isn't  :( ).
 
 Thanks for your answers.
 
 Giuseppe Briotti wrote:
 
 ==
 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
 and the servlet doesn't work (the same javax/activation/datasource
 exception in the line which MimeMessage is initialized).
 
 
 
 
 I think that another jar is required to send the mail. It is activation.jar,
 check for it...
 
 G.
 
 --
 
 Giuseppe Briotti
 [EMAIL PROTECTED]
 
 Alme Sol, curru nitido diem qui 
 promis et celas aliusque et idem 
 nasceris, possis nihil urbe Roma 
 visere maius.
 (Orazio)
 
 
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
   
 
 
 
 -- 
 /***
 * Andrés Reyes ( [EMAIL PROTECTED] )
 * TCOR Desarrollos y Sistemas, S.L.
 * Teléfono: 957 76 42 48 
 * Fax : 957 76 42 49
 ***/
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

--
Meridian Club
Unit 5, Caxton Centre
Porters Wood
St Albans
Herts
UNITED KINGDOM
AL3 6XT

Tel: +44 1727 738855
Fax: +44 1700 578955
email: [EMAIL PROTECTED]


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



Re: Sending mail with JavaMail

2005-10-07 Thread Leon Rosenberg
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 check whether the activation.jar you are using
to compile your classes is the same as the one you are using in
tomcat.

are there other dependencies, that you could be missing? xmlparser or
something?

Btw, common/lib isn't my favorite place to place jars, common/endorsed
is better; if you have an older version of the activation.jar in
common/endorsed, you can place as many activations.jar in the
common/lib as you like, they will be ignored...

regards
leon

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



Re: Sending mail with JavaMail [255655:132155]

2005-10-07 Thread RTE - Meridian Club
Many thanks for your email. This is an automated response acknowledging receipt.

Please be advised that Badge mailing commences beginning of October 2005.

Should your message require a response we will respond shortly.

Regards
Meridian Club


 -Original Message-
 From: Leon Rosenberg [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/lib)
 
  ¿Any other place?
  ;)
 
  ¿Maybe the error be in activation.jar itself? ( I want to believe that
  it isn't  :( ).
 
 
 Hmm... unlikely... but check whether the activation.jar you are using
 to compile your classes is the same as the one you are using in
 tomcat.
 
 are there other dependencies, that you could be missing? xmlparser or
 something?
 
 Btw, common/lib isn't my favorite place to place jars, common/endorsed
 is better; if you have an older version of the activation.jar in
 common/endorsed, you can place as many activations.jar in the
 common/lib as you like, they will be ignored...
 
 regards
 leon
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

--
Meridian Club
Unit 5, Caxton Centre
Porters Wood
St Albans
Herts
UNITED KINGDOM
AL3 6XT

Tel: +44 1727 738855
Fax: +44 1700 578955
email: [EMAIL PROTECTED]


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



Re: Sending mail with JavaMail

2005-10-07 Thread David Tonhofer, m-plify S.A.

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 other place?
;)

¿Maybe the error be in activation.jar itself? ( I want to believe that it isn't 
 :( ).


No.



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



Re: Sending mail with JavaMail [255658:132158]

2005-10-07 Thread RTE - Meridian Club
Many thanks for your email. This is an automated response acknowledging receipt.

Please be advised that Badge mailing commences beginning of October 2005.

Should your message require a response we will respond shortly.

Regards
Meridian Club


 -Original Message-
 From: David Tonhofer, m-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 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  :( ).
 
 No.
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

--
Meridian Club
Unit 5, Caxton Centre
Porters Wood
St Albans
Herts
UNITED KINGDOM
AL3 6XT

Tel: +44 1727 738855
Fax: +44 1700 578955
email: [EMAIL PROTECTED]


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



Re: Sending mail with JavaMail

2005-10-07 Thread Giuseppe Briotti
 ==
 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 in /common/lib, and 
 in
 /WEB-INF/lib (and also in JAVA_HOME/lib)
 
 ¿Any other place?
 ;)

shared\lib? but all the jars must be placed in the same dir, I think...

G.

--

Giuseppe Briotti
[EMAIL PROTECTED]

Alme Sol, curru nitido diem qui 
promis et celas aliusque et idem 
nasceris, possis nihil urbe Roma 
visere maius.
(Orazio)





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



Re: Sending mail with JavaMail [255664:132162]

2005-10-07 Thread RTE - Meridian Club
Many thanks for your email. This is an automated response acknowledging receipt.

Please be advised that Badge mailing commences beginning of October 2005.

Should your message require a response we will respond shortly.

Regards
Meridian Club


 -Original Message-
 From: Giuseppe Briotti [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 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?
  ;)
 
 shared\lib? but all the jars must be placed in the same dir, I think...
 
 G.
 
 --
 
 Giuseppe Briotti
 [EMAIL PROTECTED]
 
 Alme Sol, curru nitido diem qui 
 promis et celas aliusque et idem 
 nasceris, possis nihil urbe Roma 
 visere maius.
 (Orazio)
 
 
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

--
Meridian Club
Unit 5, Caxton Centre
Porters Wood
St Albans
Herts
UNITED KINGDOM
AL3 6XT

Tel: +44 1727 738855
Fax: +44 1700 578955
email: [EMAIL PROTECTED]


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



Re: Sending mail with JavaMail

2005-10-07 Thread Andrés Reyes

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, 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  :( ).



No.



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





--
/***
* Andrés Reyes ( [EMAIL PROTECTED] )
* TCOR Desarrollos y Sistemas, S.L.
* Teléfono: 957 76 42 48 
* Fax : 957 76 42 49

***/


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



Re: Sending mail with JavaMail

2005-10-07 Thread David Tonhofer, m-plify S.A.

--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.


  Bootstrap: uses JVM classes  looks in $JAVA_HOME/jre/lib/ext
 |
  System:uses $CATALINA_HOME/bin/bootstrap.jar
 |   and  $JAVA_HOME/lib/tools.jar
 |
  Common:uses $CATALINA_HOME/common/lib
/  \ and $CATALINA_HOME/common/classes
   /\and $CATALINA_HOME/common/endorsed
  /  \jsp and servlet API jars are here
 /+-+
/   |
Catalina:  uses $CATALINA_HOME/server/lib   |
   and $CATALINA_HOME/server/classes|
catalina.jar is here  |
 Shared: uses 
$CATALINA_BASE/shared/lib
   / \and 
$CATALINA_BASE/shared/classes
  /   \
 Webapp1  Webapp2 ... --- **GREEDY** 
CLASSLOADERS




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



Re: Sending mail with JavaMail [255704:132206]

2005-10-07 Thread RTE - Meridian Club
Many thanks for your email. This is an automated response acknowledging receipt.

Please be advised that Badge mailing commences beginning of October 2005.

Should your message require a response we will respond shortly.

Regards
Meridian Club


 -Original Message-
 From: David Tonhofer, m-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 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.
 
 
Bootstrap: uses JVM classes  looks in $JAVA_HOME/jre/lib/ext
   |
System:uses $CATALINA_HOME/bin/bootstrap.jar
   |   and  $JAVA_HOME/lib/tools.jar
   |
Common:uses $CATALINA_HOME/common/lib
  /  \ and $CATALINA_HOME/common/classes
 /\and $CATALINA_HOME/common/endorsed
/  \jsp and servlet API jars are here
   /+-+
  /   |
  Catalina:  uses $CATALINA_HOME/server/lib   |
 and $CATALINA_HOME/server/classes|
  catalina.jar is here  |
   Shared: uses 
 $CATALINA_BASE/shared/lib
 / \and 
 $CATALINA_BASE/shared/classes
/   \
   Webapp1  Webapp2 ... --- 
 **GREEDY** CLASSLOADERS
 
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

--
Meridian Club
Unit 5, Caxton Centre
Porters Wood
St Albans
Herts
UNITED KINGDOM
AL3 6XT

Tel: +44 1727 738855
Fax: +44 1700 578955
email: [EMAIL PROTECTED]


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



RE: Sending mail with JavaMail (UNCLASSIFIED)

2005-10-07 Thread Samara, Fadi N Mr ACSIM/ASPEX
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

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 other place?
 ;)

 ¿Maybe the error be in activation.jar itself? ( I want to believe that it
isn't  :( ).

No.



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Classification:  UNCLASSIFIED 
Caveats: NONE


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