Could not initialize class org.apache.xpath...
阿新 • • 發佈:2018-04-26
IDEA Maven Tomcat 啟動問題 ■現象
Eclipse / IDEA 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...