[jboss-user] [Spring Integration] - @Autowiring of beans from Spring applicationcontext

Vladimir Aguirre do-not-reply at jboss.com
Sat May 15 00:27:02 EDT 2010


Vladimir Aguirre [http://community.jboss.org/people/vlad_pax] replied to the discussion

"@Autowiring of beans from Spring applicationcontext"

To view the discussion, visit: http://community.jboss.org/message/543213#543213

--------------------------------------------------------------
Hi Marius:
Thank you, very nice.
I'm test with the next configuration:
beanRefContext.xml File:
<bean id="context"
        class="org.jboss.spring.vfs.context.*VFSClassPathXmlApplicationContext*">
        <constructor-arg index="1">
            <list value-type="java.lang.String" >
                <value>applicationContext-log4j.xml</value>
                <value>applicationContext-service.xml</value>
                <value>sessionFactory-sc-context.xml</value>
                <value>dataSource-sc-context.xml</value>
            </list>
        </constructor-arg>
        <constructor-arg index="2" type="boolean">
        <value>false</value>
        </constructor-arg>
    </bean>

I have the next error:
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'context' defined in URL [vfs:/D:/Java/AppsServers/Jboss/jboss-6.0.0.20100429-M3/server/default/deploy/armonica-ear-1.0-SNAPSHOT.ear/APP-INF/lib/armonica-negocio-1.0-SNAPSHOT.jar/beanRefContext.xml]: 2 constructor arguments specified but no matching constructor found in bean 'context' (hint: specify index and/or type arguments for simple parameters to avoid type ambiguities)
     org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:181)

I will test with Jboss 5, but tomorrow.
+Muchas gracias mi hermano.+

--------------------------------------------------------------

Reply to this message by going to Community
[http://community.jboss.org/message/543213#543213]

Start a new discussion in Spring Integration at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2082]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20100515/bb1315a6/attachment-0001.html 


More information about the jboss-user mailing list