sun.security.ssl.SSLSessionImpl not found

前端 未结 7 1098
花落未央
花落未央 2020-12-15 00:24

When I try to use okhttp or javax.ws.rs.client.Client the following error occur

java.lang.NoSuchMethodError: sun.security.

7条回答
  •  南笙
    南笙 (楼主)
    2020-12-15 00:47

    The issue appears because Glassfish embeds native sun.* classes into [glassfish5_home]/glassfish/modules/endorsed/grizzly-npn-bootstrap.jar, so it conflicts with others classes included into [JDK_HOME]/jre/lib/jsse.jar

    So edit the grizzly-npn-bootstrap.jar (make a copy before) file and remove the sun folder.

提交回复
热议问题