On Jul 29, 2010, at 16:16, Unger, Richard wrote:
> Hello Everyone! > > I was just trying to integrate a (Axis-1.4 based) SOAP client into my > TemplateModel class, and was having problems with ClassNotFoundExceptions for > javax.mail.* classes. > > The reason is that magnolia includes “mail-1.4.1.jar” in the WEB-INF/lib > Directory of the magnolia webapps. > However, recent versions of Tomcat will refuse to load classes coming from > the packages java.* or javax.* via the webapp classloader. JARs including > such classes must be placed in $CATALINA_HOME/common/lib to avoid problems. Do you know since which version this is the case ? I've deployed quite a few Magnolia instances under Tomcat 6 instances without issues. AFAIK (but I might be outdated), the only forbidden packages in webapps are the servlet and jsp ones. -g > > Moving mail-1.4.1.jar from the WEB-INF/lib to common/lib solves the problem. > > I don’t know whether this is really a bug (since other Servlet Containers may > not have this restriction), but perhaps it would be better to move the > mail.jar in the magnolia-tomcat-bundle release… > > Regards from Vienna, > > Richard Unger > > > > > ---------------------------------------------------------------- > For list details see > http://www.magnolia-cms.com/home/community/mailing-lists.html > To unsubscribe, E-mail to: <[email protected]> > ---------------------------------------------------------------- ---------------------------------------------------------------- For list details see http://www.magnolia-cms.com/home/community/mailing-lists.html To unsubscribe, E-mail to: <[email protected]> ----------------------------------------------------------------
