6 Replies Latest reply on Jul 15, 2007 3:53 PM by Matt Drees

    migration from 1.2 to 2.0beta1 @In

    Christoph Aigner Newbie

      Hi

      after migrating from 1.2 to 2.0 Seam throws the following error:

      java.lang.IllegalArgumentException: value of context variable is not an instance of the component bound to the context variable: session

      the error occurs when I try to inject a class:

      @Name("session")
      @Scope(ScopeType.SESSION)
      public class Session implements java.io.Serializable {
      ..

      in:

      @Stateless
      @Name("remoting_desktop")
      public class Desktop implements DesktopInterface {

      @In(create=true,required=false) Session session2;
      ..

      worked with 1.2. What am I doing wrong here?

      cheers,
      Christoph