Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

SHA1 digest error for javax/mail/MessagingException

843834Jul 3 2008 — edited Jul 4 2008
java.lang.SecurityException: SHA1 digest error for javax/mail/MessagingException.class
at sun.security.util.ManifestEntryVerifier.verify(ManifestEntryVerifier.java:194)
at java.util.jar.JarVerifier.processEntry(JarVerifier.java:201)
at java.util.jar.JarVerifier.update(JarVerifier.java:188)
at java.util.jar.JarVerifier$VerifierStream.read(JarVerifier.java:411)
at sun.misc.Resource.getBytes(Resource.java:97)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:256)
at java.net.URLClassLoader.access$000(URLClassLoader.java:56)
at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
Exception in thread "main"



What could be the problem for this error Exception ???

Thanks and Regards.

Comments

Bill Shannon-Oracle
Either your mail.jar file is corrupted, or possibly you have two versions of the
javax.mail.* classes in your class path.
843834
Thanks for your response...

I am using eclipse IDE, in that i have build the path for the mail program with mail.jar and activation.jar , but i could not resolve the problem........
843834
Hi!

Do you use some plugins with eclipse IDE, like Tomcat by example or other plugins ... ?
If yes, update mail.jar and activation.jar inside Tomcat or in your lib project Eclipse...

You have a conflict with the class loader that check for security for class javax/mail/MessagingException

See you Manifest.mf inside mail.jar :
(old version here...)

Manifest-Version: 1.0
Implementation-Version: 1.4
Specification-Title: JavaMail(TM) API Design Specification
Specification-Version: 1.3
Implementation-Title: javax.mail
Extension-Name: javax.mail
Created-By: 1.5.0 (Sun Microsystems Inc.)
Implementation-Vendor-Id: com.sun
Implementation-Vendor: Sun Microsystems, Inc.
Specification-Vendor: Sun Microsystems, Inc.
SCCS-ID: @(#)javamail.mf 1.6 05/12/09

Name: javax/mail/search/SearchTerm.class
SHA1-Digest: SwGnDhIUmpZhfhq/FKkCQ9nD7ZE=

Name: javax/mail/SendFailedException.class
SHA1-Digest: XdCEygaIZQB9YrH2WIr4nPRYYk0=

[...]

Name: javax/mail/MessagingException.class
SHA1-Digest: lfjX30OQ88v/n9G9fTJGqjFmPd0=

regards,
843834
Thanks for your reply...........

But i tried your still sam exception............
Bill Shannon-Oracle
Do you have j2ee.jar or javaee.jar in your CLASSPATH or in your Eclipse project
along with mail.jar? What other jar files do you have in your project?
1 - 5
Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Aug 1 2008
Added on Jul 3 2008
5 comments
900 views