2013-05-06 46 views
1

我通过管理控制台激活域管理员端口(在我的情况下是9042),不需要重新启动。 然后,我改变停止脚本:如何在使用域管理端口时停止Weblogic?

ADMIN_URL="t3s://localhost:9042" 

我也改变setDomainEnv.sh:

JAVA_OPTIONS="${JAVA_OPTIONS} -Dweblogic.security.TrustKeyStore=DemoTrust" 

但是当我运行stopWeblogic.sh我得到:

javax.naming.CommunicationException [Root exception is java.net.ConnectException: t3s://localhost:9042: Destination unreachable; nested exception is: 
    java.io.IOException: Stream closed.; No available router to destination] 
Problem invoking WLST - Traceback (innermost last): 
    File "/home/pi/Programs/Oracle/Middleware/sand_box/domains/prod_basic/shutdown.py", line 3, 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 t3s://localhost:9042 
Use dumpStack() to view the full stacktrace 

什么是正确的这样做的方式?

P.D.我也试图与其他的AdminServer端口7001和7002,但当然它说(因为它应该):

WLSTException: Error occured while performing connect : User 'principals=[weblogic, Administrators]' has administration role. All tasks by adminstrators must go through an Administration Port. 
+0

9042是你的“本地管理端口覆盖”? – 2013-05-06 19:13:44

+0

是的,当从wlst提示符尝试时,会发生什么事情。 – 2013-05-07 02:32:27

+0

我遇到过这种情况,当我的服务器出现其他问题时(它引发了大量其他错误),所以关闭它的连接超时。您也可以尝试使用IP而不是主机名。 – 2013-08-20 17:04:18

回答

1

我想要求澄清,但我新的计算器是不是让我要求澄清。因此,我发布了一个答案。

如果AdminServer和受控服务器共享相同的SSL配置(如DemoIdentity和DemoTrust),那么最好的做法是像修改一样修改setDomainEnv.sh。如果WLS实例另一方面具有不同的SSL配置(如DemoIdentity和DemoTrust for AdminServer,以及CustomIdentity和JavaStandardTrust用于托管服务器),那么最佳做法是修改停止脚本“DOMAIN_HOME/bin/stopWebLogic.sh”和“DOMAIN_HOME/bin /stopManagedWebLogic.sh“,将ADMIN_URL设置为基于t3s。

到你的问题,请尝试以下两个标志,看看它是否有助于你找到根源:

-Dweblogic.security.SSL.verbose=true 
-Dweblogic.StdoutDebugEnabled=true 

而WLST会尝试连接这些会给你SSL调试项为“localhost:9042” 。

此外,如果DemoIdentity证书的CN比“本地主机”(use命令"keytool -list -v -keystore WL_HOME/server/lib/DemoIdentity.jks")其他的东西,你还需要设置:

-Dweblogic.security.SSL.ignoreHostnameVerification=true 
相关问题