Any help is appreciated.
System.out
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[8/1/06 11:14:49:502 CDT] 0000000a RoleBasedConf W loadSecurityPolicy: cannot load AdminOperations ,continue with the default mbean security policy.
[8/1/06 11:14:49:767 CDT] 0000000a JMXSoapAdapte A ADMC0013I: The SOAP connector is available at port 8880
[8/1/06 11:14:51:158 CDT] 0000000a distSecurityC I SECJ0243I: Security service started successfully
But I get this error
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
com.ibm.websphere.management.exception.ConnectorException: ADMC0016E: Could not create SOAP Connector to connect to host ACDV0548 at port 8880
at com.ibm.websphere.management.AdminClientFactory.createAdminClient(AdminClientFactory.java:368)
at com.rps.was.jmx.JMXRemoteClientApp.createAdminClient(JMXRemoteClientApp.java:64)
at com.rps.was.jmx.JMXRemoteClientApp.main(JMXRemoteClientApp.java:42)
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
at com.ibm.websphere.management.AdminClientFactory.createAdminClient(AdminClientFactory.java:299)
... 2 more
Caused by: com.ibm.websphere.management.exception.ConnectorNotAvailableException
at com.ibm.ws.management.connector.soap.SOAPConnectorClient.reconnect(SOAPConnectorClient.java:251)
at com.ibm.ws.management.connector.soap.SOAPConnectorClient.<init>(SOAPConnectorClient.java:184)
... 7 more
Caused by: [SOAPException: faultCode=SOAP-ENV:Client; msg=Error parsing HTTP status line "...": java.util.NoSuchElementException; targetException=java.lang.IllegalArgumentException: Error parsing HTTP status line : java.util.NoSuchElementException]
at org.apache.soap.transport.http.SOAPHTTPConnection.send(Unknown Source)
at org.apache.soap.rpc.Call.invoke(Unknown Source)
at com.ibm.ws.management.connector.soap.SOAPConnectorClient$2.run(SOAPConnectorClient.java:234)
at java.security.AccessController.doPrivileged(Native Method)
at com.ibm.ws.management.connector.soap.SOAPConnectorClient.reconnect(SOAPConnectorClient.java:231)
... 8 more
--
Stephen Cocks
<uni...@yahoo.com> wrote in message
news:1590287241.115499166...@ltsgwas010.sby.ibm.com...
I solved it by adding these rows when creating the AdminClient. This is if your using the default key and trustStore. If in unix change path to Dummy-files.
props.setProperty(AdminClient.USERNAME, "wasadmin");
props.setProperty(AdminClient.PASSWORD, "SecretPwd");
props.setProperty(AdminClient.CONNECTOR_SECURITY_ENABLED, "true");
props.setProperty("javax.net.ssl.trustStore", "C:/was51/AppServer/etc/DummyClientTrustFile.jks");
props.setProperty("javax.net.ssl.keyStore", "C:/was51/AppServer/etc/DummyClientKeyFile.jks");
props.setProperty("javax.net.ssl.trustStorePassword", "WebAS");
props.setProperty("javax.net.ssl.keyStorePassword", "WebAS");
Hope this helps!
Manne Björkhagen
Websphere Consultant
Vipra Tech AB