I think that should be fixed in PortalAdministrationImpl.java. As the Session implementation of geronimo-javamail prefers thread context classloader, that provider loading problem occurs when j2-admin portlet invokes the service. Someone already provided a reasonable solution for multiple applications environment by setting thread context classloader to null temporarily. [1] We can do the same technique in PortalAdministrationImpl.java.
I created an issue to fix this: https://issues.apache.org/jira/browse/JS2-1256 [1] http://apache-geronimo.328035.n3.nabble.com/Trouble-with-Geronimo-s-javax-mail-under-OSGi-td858884.html ----- Original Message ----- > From: "jerome.dup...@bnf.fr" <jerome.dup...@bnf.fr> > To: jetspeed-user@portals.apache.org > Cc: > Sent: Thursday, September 15, 2011 8:22 AM > Subject: Re: problem occuring when I send mail from forgotten password class > > > Hello again, > > Problem is solved, tested in the demo jetspeed installation. > > There are different ways to solve emailing problem, which come from mail > libraries: > _ in the jetspeed/WEB-INF/lib, I remove > geronimo-activation_1.1_spec-1.0.2.jar, > geronimo-javamail_1.4_provider-1.7.jar, geronimo-javamail_1.4_spec-1.6.jar, > and I replace them by activation-1.1.jar and mail-1.4.jar. I can put these > 2 jars, either in the WEB-INF/lib directory of my portal application, > either in the tomcat lib directory > _ I can alternatively move geronimo-activation_1.1_spec-1.0.2.jar, > geronimo-javamail_1.4_provider-1.7.jar, geronimo-javamail_1.4_spec-1.6.jar > from my application directory to the tomcat lib directory. > > Regards > Jérôme > > > Fermeture annuelle des sites François-Mitterrand et Richelieu - du lundi 5 > au > dimanche 18 septembre 2011 inclus > Journée du patrimoine - samedi 17 septembre (Sablé-sur-Sarthe et Maison > Jean-Vilar à Avignon) et dimanche 18 septembre (autres sites, dont > François-Mitterrand et Richelieu) Avant d'imprimer, pensez à > l'environnement. > --------------------------------------------------------------------- > To unsubscribe, e-mail: jetspeed-user-unsubscr...@portals.apache.org > For additional commands, e-mail: jetspeed-user-h...@portals.apache.org > --------------------------------------------------------------------- To unsubscribe, e-mail: jetspeed-user-unsubscr...@portals.apache.org For additional commands, e-mail: jetspeed-user-h...@portals.apache.org