I created a web app that has a servlet that was compiled with JDK 6 (at target=1.6).
I deploy the web app to GF V1 U1 (build 5) which is running with in the 1.5.0_06
The deployment is successful.
When I try to access the servlet, I see this in the browser:
HTTP Status 500 -
type Exception report
description The server encountered an internal error () that prevented it from
fulfilling this request.
javax.servlet.ServletException: Error allocating a servlet instance
java.lang.UnsupportedClassVersionError: Bad version number in .class file
note The full stack traces of the exception and its root causes are available in
the Sun Java System Application Server Platform Edition 9.0 logs.
Sun Java System Application Server Platform Edition 9.0
---- end quote -----
This pretty hard to interpret, it directs you to look someplace else and it is
reported well after the initial error was made.
A better error message would really help...
Getting a friendly message that tells the user that the archive has unsupported
.class files at deployment time would be even better