用户名和密码为空的WebLogic WLST connect() [英] Weblogic WLST connect() with blank username and password

查看:16
本文介绍了用户名和密码为空的WebLogic WLST connect()的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试连接到T3URL,我被告知该URL的用户名和密码为空,但是我不知道如何在connect()调用中传递空的用户名和密码。我如何才能做到这一点?

当我这样做时connect('', '', 't3://hostname:port'),WLST尝试使用用户名""weblogic""连接到给定的url,我不知道它是从哪里来的?

""

-更新-

请忽略以上内容.请参阅桑德拉的评论。

我尝试运行的脚本就是WebLogic Server JMS WLST Script – Who is Connected To My Server中所示的脚本。虽然我稍微修改了一下,将用户名、密码和url作为参数传递到脚本中.

我已将脚本保存到名为listJmsQueueConsumers.py的文件中,并按如下方式运行该脚本:

$ source /opttest/bea/wlserver_10.3/server/bin/setWLSEnv.sh

$ java weblogic.WLST listJmsQueueConsumers.py "username" "password" "t3://ip-address:port"其中,用户名、密码和url是指向WebLogic服务器管理员端口的管理员用户名、密码和url。

现在,当我运行该脚本时,我收到以下错误:

Caused by: java.net.ConnectException: t3://ip-address:port: Destination unreachable; nested exception is: java.net.SocketException: Connection reset; No available router to destination

我还尝试使用相同的url但使用协议t3s运行该脚本,当我使用t3s运行该脚本时,我得到:

Caused by: java.net.ConnectException: t3s://ip-address:port: Destination unreachable; nested exception is: javax.net.ssl.SSLKeyException: [Security:090542]Certificate chain received from bc2-06-v1.compass.cnsonline.net - ip-address was not trusted causing SSL handshake failure. Check the certificate chain to determine if it should be trusted or not. If it should be trusted, then update the client trusted CA configuration to trust the CA certificate that signed the peer certificate chain. If you are connecting to a WLS server that is using demo certificates (the default WLS server behavior), and you want this client to trust demo certificates, then specify -Dweblogic.security.TrustKeyStore=DemoTrust on the command line for this client.; No available router to destination

我非常确定我使用的IP地址和端口是服务器的IP地址和管理员端口,但我不确定这些错误的实际含义。我是否需要某种SSL证书才能通过T3S协议连接?

WebLogic

您需要将证书从推荐答案服务器导入到本地Java client JVM正在使用的本地密钥库。我使用一个名为keystore Explorer(http://keystore-explorer.sourceforge.net/)的工具来完成此操作。此处列出了其他好的选项How to properly import a selfsigned certificate into Java keystore that is available to all Java applications by default?

这篇关于用户名和密码为空的WebLogic WLST connect()的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆