我通过管理控制台激活了域管理端口(在我的情况下为 9042),无需重新启动。然后我改变了停止脚本:
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
这样做的正确方法是什么?
PD 我也尝试使用其他 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.