1)weblogic管理サーバーへの接続などのタスク用の小さなユーティリティを構築しようとしています。2)管理対象サーバーを追加します。3)ドメインをnodemanagerなどに登録します。
Eclipseで開発を開始し、weblogic \ wlserver103 \ server \ libのすべてのjarファイルをプロジェクトビルドパスに追加しました(wlst埋め込みモードに必要なjarファイルがわかりません)開発環境はエラーなしで設定されています。管理サーバーへの接続などの単純なタスクを実行しようとしているとき。以下に示すように例外がスローされました
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オフラインモードから同じ接続を実行できます。これはうまく機能します。回避策として、接続コマンドのパラメーターとしてuserconfigファイルとuserKeyセキュアファイルを指定することも試みました。
注:管理サーバーはすでに開始され、実行されています。