When I try to launch an updated Tom cat agent 10.7, I'm getting this Exception:
Exception in thread "main" java.lang.UnsupportedClassVersionError: (com/wily/introscope/api/instrument/JavaAgent) bad major version at offset=6
at java.lang.ClassLoader.defineClassImpl(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:267)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:151)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:602)
at java.net.URLClassLoader.access$400(URLClassLoader.java:126)
at java.net.URLClassLoader$ClassFinder.run(URLClassLoader.java:1057)
at java.security.AccessController.doPrivileged(AccessController.java:414)
at java.net.URLClassLoader.findClass(URLClassLoader.java:494)
at java.lang.ClassLoader.loadClass(ClassLoader.java:651)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349)
at java.lang.ClassLoader.loadClass(ClassLoader.java:617)
at sun.instrument.InstrumentationImpl.loadClassAndCallPremain(InstrumentationImpl.java:152)
Fatal error: processing of -javaagent failed
So by looking at the documentation from the CA APM 10.7 we have to change the catalina.sh with the particular option:
-javaagent:<PathToAgentJar> -DagentProfile=<PathToAgentProfile>
So i change it here and still got the same exception, or it launches but no metrics are shown in the Introscope
CATALINA_OPTS="$CATALINA_OPTS $JPDA_OPTS"
What is the difference on changing the catalina.sh and changing on the tomcat conf file? When launching the JVM on this agent 10.7 which file it reads?
CONFIGURATION FILE:(...)Tomcat/conf/instance.conf
" java version "1.7.0"
Java(TM) SE Runtime Environment (build pap6470sr10fp15-20171116_01(SR10 FP15))
IBM J9 VM (build 2.6, JRE 1.7.0 AIX ppc64-64 Compressed References 20171011_366933 (JIT enabled, AOT enabled)
J9VM - R26_Java726_SR10_20171011_1726_B366933
JIT - r11_20171011_366933
GC - R26_Java726_SR10_20171011_1726_B366933_CMPRSS
J9CL - 20171011_366933)
JCL - 20171109_01 based on Oracle jdk7u161-b13 "
Can someone guide me to updating this tomcat agent? Doc is a bit misleading.
Thanks