Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Getting UnsupportedClassVersionError Unsupported major.minor version 49.0

 
Ravi Kiran Va
Ranch Hand
Posts: 2234
Eclipse IDE Firefox Browser Redhat
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi ,

When deployed into Tomcat ,my Application is not able to start and i am getting this Exception on to the Tomcat Logs please help how can i remove this Exception


java.lang.UnsupportedClassVersionError: org/apache/struts2/dispatcher/FilterDispatcher (Unsupported major.minor version 49.0)
 
Onkar Joshi
Ranch Hand
Posts: 116
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think I've seen this happen due to issues with JVM version being used.

Did you compile something with JDK 5 and then try to run it in JVM 1.4? Or maybe some similar 1.4 vs 5 confusion?
 
Ravi Kiran Va
Ranch Hand
Posts: 2234
Eclipse IDE Firefox Browser Redhat
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am sure that i compiled on JRE 1.4., and trying it to run on Tomcat 5.0

Please tell me what JRE does Tomcat5.0 uses

THank you.
 
David O'Meara
Rancher
Posts: 13459
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think Tomcat moved to JSE5 from Tomcat version 5.5 but you could install a compatability patch to allow it to use JSE 1.4.
Since the problem is with Struts I think you're just going to have to run Tomcat using JSE5 (or 6) but should still be able to compile against JSE 1.4
 
Ravi Kiran Va
Ranch Hand
Posts: 2234
Eclipse IDE Firefox Browser Redhat
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you very much for your time .
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic