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&...]