WLSTException:执行connect时出错:获取初始上下文时出错。没有服务器正在运行

时间:2017-06-26 13:00:22

标签: weblogic

Hii我在连接到weblogic服务器时遇到问题。我用来连接它的命令如下:

java -Dweblogic.security.SSL.ignoreHostnameVerification=true -
Djava.security.egd=file:/dev/./urandom -DUseSunHttpHandler=true -
Djava.net.preferIPv4Stack=true -Djava.awt.headless=true -
Dsun.jnu.encoding=ISO-8859-1 -Dfile.encoding=ISO-8859-1 weblogic.WLST 
<path>/weblogic_configuration_domain_update.py <path>/weblogic-
domain.properties

它出现以下错误:

javax.naming.CommunicationException [Root exception is 
java.net.ConnectException: t3://<IP>:<port>: Destination 
unreachable; nested exception is: java.net.ConnectException: Connection 
refused; No available router to destination]
Problem invoking WLST - Traceback (innermost last):
File "/<path>/weblogic_configuration_domain_update.py", line 134, in ?
File "<iostream>", line 22, in connect
File "<iostream>", line 648, in raiseWLSTException
WLSTException: Error occured while performing connect : Error getting the 
initial context. There is no server running at t3://<IP>:<port>

请告诉我有什么办法可以解决这个问题。提前谢谢。

2 个答案:

答案 0 :(得分:0)

您必须在脚本中插入正确的值:weblogic_configuration_domain_update.py

例如:connect(t3://thelisteingadressofthehost.network.com:thelisteningportoftheAdminServer)

并确定您使用的是哪种协议t3或t3s ......

https://docs.oracle.com/cd/E13222_01/wls/docs92/config_scripting/reference.html

答案 1 :(得分:0)

打开终端并添加下面提到的变量JVM_ARGS

[oracle@node1 bin]$ set JVM_ARGS="-Dprod.props.file='${WL_HOME}'/.product.properties ${WLST_PROPERTIES} ${JVM_D64} ${UTILS_MEM_ARGS} ${COMMON_JVM_ARGS} ${CONFIG_JVM_ARGS} -Dweblogic.security.TrustKeyStore=DemoTrust"

[oracle@node1 bin]$ wlst.sh

Initializing WebLogic Scripting Tool (WLST) ...
Welcome to WebLogic Server Administration Scripting Shell
Type help() for help on available commands
wls:/offline>