Hi Ivan,

Try creating an xml called beanRefContext.xml and place it on the classpath - 
eg. inside WEB-INF/classes - you need that for the 
ContextSingletonBeanFactoryLocator.

Place your 
<jee:jndi-lookup id="mainApplicationContext" jndi-name="MySpringBean"/>
element inside that xml and remove it from the web context definition.

BTW - using classpath*:*.xml may not be such a good idea, since the 
XmlWebApplicationContext will try to use any xml on the classpath as a Spring 
definition (at the very least, try to create a pattern that is somehow unique 
to your application). For example, in this case it will load beanRefContext.xml 
too (which is completely useless, albeit inoffensive).

Cheers,
Marius






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

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4266672
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to