[
http://jira.jboss.com/jira/browse/JBSEAM-1588?page=comments#action_12370169 ]
Norman Richards commented on JBSEAM-1588:
-----------------------------------------
See Component.getInstanceInAllNamespaces().
In this case, there is only one seam component named "session", the one defined
by the user. If there were no component user component named "session" then
Seam would try the seam namespaces and would ultimately find
"org.jboss.seam.web.session'.
Seam Component name "session" reserved keyword
----------------------------------------------
Key: JBSEAM-1588
URL:
http://jira.jboss.com/jira/browse/JBSEAM-1588
Project: JBoss Seam
Issue Type: Bug
Affects Versions: 2.0.0.BETA1
Reporter: Christoph Aigner
Assigned To: Norman Richards
Priority: Blocker
Fix For: 2.0.0.CR1
Original Estimate: 1 hour
Remaining Estimate: 1 hour
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 session;
..
worked with 1.2 as "session" is reserved
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira