java项目部署到tomcat启动时报错java.lang.IllegalAccessError: cl org.xml.sax.helpers.SecuritySupport12 cannotass
2015-10-15 13:00
585 查看
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[b]">[/b]
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[b]">[/b]
相关文章推荐
- Tomcat服务器
- tomcat的最大线程数、最大排队数多少合适
- Linux Ubuntu配置Tomcat
- Tomcat – Java.Lang.OutOfMemoryError: PermGen Space
- Apache与Tomcat的整合
- 常用Linux维护tomcat文件命令
- Nignx 连接tomcat时会话粘性问题分析及解决方法
- Myeclipse8.5启动tomcat控制台显示java.lang.OutOfMemoryError: Java heap space的解决
- tomcat的host配置
- RedHat Linux 5.5安装JDK+Tomcat并部署Java项目
- nginx+tomcat+mysql模板配置
- Tomcat的URL中文乱码解决以及传输优化
- Tomcat的URL中文乱码解决以及传输优化
- centOs install tomcat
- 公司测试环境上的tomcat总是运行一段时间莫名其妙的挂掉,总算找到原因了
- Tomcat常用的配置
- Intellij IDEA如何使用Maven Tomcat Plugin运行web项目
- tomcat server.xml中元素context使用
- saiku - 在 Tomcat 下部署 saiku
- eclipse部署上Tomcat后的clean和publish功能