前两天将应用要部署到was时报jar中spring的配置信息找不到,最后将jar包中的spring配置路径中的通配符去掉就好了,
可是今天部署到weblogic上时有报类似的错误的,如下:
Cannot resolve reference to bean 'sessionFactory' while setting bean property 'sessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in class path resource [resources/spring/applicationContext-base.xml]: Invocation of init method failed; nested exception is java.io.FileNotFoundException: ServletContext resource [/WEB-INF/lib/***.jar] cannot be resolved to absolute file path - web application archive not expanded?
正好weblogic支持两种发布方式war包发布和应用目录部署,
使用war包方式部署不行,而采用目录方式部署就OK了。