管理コンソールを使用するためには、このプロセスが実行されていなければなりません。 wsadmin コマンド行ユーティリティーには、 サーバー・プロセスが稼働していないときでも何らかの管理機能を実行するために使用できるローカル・モードがあります。
この問題は、SOAP コネクターが接続のプールをサポートしないために発生します。 アプリケーション・サーバーで、SOAP コネクターを使用する継続中のオペレーションが多数存在する場合、アプリケーション・サーバーは多くのポートを急速に開いたり閉じたりします。 TCP/IP プロトコルの基本的な性質により、これらのポートは、オペレーティング・システムがそれらを再利用できるようになる前に、しばらくの間 TIME_WAIT 状態のままとなります。 WebSphere Application Server は、オペレーティング・システムが設定する制限を超過する数のポートを開くことができます。 この条件では、オペレーティング・システムがポートを再利用するまで、SOAP コネクターを通じて追加のポートを開こうとしても失敗します。
SECJ0305I: Role based authorization check failed for securityname server.domain.name:3890/user.id, accessId user:server.domain.name:3890/uid=user.id,ou=xxxx,dc=yyy,dc=zzz while invoking method getNodeName on resource Server and module Server.アプリケーションの呼び出し元に管理の役割の 1 つを割り当てることができない場合、アプリケーションは呼び出し元に代わって役割の 1 つを使用してログインできます。 以下に例を示します。
try { // Create a LoginContext to authenticate a user ID and password. javax.security.auth.login.LoginContext lc = new javax.security.auth.login.LoginContext("WSLogin", new com.ibm.websphere.security.auth.callback.WSCallbackHandlerImpl("adminuser", "adminpassword")); // perform the login lc.login(); // Get the authenticated subject. javax.security.auth.Subject adminSubject = lc.getSubject(); // Define the action that will take place using the authenticated Subject // You can define this action anywhere in the code, the action // is reference in the WSSubject.doAs that follows. java.security.PrivilegedAction adminAction = new java.security.PrivilegedAction() { public Object run() { try { // Get the WebSphere AdminService. AdminService adminservice = AdminServiceFactory.getAdminService(); // Get the WebSphere Admin Local Server MBean instance. ObjectName objectname = adminservice.getLocalServer(); // Get the Node name. String nodeName = (String)adminservice.getAttribute(objectname, "nodeName"); // Get the Application Server name. String serverName = (String)adminservice.getAttribute(objectname, "name"); // Get the Application Server Process ID. String serverPid = (String)adminservice.getAttribute(objectname, "pid"); // Return a result, for this example, just return the serverPid. return serverPid; } catch (Exception e) { e.printStackTrace(); } return null; } }); // Invoke an AdminClient resource using the authenticated subject. // This example demonstrates the action of creating an // administrative client and returning a String value to use outside // the doAs block. String myData = (String) com.ibm.websphere.security.auth.WSSubject.doAs(adminSubject, adminAction); // use "myData" later on.... } catch (javax.security.auth.login.LoginException e) { e.printStackTrace(); }
WASX7015E: 例外実行コマンド: "$AdminControl startServer server1 Node1"; exception information: com.ibm.websphere.management.exception.ConnectorException org.apache.soap.SOAPException: [SOAPException: faultCode=SOAP-ENV:Client; msg=Read timed out; targetException=java.net.SocketTimeoutException: Read timed out]
この例外はタイムアウト値が小さすぎるために発生します。 シングル・サーバー版の profile_root/properties ディレクトリーにある soap.client.props ファイルの com.ibm.SOAP.requestTimeout プロパティーで指定されているタイムアウト値を大きくしてください。 選択する値は、サーバーにインストールされているアプリケーションのサイズおよび数、マシンのスピード、およびマシンの使用レベルなどの多くの要因によって変わります。 com.ibm.SOAP.requestTimeout プロパティーのデフォルト値は、180 秒です。
SystemOut.log ファイルを調べます。
profile_root/properties/wsadmin.properties ファイルの com.ibm.ws.scripting.port プロパティーは、wsadmin ユーティリティーがサーバーに要求を送信するために使用するポートを制御します。
上記のステップで問題が解決されない場合は、 『インストールは完了したが、 管理コンソールが始動しない』トピックに、その問題に関する説明がないか確認してください。 トピック『問題の診断および修正: 学習用リソース』にあるリンクを使用して、 問題が特定され、文書化されているかどうかを確認してください。 類似した問題が見つからない場合、 または提供されている情報では問題が解決されない場合は、IBM サポートに連絡してください。