OSB Monitor Tool java.lang.ClassNotFoundException (Doc ID 2293846.1)

Last updated on AUGUST 23, 2017

Applies to:

Oracle Service Bus - Version 12.2.1.2.0 and later
Information in this document applies to any platform.

Symptoms

We are facing an issue while generating the OSB Monitor tool.

OSB Monitor Tool:::It is a JAVA program which uses JMX APIs to obtain statistics information from last reset for monitored services. The statistical data like success rate, failure rate, message count, error message count, Interval time, max time, and min time, no of SLA and Pipeline alerts for each service is obtained.

Issue:: While running the code in Jdeveloper, we are getting java.lang.ClassNotFoundException.



ERROR
-----------------------
Retrieving statistics for all monitoredbusiness services.
Failed to retrieve and reset statistics for all monitored business services...
java.lang.RuntimeException: java.lang.ClassNotFoundException: com.bea.wli.monitoring.DelegatedServiceDomainMBean
  at weblogic.management.jmx.MBeanServerInvocationHandler.newProxyInstance(MBeanServerInvocationHandler.java:631)
  at tests.monitoring.ServiceStatisticsRetriever$ServiceDomainMBeanInvocationHandler.findServiceDomain(ServiceStatisticsRetriever.java:372)
  at tests.monitoring.ServiceStatisticsRetriever$ServiceDomainMBeanInvocationHandler.invoke(ServiceStatisticsRetriever.java:348)
  at com.sun.proxy.$Proxy0.getMonitoredRefs(Unknown Source)






STEPS
-----------------------
Here are the jars that we have added in the Library and Classpath of the JAVA::

oracle.servicebus.configfwk.jar (<OSB_HOME>\ osb\lib\modules)
com.bea.core.management.core.jar (<OSB_HOME>\ wlserver\modules)
com.bea.core.management.jmx.jar (<OSB_HOME>\ wlserver\modules)
weblogic.jar (<OSB_HOME>\wlserver\server\lib)
wljmxclient.jar (<OSB_HOME>\wlserver\server\lib)
servicebus (<OSB_HOME>\osb\lib)
servicebus-common(<OSB_HOME>\osb\lib)
oracle.servicebus.kernel-api.jar(<OSB_HOME>\ osb\lib\modules)

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms