User Tools

Site Tools


jersey

Table of Contents

Jersey

Java REST server and client library from Oracle.

FAQ

WadlContextResolver

Message
com.sun.jersey.core.spi.component.ProviderFactory|_ThreadID=33;_ThreadName=Thread-2;|The provider class, class com.sun.jersey.server.impl.application.WebApplicationImpl$1WadlContextResolver, could not be instantiated. Processing will continue but the class will not be utilized
java.lang.InstantiationException: com.sun.jersey.server.impl.application.WebApplicationImpl$1WadlContextResolver
  SEVERE: The class com.sun.jersey.server.impl.application.WebApplicationImpl$1WadlContextResolver is a not a public class and cannot be instantiated.
  SEVERE: The inner class com.sun.jersey.server.impl.application.WebApplicationImpl$1WadlContextResolver is not a static inner class and cannot be instantiated

The problem is that there are two different versions of Jersey on the classpath, probably one from the application container and one from the application itself. Remove the one from the application and everything should be fine.

jersey.txt · Last modified: 2013/11/22 10:22 by mihael