Tomcat部署项目(JEECG)时报错处理
来源:互联网 发布:矩阵开关介绍 编辑:程序博客网 时间:2024/06/05 20:41
Error: java.lang.IllegalAccessError: class org.xml.sax.helpers.SecuritySupport12 cannot access its superclass org.xml.sax.helpers.SecuritySupport
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
在部署到Tomcat7.0+JDK7.0的时候,会报这个错误。
解决办法:
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">
0 0
- Tomcat部署项目(JEECG)时报错处理
- Tomcat部署项目(JEECG)时报错(IllegalAccessError)处理
- tomcat 部署项目时报错--(1)
- Tomcat部署项目时报错--(2)
- 启动hive时报错处理
- web工程部署到tomcat报错处理
- tomcat报错处理
- tomcat部署项目时报java.lang.OutOfMemoryError: PermGen space
- 将项目部署到tomcat后,访问时报404
- 使用eclipse自带maven插件新建javaweb项目时报错处理方案
- 10gR2启动时报错处理
- 加入mesa库时报错处理
- weblogic部署项目时报错
- maven项目报错处理
- 某些项目在eclipse上部署之后,启动tomcat时报错:“java.lang.NoClassDefFoundError:... ”
- MyEclipse 8.5部署项目到Tomcat时报错: Undefined exploded archive location
- 项目部署到tomcat时报错jar not loaded. See Servlet Spec 2.3, section 9.7.2.
- Jeecg-3.7 部署tomcat第一次运行相关问题处理
- Shell脚本学习笔记-函数
- maven分模块,聚合 在实际项目里面的应用
- xml中引用PullToRefreshListView
- 递归和动态规划-汉诺塔II
- VMware安装MacOS虚拟机无法从光盘启动
- Tomcat部署项目(JEECG)时报错处理
- Ubuntu14.04交叉编译Linux内核
- linux基本命令(17)——whereis命令
- 输入一个集合,输出这个集合的所有子集
- 华为2016机试题目01
- 迭代器模式
- UI简单小结
- 使用html2canvas截屏,利用itextpdf转为pdf保存到数据库
- IE的浏览器模式和文档模式