You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@geronimo.apache.org by Geronimo User <ge...@gmail.com> on 2007/08/08 23:16:57 UTC

Re: javax/mail/Multipart missing when use SMTPAppender in server-log4j.properties

On 7/25/07, David Jencks <da...@yahoo.com> wrote:
> AFAIK there is no easy way to get the mail jars in the geronimo
> startup classloader, although you might try lib/endorsed.

I solved this problem as follows.

Geronimo by default has environment variables defined like this:

17:20:17,313 DEBUG [Daemon] java.endorsed.dirs=c:\Program
Files\Java\jdk1.5.0_11\jre\lib\endorsed;C:\Program
Files\informiam\geronimo-1.1.1\lib\endorsed
17:20:17,313 DEBUG [Daemon] java.ext.dirs=c:\Program
Files\Java\jdk1.5.0_11\jre\lib\ext;C:\Program
Files\informiam\geronimo-1.1.1\lib\ext

I put the mail .jar and activation .jar into Java's ext directory in
c:\Program Files\Java\jdk1.5.0_11\jre\lib\ext.

Now I can start Geronimo with an SMTPAppender defined in
server-log4j.properties.