我试图建立一个小的工具,如 1)连接到weblogic管理服务器。 2)添加托管服务器。 3)用nodemanager等注册域名。我开始在Eclipse中进行开发,将所有weblogic \ wlserver103 \ server \ lib的jar文件添加到我的项目构建路径中(我不知道wlst嵌入模式需要哪些jar)开发环境设置没有任何错误。当我试图运行像连接到管理服务器这样的简单任务时。一个异常被抛出如下图所示wlst嵌入模式不起作用
Connecting to t3://ksai.domain.simpledevelopers.com:7001 with userid javadev13 ...
The CompatabilityMBeanServer is not initialized properly.
This might happen if the CompatabilityMBeanServer is
disabled via the JMXMBean.
To view the root cause exception use dumpStack()
WLST detected that the RuntimeMBeanServer is not enabled. This
might happen if the RuntimeMBeanServer is disabled via the JMXMBean.
Please ensure that this MBeanServer is enabled. Online WLST cannot
function without this MBeanServer.
Exception in thread "main" Traceback (innermost last):
File "<string>", line 1, in ?
File "<iostream>", line 22, in connect
File "<iostream>", line 618, in raiseWLSTException
WLSTException: Error occured while performing connect : "Cannot connect to WLST."
Use dumpStack() to view the full stacktrace
我可以做同样的从WLST脱机模式下使用相同的用户名和密码,其中工程well.As一种变通方法我也试过给UserConfig的和USERKEY安全文件作为连接连接命令的参数。
注意:管理服务器已经启动并正在运行。