tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrés Reyes <are...@tcor.net>
Subject Re: Sending mail with JavaMail (solved)
Date Mon, 10 Oct 2005 09:01:09 GMT
David Tonhofer, m-plify S.A. wrote:

> --On Friday, October 07, 2005 1:08 PM +0200 Andrés Reyes 
> <areyes@tcor.net> 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: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
>
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 ( areyes@tcor.net )
* TCOR Desarrollos y Sistemas, S.L.
* Teléfono: 957 76 42 48 
* Fax     : 957 76 42 49
***********************************/


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


Mime
View raw message