该问题是怎么引起的?
之前用的是JeesiteV4.0.4,全部正常。升级V.4.0.6后,IDEA中正常运行。但打成war后,Tomcat启动不了。JDK 1.8 Tomcat 8.5
重现步骤
在IDEA中,测试运行完全都OK。但是打完war,用TOMCAT运行的时候报错Failed to read candidate component class
无法正常启动过了。
报错信息
- Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanDefinitionStoreException: Failed to read candidate component class: file [D:\apache-tomcat-8.5.42\webapps\TECLEAD\WEB-INF\classes\com\jeesite\modules\invoice\entity\InvoiceMaindetails.class]; nested exception is java.lang.NoSuchMethodError: org.hyperic.sigar.NfsServerV2.h(Ljava/lang/Object;)Ljava/lang/String;