[jboss-user] [JBoss Seam] - migration from 1.2 to 2.0beta1 @In

livenow do-not-reply at jboss.com
Fri Jun 29 10:54:58 EDT 2007


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


View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4059210#4059210

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4059210



More information about the jboss-user mailing list