VMware Cloud Community
drbp
Contributor
Contributor

Hyperic Agent Error on auto discovery of webpshere 8.5

Hi I am building a hyperic monitoring prototype for websphere 8.5 and when i start up the agent it doesn't discover the websphere process and complains of not finding IBM java class -->java.lang.ClassNotFoundException: Cannot find the specified class com.ibm.websphere.ssl.protocol.SSLSocketFactory :

I have added the ibm crypto.jar to the agent classpath but this has not helped.  full stack trace below:

25-08-2015 17:48:58,666 EDT DEBUG [autoinventory-scanner] [WebsphereDetector@380] WebSphere Admin 8.5 '/opt/was/ibm/WebSphere/AppServer/properties/version/WAS.product'.exists()=true

25-08-2015 17:48:58,666 EDT DEBUG [autoinventory-scanner] [WebsphereDetector@351] version= '8.5.5.2' type='8.5' res=true

25-08-2015 17:48:58,716 EDT DEBUG [autoinventory-scanner] [WebsphereAdminDetector@99] Configuring admin.host=<REMOVED> from: /opt/was/ibm/WebSphere/AppServer/profiles/AppSrv01/config/cells/<REMOVED>/nodes/<REMOVED>/serverindex.xml

25-08-2015 17:48:58,731 EDT DEBUG [autoinventory-scanner] [WebsphereAdminDetector@134] Configuring admin.port=8878 from: /opt/was/ibm/WebSphere/AppServer/profiles/AppSrv01/config/cells/<REMOVED>/nodes/<REMOVED>/serverindex.xml

25-08-2015 17:48:58,746 EDT DEBUG [system-0] [ScheduleThread@643] [3:10534:UTILIZATION] Metric='sigar:Type=CpuPercList,Arg=1:User' -> 0.34 timestamp=1440539338746

25-08-2015 17:48:58,851 EDT DEBUG [system-0] [ScheduleThread@576] collecting data for meas=[derivedId=16119|dsnId=16119]|interval=300000]

25-08-2015 17:48:58,747 EDT ERROR [websphere-0] [WebsphereServerCollector@125] ADMC0016E: The system cannot create a SOAP connector to connect to host <REMOVED> at port 8878.

org.hyperic.hq.product.MetricUnreachableException: ADMC0016E: The system cannot create a SOAP connector to connect to host <REMOVED> at port 8878.

        at org.hyperic.hq.plugin.websphere.WebsphereUtil.getMBeanServer(WebsphereUtil.java:136)

        at org.hyperic.hq.plugin.websphere.WebsphereCollector.getMBeanServer(WebsphereCollector.java:120)

        at org.hyperic.hq.plugin.websphere.WebsphereCollector.init(WebsphereCollector.java:85)

        at org.hyperic.hq.product.Collector.getValue(Collector.java:518)

        at org.hyperic.hq.product.MeasurementPlugin.getValue(MeasurementPlugin.java:445)

        at org.hyperic.hq.plugin.websphere.WebsphereMeasurementPlugin.getValue(WebsphereMeasurementPlugin.java:55)

        at org.hyperic.hq.product.MeasurementPluginManager.getPluginValue(MeasurementPluginManager.java:171)

        at org.hyperic.hq.product.MeasurementPluginManager.getValue(MeasurementPluginManager.java:269)

        at org.hyperic.hq.measurement.agent.server.ScheduleThread$MetricTask.run(ScheduleThread.java:578)

        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:483)

        at java.util.concurrent.FutureTask.run(FutureTask.java:274)

        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1157)

        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:627)

        at java.lang.Thread.run(Thread.java:801)

Caused by: com.ibm.websphere.management.exception.ConnectorException: ADMC0016E: The system cannot create a SOAP connector to connect to host <REMOVED> at port 8878.

        at com.ibm.websphere.management.AdminClientFactory.createAdminClientPrivileged(AdminClientFactory.java:635)

        at com.ibm.websphere.management.AdminClientFactory.access$000(AdminClientFactory.java:127)

        at com.ibm.websphere.management.AdminClientFactory$1.run(AdminClientFactory.java:210)

        at com.ibm.ws.security.util.AccessController.doPrivileged(AccessController.java:63)

        at com.ibm.websphere.management.AdminClientFactory.createAdminClient(AdminClientFactory.java:206)

        at org.hyperic.hq.plugin.websphere.WebsphereUtil.getMBeanServer(WebsphereUtil.java:125)

        ... 13 more

Caused by: java.lang.reflect.InvocationTargetException

        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:86)

        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:58)

        at java.lang.reflect.Constructor.newInstance(Constructor.java:542)

        at com.ibm.websphere.management.AdminClientFactory.createAdminClientPrivileged(AdminClientFactory.java:457)

        ... 18 more

Caused by: com.ibm.websphere.management.exception.ConnectorNotAvailableException: [SOAPException: faultCode=SOAP-ENV:Client; msg=Error opening socket: java.net.SocketException: java.lang.ClassNotFoundException: Cannot find the specified class com.ibm.websphere.ssl.protocol.SSLSocketFactory; targetException=java.lang.IllegalArgumentException: Error opening socket: java.net.SocketException: java.lang.ClassNotFoundException: Cannot find the specified class com.ibm.websphere.ssl.protocol.SSLSocketFactory]

        at com.ibm.ws.management.connector.soap.SOAPConnectorClient.reconnect(SOAPConnectorClient.java:429)        at com.ibm.ws.management.connector.soap.SOAPConnectorClient.<init>(SOAPConnectorClient.java:228)

        ... 23 more

Caused by: [SOAPException: faultCode=SOAP-ENV:Client; msg=Error opening socket: java.net.SocketException: java.lang.ClassNotFoundException: Cannot find the specified class com.ibm.websphere.ssl.protocol.SSLSocketFactory; targetException=java.lang.IllegalArgumentException: Error opening socket: java.net.SocketException: java.lang.ClassNotFoundException: Cannot find the specified class com.ibm.websphere.ssl.protocol.SSLSocketFactory]

        at org.apache.soap.transport.http.SOAPHTTPConnection.send(SOAPHTTPConnection.java:475)

        at org.apache.soap.rpc.Call.WASinvoke(Call.java:487)

        at com.ibm.ws.management.connector.soap.SOAPConnectorClient$4.run(SOAPConnectorClient.java:387)

        at com.ibm.ws.security.util.AccessController.doPrivileged(AccessController.java:118)

        at com.ibm.ws.management.connector.soap.SOAPConnectorClient.reconnect(SOAPConnectorClient.java:372)

        ... 24 more


the agent has the ibm crypto jar file in the class path as per grep ps:


-classpath ../../bundles/agent-x86-64-linux-5.8.3/lib/com.ibm.ws.security.crypto.jar

setup details:

hyperic agent version - 5.8.3

websphere version info:

--------------------------------------------------------------------------------

IBM WebSphere Product Installation Status Report

--------------------------------------------------------------------------------

Report at date and time August 25, 2015 6:02:28 EDT PM

Installation

--------------------------------------------------------------------------------

Product Directory        /opt/was/ibm/WebSphere/AppServer

Version Directory        /opt/was/ibm/WebSphere/AppServer/properties/version

DTD Directory            /opt/was/ibm/WebSphere/AppServer/properties/version/dtd

Log Directory            /home/was/var/ibm/InstallationManager/logs

Product List

--------------------------------------------------------------------------------

IBMJAVA7                 installed

BASE                     installed

Installed Product

--------------------------------------------------------------------------------

Name                  IBM WebSphere SDK Java Technology Edition (Optional)

Version               7.0.8.0

ID                    IBMJAVA7

Build Level           cf041446.01

Build Date            11/18/14

Package               com.ibm.websphere.IBMJAVA.v70_7.0.8000.20141118_1016

Architecture          x86-64 (64 bit)

Installed Features    IBM WebSphere SDK for Java Technology Edition 7

Installed Product

--------------------------------------------------------------------------------

Name                  IBM WebSphere Application Server

Version               8.5.5.2

ID                    BASE

Build Level           cf021414.01

Build Date            4/8/14

Package               com.ibm.websphere.BASE.v85_8.5.5002.20140408_1947

Architecture          x86-64 (64 bit)

Installed Features    IBM 64-bit WebSphere SDK for Java

                      WebSphere Application Server Full Profile

                      EJBDeploy tool for pre-EJB 3.0 modules

                      Embeddable EJB container

                      Stand-alone thin clients and resource adapters

--------------------------------------------------------------------------------

End Installation Status Report

--------------------------------------------------------------------------------

OS version:

SUSE Linux (SLES 11) x86_64

Reply
0 Kudos
0 Replies