1 Reply Latest reply on Jul 21, 2011 2:54 PM by Richard Clarke

    NoClassDefFoundError: javax/net/ssl/SSLPeerUnverifiedException

    Richard Clarke Newbie

      Hi,

       

      I am getting the following exception when trying to send email from JBOSS AS 7.

      This code was working in AS5 and AS 6.

       

       

      {code}

      18:07:35,461 ERROR [stderr] (Thread-31) Exception in thread "Thread-31" java.lang.NoClassDefFoundError: javax/net/ssl/SSLPeerUnverifiedException

      18:07:35,463 ERROR [stderr] (Thread-31)         at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1900)

      18:07:35,465 ERROR [stderr] (Thread-31)         at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:638)

      18:07:35,467 ERROR [stderr] (Thread-31)         at javax.mail.Service.connect(Service.java:317)

      18:07:35,469 ERROR [stderr] (Thread-31)         at javax.mail.Service.connect(Service.java:176)

      18:07:35,470 ERROR [stderr] (Thread-31)         at javax.mail.Service.connect(Service.java:125)

      18:07:35,472 ERROR [stderr] (Thread-31)         at javax.mail.Transport.send0(Transport.java:194)

      18:07:35,473 ERROR [stderr] (Thread-31)         at javax.mail.Transport.send(Transport.java:124)

      18:07:35,475 ERROR [stderr] (Thread-31)         at com.vesey.searchpoint.EmailUtils$SendEmailLocalThread.run(EmailUtils.java:802)

      18:07:35,477 ERROR [stderr] (Thread-31) Caused by: java.lang.ClassNotFoundException: javax.net.ssl.SSLPeerUnverifiedException from [Module "javax.mail.api:main" from local module loader @340d1fa5 (roots: C:\jboss-as-7.0.0.Final\modules)]

      18:07:35,478 ERROR [stderr] (Thread-31)         at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:191)

      18:07:35,480 ERROR [stderr] (Thread-31)         at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:358)

      18:07:35,481 ERROR [stderr] (Thread-31)         at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:330)

      18:07:35,483 ERROR [stderr] (Thread-31)         at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:307)

      18:07:35,484 ERROR [stderr] (Thread-31)         at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:101)

      18:07:35,486 ERROR [stderr] (Thread-31)         ... 8 more

      {code}

       

       

      I originally had the same issue with a NoClassDefFoundError: com/sun/net/ssl/internal/ssl/Provider as described here...http://community.jboss.org/message/616776#616776

       

      I have added the system dependency via jboss-deployment-structure which resolved that issue, but this one now remains.