tomcat启动报错

来源:6-9 用户模块所有功能自测试

黑色天空8655

2018-12-30

十二月 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回答

geelylucky

2018-12-30

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

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

希望能帮助到你。

0
3
Geely
回复
geelylucky
棒棒哒,这个的确是要细心一些
2019-01-05
共3条回复

从0开始 独立完成企业级Java电商网站服务端开发

前后端分离,数据库接口设计,架构设计,功能开发,上线运维

9476 学习 · 8804 问题

查看课程