launchclient c:¥was¥base51¥installedApps¥Cell¥WPFKeyBasedPartitionSample.ear -CCproviderURL=corbaloc::localhost:9813 IBM WebSphere Application Server, Release 5.1 J2EE Application Client Tool Copyright IBM Corp., 1997-2003 WSCL0012I: Processing command line arguments. WSCL0013I: Initializing the J2EE Application Client Environment. WSCL0035I: Initialization of the J2EE Application Client Environment has completed. WSCL0014I: Invoking the Application Client class com.ibm.websphere.wpf.client. WPFKeyBasedPartitionClient WSCL0100E: Exception received: java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:85) at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:58) at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:60) at java.lang.reflect.Method.invoke(Method.java:391) at com.ibm.websphere.client.applicationclient.launchClient. createContainerAndLaunchApp(launchClient.java:638) at com.ibm.websphere.client.applicationclient.launchClient. main(launchClient.java:425) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:85) at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:58) at sun.reflect.DelegatingMethodAccessorImpl. invoke(DelegatingMethodAccessorImpl.java:60) at java.lang.reflect.Method.invoke(Method.java:391) at com.ibm.ws.bootstrap.WSLauncher.main(WSLauncher.java:189) Caused by: com.ibm.websphere.naming.CannotInstantiateObjectException: Exception occurred while the JNDI NamingManager wa s processing a javax.naming.Reference object. [Root exception is javax.naming.CommunicationException: A communication failure occurred while attempting to obtain an initial context with the provider URL: "corbaloc::localhost:9813". Make sure that any bootstrap address information in the URL is correct and that the target name server is running. A bootstrap address with no port specification defaults to port 2809. Possible causes other than an incorrect bootstrap address or unavailable name server include the network environment and workstation network configuration. [Root exception is org.omg.CORBA.COMM_FAILURE: WRITE_ERROR_SEND_1 vmcid: 0x49421000 minor code: 50 completed: No]] at com.ibm.ws.naming.util.Helpers.processSerializedObjectForLookupExt (Helpers.java:931) at com.ibm.ws.naming.urlbase.UrlContextHelper.processBoundObjectForLookup (UrlContextHelper.java:152) at com.ibm.ws.naming.java.javaURLContextRoot.processBoundObjectForLookup (javaURLContextRoot.java:398) at com.ibm.ws.naming.urlbase.UrlContextImpl.lookup (UrlContextImpl.java:1278) at com.ibm.ws.naming.java.javaURLContextRoot. lookup(javaURLContextRoot.java:196) at com.ibm.ws.naming.java.javaURLContextRoot. lookup(javaURLContextRoot.java:137) at javax.naming.InitialContext.lookup(InitialContext.java:361) at com.ibm.websphere.wpf.client.WPFKeyBasedPartitionClient.main (WPFKeyBasedPartitionClient.java:110) ... 13 more
すべての区画が活動状態になるまでには、 数分かかるのが一般的です。 開発段階では、活動状態にする区画の数をかなり少なくし、 サーバーから「Open for e-busines」と通知されたらすぐに作業に取りかかれるようにしておく というシナリオがよく見られます。
しかし、区画数が増えるにつれて、クラスター全体のメンバー数も増え、 実稼働環境関連の作業も始まります。区画数が多い場合にはすべての区画が 活動状態になるまでに数分かかることもある、という点に注意することが大切です。 重要なシナリオでは、区画をできる限り多く用意し、さらにある区画のトレース・ラインを 出力するという場合があります。この結果、パフォーマンスが大きな影響を受けることがあります。 この場合のデフォルト・ケースでは、WPF 区画の状況に関するメッセージは出力しません。
wpfadmin setTraceSpec perm WPFSTATUS=all=enabled -c cluster次のような出力が得られます。
wsadmin -lang jython -f wpfadmin.pty setTraceSpec perm WPFSTATUS=all=enabled --c cluster WASX7209I: Connected to process "Deployment Manager" on node CellManager using SOAP connector; The type of process is: DeploymentManager WPFC0065I: Cluster set to cluster WPFC0059I: Setting trace to WPFSTATUS=all=enabled for Server cluster_member_1 (cells/Cell/nodes/NodeA/servers/cluster_member_1:server.xml#Server_1) WPFC0059I: Setting trace to WPFSTATUS=all=enabled for Server cluster_member_2 (cells/Cell/nodes/NodeA/servers/cluster_member_2:server.xml#Server_1) WPFC0059I: Setting trace to WPFSTATUS=all=enabled for Server cluster_member_3 (cells/Cell/nodes/NodeA/servers/cluster_member_3:server.xml#Server_1)クラスター・メンバーでトレースが使用可能になると、以後、区画ごとにログ・ディレクトリーに トレース・エントリーが記録されます (他の情報も記録されます。前掲のテキストでは情報をフィルタリングしています)。トレースのスナップショットの例を次に示します。
[10/14/04 11:53:53:287 CDT] 1f3052f7 XDClusterAdap I WPFR0002I: Partition routing cluster for partition PK000002 is successfully created and open for e-Business at this server. [10/14/04 11:53:53:647 CDT] 1f3052f7 XDClusterAdap I WPFR0002I: Partition routing cluster for partition PK000001 is successfully created and open for e-Business at this server. [10/14/04 11:53:54:639 CDT] 1f3052f7 XDClusterAdap I WPFR0002I: Partition routing cluster for partition PK000004 is successfully created and open for e-Business at this server. [10/14/04 11:53:55:600 CDT] 1f3052f7 XDClusterAdap I WPFR0002I: Partition routing cluster for partition PK000008 is successfully created and open for e-Business at this server. [10/14/04 11:53:56:041 CDT] 1f3052f7 XDClusterAdap I WPFR0002I: Partition routing cluster for partition PK000003 is successfully created and open for e-Business at this server. [10/14/04 11:53:56:091 CDT] 1f3052f7 XDClusterAdap I WPFR0002I: Partition routing cluster for partition PK000005 is successfully created and open for e-Business at this server. [10/14/04 11:53:56:241 CDT] 1f3052f7 XDClusterAdap I WPFR0002I: Partition routing cluster for partition PK000010 is successfully created and open for e-Business at this server. [10/14/04 11:53:56:411 CDT] 1f3052f7 XDClusterAdap I WPFR0002I: Partition routing cluster for partition PK000006 is successfully created and open for e-Business at this server. [10/14/04 11:53:56:692 CDT] 1f3052f7 XDClusterAdap I WPFR0002I: Partition routing cluster for partition PK000007 is successfully created and open for e-Business at this server. [10/14/04 11:53:56:732 CDT] 1f3052f7 XDClusterAdap I WPFR0002I: Partition routing cluster for partition PK000009 is successfully created and open for e-Business at this server.この例では、最後の区画の開始時刻が 11:53:56 になっています。一方、サーバー側のログ・エントリーは次のようになっています。
10/14/04 11:53:47:649 CDT] 719092f5 WsServer A WSVR0001I: Server cluster_member_2 open for e-businessこの場合、アプリケーション・サーバーが開始したのが 11:53:47 で、最後の区画が活動状態になり、クラスターに登録されて要求を受け取れるようになったのが 11:53:56 です。つまり、10 個の区画で約 9 秒を要しています。これは一般規則ではありません。開始ポリシーが大きく影響するほか、サーバー開始の順序や タイミングに応じて開始手順が異なるからです。重要なのは、クライアント側から区画がアクセス可能になるまで、クライアント要求は拒否されるという点です。
Related reference
問題解決