Servlet Exception

This is a discussion on Servlet Exception within the J2EE forums in Framework and Interface Programming category; Hi, I'm getting the following error during compilation : * cannot access javax.servlet.ServletException. bad class file :C:/..../lib/ javaee.jar (javax.servlet.ServletException.class) class contains wrong version 49.0 should be 48.0 Please remove or make sure it appears on the correct subdirectory of the classpath* As I'm using jdk1.4 version, I already uncommented the *jmx.serial.form=1* in the Idea properties. Any get arounds for this ? Thanks,...

Go Back   Application Development Forum > Framework and Interface Programming > J2EE

Object Mix

Register FAQ Calendar Search Today's Posts Mark Forums Read
  #1  
Old 04-29-2008, 02:34 PM
brahma
Guest
 
Default Servlet Exception

Hi,
I'm getting the following error during compilation :
* cannot access javax.servlet.ServletException.
bad class file :C:/..../lib/ javaee.jar (javax.servlet.ServletException.class)
class contains wrong version 49.0 should be 48.0
Please remove or make sure it appears on the correct subdirectory of the classpath*

As I'm using jdk1.4 version, I already uncommented the *jmx.serial.form=1* in the Idea properties.
Any get arounds for this ?
Thanks,
Reply With Quote
  #2  
Old 05-09-2008, 07:35 AM
desertfox
Guest
 
Default Re: Servlet Exception

i am having the same problem as well. Anybody has the solution please help.
Reply With Quote
  #3  
Old 05-10-2008, 12:02 PM
Alexander Chernikov
Guest
 
Default Re: Servlet Exception

Hello brahma,

> Hi,
> I'm getting the following error during compilation :
> * cannot access javax.servlet.ServletException.
> bad class file :C:/..../lib/ javaee.jar
> (javax.servlet.ServletException.class)
> class contains wrong version 49.0 should be 48.0
> Please remove or make sure it appears on the correct subdirectory of
> the classpath*
>
> As I'm using jdk1.4 version, I already uncommented the
> *jmx.serial.form=1* in the Idea properties.
> Any get arounds for this ?
> Thanks,


Check your module's dependencies. There are probably a dependency on javaee.jar
from IDEA installation. Remove it and add a dependency on j2ee.jar from the
same directory.

Javaee.jar is build with Java 5, while j2ee.jar is done with 1.4.

Alexander.


Reply With Quote
Reply


Thread Tools
Display Modes


All times are GMT -5. The time now is 04:04 PM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
vB Ad Management by =RedTyger=

In an effort to better serve ads to our visitors, cookies are used on objectmix.com. For more information, check out our Privacy Policy.