Tomcat各种报错原因和解决方法汇总

部分内容转载自网络

1、报错:java.lang.IllegalAccessError: class org.xml.sax.helpers.SecuritySupport12 cannot access its superclass org.xml.sax.helpers.SecuritySupport

  原因:能够正常部分部署在Tomcat6上的程序,部署到Tomcat7上时,会报该错误。

  解决办法:

Please add metadata-complete="true" in your web.xml to override default properties of 3.0 for annotations.

    The metadata-complete attribute of the web-app element in a Web application's deployment descriptor specifies whether the Web descriptor and other related deployment descriptors for this module (such as Web service descriptors) are complete
If servlet version is set to 2.4 or an earlier version, the servlet container does not process any annotations.

If the metadata-complete attribute is missing or is set to false, the default value for Servlet 2.5/3.0, and version is set to 2.5/3.0, the servlet container examines the class files of the application for servlet annotations and supports the annotations.

例如:
metadata-complete="true" >

你可能感兴趣的:(Tomcat)