geronimo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Geronimo User" <geronimou...@gmail.com>
Subject Re: javax/mail/Multipart missing when use SMTPAppender in server-log4j.properties
Date Wed, 08 Aug 2007 21:16:57 GMT
On 7/25/07, David Jencks <david_jencks@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.

Mime
View raw message