-
Type:
Bug
-
Status: Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: 4.4.0
-
Fix Version/s: 4.4.0
-
Component/s: None
-
Labels:None
java.lang.NoClassDefFoundError: com/sun/mail/imap/IMAPFolder
at com.liferay.portlet.mail.util.MailSessionLock._cleanUp(MailSessionLock.java:57)
at com.liferay.portlet.mail.util.MailSessionLock.cleanUp(MailSessionLock.java:41)
at com.liferay.portal.servlet.PortalSessionListener.sessionDestroyed(PortalSessionListener.java:99)
at org.apache.catalina.session.StandardSession.expire(StandardSession.java:702)
at org.apache.catalina.session.StandardSession.expire(StandardSession.java:660)
at org.apache.catalina.session.StandardSession.invalidate(StandardSession.java:1111)
Why? Because we have code that uses Sun's imap implementation. Some app servers (like Geronimo) use their own clean room implementation of javamail, which won't have these classes. This means those app servers won't be able to use the default Mail portlet. This fix will allow those users to login and logout and do other functions.