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



Hii 我在连接到网络逻辑服务器时遇到问题。我用来连接的命令如下:

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>

请让我知道有什么方法可以解决此问题。提前谢谢你。

打开终端并添加下面提到的变量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>

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

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

并确定您使用的是哪种协议t3t3s...

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

相关内容

最新更新