I'm seeing the following error when attempting to use the
OAuthServerFilter. It appears the DefaultOAuthProvider is not being
injected into the OAuthServerFilter constructor. I'm not sure what I'm
doing wrong.
INFO: Starting Servlet Engine: Apache Tomcat/6.0.14
May 6, 2011 9:48:01 AM com.sun.jersey.api.core.PackagesResourceConfig
init
INFO: Scanning for root resource and provider classes in the packages:
com.verizon.rest.resource.hello
com.sun.jersey.oauth.server.api.providers
May 6, 2011 9:48:01 AM com.sun.jersey.api.core.ScanningResourceConfig
logClasses
INFO: Root resource classes found:
class com.verizon.rest.resource.hello.HelloWorldResource
May 6, 2011 9:48:01 AM com.sun.jersey.api.core.ScanningResourceConfig
logClasses
INFO: Provider classes found:
class com.sun.jersey.oauth.server.api.providers.DefaultOAuthProvider
May 6, 2011 9:48:01 AM
com.sun.jersey.server.impl.application.WebApplicationImpl _initiate
INFO: Initiating Jersey application, version 'Jersey: 1.6 03/25/2011
01:14 PM'
May 6, 2011 9:48:02 AM com.sun.jersey.spi.inject.Errors
processErrorMessages
SEVERE: The following errors and warnings have been detected with
resource and/or provider classes:
SEVERE: Missing dependency for constructor public
com.sun.jersey.oauth.server.api.OAuthServerFilter(com.sun.jersey.api.cor
e.ResourceConfig,com.sun.jersey.oauth.server.spi.OAuthProvider) at
parameter index 1
May 6, 2011 9:48:02 AM org.apache.catalina.core.ApplicationContext log
SEVERE: StandardWrapper.Throwable
com.sun.jersey.spi.inject.Errors$ErrorMessagesException
at
com.sun.jersey.spi.inject.Errors.processErrorMessages(Errors.java:170)
at com.sun.jersey.spi.inject.Errors.postProcess(Errors.java:136)
at
com.sun.jersey.spi.inject.Errors.processWithErrors(Errors.java:199)
at
com.sun.jersey.server.impl.application.WebApplicationImpl.initiate(WebAp
plicationImpl.java:690)
at
com.sun.jersey.server.impl.application.WebApplicationImpl.initiate(WebAp
plicationImpl.java:685)
at
com.sun.jersey.spi.container.servlet.ServletContainer.initiate(ServletCo
ntainer.java:488)
at
com.sun.jersey.spi.container.servlet.ServletContainer$InternalWebCompone
nt.initiate(ServletContainer.java:318)
at
com.sun.jersey.spi.container.servlet.WebComponent.load(WebComponent.java
:601)
at
com.sun.jersey.spi.container.servlet.WebComponent.init(WebComponent.java
:208)
at
com.sun.jersey.spi.container.servlet.ServletContainer.init(ServletContai
ner.java:373)
at
com.sun.jersey.spi.container.servlet.ServletContainer.init(ServletContai
ner.java:556)
at javax.servlet.GenericServlet.init(GenericServlet.java:212)
at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.jav
a:1161)
at
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:981)
at
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.j
ava:4045)
at
org.apache.catalina.core.StandardContext.start(StandardContext.java:4351
)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
at
org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
at
org.apache.catalina.core.StandardService.start(StandardService.java:516)
at
org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
at org.apache.catalina.startup.Catalina.start(Catalina.java:566)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
at
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
May 6, 2011 9:48:02 AM org.apache.catalina.core.StandardContext
loadOnStartup
SEVERE: Servlet /hello threw load() exception
com.sun.jersey.spi.inject.Errors$ErrorMessagesException
at
com.sun.jersey.spi.inject.Errors.processErrorMessages(Errors.java:170)
at com.sun.jersey.spi.inject.Errors.postProcess(Errors.java:136)
at
com.sun.jersey.spi.inject.Errors.processWithErrors(Errors.java:199)
at
com.sun.jersey.server.impl.application.WebApplicationImpl.initiate(WebAp
plicationImpl.java:690)
at
com.sun.jersey.server.impl.application.WebApplicationImpl.initiate(WebAp
plicationImpl.java:685)
at
com.sun.jersey.spi.container.servlet.ServletContainer.initiate(ServletCo
ntainer.java:488)
at
com.sun.jersey.spi.container.servlet.ServletContainer$InternalWebCompone
nt.initiate(ServletContainer.java:318)
at
com.sun.jersey.spi.container.servlet.WebComponent.load(WebComponent.java
:601)
at
com.sun.jersey.spi.container.servlet.WebComponent.init(WebComponent.java
:208)
at
com.sun.jersey.spi.container.servlet.ServletContainer.init(ServletContai
ner.java:373)
at
com.sun.jersey.spi.container.servlet.ServletContainer.init(ServletContai
ner.java:556)
at javax.servlet.GenericServlet.init(GenericServlet.java:212)
at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.jav
a:1161)
at
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:981)
at
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.j
ava:4045)
at
org.apache.catalina.core.StandardContext.start(StandardContext.java:4351
)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
at
org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
at
org.apache.catalina.core.StandardService.start(StandardService.java:516)
at
org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
at org.apache.catalina.startup.Catalina.start(Catalina.java:566)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
at
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
May 6, 2011 9:48:02 AM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
May 6, 2011 9:48:03 AM org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
May 6, 2011 9:48:03 AM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/63 config=null
May 6, 2011 9:48:03 AM org.apache.catalina.startup.Catalina start
INFO: Server startup in 2227 ms
Jeff Wise
Verizon Business