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

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Could not initialize class org.apache.xpath...相关的知识,希望对你有一定的参考价值。

■现象
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...的主要内容,如果未能解决你的问题,请参考以下文章

could not initialize proxy - no Session

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

PowerDesigner 逆向工程 Could not Initialize JavaVM!

jacob运行tomcat报错 Could not initialize class com.jacob.com.ComThread

Could not initialize class utils.JdbcUtils

Could not initialize class net.sf.json.util.JSONUtils 这个问题怎么解决