将两个相同的应用的根上下文修改之后部署到websphere提示错误
ogError SRVE0293E: [Servlet 错误]-[Configuration problem: Duplicate
element detected
Offending resource: URL [wsjar:file:/C:/Program Files/IBM/WebSphere/AppServer/profiles/AppSrv01/installedApps/WIN-ZKABOZ5044PNode01Cell/WebAppEAR_201201.ear/WebApp.war/WEB-INF/lib/CRMService.jar!/applicationContext-security.xml]]: org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: Failed to import bean definitions from relative location [applicationContext-security.xml]
Offending resource: URL [wsjar:file:/C:/Program Files/IBM/WebSphere/AppServer/profiles/AppSrv01/installedApps/WIN-ZKABOZ5044PNode01Cell/WebAppEAR_201201.ear/WebApp.war/WEB-INF/lib/CRMService.jar!/applicationContext.xml]; nested exception is org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: Duplicate element detected
Offending resource: URL [wsjar:file:/C:/Program Files/IBM/WebSphere/AppServer/profiles/AppSrv01/installedApps/WIN-ZKABOZ5044PNode01Cell/WebAppEAR_201201.ear/WebApp.war/WEB-INF/lib/CRMService.jar!/applicationContext-security.xml]
Caused by: org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: Duplicate element detected
Offending resource: URL [wsjar:file:/C:/Program Files/IBM/WebSphere/AppServer/profiles/AppSrv01/installedApps/WIN-ZKABOZ5044PNode01Cell/WebAppEAR_201201.ear/WebApp.war/WEB-INF/lib/CRMService.jar!/applicationContext-security.xml]
applicationContext.xml中的配置
web.xml中的配置
contextConfigLocation
classpath*:applicationContext.xml
大家帮忙给看看是什么原因导致。谢谢 收起