This error normally means you compiled with a newer version of Java than
you are using to execute. Perhaps NB 6 is using Java 6, and you're
using Java 5 on your server?
Ken
Karam Singh Badesha wrote:
> Hi,
> I had been using netbeans5.5 for some time and everything was working
> great. Since I moved to netbeans6, I am able to compile file but when
> I try to access my loaded application on appserver, I get the
> following error:
>
> -----
>
> *type* Exception report
>
> *message*
>
> *description* _The server encountered an internal error () that
> prevented it from fulfilling this request._
>
> *exception*
>
> javax.servlet.ServletException: Servlet execution threw an exception
>
> *root cause*
>
> 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_01 logs.
> _
>
> Does anyone know what is causing this? I don't remember changing
> anything else in my application.
>
> thanks
> Karam