今天用Eclipse部署一个Web项目Test,报如下错误:The server does not support version 2.5 of the J2EE Web module specification
原来创建Test时用的是Tomcat 6.0,而现在用的是Tomcat 5.0。jdk都是用的1.5
Tomcat 5.0最多支持Servlet 2.4
解决如下:
在项目根目录下有一个.settings的文件夹,该文件夹下有一个org.eclipse.wst.common.project.facet.core.xml文件,内容如下:
<?xml version="1.0" encoding="UTF-8"?>
<faceted-project>
<fixed facet="jst.web"/>
<fixed facet="wst.jsdt.web"/>
<fixed facet="java"/>
<installed facet="java" version="1.5"/>
<installed facet="jst.web" version="2.5"/>
<installed facet="wst.jsdt.web" version="1.0"/>
</faceted-project>
把<installed facet="jst.web" version="2.5"/>改为 <installed facet="jst.web" version="2.4"/>
此时项目可以部署了,但是页面上的JSTL表达式却都不起作用了,查了点资料,原来还需要把web.xml 2.5的声明改成2.4的声明。
2.5的为:
<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">
2.4的为:
<web-app version="2.4"
xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/web-app_2_4.xsd">
分享到:
相关推荐
TypeError: loop of ufunc does not support argument 0 of type Tensor which has no callable arctan method 报错行 self.u = np.round(np.dot(self.F, self.u)) #或者 self.u = np.round(self.u + np.dot(K, ...
ArcGIS修复损坏的shapefile,解决Number of shape does not match the number of table records的问题
在线烧录程序时出现“The firmware of the connected J-Link[SN:20090928] does not support the following memory access:Read&@0x02000004 Flags:via AHB-AP”错误提示
svn的安装,使用http访问svn资源库,使用https访问svn资源库
A.2.3 Client does not support authentication protocol MySQL 4.1 and up uses an authentication protocol based on a password hashing algorithm that is incompatible with that used by older clients. If ...
eil烧录报错:The firmware of the connected J-Link does not support the following memory access:Read @0x02000004使用该文件替换Keil_v5/ARM/Segger安装目录下的文件可解决。如果没有积分,请联系笔者。
安装SqlServer2008R2遇到系统提示: 代码如下:SQL Server setup media does not support the language of the OS or does not have ENU localized files.Use the matching language-specific SQL Server media or ...
BIOS+UEFI启动引导修复工具
J-link V8_Firmware_20121126.bin 可以在 J-Link ARM V4.64 中正常使用。
解决/root/.Xauthority does not exist
NULL 博文链接:https://banner.iteye.com/blog/613081
The furnishing of this document does not give you a license to these trademarks, copyrights, patents, or other intellectual property rights. This document contains the specification to the Component ...
MYSQL出现" Client does not support authentication "的解决方法
NULL 博文链接:https://peryou.iteye.com/blog/1749973
Keil烧录报错:The firmware of the connected J-Link does not support the following memory access: Read @0x02000004 使用该文件替换Keil_v5/ARM/Segger安装目录下的文件可解决。
trademark, copyright or other notice from the specification, but the receipt or possession of this specification does not convey any rights to reproduce, disclose, or distribute its contents, or to ...
mysql 1449 : The user specified as a definer ('root'@'%') does not exist 解决方法
mysql4.1以上版本连接时出现Client does not support authentication protocol问题解决办法
Static linking of applications to the SPServer library does not constitute a derivative work and does not require the author to provide source code for the application, use the shared SPServer ...
修复损坏的shapefile,解决Number of shape does not match the number of table records的问题