Hi,
I'm seeing a strange error when deploying a web app that uses Jersey
1.17 on Tomcat 7.
The app deploys without errors, the error message only appears on
first request, not subsequent ones.
Am I missing some dependencies or something?
Here's the error message:
Mar 13, 2013 2:31:17 PM
com.sun.jersey.server.impl.application.WebApplicationImpl _initiate
INFO: Initiating Jersey application, version 'Jersey: 1.17.1
02/28/2013 12:47 PM'
Mar 13, 2013 2:31:17 PM
com.sun.jersey.core.spi.component.ProviderFactory
__getComponentProvider
SEVERE: 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
at java.lang.Class.newInstance0(Class.java:359)
at java.lang.Class.newInstance(Class.java:327)
at com.sun.jersey.core.spi.component.ComponentConstructor._getInstance(ComponentConstructor.java:192)
at com.sun.jersey.core.spi.component.ComponentConstructor.getInstance(ComponentConstructor.java:179)
at com.sun.jersey.core.spi.component.ProviderFactory.__getComponentProvider(ProviderFactory.java:166)
at com.sun.jersey.core.spi.component.ProviderFactory._getComponentProvider(ProviderFactory.java:159)
at com.sun.jersey.core.spi.component.ProviderFactory.getComponentProvider(ProviderFactory.java:153)
...
Mar 13, 2013 2:31:18 PM com.sun.jersey.spi.inject.Errors processErrorMessages
SEVERE: The following errors and warnings have been detected with
resource and/or provider classes:
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.
Here's a list of libs packaged with the webapp:
WEB-INF/lib/activation-1.1.jar
WEB-INF/lib/asm-3.1.jar
WEB-INF/lib/jackson-core-asl-1.9.2.jar
WEB-INF/lib/jackson-jaxrs-1.9.2.jar
WEB-INF/lib/jackson-mapper-asl-1.9.2.jar
WEB-INF/lib/jackson-xc-1.9.2.jar
WEB-INF/lib/jaxb-api-2.2.2.jar
WEB-INF/lib/jaxb-impl-2.2.3-1.jar
WEB-INF/lib/jersey-core-1.17.1.jar
WEB-INF/lib/jersey-json-1.17.1.jar
WEB-INF/lib/jersey-server-1.17.1.jar
WEB-INF/lib/jersey-servlet-1.17.1.jar
WEB-INF/lib/jettison-1.1.jar
WEB-INF/lib/stax-api-1.0-2.jar
marko