Tomcat部署项目(JEECG)时报错(IllegalAccessError)处理
来源:互联网 发布:会c语言在哪里开发软件 编辑:程序博客网 时间:2024/05/16 10:33
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">
2 0
- Tomcat部署项目(JEECG)时报错(IllegalAccessError)处理
- Tomcat部署项目(JEECG)时报错处理
- tomcat 部署项目时报错--(1)
- Tomcat部署项目时报错--(2)
- java项目部署到tomcat启动时报错java.lang.IllegalAccessError: cl org.xml.sax.helpers.SecuritySupport12 cannotass
- Jeecg-3.7 部署tomcat第一次运行相关问题处理
- weblogic部署项目时报错
- (1)jeecg入门-初始化部署
- 某些项目在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.
- tomcat部署项目时报java.lang.OutOfMemoryError: PermGen space
- 将项目部署到tomcat后,访问时报404
- Tomcat 部署时报错Deployment failure on Tomcat 6.x
- 微信开发,将微信官网的jeeweixin(java版)开发项目导入,tomcat发布时报错
- tomcat 部署项目时的报错(一)
- tomcat 部署ecclipse web(servlet)项目
- windows部署tomcat项目(1)
- Spring Mvc提交form表单上传文件
- mysql主从同步(低版本)参数说明
- 《蒋勋说宋词》 读后感
- MySQL主从复制结构中常用参数
- c语言入门之项目3.9——输出一个“空”三角形
- Tomcat部署项目(JEECG)时报错(IllegalAccessError)处理
- AJAXdemo.html
- NotifyIcon控件 托盘控件
- Linux内核分析:实验一
- java中Overload(重载)和Override(重写、覆盖)
- 第一章 Java EE框架概述
- 快速配置好一个好用的vim
- 让使用了SQLite的.NET应用自适应32位/64位系统
- 使用POI读取xls和xlsx