Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

skip unusable Store and Transport classes #144

Closed
glassfishrobot opened this issue Jan 17, 2015 · 6 comments
Closed

skip unusable Store and Transport classes #144

glassfishrobot opened this issue Jan 17, 2015 · 6 comments
Assignees

Comments

@glassfishrobot
Copy link

In complex class loading situations, it can be possible for there to be
multiple copies of the JavaMail classes. A Store or Transport defined
by one copy may be loaded by another copy, but it won't be usable because
they're in different ClassLoaders. In this case, JavaMail should skip
over the unusable class and try to load the class from another ClassLoader.

This can happen, for example, in GlassFish if the application includes the
JavaMail classes, the application class loader is configured to prefer
application classes over system classes, and the app server itself tries
to use JavaMail when running in the context of the application.

Affected Versions

1.5.2

Environment

All
All

@glassfishrobot
Copy link
Author

@glassfishrobot Commented
Reported by @bshannon

@glassfishrobot
Copy link
Author

@glassfishrobot Commented
@bshannon said:
I've fixed this for JavaMail 1.5.3.

@glassfishrobot
Copy link
Author

@glassfishrobot Commented
Jason-Mehrens said:
I've confirmed that this patch fixes GLASSFISH-20800 for both the MailHandler and the SMTPHandler when installed in the lib/ext or in lib/endorsed.

The GlassFish issue NoSuchMethodException when attempting to install log handler in GlassFish server can be found at https://java.net/jira/i#browse/GLASSFISH-20800

@glassfishrobot
Copy link
Author

@glassfishrobot Commented
This issue was imported from Bugzilla JAVAMAIL-6668

@glassfishrobot
Copy link
Author

@glassfishrobot Commented
Marked as fixed on Tuesday, May 2nd 2017, 1:08:44 pm

@glassfishrobot
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants