Click the Start a free trial link to start a 30-day SaaS trial of our product and join our community as a trial customer. If you are an existing customer do not start a free trial.
AppDynamics customers and established members should click the sign in button to authenticate.
I installed AppDynamics 15 day trial on a server which has JAVA_HOME set to 1.6.0_16. The applications which I hope to monitor is also using the same JDK version. Checking the server.log file, I get an error like so:
java.lang.UnsupportedClassVersionError: UnsupportedClassVersionError: Class com.singularity.ee.controller.beans.model.AHierarchicalConfigObjectPersistorBean has unsupported major or minor version numbers, which are greater than those found in the Java Runtime Environment version 1.6.0_16
I had a look at domain.xml and modified the -D.java.ext.dirs jvm-option to use the jre that came with the installation but it still doesn't work. Can you give some other suggestions I can try out or will AppDynamics not work with the JDK version I'm currently using?
You can use the AppDynamics Java agent to minitor application that runs with JDK 1.6. Take a look at the below doc
On the error message you are getting currently, it looks like you have configured your controller to use 1.6 Java but note that by default, the Controller uses Java 1.7. and hence you need to allow the controller to make use of the embedded JRE
Take a look at the below docs
Hope this helps
Thanks for your reply. I'm trying to get this running on Windows Server 2012.
There's an issue with the set-controller-java-1.* tasks in controller.bat where it adds an extra space at the end of the AS_JAVA value.
This causes a 'cannot find the path specified' error when running 'controller.bat start'. I had to manually remove that space for the script to proceed. However, even after fixing that I'm still seeing the same error in server.log when glassfish attempts to deploy the controller application:
java.lang.UnsupportedClassVersionError: UnsupportedClassVersionError: Class com.singularity.ee.controller.beans.model.AHierarchicalConfigObjectPersistorBean has unsupported major or minor version numbers, which are greater than those found in the Java Runtime Environment version 1.6.0_16 at com.sun.enterprise.loader.ASURLClassLoader.findClass(ASURLClassLoader.java:759) at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
Note that my 1.6.0_16 is currently set as my JAVA_HOME environment variable. Is there anything else I need to change?
There's a couple of issues with the set-controller-java-1.* tasks:
Removing the quotes and the extra space at the end fixed the issues for me.