用户名和密码为空的WebLogic WLST connect()

编程入门 行业动态 更新时间:2024-10-28 04:22:24
本文介绍了用户名和密码为空的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.ConnectException: t3://ip-address:port: Destination unreachable; nested exception is: java.SocketException: Connection reset; No available router to destination

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

Caused by: java.ConnectException: t3s://ip-address:port: Destination unreachable; nested exception is: javax.ssl.SSLKeyException: [Security:090542]Certificate chain received from bc2-06-v1passsonline - 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(keystore-explorer.sourceforge/)的工具来完成此操作。此处列出了其他好的选项How to properly import a selfsigned certificate into Java keystore that is available to all Java applications by default?

更多推荐

用户名和密码为空的WebLogic WLST connect()

本文发布于:2023-10-20 01:03:21,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1509364.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:为空   用户名   密码   connect   WebLogic

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!