java.lang.RuntimeException: Could not generate dummy secret at sun.security.ssl.RSAClientKeyExchange.<init> -
i working on java ee application (netbeans ide 8.0.2, glassfish 4.1, jdk 1.8.0_45).
the access pages of application should secured https, modified web.xml
:
<security-constraint> <web-resource-collection> <url-pattern>/*</url-pattern> </web-resource-collection> <user-data-constraint> <description/> <transport-guarantee>confidential</transport-guarantee> </user-data-constraint> </security-constraint>
when deploy & start glassfish via netbeans can access application via
https://localhost:8181/myapp/
when bundle application in .war file , deploy manually copy of same glassfish installation files netbeans uses, exception while trying connect application:
warning (35) grizzly0013: exception during filterchain execution java.lang.runtimeexception: not generate dummy secret @ sun.security.ssl.handshaker.checkthrown(handshaker.java:1429) @ sun.security.ssl.sslengineimpl.checktaskthrown(sslengineimpl.java:535) @ sun.security.ssl.sslengineimpl.readnetrecord(sslengineimpl.java:813) @ sun.security.ssl.sslengineimpl.unwrap(sslengineimpl.java:781) @ javax.net.ssl.sslengine.unwrap(sslengine.java:624) @ org.glassfish.grizzly.ssl.sslconnectioncontext.unwrap(sslconnectioncontext.java:172) @ org.glassfish.grizzly.ssl.sslutils.handshakeunwrap(sslutils.java:263) @ org.glassfish.grizzly.ssl.sslbasefilter.dohandshakestep(sslbasefilter.java:603) @ org.glassfish.grizzly.ssl.sslbasefilter.dohandshakestep(sslbasefilter.java:552) @ org.glassfish.grizzly.ssl.sslbasefilter.handleread(sslbasefilter.java:273) @ org.glassfish.grizzly.filterchain.executorresolver$9.execute(executorresolver.java:119) @ org.glassfish.grizzly.filterchain.defaultfilterchain.executefilter(defaultfilterchain.java:284) @ org.glassfish.grizzly.filterchain.defaultfilterchain.executechainpart(defaultfilterchain.java:201) @ org.glassfish.grizzly.filterchain.defaultfilterchain.execute(defaultfilterchain.java:133) @ org.glassfish.grizzly.filterchain.defaultfilterchain.process(defaultfilterchain.java:112) @ org.glassfish.grizzly.processorexecutor.execute(processorexecutor.java:77) @ org.glassfish.grizzly.nio.transport.tcpniotransport.fireioevent(tcpniotransport.java:561) @ org.glassfish.grizzly.strategies.abstractiostrategy.fireioevent(abstractiostrategy.java:112) @ org.glassfish.grizzly.strategies.workerthreadiostrategy.run0(workerthreadiostrategy.java:117) @ org.glassfish.grizzly.strategies.workerthreadiostrategy.access$100(workerthreadiostrategy.java:56) @ org.glassfish.grizzly.strategies.workerthreadiostrategy$workerthreadrunnable.run(workerthreadiostrategy.java:137) @ org.glassfish.grizzly.threadpool.abstractthreadpool$worker.dowork(abstractthreadpool.java:565) @ org.glassfish.grizzly.threadpool.abstractthreadpool$worker.run(abstractthreadpool.java:545) @ java.lang.thread.run(thread.java:745) caused by: java.lang.runtimeexception: not generate dummy secret @ sun.security.ssl.rsaclientkeyexchange.<init>(rsaclientkeyexchange.java:132) @ sun.security.ssl.serverhandshaker.processmessage(serverhandshaker.java:238) @ sun.security.ssl.handshaker.processloop(handshaker.java:979) @ sun.security.ssl.handshaker$1.run(handshaker.java:919) @ sun.security.ssl.handshaker$1.run(handshaker.java:916) @ java.security.accesscontroller.doprivileged(native method) @ sun.security.ssl.handshaker$delegatedtask.run(handshaker.java:1369) @ org.glassfish.grizzly.ssl.sslutils.executedelegatedtask(sslutils.java:247) @ org.glassfish.grizzly.ssl.sslbasefilter.dohandshakestep(sslbasefilter.java:638) ... 16 more caused by: java.security.nosuchalgorithmexception: cannot find provider supporting rsa/ecb/pkcs1padding @ javax.crypto.cipher.getinstance(cipher.java:540) @ sun.security.ssl.jssejce.getcipher(jssejce.java:229) @ sun.security.ssl.rsaclientkeyexchange.<init>(rsaclientkeyexchange.java:115) ... 24 more
if repeat manual deployment process (.war) without confidential
transport-guarantee in web.xml can access application on
http://localhost:8080/myapp/
what doing wrong? netbeans right doing wrong manually?
i facing same problem, when tried switch glassfish 4.1.1 domain custom jvm. updated domain.xml
- led similar stacktrace.
i resolved issue resetting domain.xml
(no specific jvm or java home specified in there anymore) , configured as_java
in glassfish\config\asenv.bat
this:
set as_java=c:\program files\java\...
Comments
Post a Comment