java.lang.IllegalArgumentException: No @Resource annotation found on
|
injection point [BackedAnnotatedParameter] Parameter 1 of
|
[BackedAnnotatedMethod] @Resource public
|
com.acme.test.AnnotationTest.setMyDatasource(DataSource)
|
at org.jboss.weld.injection.spi.helpers.AbstractResourceServices.resolveResource(AbstractResourceServices.java:38)
|
at org.jboss.weld.injection.spi.helpers.AbstractResourceServices$1.createResource(AbstractResourceServices.java:121)
|
at org.jboss.weld.injection.AbstractResourceInjection.getResourceReference(AbstractResourceInjection.java:44)
|
at org.jboss.weld.injection.AbstractResourceInjection.injectResourceReference(AbstractResourceInjection.java:53)
|
at org.jboss.weld.util.Beans.injectEEFields(Beans.java:344)
|
at org.jboss.weld.injection.producer.ResourceInjector$1.proceed(ResourceInjector.java:69)
|
at org.jboss.weld.injection.InjectionContextImpl.run(InjectionContextImpl.java:48)
|
at org.jboss.weld.injection.producer.ResourceInjector.inject(ResourceInjector.java:72)
|
at org.jboss.weld.injection.producer.BasicInjectionTarget.inject(BasicInjectionTarget.java:121)
|
at org.jboss.weld.environment.servlet.inject.AbstractInjector.inject(AbstractInjector.java:55)
|
at org.jboss.weld.environment.jetty.JettyWeldInjector.inject(JettyWeldInjector.java:15)
|
at org.jboss.weld.environment.jetty.WeldDecorator.decorate(WeldDecorator.java:105)
|
at org.eclipse.jetty.util.DecoratedObjectFactory.decorate(DecoratedObjectFactory.java:77)
|
at org.eclipse.jetty.servlet.ServletContextHandler$Context.createServlet(ServletContextHandler.java:1279)
|
at org.eclipse.jetty.servlet.ServletHolder.newInstance(ServletHolder.java:1183)
|
at org.eclipse.jetty.servlet.ServletHolder.initServlet(ServletHolder.java:585)
|
at org.eclipse.jetty.servlet.ServletHolder.initialize(ServletHolder.java:396)
|
at org.eclipse.jetty.servlet.ServletHandler.initialize(ServletHandler.java:870)
|
at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:344)
|
at org.eclipse.jetty.webapp.WebAppContext.startWebapp(WebAppContext.java:1349)
|