Topic
  • 1 reply
  • Latest Post - ‏2013-05-29T19:14:38Z by AlexMulholland
Akraamasakki
Akraamasakki
1 Post

Pinned topic Java Mailing error using websphere 7.0

‏2013-05-28T16:54:21Z |

Sir,

Can anyone here help me out with a problem in javamailing. am using Rad 7 and Websphere Application server 7.0 when i try to execute the application i get the following error and fail to run the application .

sir,i have posted this problem in many IBM facebook pages,sent  many mails to many ids on ibm developer works ids,posted i TGMC group could not get a correct response can anyone here please help me out. Please.....

 

ERROR I ENCOUNTER WITH:

Mail sending enterd
Exception in thread "main" javax.mail.MessagingException: Could not connect to SMTP host: smtp.gmail.com, port: 465;
  nested exception is:
java.net.SocketException: java.lang.ClassNotFoundException: Cannot find the specified class com.ibm.websphere.ssl.protocol.SSLSocketFactory
at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1282)
at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:370)
at javax.mail.Service.connect(Service.java:275)
at javax.mail.Service.connect(Service.java:156)
at conn.SendMail.mail(SendMail.java:80)
at conn.SendMail.main(SendMail.java:27)
Caused by: java.net.SocketException: java.lang.ClassNotFoundException: Cannot find the specified class com.ibm.websphere.ssl.protocol.SSLSocketFactory
at javax.net.ssl.DefaultSSLSocketFactory.a(SSLSocketFactory.java:11)
at javax.net.ssl.DefaultSSLSocketFactory.createSocket(SSLSocketFactory.java:5)
at com.sun.mail.util.SocketFetcher.createSocket(SocketFetcher.java:224)
at com.sun.mail.util.SocketFetcher.getSocket(SocketFetcher.java:189)
at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1250)
... 5 more
Caused by: java.lang.ClassNotFoundException: Cannot find the specified class com.ibm.websphere.ssl.protocol.SSLSocketFactory
at javax.net.ssl.SSLJsseUtil.b(SSLJsseUtil.java:125)
at javax.net.ssl.SSLSocketFactory.getDefault(SSLSocketFactory.java:3)
... 8 more
 
  • AlexMulholland
    AlexMulholland
    32 Posts

    Re: Java Mailing error using websphere 7.0

    ‏2013-05-29T19:14:38Z  

    Hello,

    You may be having this problem:  http://www-01.ibm.com/support/docview.wss?uid=swg21584437

    If so, the workaround involves changing the "isUseIBMSSLSocketFactory={true|false}" property, as described in the RAD Information Center.

    I hope this helps.

    Regards, Alex.