我在WAS升级的时候发现了一些问题,应用程序原本部署在32位的WAS6.01上,运行正常的,现在升级到了64位的WAS6.1ND上,部署后启动出现如下错误:[09-5-19 10:30:56:531 CST] 00000023 SystemOut O ERROR [WebContainer : 1] DispatcherServlet.initServletBean(244) | Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'needOperationCtrl' defined in ServletContext resource [/WEB-INF/dispatch-servlet-group/wareOrder-dispatch-servlet.xml]: Cannot resolve reference to bean 'manager' while setting bean property 'manager'; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'manager' is defined
这是web.xml的配置文件的部分
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
admission project
admission project
contextConfigLocation
/WEB-INF/classes/applicationContext*.xml
....
这个是classes下的applicationContext-service.xml配置文件
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd"
default-autowire="byName">
在main-ac-service.xml中定义了manager,如下:
网上查了一些资料,说配置文件路径写法不一样,我改了之后还是一样,现在怀疑是不是装入顺序不对呢,dispatch-servlet.xml装入的时候似乎contextConfigLocation还没装入,请教高人。