Forum Stats

  • 3,852,944 Users
  • 2,264,153 Discussions
  • 7,905,169 Comments

Discussions

SHA1 digest error for javax/mail/MessagingException

843834
843834 Member Posts: 49,972
edited Jul 4, 2008 1:55PM in JavaMail
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
    Bill Shannon-Oracle Member Posts: 5,441 Bronze Badge
    Either your mail.jar file is corrupted, or possibly you have two versions of the
    javax.mail.* classes in your class path.
  • 843834
    843834 Member Posts: 49,972
    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
    843834 Member Posts: 49,972
    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
    843834 Member Posts: 49,972
    Thanks for your reply...........

    But i tried your still sam exception............
  • Bill Shannon-Oracle
    Bill Shannon-Oracle Member Posts: 5,441 Bronze Badge
    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?
This discussion has been closed.