在我本地测试是好用的,但是经过远程热部署到centos6.5系统中的tomcat中,但是终端一直报错,搞了几天了,好心累,求大神帮忙,感激不尽.错误提示如下:
[org.springframework.beans.factory.support.DefaultListableBeanFactory]-[DEBUG] Eagerly caching bean 'sqlSessionFactory' to allow for resolving potential circular references
2016-09-05 07:48:53,680 [http-bio-8080-exec-2] [org.springframework.beans.factory.support.DefaultListableBeanFactory]-[DEBUG] Returning cached instance of singleton bean 'dataSource'
2016-09-05 07:48:53,680 [http-bio-8080-exec-2] [org.springframework.beans.factory.support.DefaultListableBeanFactory]-[DEBUG] Invoking afterPropertiesSet() on bean with name 'sqlSessionFactory'
2016-09-05 07:48:53,681 [http-bio-8080-exec-2] [org.springframework.beans.factory.support.DefaultListableBeanFactory]-[WARN] Bean creation exception on FactoryBean type check: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'tbUserMapper' defined in URL [jar:file:/root/apache-tomcat-7.0.70/webapps/ROOT/WEB-INF/lib/taotao-manager-mapper-0.0.1-SNAPSHOT.jar!/com/taotao/mapper/TbUserMapper.class]: Unsatisfied dependency expressed through bean property 'sqlSessionFactory': : Error creating bean with name 'sqlSessionFactory' defined in file [/root/apache-tomcat-7.0.70/webapps/ROOT/WEB-INF/classes/spring/applicationContext-dao.xml]: Invocation of init method failed; nested exception is java.io.FileNotFoundException: class path resource [mybatis/sqlMapConfig.xml] cannot be opened because it does not exist; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlSessionFactory' defined in file [/root/apache-tomcat-7.0.70/webapps/ROOT/WEB-INF/classes/spring/applicationContext-dao.xml]: Invocation of init method failed; nested exception is java.io.FileNotFoundException: class path resource [mybatis/sqlMapConfig.xml] cannot be opened because it does not exist
2016-09-05 07:48:53,692 [http-bio-8080-exec-2] [org.springframework.beans.factory.support.DefaultListableBeanFactory]-[DEBUG] Creating shared instance of singleton bean 'sqlSessionFactory'
2016-09-05 07:48:53,692 [http-bio-8080-exec-2] [org.springframework.beans.factory.support.DefaultListableBeanFactory]-[DEBUG] Creating instance of bean 'sqlSessionFactory'
2016-09-05 07:48:53,692 [http-bio-8080-exec-2] [org.springframework.beans.factory.support.DefaultListableBeanFactory]-[DEBUG] Eagerly caching bean 'sqlSessionFactory' to allow for resolving potential circular references
2016-09-05 07:48:53,692 [http-bio-8080-exec-2] [org.springframework.beans.factory.support.DefaultListableBeanFactory]-[DEBUG] Returning cached instance of singleton bean 'dataSource'
2016-09-05 07:48:53,692 [http-bio-8080-exec-2] [org.springframework.beans.factory.support.DefaultListableBeanFactory]-[DEBUG] Invoking afterPropertiesSet() on bean with name 'sqlSessionFactory'
2016-09-05 07:48:53,693 [http-bio-8080-exec-2] [org.springframework.beans.factory.support.DefaultListableBeanFactory]-[WARN] Bean creation exception on FactoryBean type check: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'tbItemParamItemMapper' defined in URL [jar:file:/root/apache-tomcat-7.0.70/webapps/ROOT/WEB-INF/lib/taotao-manager-mapper-0.0.1-SNAPSHOT.jar!/com/taotao/mapper/TbItemParamItemMapper.class]: Unsatisfied dependency expressed through bean property 'sqlSessionFactory': : Error creating bean with name 'sqlSessionFactory' defined in file [/root/apache-tomcat-7.0.70/webapps/ROOT/WEB-INF/classes/spring/applicationContext-dao.xml]: Invocation of init method failed; nested exception is java.io.FileNotFoundException: class path resource [mybatis/sqlMapConfig.xml] cannot be opened because it does not exist; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlSessionFactory' defined in file [/root/apache-tomcat-7.0.70/webapps/ROOT/WEB-INF/classes/spring/applicationContext-dao.xml]: Invocation of init method failed; nested exception is java.io.FileNotFoundException: class path resource [mybatis/sqlMapConfig.xml] cannot be opened because it does not exist
tomcat7远程热部署springmvc+mybatis项目问题
- 写回答
- 好问题 0 提建议
- 追加酬金
- 关注问题
- 邀请回答
-
2条回答 默认 最新
- iamcaochong 2016-09-24 12:57关注
java.io.FileNotFoundException: class path resource [mybatis/sqlMapConfig.xml] cannot be opened because it does not exist
最后一句提示该文件不存在,应该是这个文件的问题,你检查一下是不是文件路径错了
解决 无用评论 打赏 举报