[jboss-dev-forums] [Design the new POJO MicroContainer] - Re: beanfactory injection
alesj
do-not-reply at jboss.com
Mon Mar 24 13:26:04 EDT 2008
"scott.stark at jboss.org" wrote : Guess I need to look into how to make the error more informative.
Like I said, and I think Adrian also already mentioned, we need to switch on the xml validation, for tests and real usage.
That would tell you the real problem, 'name' attribute doesn't exist on inject element.
"scott.stark at jboss.org" wrote :
| What was the inject name="..." mapping to?
|
To nothing. It was simply ignored.
And w/o exact bean the contextual injection kicked in, matching exactly one bean implementing BeanFactory.
Since there were two, you got a warning (see log), and then a failure that the class (autowire) dependency wasn't resolved.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4138545#4138545
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4138545
More information about the jboss-dev-forums
mailing list