Tomcat部署项目(JEECG)时报错处理
2016-05-09 21:27
429 查看
Error:
java.lang.IllegalAccessError: class org.xml.sax.helpers.SecuritySupport12
cannot access its superclass org.xml.sax.helpers.SecuritySupport
在部署到Tomcat7.0+JDK7.0的时候,会报这个错误。
解决办法:
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.
例如:
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd" version="3.0" metadata-complete="true">
java.lang.IllegalAccessError: class org.xml.sax.helpers.SecuritySupport12
cannot access its superclass org.xml.sax.helpers.SecuritySupport
在部署到Tomcat7.0+JDK7.0的时候,会报这个错误。
解决办法:
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.
例如:
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd" version="3.0" metadata-complete="true">
相关文章推荐
- javaweb的负载均衡,tomcat集群和session共享
- tomcat启动时报:IOException while loading persisted sessions: java.io.EOFException的解决方案
- tomcat7的安装与配置、及Servlet部署
- Eclipse中Tomcat overview设置
- tomcat PermGen space
- Tomcat绿色免安装配置及配置中遇到的问题的解决方案
- 一台电脑上同启动两个Tomcat的方式
- tomcat 内存优化,虚拟路径配置,解决内存溢出的办法---记住这么几点就无敌了
- Tomcat的部署
- Eclipse+JDK+Tomcat+MyEclipse的配置
- 基于nginx的tomcat负载均衡和集群
- tomcat启动时检测到循环继承而栈溢出的问题
- Tomcat集群配置学习篇-----分布式应用
- tomcat(10)安全性
- 请各位分析下tomcat宕机的原因,附上日志,急!!!
- 修改Tomcat端口号
- Tomcat8 Caused by: java.lang.OutOfMemoryError: PermGen space错误解决方法
- Tomcat最多支持并发多少用户?
- 用idea查看tomcat源码
- 深入分析Tomcat无响应问题及解决方法