Support Migration Notice: To update migrated JIRA cases click here to open a new case use www.vmware.com/go/sr | vFabric Hyperic 5.7.0 is Now Available

Hyperic HQ

Improve logging for WAS websphere.installpath issues on windows

Details

  • Type: Improvement Improvement
  • Status: Reopened Reopened
  • Priority: Trivial Trivial
  • Resolution: Unresolved
  • Affects Version/s: 4.3, 4.4, 4.5
  • Fix Version/s: None
  • Environment:
    HQ-server 4.5.0-EE-82 running on RHEL 5.4
    HQ-agent 4.5.0-EE-82 running on CentOS 5.3
     - WebSphere 7.0.0.9 installed on hq-agent
  • Case Links:
    none
  • Regression:
    No

Description

On windows if user sets websphere.installpath with regular single backslashes WAS config gives following error. This request is to enhance error message.

WebSphere Plugin error: Plugin class not found: com.ibm.websphere.management.exception.ConnectorException (invalid classpath or corrupt plugin jar).

After installing a hq-agent on the server running WebSphere Application Server, setting the configuration properties yields:
The configuration has not been set for this resource due to : Invalid configuration: Plugin error: Plugin class not found: com.ibm.websphere.management.exception.ConnectorException (invalid classpath or corrupt plugin jar)

The agent.log reports:
Plugin error: Plugin class not found: com.ibm.websphere.management.exception.ConnectorException (invalid classpath or corrupt plugin jar)
org.hyperic.hq.product.PluginException: Plugin class not found: com.ibm.websphere.management.exception.ConnectorException (invalid classpath or corrupt plugin jar)
at org.hyperic.hq.product.MeasurementPluginManager.getValue(MeasurementPluginManager.java:277)
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.MeasurementCommandsService.getMeasurements(MeasurementCommandsService.java:201)
at org.hyperic.hq.measurement.agent.server.MeasurementCommandsServer.dispatchCommand(MeasurementCommandsServer.java:168)
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:844)
at org.hyperic.hq.agent.server.AgentDaemon$RunnableAgent.run(AgentDaemon.java:926)
at java.lang.Thread.run(Thread.java:736)
Caused by:
java.lang.NoClassDefFoundError: com.ibm.websphere.management.exception.ConnectorException
at java.lang.J9VMInternals.verifyImpl(Native Method)
at java.lang.J9VMInternals.verify(J9VMInternals.java:72)
at java.lang.J9VMInternals.verify(J9VMInternals.java:70)
at java.lang.J9VMInternals.initialize(J9VMInternals.java:134)
at java.lang.J9VMInternals.newInstanceImpl(Native Method)
at java.lang.Class.newInstance(Class.java:1325)
at org.hyperic.hq.product.MeasurementPlugin.getNewCollector(MeasurementPlugin.java:478)
at org.hyperic.hq.product.Collector.getValue(Collector.java:504)
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:176)
at org.hyperic.hq.product.MeasurementPluginManager.getValue(MeasurementPluginManager.java:274)
... 9 more
Caused by:
java.lang.ClassNotFoundException: com.ibm.websphere.management.exception.ConnectorException
at java.net.URLClassLoader.findClass(URLClassLoader.java:421)
at java.lang.ClassLoader.loadClass(ClassLoader.java:652)
at java.lang.ClassLoader.loadClass(ClassLoader.java:618)
... 21 more
2010-08-27 14:43:52,775 DEBUG [Thread-8] [MeasurementCommandsService] Error getting real time measurement 'vmlin-was-005CellManager01/dmgr:Module=transactionModule:globalTransRolledBack:admin.host=10.0.0.124,admin.port=8879,username=wasadmin,password=wasadmin_RATE_=1m': Plugin error: Plugin class not found: com.ibm.websphere.management.exception.ConnectorException (invalid classpath or corrupt plugin jar)
org.hyperic.hq.product.PluginException: Plugin class not found: com.ibm.websphere.management.exception.ConnectorException (invalid classpath or corrupt plugin jar)
at org.hyperic.hq.product.MeasurementPluginManager.getValue(MeasurementPluginManager.java:277)
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.MeasurementCommandsService.getMeasurements(MeasurementCommandsService.java:201)
at org.hyperic.hq.measurement.agent.server.MeasurementCommandsServer.dispatchCommand(MeasurementCommandsServer.java:168)
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:844)
at org.hyperic.hq.agent.server.AgentDaemon$RunnableAgent.run(AgentDaemon.java:926)
at java.lang.Thread.run(Thread.java:736)
Caused by:
java.lang.NoClassDefFoundError: com.ibm.websphere.management.exception.ConnectorException
at java.lang.J9VMInternals.verifyImpl(Native Method)
at java.lang.J9VMInternals.verify(J9VMInternals.java:72)
at java.lang.J9VMInternals.verify(J9VMInternals.java:70)
at java.lang.J9VMInternals.initialize(J9VMInternals.java:134)
at java.lang.J9VMInternals.newInstanceImpl(Native Method)
at java.lang.Class.newInstance(Class.java:1325)
at org.hyperic.hq.product.MeasurementPlugin.getNewCollector(MeasurementPlugin.java:478)
at org.hyperic.hq.product.Collector.getValue(Collector.java:504)
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:176)
at org.hyperic.hq.product.MeasurementPluginManager.getValue(MeasurementPluginManager.java:228)
... 9 more
Caused by:
java.lang.ClassNotFoundException: com.ibm.websphere.management.exception.ConnectorException
at java.net.URLClassLoader.findClass(URLClassLoader.java:421)
at java.lang.ClassLoader.loadClass(ClassLoader.java:652)
at java.lang.ClassLoader.loadClass(ClassLoader.java:618)
... 21 more
2010-08-27 14:43:52,777 DEBUG [Thread-8] [MeasurementCommandsService] Error getting real time measurement 'vmlin-was-005CellManager01/dmgr:Module=transactionModule:globalTransCommitted:admin.host=10.0.0.124,admin.port=8879,username=wasadmin,password=wasadmin_RATE_=1m': Plugin error: Plugin class not found: com.ibm.websphere.management.exception.ConnectorException (invalid classpath or corrupt plugin jar)
org.hyperic.hq.product.PluginException: Plugin class not found: com.ibm.websphere.management.exception.ConnectorException (invalid classpath or corrupt plugin jar)
at org.hyperic.hq.product.MeasurementPluginManager.getValue(MeasurementPluginManager.java:277)
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.MeasurementCommandsService.getMeasurements(MeasurementCommandsService.java:201)
at org.hyperic.hq.measurement.agent.server.MeasurementCommandsServer.dispatchCommand(MeasurementCommandsServer.java:168)
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:844)
at org.hyperic.hq.agent.server.AgentDaemon$RunnableAgent.run(AgentDaemon.java:926)
at java.lang.Thread.run(Thread.java:736)
Caused by:
java.lang.NoClassDefFoundError: com.ibm.websphere.management.exception.ConnectorException
at java.lang.J9VMInternals.verifyImpl(Native Method)
at java.lang.J9VMInternals.verify(J9VMInternals.java:72)
at java.lang.J9VMInternals.verify(J9VMInternals.java:70)
at java.lang.J9VMInternals.initialize(J9VMInternals.java:134)
at java.lang.J9VMInternals.newInstanceImpl(Native Method)
at java.lang.Class.newInstance(Class.java:1325)
at org.hyperic.hq.product.MeasurementPlugin.getNewCollector(MeasurementPlugin.java:478)
at org.hyperic.hq.product.Collector.getValue(Collector.java:504)
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:176)
at org.hyperic.hq.product.MeasurementPluginManager.getValue(MeasurementPluginManager.java:228)
... 9 more
Caused by:
java.lang.ClassNotFoundException: com.ibm.websphere.management.exception.ConnectorException
at java.net.URLClassLoader.findClass(URLClassLoader.java:421)
at java.lang.ClassLoader.loadClass(ClassLoader.java:652)
at java.lang.ClassLoader.loadClass(ClassLoader.java:618)
... 21 more
2010-08-27 14:43:52,780 DEBUG [Thread-8] [MeasurementCommandsService] Error getting real time measurement 'vmlin-was-005CellManager01/dmgr:Module=jvmRuntimeModule:Availability:admin.host=10.0.0.124,admin.port=8879,username=wasadmin,password=********': Plugin error: Plugin class not found: com.ibm.websphere.management.exception.ConnectorException (invalid classpath or corrupt plugin jar)
org.hyperic.hq.product.PluginException: Plugin class not found: com.ibm.websphere.management.exception.ConnectorException (invalid classpath or corrupt plugin jar)
at org.hyperic.hq.product.MeasurementPluginManager.getValue(MeasurementPluginManager.java:277)
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.MeasurementCommandsService.getMeasurements(MeasurementCommandsService.java:201)
at org.hyperic.hq.measurement.agent.server.MeasurementCommandsServer.dispatchCommand(MeasurementCommandsServer.java:168)
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:844)
at org.hyperic.hq.agent.server.AgentDaemon$RunnableAgent.run(AgentDaemon.java:926)
at java.lang.Thread.run(Thread.java:736)
Caused by:
java.lang.NoClassDefFoundError: com.ibm.websphere.management.exception.ConnectorException
at java.lang.J9VMInternals.verifyImpl(Native Method)
at java.lang.J9VMInternals.verify(J9VMInternals.java:72)
at java.lang.J9VMInternals.verify(J9VMInternals.java:70)
at java.lang.J9VMInternals.initialize(J9VMInternals.java:134)
at java.lang.J9VMInternals.newInstanceImpl(Native Method)
at java.lang.Class.newInstance(Class.java:1325)
at org.hyperic.hq.product.MeasurementPlugin.getNewCollector(MeasurementPlugin.java:478)
at org.hyperic.hq.product.Collector.getValue(Collector.java:504)
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:176)
at org.hyperic.hq.product.MeasurementPluginManager.getValue(MeasurementPluginManager.java:274)
... 9 more
Caused by:
java.lang.ClassNotFoundException: com.ibm.websphere.management.exception.ConnectorException
at java.net.URLClassLoader.findClass(URLClassLoader.java:421)
at java.lang.ClassLoader.loadClass(ClassLoader.java:652)
at java.lang.ClassLoader.loadClass(ClassLoader.java:618)
... 21 more

Expected Result:
After setting configuration properties for WAS, the settings are saved and availability/metrics begin collecting.

Actual Result:
Unable to set configuration properties for WAS; no availability/metrics can be collected.

Steps to Reproduce:
1. Install hq-agent on platform running WAS.
2. Log into Hyperic
3. Import auto-discovered WAS platform into inventory
4. Selected newly added (step 3) platform resource
5. Select Inventory tab
6. Click 'Configuration Properties' link or Edit button within Configuration Properties section
7. Configure admin.port, admin.host, username, and password
8. Click OK button
9. Note the reported error:
The configuration has not been set for this resource due to : Invalid configuration: Plugin error: Plugin class not found: com.ibm.websphere.management.exception.ConnectorException (invalid classpath or corrupt plugin jar)

Work around:
None

Additional Information:
Java used which starts WAS:

  1. java -version
    java version "1.6.0"
    Java(TM) SE Runtime Environment (build pxa6460sr7ifix-20100220_02(SR7+IZ69890+IZ70326))
    IBM J9 VM (build 2.4, JRE 1.6.0 IBM J9 2.4 Linux amd64-64 jvmxa6460sr7-20100219_54097 (JIT enabled, AOT enabled)
    J9VM - 20100219_054097
    JIT - r9_20091123_13891
    GC - 20100216_AA)
    JCL - 20091202_01

Running command line auto-discover correctly discovers two servers and reports no error

Activity

Hide
German Laullon added a comment -

Looks like a problem during agent startup, but I can't reproduce it
If it happend again, activate the debug level on the agent, and attach the log

Show
German Laullon added a comment - Looks like a problem during agent startup, but I can't reproduce it If it happend again, activate the debug level on the agent, and attach the log
Hide
Frederic Calindas added a comment -

Reproduced with 4.5.0-EE-M6 build using WebSphere 6.1.0.29 on Windows 2003.

Environment Details:
Windows Server 2003 R2 Enterprise x64 SP2

WebSphere Details:
IBM WebSphere Application Server - ND, 6.1.0.29
Build Number: cf290949.16
Build Date: 12/11/09

HQ_JAVA_HOME set to WebSphere JAVA:
C:\sw\hyperic\hyperic-hqee-agent-4.5.0.M6>%HQ_JAVA_HOME%/bin/java -version
java version "1.5.0"
Java(TM) 2 Runtime Environment, Standard Edition (build pwa64dev-20091106a (SR11))
IBM J9 VM (build 2.3, J2RE 1.5.0 IBM J9 2.3 Windows Server 2003 amd64-64 j9vmwa6
423-20091104 (JIT enabled)
J9VM - 20091103_45935_LEdSMr
JIT - 20091016_1845_r8
GC - 20091026_AA)
JCL - 20091106

Agent.properties set for use with WebSphere:
websphere.installpath=C:\sw\IBM\WebSphere61\AppServer
websphere.useext=true

See attached agent.log for additional details.

Show
Frederic Calindas added a comment - Reproduced with 4.5.0-EE-M6 build using WebSphere 6.1.0.29 on Windows 2003. Environment Details: Windows Server 2003 R2 Enterprise x64 SP2 WebSphere Details: IBM WebSphere Application Server - ND, 6.1.0.29 Build Number: cf290949.16 Build Date: 12/11/09 HQ_JAVA_HOME set to WebSphere JAVA: C:\sw\hyperic\hyperic-hqee-agent-4.5.0.M6>%HQ_JAVA_HOME%/bin/java -version java version "1.5.0" Java(TM) 2 Runtime Environment, Standard Edition (build pwa64dev-20091106a (SR11)) IBM J9 VM (build 2.3, J2RE 1.5.0 IBM J9 2.3 Windows Server 2003 amd64-64 j9vmwa6 423-20091104 (JIT enabled) J9VM - 20091103_45935_LEdSMr JIT - 20091016_1845_r8 GC - 20091026_AA) JCL - 20091106 Agent.properties set for use with WebSphere: websphere.installpath=C:\sw\IBM\WebSphere61\AppServer websphere.useext=true See attached agent.log for additional details.
Hide
Frederic Calindas added a comment -

German pointed that I have used \ on the install path... and in Java you have to use
or / for windows paths.

After correctly using 'double slash' for the install path in the agent.properties file, the configuration properties were able to be set successfully.

He is going to add some debug info to detect it.

Show
Frederic Calindas added a comment - German pointed that I have used \ on the install path... and in Java you have to use
or / for windows paths. After correctly using 'double slash' for the install path in the agent.properties file, the configuration properties were able to be set successfully. He is going to add some debug info to detect it.
Hide
Frederic Calindas added a comment -

Lowering severity as only debugging information needs to be added to detect incorrect websphere.installpath parameter.

Show
Frederic Calindas added a comment - Lowering severity as only debugging information needs to be added to detect incorrect websphere.installpath parameter.

People

Vote (1)
Watch (0)

Dates

  • Created:
    Updated:
    Last comment:
    3 years, 31 weeks ago