请稍等 ...
×

采纳答案成功!

向帮助你的同学说点啥吧!感谢那些助人为乐的人

tomcat启动报错

十二月 30, 2018 5:16:17 下午 org.springframework.web.context.ContextLoader initWebApplicationContext
严重: Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘userManageController’: Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.mmall.service.IUserService com.mmall.controller.backend.UserManageController.iUserService; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘iUserService’: Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.mmall.dao.UserMapper com.mmall.service.Impl.UserServiceImpl.userMapper; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘userMapper’ defined in file [C:\apache-tomcat-7.0.75\webapps\ROOT\WEB-INF\classes\com\mmall\dao\UserMapper.class]: Unsatisfied dependency expressed through bean property ‘sqlSessionFactory’: : Error creating bean with name ‘sqlSessionFactory’ defined in class path resource [applicationContext-datasource.xml]: Invocation of init method failed; nested exception is org.springframework.core.NestedIOException: Failed to parse mapping resource: ‘file [C:\apache-tomcat-7.0.75\webapps\ROOT\WEB-INF\classes\mappers\OrderItemMapper.xml]’; nested exception is org.apache.ibatis.builder.BuilderException: Error creating document instance. Cause: org.xml.sax.SAXParseException; lineNumber: 1; columnNumber: 7; 不允许有匹配 “[xX][mM][lL]” 的处理指令目标。; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘sqlSessionFactory’ defined in class path resource [applicationContext-datasource.xml]: Invocation of init method failed; nested exception is org.springframework.core.NestedIOException: Failed to parse mapping resource: ‘file [C:\apache-tomcat-7.0.75\webapps\ROOT\WEB-INF\classes\mappers\OrderItemMapper.xml]’; nested exception is org.apache.ibatis.builder.BuilderException: Error creating document instance. Cause: org.xml.sax.SAXParseException; lineNumber: 1; columnNumber: 7; 不允许有匹配 “[xX][mM][lL]” 的处理指令目标。

十二月 30, 2018 5:16:17 下午 org.apache.catalina.core.StandardContext startInternal
严重: One or more listeners failed to start. Full details will be found in the appropriate container log file
十二月 30, 2018 5:16:17 下午 org.apache.catalina.core.StandardContext startInternal
严重: Context [] startup failed due to previous errors
[2018-12-30 05:16:17,360] Artifact mmall:war: Error during artifact deployment. See server log for details.
十二月 30, 2018 5:16:23 下午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory C:\apache-tomcat-7.0.75\webapps\manager
十二月 30, 2018 5:16:23 下午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deployment of web application directory C:\apache-tomcat-7.0.75\webapps\manager has finished in 82 ms

完成用户模块后启动tomcat报错,找了很久没找到原因,希望老师帮忙看一下,谢谢老师

正在回答

1回答

同学,你好,我是geely老师的助教。

OrderItemMapper这个xml不合法,lineNumber: 1; columnNumber: 7;第一行,第七列有问题,请同学检查一下。

希望能帮助到你。

0 回复 有任何疑惑可以回复我~
  • 提问者 黑色天空8655 #1
    非常感谢您,问题解决了
    回复 有任何疑惑可以回复我~ 2018-12-30 22:43:36
  • geelylucky 回复 提问者 黑色天空8655 #2
    不客气,报错日志里面有很多信息可以帮助你定位到问题所在,耐心一点,一定可以找到问题。
    回复 有任何疑惑可以回复我~ 2018-12-30 23:07:30
  • Geely 回复 geelylucky #3
    棒棒哒,这个的确是要细心一些
    回复 有任何疑惑可以回复我~ 2019-01-05 17:36:17

相似问题

登录后可查看更多问答,登录/注册

问题已解决,确定采纳
还有疑问,暂不采纳
意见反馈 帮助中心 APP下载
官方微信