web.xml怎么配置才能让打到jar包的Bean能在容器启动时初始化

web.xml如何配置才能让打到jar包的Bean能在容器启动时初始化?
我做了一个权限组件,打成jar包放到业务系统的lib下,在业务系统的web.xml里面,配置如下:

<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>
classpath*:modules/spring.xml;classpath*:modules/daoContext.xml;classpath*:modules/**/spring-conf/*.xml;
</param-value>
</context-param>

<listener>
<listener-class>
org.springframework.web.context.ContextLoaderListener
</listener-class>
</listener>

通配符对应的路径是对的,但jar里面的bean并没有在容器启动的时候创建,也无法在运行过程中获取,听说jar包里面的xml文件不能用通配符来定位,请问应该如何设置呢?在网上搜索了很多还是搜索不到解决办法,Spring的Reference也没有解释。
1 楼 dingyuan 2008-01-06  
xml文件不能打入jar包里面