Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

running servlet on tomcat5.0

843841Jan 17 2004 — edited Sep 15 2005
hi,
i am using java version 1.4.2_03 and tomcat5.0, trying to run a servlet. i set the class path to c:\program files\tomcat5.0\common\lib\servlet-api.jar . is this correct? if yes, i still get a error which says,

invalid class file format:c:\program files\tomcat5.0\common\lib\servlet-api.jar(javax/servlet/http/HttpServlet.class), wrong version: 46, expected 45. now i have read in the website that tomcat supports servlet version 2.4 .does jdk1.4.2_03 come with a servlet version of 2.4 too? i dunno where i am going wrong. please help. thanx in advance.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 13 2005
Added on Jan 17 2004
12 comments
205 views