users@hk2.java.net

Re: guice-bridge: guice service not getting injected

From: <shane_at_digitalsanctum.com>
Date: Thu, 17 Oct 2013 05:19:03 +0000 (UTC)

Sorry, exception is:

javax.servlet.ServletException: A MultiException has 3 exceptions.
They are:
1. org.glassfish.hk2.api.UnsatisfiedDependencyException: There was no
object available for injection at
Injectee(requiredType=DataSource,parent=HelloResource,qualifiers={_at_java
x.inject.Named(value=default)}),position=-1,optional=false,self=false,u
nqualified=null,1121424850)
2. java.lang.IllegalArgumentException: While attempting to resolve the
dependencies of com.digitalsanctum.mw.jersey.resource.HelloResource
errors were found
3. java.lang.IllegalStateException: Unable to perform operation:
resolve on com.digitalsanctum.mw.jersey.resource.HelloResource

        at
org.glassfish.jersey.servlet.WebComponent.service(WebComponent.java:373
)
        at
org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.
java:372)
        at
org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.
java:335)
        at
org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.
java:218)
        at
org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:698)
        at
org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHa
ndler.java:1506)
        at
com.google.inject.servlet.ManagedFilterPipeline.dispatch(ManagedFilterP
ipeline.java:120)
        at
com.google.inject.servlet.GuiceFilter$1.call(GuiceFilter.java:132)
        at
com.google.inject.servlet.GuiceFilter$1.call(GuiceFilter.java:129)
        at
com.google.inject.servlet.GuiceFilter$Context.call(GuiceFilter.java:206
)
        at
com.google.inject.servlet.GuiceFilter.doFilter(GuiceFilter.java:129)
        at
org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHa
ndler.java:1477)
        at
org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:5
03)
        at
org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.jav
a:138)
        at
org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:
564)
        at
org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler
.java:213)
        at
org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler
.java:1094)
        at
org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:43
2)
        at
org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.
java:175)
        at
org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.
java:1028)
        at
org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.jav
a:136)
        at
org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.j
ava:97)
        at org.eclipse.jetty.server.Server.handle(Server.java:445)
        at
org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:267)
        at
org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:
224)
        at
org.eclipse.jetty.io.AbstractConnection$ReadCallback.run(AbstractConnec
tion.java:358)
        at
org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.
java:601)
        at
org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.j
ava:532)
        at java.lang.Thread.run(Thread.java:724)