Yjw 连接到 Weblogic 管理服务器?

问题描述

我使用 Weblogic 12.2.1.4 构建并运行 docker 映像,现在尝试编写脚本来创建用户和组。我正在尝试连接到管理服务器以创建组和用户。我运行 wlst.sh 并执行命令 connect('admin','AdminAdmin1','t3://localhost:9002'),但出现异常 -

WLSTException: Error occurred while performing connect : Error getting the initial context. There is no server running at t3://localhost:9002 : Failed to initialize JNDI context,tried 2 time or times totally,the interval of each time is 0ms.
[Login Failed for an unkNown reason: P]

admin & AdminAdmin1 - 它是来自 domain.properties 文件用户名密码。 如何连接到管理服务器?

解决方法

您使用的是默认 WLS 管理端口 9002。到目前为止一切顺利,但管理端口始终使用 SSL 运行。所以使用 t3s://localhost:9002 而不是 t3://localhost:9002