[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...
原文地址:http://blog.51cto.com/13685327/2108117