tomcat启动时出现:Failed to start component [StandardEngine[Catalina].StandardHost[localhost].错误 的原因:

tomcat运行项目出现:Failed to start component [StandardEngine[Catalina].StandardHost[localhost]. 并且出现cause by :

java.lang.ClassFormatError: Absent Code attribute in method that is not native or abstract in class file javax/faces/webapp/FacesServlet


就是因为缺少:javax.faces-api.jar包


而tomcat运行出现:Failed to start component [StandardEngine[Catalina].StandardHost[localhost].极有可能是jar缺失导致的,根据cause by 后面的语句去解决缺少的jar包就可以了。

你可能感兴趣的:(那些年打过交道的bug,tomcat启动报错)