wood burning stoves 2.0
The moose likes Servlets and the fly likes Version issue while deploying Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Version issue while deploying" Watch "Version issue while deploying" New topic

Version issue while deploying

PradeepPillai Pradeep
Ranch Hand

Joined: Nov 15, 2005
Posts: 186
I have a new install of Sun App server. When I try to deploy a web module I am getting the following error. I have JDK version 1.5 and JRE version 1.5. I checked under HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft and in Control pannel, Add remove programms.

Unable to load servlet specified in the module.
Please consult online help for assistance.
java.lang.UnsupportedClassVersionError: TestServlet (Unsupported major.minor version 49.0)

Any help appreciated.
Christophe Verré

Joined: Nov 24, 2005
Posts: 14688

Check that your PATH contains the right version of your JRE.
It may be pointing to an older version (it often happens when Oracle is installed)

[My Blog]
All roads lead to JavaRanch
kiranreddy reddy

Joined: Jan 02, 2006
Posts: 11
I got this error when I was using Tomcat 5.0.28 and deployed classes compiled with JDK1.5 , Then recompiled with 1.4.X and this error did not show up.

I guess same thing may be happening in your case, compile your classes with jdk1.4 it may solve your problem.
Sarath Mohan
Ranch Hand

Joined: Mar 17, 2001
Posts: 213
Use Tomcat 5.5.x. This version is for JRE 5

Sarath Mohan
Tauri Valor
Ranch Hand

Joined: Aug 03, 2005
Posts: 180

I too got this problem when I tried to use the classes compiled with jre1.5 in jre1.4.

I tried both compilation and running using jdk1.4

Su Yeu.

A Moment's insight is sometimes worth a Life's experience.
PradeepPillai Pradeep
Ranch Hand

Joined: Nov 15, 2005
Posts: 186
I tried compiling using C:\Sun\Creator\java\bin\javac.exe and it worked. So I reinstalled sun app server again and it works now.
Thanks for everybody who stepped in.
I agree. Here's the link: http://aspose.com/file-tools
subject: Version issue while deploying
It's not a secret anymore!