Details
-
Bug
-
Resolution: Obsolete
-
Medium
-
None
-
2.4
-
None
Description
When defining the bamboo mail server via a JNDI resources leads to a class loading problem:
with !-- <Set name="parentLoaderPriority">true</Set> --> in jetty.xml:webapp
ERROR [14738709@qtp-4439869-0] [SMTPMailServerImpl] Mail server at location [mail/BambooMailServer] is not of required type javax.mail.Session, or is in different classloader. It is of type 'javax.mail.Session' in classloader 'sun.misc.Launcher$AppClassLoader@92e78c' instead
http://confluence.atlassian.com/display/BAMBOO/Setting+up+JNDI+on+Jetty recommends to enable parent class loading only in case class loading problems are experienced.
with <Set name="parentLoaderPriority">true</Set> in jetty.xml
2009-10-19 17:10:31,551 ERROR [11012842@qtp-8077566-0] [FiveOhOh] 500 Exception was thrown.
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
...
Caused by: java.lang.NoClassDefFoundError: javax/activation/DataSource
at alt.javax.mail.internet.MimeMessageImpl.<init>(MimeMessageImpl.java:22)
at com.atlassian.mail.server.impl.SMTPMailServerImpl.send(SMTPMailServerImpl.java:171)