Details
-
Type: Bug
-
Status: Closed
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 2.0-Beta
-
Component/s: None
-
Labels:None
-
Environment:server
Description
The following exception is thrown when a webapplication is started without mail.jar library in the classpath:
java.lang.NoClassDefFoundError: javax/mail/MessagingException
at org.icepush.EmailNotificationProvider$AutoRegister.contextInitialized(EmailNotificationProvider.java:99)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4600)
at org.apache.catalina.core.StandardContext$1.call(StandardContext.java:5097)
at org.apache.catalina.core.StandardContext$1.call(StandardContext.java:5092)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:680)
Caused by: java.lang.ClassNotFoundException: javax.mail.MessagingException
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1676)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1521)
... 9 more
java.lang.NoClassDefFoundError: javax/mail/MessagingException
at org.icepush.EmailNotificationProvider$AutoRegister.contextInitialized(EmailNotificationProvider.java:99)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4600)
at org.apache.catalina.core.StandardContext$1.call(StandardContext.java:5097)
at org.apache.catalina.core.StandardContext$1.call(StandardContext.java:5092)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:680)
Caused by: java.lang.ClassNotFoundException: javax.mail.MessagingException
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1676)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1521)
... 9 more
Activity
Repository | Revision | Date | User | Message |
ICEsoft Public SVN Repository | #25278 | Thu Aug 18 16:18:03 MDT 2011 | mircea.toma | |
Files Changed | ||||
MODIFY
/icepush/trunk/core/src/main/java/org/icepush/EmailNotificationProvider.java
|
Repository | Revision | Date | User | Message |
ICEsoft Public SVN Repository | #25279 | Thu Aug 18 16:24:02 MDT 2011 | mircea.toma | |
Files Changed | ||||
MODIFY
/icefaces2/trunk/icefaces/lib/icepush.jar
|
Mircea Toma
created issue -
Mircea Toma
made changes -
Field | Original Value | New Value |
---|---|---|
Status | Open [ 1 ] | Resolved [ 5 ] |
Resolution | Fixed [ 1 ] |
Mircea Toma
made changes -
Salesforce Case | [] | |
Fix Version/s | 2.0-Beta [ 10232 ] | |
Fix Version/s | 2.1 [ 10259 ] |
Ken Fyten
made changes -
Status | Resolved [ 5 ] | Closed [ 6 ] |
Looks like that by using the logger declared in the outer-class of EmailNotificationProvider$AutoRegister a NoClassDefFoundError is thrown.
The fix instantiates and uses a logger local to the AutoRegister inner-class thus avoiding any side-effects of using the logger declared in the outer-class.