AnsweredAssumed Answered

Launch Tomcat from Tibco IProcess on AIX

Question asked by Tmcmm93 on Jul 3, 2018
Latest reply on Jul 4, 2018 by Lynn_Williams

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(
        at java.lang.ClassLoader.loadClass(
        at sun.misc.Launcher$AppClassLoader.loadClass(
        at java.lang.ClassLoader.loadClass(
        at sun.instrument.InstrumentationImpl.loadClassAndCallPremain(
Fatal error: processing of -javaagent failed
So by looking at the documentation from the CA APM 10.7 we have to change the 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
What is the difference on changing the 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.