VMware Cloud Community
Numen_hyperic
Contributor
Contributor
Jump to solution

WebSphere Application Server 6.1 issue (after applying fix pack)

Hyperic HQ Server and Agent are installed on Linux, both are at version 3.2.2. I use Sun j2sdk1.4.2_16 to run server and IBM java 1.5.0 to run the agent (for monitoring WebSphere). Before applying any fix patch to WebSphere 6.1 (version 6.1.0.0), Hyperic can monitor WebSphere 6.1 successfully, but after applying fix patch 15 (version 6.1.0.15), Hyperic can no longer be configured correctly, the error I got is as below.

Unexpected error running autodiscoverer for plugin: WebSphere Admin 6.1: ADMC0016E: The system cannot create a SOAP connector to connect to host localhost at port 8879.

Is there anyone who knows what this problem is? Please help!

Thanks,
Reply
0 Kudos
1 Solution

Accepted Solutions
roadrunner99
Contributor
Contributor
Jump to solution

The Solution is to fill out soap.client.properties and ssl.client.properties.

When you start the agent then make sure, that he finds the desired files (/conf/agent.properties set loglevel to debug).

Afterwards it should work.

regards
Roadrunner

View solution in original post

Reply
0 Kudos
7 Replies
tuiuiu
Contributor
Contributor
Jump to solution

Hello Everybody,

I´m facing the same problem but I´m running on Fix Pack 7, security is turned off and soap port is listening
Reply
0 Kudos
njmn_hyperic
Contributor
Contributor
Jump to solution

Hello Everybody,

I´m facing the problem with WebSphere 6.1.0 with HQ 3.2.2 on Win XP

I have IBM WebSphere Application Server - ND, 6.1.0.0 Build Number: b0620.14 installed in D:/data/WebSphere/AppServer
I set JAVA_HOME to IBM java to run the agent
I set websphere.installpath to D:/data/WebSphere/AppServer in agent.properties
Unexpected error running autodiscoverer for plugin
WebSphere Admin 6.1: ADMC0016E: The system cannot create a SOAP connector to connect to host localhost at port 8881.

in agent.log with debug enabled

2008-04-23 12:56:05,027 INFO [Thread-0] [ProductPluginManager] Loading plugin: websphere-plugin.jar
2008-04-23 12:56:05,027 DEBUG [Thread-0] [PluginData] etc/plugin.properties => null
2008-04-23 12:56:05,027 DEBUG [Thread-0] [PluginData] etc/hq-plugin.xml => jar:file:D:\Program%20Files\hyperic-hq-agent-3.2.2-EE\.\pdk\plugins\websphere-plugin.jar!/etc/hq-plugin.xml
2008-04-23 12:56:05,246 DEBUG [Thread-0] [WebsphereProductPlugin] Using profile: AppSrv01
2008-04-23 12:56:05,246 DEBUG [Thread-0] [WebsphereProductPlugin] Using soap properties: D://data//WebSphere//AppServer\profiles\AppSrv01\properties\soap.client.props
2008-04-23 12:56:05,246 DEBUG [Thread-0] [WebsphereProductPlugin] Using ssl properties: D:\data\WebSphere\AppServer\profiles\AppSrv01\properties\ssl.client.props
2008-04-23 12:56:05,246 DEBUG [Thread-0] [ProductPluginManager] adding to websphere classpath:
2008-04-23 12:56:05,246 DEBUG [Thread-0] [ProductPluginManager] + D:\data\WebSphere\AppServer\plugins\com.ibm.ws.emf_2.1.0.jar
2008-04-23 12:56:05,246 DEBUG [Thread-0] [ProductPluginManager] + D:\data\WebSphere\AppServer\plugins\com.ibm.ws.runtime_6.1.0.jar
2008-04-23 12:56:05,246 DEBUG [Thread-0] [ProductPluginManager] + D:\data\WebSphere\AppServer\plugins\com.ibm.ws.security.crypto_6.1.0.jar
2008-04-23 12:56:05,246 DEBUG [Thread-0] [ProductPluginManager] + D:\data\WebSphere\AppServer\runtimes\com.ibm.ws.webservices.thinclient_6.1.0.jar
2008-04-23 12:56:05,246 DEBUG [Thread-0] [ProductPluginManager] + D:\data\WebSphere\AppServer\lib\j2ee.jar
2008-04-23 12:56:05,246 DEBUG [Thread-0] [ProductPluginManager] + D:\data\WebSphere\AppServer\lib\bootstrap.jar
2008-04-23 12:56:05,246 DEBUG [Thread-0] [ProductPluginManager] + D:\data\WebSphere\AppServer\lib\urlprotocols.jar
2008-04-23 12:56:05,246 DEBUG [Thread-0] [ProductPluginManager] + D:\data\WebSphere\AppServer\lib\mail-impl.jar
2008-04-23 12:56:05,246 DEBUG [Thread-0] [ProductPluginManager] + D:\data\WebSphere\AppServer\etc\tmx4jTransform.jar

...

2008-04-23 12:58:10,062 DEBUG [Thread-0] [MeasurementCommandsServer] Error getting real time measurement 'WebSphere Admin 6.1:ws.custom:name=JVM,mbeanIdentifier=JVM,type=JVM,node=DMC24060Node02,*:stats:admin.host=localhost,admin.port=8881,admin.vers=WAS50,username=%username%,password=%password%': Error contacting resource: ADMC0016E: The system cannot create a SOAP connector to connect to host localhost at port 8881.
org.hyperic.hq.product.MetricUnreachableException: ADMC0016E: The system cannot create a SOAP connector to connect to host localhost at port 8881.
at org.hyperic.hq.plugin.websphere.WebsphereUtil.getMBeanServer(WebsphereUtil.java:120)
at org.hyperic.hq.plugin.websphere.WebsphereUtil.getMBeanServer(WebsphereUtil.java:147)
at org.hyperic.hq.plugin.websphere.WebsphereUtil.getMBeanCount(WebsphereUtil.java:159)
at org.hyperic.hq.plugin.websphere.WebsphereMeasurementPlugin.getCustomValue(WebsphereMeasurementPlugin.java:56)
at org.hyperic.hq.plugin.websphere.WebsphereMeasurementPlugin.getValue(WebsphereMeasurementPlugin.java:70)
at org.hyperic.hq.product.MeasurementPluginManager.getPluginValue(MeasurementPluginManager.java:176)
at org.hyperic.hq.product.MeasurementPluginManager.getValue(MeasurementPluginManager.java:274)
at org.hyperic.hq.product.MeasurementPluginManager.getValue(MeasurementPluginManager.java:135)
at org.hyperic.hq.product.MeasurementPluginManager.getValue(MeasurementPluginManager.java:127)
at org.hyperic.hq.measurement.agent.server.MeasurementCommandsServer.getMeasurements(MeasurementCommandsServer.java:289)
at org.hyperic.hq.measurement.agent.server.MeasurementCommandsServer.dispatchCommand(MeasurementCommandsServer.java:467)
at org.hyperic.hq.agent.server.CommandDispatcher.processRequest(CommandDispatcher.java:112)
at org.hyperic.hq.agent.server.CommandListener.listenLoop(CommandListener.java:191)
at org.hyperic.hq.agent.server.AgentDaemon.start(AgentDaemon.java:705)
at org.hyperic.hq.agent.server.AgentDaemon$RunnableAgent.run(AgentDaemon.java:769)
at java.lang.Thread.run(Unknown Source)
Caused by: com.ibm.websphere.management.exception.ConnectorException: ADMC0016E: The system cannot create a SOAP connector to connect to host localhost at port 8881.
at com.ibm.websphere.management.AdminClientFactory.createAdminClient(AdminClientFactory.java:479)
at org.hyperic.hq.plugin.websphere.WebsphereUtil.getMBeanServer(WebsphereUtil.java:118)
... 15 more
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at com.ibm.websphere.management.AdminClientFactory.createAdminClient(AdminClientFactory.java:454)
... 16 more
Caused by: java.lang.NoClassDefFoundError: javax/management/QueryExp
at java.lang.Class.getDeclaredMethods0(Native Method)
at java.lang.Class.privateGetDeclaredMethods(Unknown Source)
at java.lang.Class.privateGetPublicMethods(Unknown Source)
at java.lang.Class.privateGetPublicMethods(Unknown Source)
at java.lang.Class.getMethods(Unknown Source)
at sun.misc.ProxyGenerator.generateClassFile(Unknown Source)
at sun.misc.ProxyGenerator.generateProxyClass(Unknown Source)
at java.lang.reflect.Proxy.getProxyClass(Unknown Source)
at java.lang.reflect.Proxy.newProxyInstance(Unknown Source)
at com.ibm.ws.management.AdminClientImpl.<init>(AdminClientImpl.java:55)
... 21 more



The javax/management/QueryExp class is in management.jar located in D:\data\WebSphere\AppServer\lib\webadmin
Besides management.jar is not defined in the plugin classpath.


Please advice
Reply
0 Kudos
tuiuiu
Contributor
Contributor
Jump to solution

I used the Debug mode for logging found out something new :

2008-04-29 13:11:11,621 ERROR [Thread-0] [RuntimeAutodiscoverer] Unexpected error running autodiscoverer for plugin: WebSphere Admin 6.1: ADMC0016E: The syste
cannot create a SOAP connector to connect to host localhost at port 21910.
org.hyperic.hq.product.PluginException: ADMC0016E: The system cannot create a SOAP connector to connect to host localhost at port 21910.
[...]

Caused by: java.lang.NoClassDefFoundError: org/osgi/service/url/AbstractURLStreamHandlerService


In the log I got information about the websphere classpath :

2008-04-29 13:10:52,495 INFO [main] [ProductPluginManager] Loading plugin: websphere-plugin.jar
2008-04-29 13:10:52,499 DEBUG [main] [PluginData] etc/plugin.properties => null
2008-04-29 13:10:52,501 DEBUG [main] [PluginData] etc/hq-plugin.xml => jar:file:/opt/HYPERIC/HQAgent/agent-3.2.1/./pdk/plugins/websphere-plugin.jar!/etc/hq-pl
ugin.xml
2008-04-29 13:10:52,711 DEBUG [main] [WebsphereProductPlugin] Using profile: profile1
2008-04-29 13:10:52,711 DEBUG [main] [WebsphereProductPlugin] Using soap properties: /opt/WebSphere/AppServer/profiles/profile1/properties/soap.client.props
2008-04-29 13:10:52,712 DEBUG [main] [WebsphereProductPlugin] Using ssl properties: /opt/WebSphere/AppServer/profiles/profile1/properties/ssl.client.props
2008-04-29 13:10:52,717 DEBUG [main] [ProductPluginManager] adding to websphere classpath:
2008-04-29 13:10:52,717 DEBUG [main] [ProductPluginManager] + /opt/WebSphere/AppServer/plugins/com.ibm.ws.emf_2.1.0.jar
2008-04-29 13:10:52,717 DEBUG [main] [ProductPluginManager] + /opt/WebSphere/AppServer/plugins/com.ibm.ws.security.crypto_6.1.0.jar
2008-04-29 13:10:52,718 DEBUG [main] [ProductPluginManager] + /opt/WebSphere/AppServer/plugins/com.ibm.ws.runtime_6.1.0.jar
2008-04-29 13:10:52,718 DEBUG [main] [ProductPluginManager] + /opt/WebSphere/AppServer/runtimes/com.ibm.ws.webservices.thinclient_6.1.0.jar
2008-04-29 13:10:52,719 DEBUG [main] [ProductPluginManager] + /opt/WebSphere/AppServer/lib/j2ee.jar
2008-04-29 13:10:52,719 DEBUG [main] [ProductPluginManager] + /opt/WebSphere/AppServer/lib/bootstrap.jar
2008-04-29 13:10:52,720 DEBUG [main] [ProductPluginManager] + /opt/WebSphere/AppServer/lib/urlprotocols.jar
2008-04-29 13:10:52,720 DEBUG [main] [ProductPluginManager] + /opt/WebSphere/AppServer/lib/mail-impl.jar
2008-04-29 13:10:52,721 DEBUG [main] [ProductPluginManager] + /opt/WebSphere/AppServer/etc/tmx4jTransform.jar

But the NotClassDefFound-Class is not loaded !!!! It is located in :

/opt/WebSphere/AppServer/plugins/org.eclipse.osgi_3.2.1.R32x_v20060919.jar

So where to correct the classpath. In the agent.properties only the websphere.installpath is set and adding the missing jar as "cp" to the jvm does not change the behaviour.

Any ideas ?

Thanks
Reply
0 Kudos
dougm_hyperic
VMware Employee
VMware Employee
Jump to solution

Hi,
We're working on getting this one resolved, see:
http://jira.hyperic.com/browse/HHQ-2044
Reply
0 Kudos
Azevedo_hyperic
Contributor
Contributor
Jump to solution

You need to open the plugin and in the WebSpherePMI.java in method getAdminProperties(Properties cfg) pass the attributes:

connectProps.setProperty( AdminClient.CONNECTOR_SOAP_CONFIG,"file//C:\\ibm\\...\\properties\\soap.client.props");
connectProps.setProperty("javax.net.ssl.trustStore","C:\\ibm\\...\\default\\etc\\DummyServerTrustFile.jks");
connectProps.setProperty( "javax.net.ssl.keyStore","C:\\ibm\\...\\profiles\\default\\etc\\DummyServerKeyFile.jks");
connectProps.setProperty("javax.net.ssl.trustStorePassword", "WebAS");
connectProps.setProperty("javax.net.ssl.keyStorePassword", "WebAS");

And he works..
roadrunner99
Contributor
Contributor
Jump to solution

Hello

i have encountered the same problem with Solaris 10, Agent Version 4, HQ_JAVA_HOME set:

Caused by: com.ibm.websphere.management.exception.ConnectorNotAvailableException: ADMC0016E: The system cannot create a SOAP connector to co
nnect to host localhost at port 8880.
at com.ibm.ws.management.connector.soap.SOAPConnectorClient.getUrl(SOAPConnectorClient.java:1110)
at com.ibm.ws.management.connector.soap.SOAPConnectorClient.access$300(SOAPConnectorClient.java:110)
at com.ibm.ws.management.connector.soap.SOAPConnectorClient$4.run(SOAPConnectorClient.java:309)
at com.ibm.ws.security.util.AccessController.doPrivileged(AccessController.java:118)
at com.ibm.ws.management.connector.soap.SOAPConnectorClient.reconnect(SOAPConnectorClient.java:302)
... 23 more

Message was edited by: roadrunner99
Reply
0 Kudos
roadrunner99
Contributor
Contributor
Jump to solution

The Solution is to fill out soap.client.properties and ssl.client.properties.

When you start the agent then make sure, that he finds the desired files (/conf/agent.properties set loglevel to debug).

Afterwards it should work.

regards
Roadrunner
Reply
0 Kudos