3 Replies Latest reply on Feb 7, 2009 8:37 PM by Pete Muir

    Can't inject Conversation manager

    alberto Gori Novice

      I get this exceptino when I try to inject a Conversation manager into this web beans:


      @Named
      @ConversationScoped
      public class UserBean implements Serializable {
           
           @Current Conversation conversation;
              ...
      }
      



      20:10:14,909 ERROR [[/prova]] Exception sending context initialized event to listener instance of class org.jboss.webbeans.servlet.WebBeansListener
      javax.inject.UnsatisfiedDependencyException: The injection point   Field @Current conversation on Annotated class Class @ConversationScoped @Named UserBean
        Constructor public UserBean();
        Method void public setUser(User);
        Method User public getUser();
        Method void public saveUser();
        Method void public removeUser();
        Method void public selectUser();
        Method void public final native wait(long);
        Method void public final wait(long, int);
        Method void public final wait();
        Method int public native hashCode();
        Method Class public final native getClass();
        Method boolean public equals(Object);
        Method String public toString();
        Method void public final native notify();
        Method void public final native notifyAll();
       has unsatisfied dependencies for type interface javax.context.Conversation and binding types [Ljava.lang.annotation.Annotation;@15dd716 in Dependent unnamed simple bean org.jboss.webbeans.examples.prova.UserBean,  API types = [Serializable, Object, UserBean], binding types = [@New]
           at org.jboss.webbeans.BeanValidator.validate(BeanValidator.java:89)
           at org.jboss.webbeans.bootstrap.WebBeansBootstrap.boot(WebBeansBootstrap.java:125)
           at org.jboss.webbeans.servlet.ServletLifecycle.beginApplication(ServletLifecycle.java:50)
      ...