WebSphere PMI Metrics are not displaying - getting the Application Server error: java.lang.ClassNotFoundException: com.wily.introscope.api.websphere.IntroscopeCustomService

Document ID : KB000045703
Last Modified Date : 14/02/2018
Show Technical Document Details

Problem:

WebSpherePMI Metrics are not displaying. The autoname feature is not working

In the Websphere SystemOut.log I found the below ERROR:

CustomService W   WSVR0018W: Unable to create CustomService, Introscope Custom Service
java.lang.ClassNotFoundException: com.wily.introscope.api.websphere.IntroscopeCustomService
    at java.net.URLClassLoader.findClass(URLClassLoader.java:434)
    at com.ibm.ws.bootstrap.ExtClassLoader.findClass(ExtClassLoader.java:204)
    at java.lang.ClassLoader.loadClassHelper(ClassLoader.java:665)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:644)
    at com.ibm.ws.bootstrap.ExtClassLoader.loadClass(ExtClassLoader.java:119)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:627)
    at com.ibm.ws.runtime.component.CustomServiceImpl.initialize(CustomServiceImpl.java:112)
    at com.ibm.ws.runtime.component.ContainerHelper.initWsComponent(ContainerHelper.java:1192)
    at com.ibm.ws.runtime.component.ContainerHelper.initializeComponent(ContainerHelper.java:1099)
    at com.ibm.ws.runtime.component.ContainerHelper.initializeComponents(ContainerHelper.java:928)
    at com.ibm.ws.runtime.component.ContainerImpl.initializeComponents(ContainerImpl.java:776)
    at com.ibm.ws.runtime.component.ContainerImpl.initializeComponents(ContainerImpl.java:750)
    at com.ibm.ws.runtime.component.ServerImpl.initialize(ServerImpl.java:332)
    at com.ibm.ws.runtime.WsServerImpl.bootServerContainer(WsServerImpl.java:336)
    at com.ibm.ws.runtime.WsServerImpl.start(WsServerImpl.java:267)
    at com.ibm.ws.runtime.WsServerImpl.main(WsServerImpl.java:730)
    at com.ibm.ws.runtime.WsServer.main(WsServer.java:59)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:60)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
    at java.lang.reflect.Method.invoke(Method.java:611)
    at com.ibm.wsspi.bootstrap.WSLauncher.launchMain(WSLauncher.java:234)
    at com.ibm.wsspi.bootstrap.WSLauncher.main(WSLauncher.java:95)
    at com.ibm.wsspi.bootstrap.WSLauncher.run(WSLauncher.java:76)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:60)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
    at java.lang.reflect.Method.invoke(Method.java:611)
    at org.eclipse.equinox.internal.app.EclipseAppContainer.callMethodWithException(EclipseAppContainer.java:587)
    at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:198)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:369)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:60)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
    at java.lang.reflect.Method.invoke(Method.java:611)
    at org.eclipse.core.launcher.Main.invokeFramework(Main.java:340)
    at org.eclipse.core.launcher.Main.basicRun(Main.java:282)
    at org.eclipse.core.launcher.Main.run(Main.java:981)
    at com.ibm.wsspi.bootstrap.WSPreLauncher.launchEclipse(WSPreLauncher.java:371)
    at com.ibm.wsspi.bootstrap.WSPreLauncher.main(WSPreLauncher.java:142)

Cause:

This error indicates that the WebAppSupport.jar file has been configured incorrectly and cannot be located.

Resolution:

1. Open the WebSphere Administrator Console.
2. Select the server that you want to configure and navigate to Server Infrastructure > Administration > Custom Services.
3. Open the "Introscope Custom Service", make sure the Classname and Classpath fields are correct:
    - Classname = specifies the name of the custom service class. It should be set to com.wily.introscope.api.websphere.IntroscopeCustomService
    - Classpath = specifies the fully qualified pathname of the WebAppSupport.jar, for example: /opt/websphere855/wily/common/WebAppSupport.jar
      Make sure you have the appropriate permissions.
4. Restart the application server