| ページ一覧 | ブログ | twitter |  書式 | 書式(表) |

MyMemoWiki

WAS Tips

提供: MyMemoWiki
ナビゲーションに移動 検索に移動

WAS Tips

WAS |

トラブルシュート

Cannot find the specified class com.ibm.websphere.ssl.protocol.SSLSocketFactory

以下のようなエラー

Caused by: java.lang.ClassNotFoundException: Cannot find the specified class com.ibm.websphere.ssl.protocol.SSLSocketFactory
    at javax.net.ssl.SSLJsseUtil.b(SSLJsseUtil.java:20)
    at javax.net.ssl.SSLSocketFactory.getDefault(SSLSocketFactory.java:36)
    at javax.net.ssl.HttpsURLConnection.getDefaultSSLSocketFactory(HttpsURLConnection.java:16)
    at javax.net.ssl.HttpsURLConnection.<init>(HttpsURLConnection.java:36)
    at com.ibm.net.ssl.www2.protocol.https.b.<init>(b.java:96)

対応

Security.setProperty("ssl.SocketFactory.provider", "com.ibm.jsse2.SSLSocketFactoryImpl");
Security.setProperty("ssl.ServerSocketFactory.provider", "com.ibm.jsse2.SSLServerSocketFactoryImpl");

WAS から Java Mail送信で文字化け