weblogic12c部署springMVC项目失败

无敌龙2014 2018-06-14 03:52:44
<BEA-101162> <User defined listener org.springframework.web.context.ContextLoaderListener failed: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sysDemoService': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.ronhe.core.framework.dao.BaseMapper com.ronhe.core.framework.service.impl.CommonServiceImpl.mapper; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'sysDemoMapper' defined in URL [zip:D:/weblogic12c/user_projects/domains/base_domain/servers/AdminServer/tmp/_WL_user/ROMP/c3xa6s/war/WEB-INF/lib/_wl_cls_gen.jar!/com/ronhe/romp/demo/sysdemo/dao/SysDemoMapper.class]: Unsatisfied dependency expressed through bean property 'sqlSessionFactory': : Error creating bean with name 'sqlSessionFactory' defined in URL [zip:D:/weblogic12c/user_projects/domains/base_domain/servers/AdminServer/tmp/_WL_user/ROMP/c3xa6s/war/WEB-INF/lib/_wl_cls_gen.jar!/spring/romp-context.xml]: Invocation of init method failed; nested exception is java.lang.RuntimeException: XPathFactory#newInstance() failed to create an XPathFactory for the default object model: http://java.sun.com/jaxp/xpath/dom with the XPathFactoryConfigurationException: javax.xml.xpath.XPathFactoryConfigurationException: No XPathFctory implementation found for the object model: http://java.sun.com/jaxp/xpath/dom; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlSessionFactory' defined in URL [zip:D:/weblogic12c/user_projects/domains/base_domain/servers/AdminServer/tmp/_WL_user/ROMP/c3xa6s/war/WEB-INF/lib/_wl_cls_gen.jar!/spring/romp-context.xml]: Invocation of init method failed; nested exception is java.lang.RuntimeException: XPathFactory#newInstance() failed to create an XPathFactory for the default object model: http://java.sun.com/jaxp/xpath/dom with the XPathFactoryConfigurationException: javax.xml.xpath.XPathFactoryConfigurationException: No XPathFctory implementation found for the object model: http://java.sun.com/jaxp/xpath/dom
...全文
1074 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
无敌龙2014 2018-06-14
  • 打赏
  • 举报
回复
问题已解决,weblogic12c和11g在xml解析上有区别,12c会和项目中的xml-apis-1.4.01.jar,xercesImpl-2.11.0.jar冲突,在war包里将这两个文件删除。 在weblogic.xml中添加 <container-descriptor> <show-archived-real-path-enabled>true</show-archived-real-path-enabled> <prefer-web-inf-classes>true</prefer-web-inf-classes> </container-descriptor>

5,655

社区成员

发帖
与我相关
我的任务
社区描述
Web开发应用服务器相关讨论专区
社区管理员
  • 应用服务器社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧