4 Replies Latest reply on Oct 11, 2012 1:08 AM by Rajendra J

    Problem with JBoss AS 7.0 Final + Java Mail + java.lang.NoClassDefFoundError: javax/net/ssl/SSLPeerUnverifiedException

    Rajendra J Newbie

      Hi friends,

       

      As am using java mail api from JBoss 7.0 AS final in my application. Am trying to send a mail from mail server or localhost... But

       

      Im getting this error in my application . Can someone help me with this?

       

      java.lang.NoClassDefFoundError: javax/net/ssl/SSLPeerUnverifiedException

      com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1900)

      com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:638)

      javax.mail.Service.connect(Service.java:295)

      javax.mail.Service.connect(Service.java:176)

      javax.mail.Service.connect(Service.java:125)

      javax.mail.Transport.send0(Transport.java:194)

      javax.mail.Transport.send(Transport.java:124)

      com.vz.ag.util.UrlMailer.SendMail(UrlMailer.java:106)

      com.vz.ag.servlet.sso.VerifyServlet.activatePwreset(VerifyServlet.java:149)

      com.vz.ag.servlet.sso.VerifyServlet.processRequest(VerifyServlet.java:91)

      com.vz.ag.servlet.sso.VerifyServlet.doPost(VerifyServlet.java:49)

      javax.servlet.http.HttpServlet.service(HttpServlet.java:754)

      javax.servlet.http.HttpServlet.service(HttpServlet.java:847)

       

       

      Can anybody please provide me correct or step by step configuration in JBoss 7.0.

       

      For me its an urgent requirement, am struggling with above error..

       

      As I checked modules/javax/mail/main/ I have javamail1.4.4.jar and module.xml are there..

       

       

      Thanks in advance

       

      Rajendra J