|Servlet Version Conflict [message #222686]
||Fri, 17 October 2008 03:59
| vallabh vaidya
Registered: July 2009
I am new to J2EE. I was doing some homework and got one error.
I think know why this error is coming but i don't know how to remove it.
If anybody could help me!
I am using Eclipse Ganymede. The compiler compliance level is
1.6. Installed jre is jre1.6.0_01. I have J2ee5(with Sun Application
Server PE9) installed. When i created new Dynamic Web Project and added a
servlet there were some errors telling that 'HttpServlet' class couldn't
found. So I added 'javax.servlet_2.4.0.v200806031604' jar's reference to
my project(in the Build Path) and errors were gone.
After that I exported my dynamic project into .war file and
deployed it using Sun Application Server PE9. Everything worked fine. I
launched my application and requested the specific servlet and i got
following error: javax.servlet.ServletException: Error allocating a
servlet instance. java.lang.UnsupportedClassVersionError: Bad version
number in .class file.
I thought it's due to the compliance level and installed jre
version which is conflicting with the J2EE5. So I changed the installed
jre and compliance level to inbuilt jre which comes with J2EE. But still i
am getting the same error.
Powered by FUDForum
. Page generated in 0.02462 seconds