码迷,mamicode.com
首页 > Web开发 > 详细

Could not initialize class org.apache.xpath...

时间:2018-04-26 15:31:41      阅读:234      评论:0      收藏:0      [点我收藏+]

标签:IDEA   Maven   Tomcat   启动问题   

■现象
Eclipse / IDEA Tomcat无法启动

[2018/04/26 14:42:24.893][RMI TCP Connection(3)-127.0.0.1] WARN  o.s.b.f.s.DefaultListableBeanFactory - Bean creation exception on non-lazy FactoryBean type check: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘QSW0102Mapper‘ defined in file [D:\HR\TTAP\Quotation\svnHR\trunk\Quotation_src\01 develop\quotation-web\target\quotation\WEB-INF\classes\com\quotation\web\workflow\mapper\QSW0102Mapper.class]: Unsatisfied dependency expressed through bean property ‘sqlSessionFactory‘: Error creating bean with name ‘sqlSessionFactory‘ defined in URL [file:/D:/HR/TTAP/Quotation/svnHR/trunk/Quotation_src/01%20develop/quotation-web/target/quotation/WEB-INF/classes/spring/applicationContext.xml]: Invocation of init method failed; nested exception is java.lang.StackOverflowError; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘sqlSessionFactory‘ defined in URL [file:/D:/HR/TTAP/Quotation/svnHR/trunk/Quotation_src/01%20develop/quotation-web/target/quotation/WEB-INF/classes/spring/applicationContext.xml]: Invocation of init method failed; nested exception is java.lang.StackOverflowError
[2018/04/26 14:42:24.943][RMI TCP Connection(3)-127.0.0.1] WARN  o.s.b.f.s.DefaultListableBeanFactory - Bean creation exception on non-lazy FactoryBean type check: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘QSW0102Mapper‘ defined in file [D:\HR\TTAP\Quotation\svnHR\trunk\Quotation_src\01 develop\quotation-web\target\quotation\WEB-INF\classes\com\quotation\web\workflow\mapper\QSW0102Mapper.class]: Unsatisfied dependency expressed through bean property ‘sqlSessionFactory‘: Error creating bean with name ‘sqlSessionFactory‘ defined in URL [file:/D:/HR/TTAP/Quotation/svnHR/trunk/Quotation_src/01%20develop/quotation-web/target/quotation/WEB-INF/classes/spring/applicationContext.xml]: Invocation of init method failed; nested exception is java.lang.NoClassDefFoundError: Could not initialize class org.apache.xpath.compiler.FunctionTable; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘sqlSessionFactory‘ defined in URL [file:/D:/HR/TTAP/Quotation/svnHR/trunk/Quotation_src/01%20develop/quotation-web/target/quotation/WEB-INF/classes/spring/applicationContext.xml]: Invocation of init method failed; nested exception is java.lang.NoClassDefFoundError: Could not initialize class org.apache.xpath.compiler.FunctionTable

■原因
安装了多个版本的JDK,并且环境变量JAVA_HOME、工程指定的JDK版本、Tomcat指定的JDK版本不统一。
技术分享图片

技术分享图片

技术分享图片

技术分享图片

技术分享图片

Could not initialize class org.apache.xpath...

标签:IDEA   Maven   Tomcat   启动问题   

原文地址:http://blog.51cto.com/13685327/2108117

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!