Forum Stats

  • 3,874,062 Users
  • 2,266,667 Discussions


SHA1 digest error for javax/mail/MessagingException

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 java.util.jar.JarVerifier.processEntry(
at java.util.jar.JarVerifier.update(
at java.util.jar.JarVerifier$
at sun.misc.Resource.getBytes(
at Method)
at java.lang.ClassLoader.loadClass(
at sun.misc.Launcher$AppClassLoader.loadClass(
at java.lang.ClassLoader.loadClass(
at java.lang.ClassLoader.loadClassInternal(
Exception in thread "main"

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

Thanks and Regards.


  • 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

    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 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: @(#) 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=

  • 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.