Friday, February 22, 2013

WLST to connect to Admin Server SSL Enabled


Issue :

Not able to connect to admin server .which is SSL enbaled

Command :

java -Dweblogic.security.SSL.ignoreHostnameVerification=true -Dweblogic.security.TrustKeyStore=CustomTrust -Dweblogic.security.CustomTrustKeyStoreFileName=/JAVA_HOME/jre/lib/security/cacerts -Dweblogic.security.CustomTrustKeyStorePassPhrase=pwd  -Dweblogic.security.CustomTrustKeyStoreType=JKS -Dweblogic.security.SSL.allowSmallRSAExponent=true weblogic.WLST


wls:/offline> connect('weblogic',welcome1','t3s://abcd:35909')

Error :

Traceback (innermost last):


File "", line 1, in ?

File "", line 22, in connect

File "", line 648, in raiseWLSTException

WLSTException: Error occured while performing connect : Error getting the initial context. There is no server running at t3s://ngmlx476:25913

Use dumpStack() to view the full stacktrace

Troubleshoot :

Check the WLST SSL arguments :

Solution  :

Give the belwo command for invoking WLST :
java -Dweblogic.security.SSL.ignoreHostnameVerification=true -Dweblogic.seceblogic.security.CustomTrustKeyStoreFileName=/var/domain/abc/keystore/WebLogicTrustKeyStore.jks -Dweblogic.security.CustomTrustKeyStorePassPhrase=wltkpassword -Dweblogic.security.CustomTrustKeyStoreType=JKS -Dweblogic.security.SSL.allowSmallRSAExponent=true weblogic.WLST

 wls:/offline> connect('weblogic',welcome1','t3s://abcd:35909')


Successfully connected to Admin Server 'AdminServer01' that belongs to domain 'soa__Domain'.


Keep Thinking  :-)
Ashraf TP







No comments:

Post a Comment