Issues about Deploying Jersey RESTful Web Service On OpenJDK-based Tomcat Server

David Holmes david.holmes at oracle.com
Fri Jun 1 22:47:14 PDT 2012


But please note that web-discuss at openjdk.java.net is not for discussing 
web-based programming technologies, but for "Discussions about the 
openjdk.java.net site infrastructure.

David


On 2/06/2012 3:59 AM, Iris Clark wrote:
> Hi, Wei.
>
> Looks like cs.turtlesback.bean.UserBean was compiled using JDK 7 (since
> the exception reports that java.class.version=51.0), but you’re trying
> to run it using an older version of the JDK.
>
> iris
>
> *From:*Wei Song [mailto:wsong18 at learn.senecac.on.ca]
> *Sent:* Friday, June 01, 2012 8:13 AM
> *To:* web-discuss at openjdk.java.net
> *Subject:* Issues about Deploying Jersey RESTful Web Service On
> OpenJDK-based Tomcat Server
>
> Hello,
>
> I've developed a RESTful web service and a JSP/Servlet web modules at
> Windows, Eclipse, Java EE environment. When I tried to Deploy them on a
> OpenJDK-based Tomcat 6 server on Ubuntu, I always got the exception:
>
> javax.servlet.ServletException: java.lang.UnsupportedClassVersionError: cs/turtlesback/bean/UserBean : Unsupported major.minor version 51.0 (unable to load class cs.turtlesback.bean.UserBean)      org.apache.jasper.servlet.JspServlet.service(JspServlet.java:268)      javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
>
>
>
> The details of my development environment:
>
> Windows 7
> (Oracle ) JDK 1.6.0.32
> Eclipse Java EE Indigo
> Apache Tomcat 6.0.35
> Jersey 1.0.3 (asm-3.1.jar, jackson-lgpl-0.9.4.jar,
> jersey-client-1.0.3.jar, jersey-core-1.0.3.jar, jersey-json-1.0.3.jar,
> jersey-server-1.0.3.jar, jettison-1.0.1.jar, jsr311-api-1.0.jar)
> MySQL 5.0
>
>
> The target deployment environment:
>
> Linux Ubuntu 10.04.2 LTS
> Java version "1.6.0_20"
> OpenJDK Runtime Environment (IcedTea6 1.9.13)
> (6b20-1.9.13-0ubuntu1~10.04.1)
> OpenJDK Client VM (build 19.0-b09, mixed mode, sharing)
> Apache Tomcat 6.0.24
> MySQL 5.0
>
> Could you give me any suggestion for solving the problem?
>
>
> Thank you.
> Wei Song
>


More information about the web-discuss mailing list