You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using either version of the agent 2.2.3 or 2.2.1, I get the following error which running startAgent.sh
spleshakov-MacBook-Pro:ServerAgent-2.2.3 spleshakov$ java -version
java version "11.0.2" 2019-01-15 LTS
Java(TM) SE Runtime Environment 18.9 (build 11.0.2+9-LTS)
Java HotSpot(TM) 64-Bit Server VM 18.9 (build 11.0.2+9-LTS, mixed mode)
spleshakov-MacBook-Pro:ServerAgent-2.2.3 spleshakov$ sh ./startAgent.sh
ERROR: java.lang.NoClassDefFoundError: org/slf4j/LoggerFactory
*** Problem's technical details go below ***
Home directory was detected as: /Users/spleshakov/Downloads/ServerAgent-2.2.3
Exception in thread "main" java.lang.NoClassDefFoundError: org/slf4j/LoggerFactory
at org.apache.jorphan.logging.LoggingManager.getLoggerForClass(LoggingManager.java:122)
at kg.apc.perfmon.AgentTool.<clinit>(AgentTool.java:17)
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:490)
at java.base/java.lang.Class.newInstance(Class.java:584)
at kg.apc.cmdtools.PluginsCMD.getToolInstance(PluginsCMD.java:113)
at kg.apc.cmdtools.PluginsCMD.processParams(PluginsCMD.java:51)
at kg.apc.cmdtools.PluginsCMD.processParams(PluginsCMD.java:23)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at kg.apc.cmd.UniversalRunner.main(UniversalRunner.java:174)
Caused by: java.lang.ClassNotFoundException: org.slf4j.LoggerFactory
at java.base/java.net.URLClassLoader.findClass(URLClassLoader.java:471)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:588)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521)
... 15 more
The text was updated successfully, but these errors were encountered:
Extract the downloaded archive and locate the slf4j-api-x.x.x.jar and slf4j-simple-x.x.x.jar files.
Copy the two JAR files to the lib folder of the PerfMon Metrics Collector plugin directory.
Restart the server agent.
After performing these steps, the server agent should be able to load the org.slf4j.LoggerFactory class and the PerfMon Metrics Collector plugin should be able to collect the required system-level metrics.
Using either version of the agent 2.2.3 or 2.2.1, I get the following error which running
startAgent.sh
The text was updated successfully, but these errors were encountered: