在JBoss 5.1.0.GA中加载通配符bean

时间:2010-11-15 10:25:05

标签: jboss jboss5.x

我们在config.xml中有这个,它在JBoss 4.2.2.GA

中加载OK
<import resource="classpath*:/META-INF/apollo/babel-*-beans.xml"/>

然而在JBoss 5.1.0.GA中,它没有加载(因为我知道事情更严格)

Offending resource: ServletContext resource [/WEB-INF/config/catalog-config.xml]; 
nested exception is org.springframework.beans.factory.BeanDefinitionStoreException: 
Could not resolve bean definition resource pattern [classpath*:/META-INF/apollo/babel-*-beans.xml]; 
nested exception is java.io.FileNotFoundException: 

我按照http://community.jboss.org/message/6502的建议来禁用验证,

%JBOSS_HOME%/server/< serverName>/deployers/ear-deployer-jboss-beans.xml, uncommentthe commented out lines: 
<property name="useValidation">false</property>

但错误仍然存​​在。

那么如何使JBoss 5.1.0.GA不那么严格并且能够使用通配符加载?

0 个答案:

没有答案
相关问题