| Author |
Version issue while deploying
|
PradeepPillai Pradeep
Ranch Hand
Joined: Nov 15, 2005
Posts: 183
|
|
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. Thanks.
|
 |
Christophe Verré
Sheriff
Joined: Nov 24, 2005
Posts: 14672
|
|
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
Greenhorn
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: 166
|
|
Hey 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 Cheers, Su Yeu.
|
A Moment's insight is sometimes worth a Life's experience.
|
 |
PradeepPillai Pradeep
Ranch Hand
Joined: Nov 15, 2005
Posts: 183
|
|
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.
|
 |
 |
|
|
subject: Version issue while deploying
|
|
|