Tomcat + web service rest

Iniciado por joaotime, 07 de Janeiro de 2013, 17:21

tópico anterior - próximo tópico

joaotime

Ola Pesoal estou tendo o erro abaixo no tomcat  ja rodei a net e nao consegui alguem pode ter passado por isto e me da uma luz

javax.servlet.ServletException: Servlet.init() for servlet Jersey REST Service threw exception
   org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
   org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
   org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859)
   org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:602)
   org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
   java.lang.Thread.run(Thread.java:679)


java.lang.UnsupportedClassVersionError: br/com/droid/resources/ClienteResource : Unsupported major.minor version 51.0 (unable to load class br.com.droid.resources.ClienteResource)
   org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:2822)
   org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:1159)
   org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1647)
   org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1526)
   java.lang.Class.forName0(Native Method)
   java.lang.Class.forName(Class.java:264)
   com.sun.jersey.core.reflection.ReflectionHelper.classForNameWithException(ReflectionHelper.java:238)
   com.sun.jersey.spi.scanning.AnnotationScannerListener$AnnotatedClassVisitor.getClassForName(AnnotationScannerListener.java:222)
   com.sun.jersey.spi.scanning.AnnotationScannerListener$AnnotatedClassVisitor.visitEnd(AnnotationScannerListener.java:186)
   org.objectweb.asm.ClassReader.accept(Unknown Source)
   org.objectweb.asm.ClassReader.accept(Unknown Source)
   com.sun.jersey.spi.scanning.AnnotationScannerListener.onProcess(AnnotationScannerListener.java:136)
   com.sun.jersey.core.spi.scanning.uri.FileSchemeScanner$1.f(FileSchemeScanner.java:86)
   com.sun.jersey.core.util.Closing.f(Closing.java:71)
   com.sun.jersey.core.spi.scanning.uri.FileSchemeScanner.scanDirectory(FileSchemeScanner.java:83)
   com.sun.jersey.core.spi.scanning.uri.FileSchemeScanner.scan(FileSchemeScanner.java:71)
   com.sun.jersey.core.spi.scanning.PackageNamesScanner.scan(PackageNamesScanner.java:225)
   com.sun.jersey.core.spi.scanning.PackageNamesScanner.scan(PackageNamesScanner.java:141)
   com.sun.jersey.api.core.ScanningResourceConfig.init(ScanningResourceConfig.java:80)
   com.sun.jersey.api.core.PackagesResourceConfig.init(PackagesResourceConfig.java:104)
   com.sun.jersey.api.core.PackagesResourceConfig.<init>(PackagesResourceConfig.java:78)
   com.sun.jersey.api.core.PackagesResourceConfig.<init>(PackagesResourceConfig.java:89)
   com.sun.jersey.spi.container.servlet.WebComponent.createResourceConfig(WebComponent.java:700)
   com.sun.jersey.spi.container.servlet.WebComponent.createResourceConfig(WebComponent.java:678)
   com.sun.jersey.spi.container.servlet.WebComponent.init(WebComponent.java:203)
   com.sun.jersey.spi.container.servlet.ServletContainer.init(ServletContainer.java:374)
   com.sun.jersey.spi.container.servlet.ServletContainer.init(ServletContainer.java:557)
   javax.servlet.GenericServlet.init(GenericServlet.java:212)
   org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
   org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
   org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859)
   org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:602)
   org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
   java.lang.Thread.run(Thread.java:679)


Obrigado
Joao