tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <ch...@christopherschultz.net>
Subject Re: Major Minor Version issue when using jersey 2.9 with tomcat7 + java8
Date Tue, 17 Jun 2014 15:12:32 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Selvakumar,

On 6/17/14, 2:44 AM, Selvakumar wrote:
> Recompiling sources on jdk8 didnt resolve the error?
> 
> -----Original Message----- From: "Seshumadhav Chaturvedula"
> <seshumadhav@yahoo.com.INVALID> Sent: ‎16-‎06-‎2014 12:15 PM To:
> "users@tomcat.apache.org" <users@tomcat.apache.org> Subject: Major
> Minor Version issue when using jersey 2.9 with tomcat7 + java8
> 
> Resending previous email in plain text:
> 
> We have a maven project to develop a jersey 2.0 REST service, on
> Eclipse (kepler) <dependency> 
> <groupId>org.glassfish.jersey.containers</groupId> 
> <artifactId>jersey-container-servlet-core</artifactId> 
> <version>2.9.1</version> </dependency>
> 
> In conjunction with: - java8 - tomcat7
> 
> When deploying the web application (using `$ mvn install && mvn -X
> tomcat7:redeploy`) we get the below exception: Caused by:
> java.lang.UnsupportedClassVersionError:
> org/glassfish/jersey/servlet/init/JerseyServletContainerInitializer
> : Unsupported major.minor version 51.0 (unable to load class
> org.glassfish.jersey.servlet.init.JerseyServletContainerInitializer)
>
> 
at
org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:2840)
> 
> 1. I examined the MANIFEST file in the
> org.glassfish.jersey.containers jar, & (as suspected) it says built
> on 1.7 JDK 2. Tomcat logs confirm that it uses java8 itself
> 
> We cannot move back to java8.  Is there a way/hack we can get past
> this error?

Class file version 51.0 means that it was compiled with Java 1.7 or
later with "-target 1.7". If you are running on Java 7 or 8 you should
be fine.

I suspect that Tomcat isn't starting with the Java version you think
it is. How are you launching Tomcat?

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQIcBAEBCAAGBQJToFreAAoJEBzwKT+lPKRYCskP/2t0CDJz6kEWPvz1MyW2XIyZ
XWYz7vEFVrB7Wd+1hU2itd7bBCwDphjksY3SZwg1wmTLS32tQYQ71d8EKFoa9AS8
1UpZeWPa1UPGNc17YKnm/blpZntNSNwgXS00IiJ01TV1dz0dZgT+J/Jom1ZAtHPA
kOx1D+mYVOYpVCUGkZJ9rbBw52opFY14ozc3pJavXhGe9ilMIIGh1xWymDcau8fG
h3bFvlIhwD6T/R/LZQI3rERDXNatlKdC3GU3aiAeh3QY0Y0PlvDpF0eiHHbvicFJ
oeJOVGpe5v+kgBM4BpdEsZzjuN09SE5eigDbxs6hpCW0jXacbcFiinqOH42cCmpf
j1wh3JmeUTJYOIqZHZxTGR20f0mE3Lvq7uG+a64ikppfoSGvDRK1a8ie0zYuZef5
9ncesTZTjLK0Yzc+5Xsm5AuMkXPDoIfUV5izF4CrpxCyNeV2uj2YpkrLWwCx/7ZI
tWNXzoAb9CJNyZuxIC4iCP5BoRLldOpbd+1d5UX+pNYQeTLlFWBF+UdRhE8gYmOI
SAXyz14MyENk2uHXp+EkS8bVIhQyBOXuG7jMqnV1IkYm/t5JtzJVUUHUDyn7wrwf
D/cXdTrCdCqYUVONoJzng+8FvW9NnsMr0HtsvyNxqlVDtJLzEg2efRzv1hNjUDax
Q2JzvV5bts0c8FDY8rK0
=3ggi
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message