Injecting EJBs
When trying to inject an EJB into a component, I got an error: "Could not set field value." This was an illegal argument exception, it was trying to pass a generated class of type org.jboss.seam.helper... to my @In field of type ControllerBean.
ControllerBean is a stateful session bean. The solution was to create a @Local interface called Controller, and have the target bean declare
@In
Controller controller
instead of ControllerBean.