web.xml配置文件中标签<listener-class>报错
来源:互联网 发布:下载刷枪软件 编辑:程序博客网 时间:2024/05/29 07:37
与web.xml中的版本号有关系
<web-app xmlns="http://xmlns.jcp.org/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd" version="3.1">
改为:
<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_2_5.xsd" id="WebApp_ID" version="2.5">
主要原因:
博主补充:
Servlet3.0是J2EE6.0规范的一部分,跟随J2EE6.0一起发布,并且Tomcat7.0已经完全支持Servlet3.0 ;
平时,我们一般使用tomcat6.0,是不能够使用servelt3.0的,tomcat6.0还不能支持那些规范;
至于说,为毛线不能使用lintener-class,是因为在web-app_3_0.xsd结构定义文件中,根本就不提倡这些配置,因为Servlet3.0已经支持注解形式;
阅读全文
0 0
- web.xml配置文件中标签<listener-class>报错
- web.xml中标签详解
- web.xml中标签的含义
- web.xml中标签的加载顺序
- Java WEB中标签开发
- struts2配置文件中标签的顺序
- Java web中的web-xml中标签定义之jsp-config
- struts.xml中标签自动提示问题
- 获取xml中标签属性值
- tomcat启动报错:Error configuring application listener of class org.springframework.web.context.ContextLo
- tomcat启动报错:Error configuring application listener of class org.springframework.web.context.ContextLo
- tomcat启动报错:Error configuring application listener of class org.springframework.web.context.ContextLo
- 六年神贴【急!!tomcat启动报错:Error configuring application listener of class org.springframework.web.context.】
- 配置Spring 报错:严重: Error configuring application listener of class org.springframework.web.context.Cont
- tomcat启动报错:Error configuring application listener of class org.springframework.web.context.ContextLo
- 启动服务器报错: 严重: Error configuring application listener of class org.springframework.web.context.Context
- webservices的配置文件中标签的nillable属性
- struts2配置文件中标签package标签的属性说明
- 可变参数练习题(C语言)
- python队列通信:rabbitMQ使用
- F745VGTx_HAL_基础知识
- 一些简单的小程序_5——C语言篇
- 着色器
- web.xml配置文件中标签<listener-class>报错
- HihoCoder
- 数据库查询表之间的连接分
- 方法之间参数传递获取不到原因
- glibc内存管理ptmalloc底层实现
- Spring Cloud 探索 | Mongodb 微服务
- 矩阵的压缩存储
- map
- 矩阵反转--计蒜客