users@jersey.java.net

[Jersey] Re: Weld + Jersey + Tomcat?

From: <aaron_at_acsiri.com>
Date: Tue, 25 Jan 2011 15:49:00 +0000 (GMT)

The exception went away, thanks!

However, my @Injected bean is null.

I have annotated both my resource and my bean with @RequestScoped and
@Named. Should that be enough?

Here is what the tomcat logs are showing

...
Jan 25, 2011 10:37:09 AM org.jboss.weld.bootstrap.WeldBootstrap
<clinit>
INFO: WELD-000900 1.1.0 (Final)
Jan 25, 2011 10:37:09 AM org.jboss.weld.bootstrap.WeldBootstrap
startContainer
INFO: WELD-000101 Transactional services not available. Injection of
@Inject UserTransaction not available. Transactional observers will be
invoked synchronously.
Jan 25, 2011 10:37:10 AM org.jboss.weld.environment.servlet.Listener
contextInitialized
INFO: Tomcat 6 detected, CDI injection will be available in Servlets
and Filters. Injection into Listeners is not supported
Jan 25, 2011 10:37:10 AM
org.jboss.interceptor.util.InterceptionTypeRegistry <clinit>
WARNING: Class 'javax.ejb.PostActivate' not found, interception based
on it is not enabled
Jan 25, 2011 10:37:10 AM
org.jboss.interceptor.util.InterceptionTypeRegistry <clinit>
WARNING: Class 'javax.ejb.PrePassivate' not found, interception based
on it is not enabled
Jan 25, 2011 10:37:10 AM com.sun.jersey.api.core.PackagesResourceConfig
init
...