Today i’ve found a very weird error on my Glassfish 3.1, here is the complete stack trace
[#|2014-10-09T10:54:02.685+0700|SEVERE|glassfish3.1.2|global|_ThreadID=24;_ThreadName=Thread-2; |Class [ java/lang/AutoCloseable ] not found. Error while loading [ class com.edw.dodol.service.MyService ]|#]
Im using SpringMVC and the error affect all my service classes, so somehow my application is unable to start.
After trying several solution, i found out that my JAVA_HOME variable are still pointing to a JDK6 version, while my application need at least JDK7.
Changing my JAVA_HOME variable into JDK7 solve this issue.
A very weird error actually, usually running an application under a different SDK version will create a “Major-Minor Version Exception”, but somehow i cant see that error anywhere