WLSTException:执行连接时发生错误:获取初始上下文时出错。没有服务器在运行

问题描述 投票:0回答:2

嗨,我在连接到 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>

请告诉我有什么办法可以解决这个问题。预先感谢您。

weblogic
2个回答
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>

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

© www.soinside.com 2019 - 2024. All rights reserved.