Thursday, April 9, 2020

WebLogic script (wlst or stopWebLogic.sh) failure due after enabling ssl for admin port

Symptom:


This Exception occurred at Thu Apr 09 19:54:49 SGT 2020.
javax.naming.CommunicationException: Failed to initialize JNDI context, tried 2 time or times totally, the interval of each time is 0ms.
t3s://10.0.2.15:9002: Destination 10.0.2.15, 9002 unreachable.; nested exception is:
        javax.net.ssl.SSLHandshakeException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target; No available router to destination.; nested exception is:
        java.rmi.ConnectException: No available router to destination. [Root exception is java.net.ConnectException: t3s://10.0.2.15:9002: Destination 10.0.2.15, 9002 unreachable.; nested exception is:
        javax.net.ssl.SSLHandshakeException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target; No available router to destination.; nested exception is:
        java.rmi.ConnectException: No available router to destination.]
Traceback (most recent call last):
  File "/u01/wls14/user_projects/domains/DEV_DOMAIN/shutdown-AdminServer.py", line 3, in
    connect(  url='t3s://10.0.2.15:9002', adminServerName='AdminServer')
  File "", line 19, in connect
  File "", line 548, in raiseWLSTException
        at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
        at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
        at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:490)
        at java.base/java.lang.Class.newInstance(Class.java:584)
        at org.python.core.PyObject.proxyInit(PyObject.java:200)
        at org.python.core.Deriveds.dispatch__init__(Deriveds.java:24)
        at org.python.core.PyObjectDerived.dispatch__init__(PyObjectDerived.java:1112)
        at org.python.core.PyType.type___call__(PyType.java:1822)
        at org.python.core.PyType.__call__(PyType.java:1805)
        at org.python.core.PyObject.__call__(PyObject.java:480)
        at org.python.core.PyObject.__call__(PyObject.java:484)
        at org.python.pycode._pyx37.raiseWLSTException$28(:548)
        at org.python.pycode._pyx37.call_function()
        at org.python.core.PyTableCode.call(PyTableCode.java:171)
        at org.python.core.PyBaseCode.call(PyBaseCode.java:139)
        at org.python.core.PyFunction.__call__(PyFunction.java:413)
        at org.python.pycode._pyx8.connect$1(:22)
        at org.python.pycode._pyx8.call_function()
        at org.python.core.PyTableCode.call(PyTableCode.java:171)
        at org.python.core.PyBaseCode.call(PyBaseCode.java:308)
        at org.python.core.PyFunction.function___call__(PyFunction.java:471)
        at org.python.core.PyFunction.__call__(PyFunction.java:466)
        at org.python.pycode._pyx32.f$0(/u01/wls14/user_projects/domains/DEV_DOMAIN/shutdown-AdminServer.py:5)
        at org.python.pycode._pyx32.call_function(/u01/wls14/user_projects/domains/DEV_DOMAIN/shutdown-AdminServer.py)
        at org.python.core.PyTableCode.call(PyTableCode.java:171)
        at org.python.core.PyCode.call(PyCode.java:18)
        at org.python.core.Py.runCode(Py.java:1614)
        at org.python.util.PythonInterpreter.execfile(PythonInterpreter.java:296)
        at weblogic.management.scripting.WLST.main(WLST.java:192)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.base/java.lang.reflect.Method.invoke(Method.java:566)
        at weblogic.WLST.main(WLST.java:47)


How to fix: add highlighted lines to necessary scripts.

[oracle@ol8 /u01/wls14/user_projects/domains/DEV_DOMAIN/bin]$ diff  setDomainEnv.sh.bak setDomainEnv.sh
533c533
< JAVA_OPTIONS="${JAVA_OPTIONS}"
---
> JAVA_OPTIONS="${JAVA_OPTIONS}  -Dweblogic.security.TrustKeyStore=DemoTrust -Dweblogic.security.SSL.ignoreHostnameVerification=true "

WSLT:
$MW_HOME/oracle_common/common/bin/setWlstEnv_internal.sh

JVM_ARGS="${WLST_PROPERTIES} ${JVM_D64} ${UTILS_MEM_ARGS} ${CONFIG_JVM_ARGS} -Dweblogic.security.TrustKeyStore=DemoTrust -Dweblogic.security.SSL.ignoreHostnameVerification=true "


No comments:

Post a Comment