对于eclipse中配置的maven项目,出现:Cannot change version of project facet Dynamic Web Module to 2.5
1、.setting文件夹下的org.eclipse.wst.common.project.facet.core.xml文件,
修改 <installed facet="jst.web" version="2.5"/>
2.在web.xml中修改
<?xml version="1.0" encoding="UTF-8"?>
<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">
3、选中工程,右键 Maven->update project ->弹出窗中,选中制定工程后,点击ok按钮即可。
4、以下为 web.xml的各个版本:
@1.web.xml v2.3
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE web-app PUBLIC "-
//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">
<web-app>
</web-app>
@2.web.xml v2.4
<?xml version="1.0" encoding="UTF-8"?>
<web-app id="WebApp_9" 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/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
</web-app>
@3.web.xml v2.5
<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns=<a href="http://java.sun.com/xml/ns/javaee" target="_blank">http://java.sun.com/xml/ns/javaee</a>
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_5.xsd"
version="2.5">
</web-app>
@4.web.xml v3.0
<?xml version="1.0" encoding="UTF-8"?>
<web-app
version="3.0"
xmlns="http://java.sun.com/xml/ns/javaee"
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_3_0.xsd">
</web-app>
相关推荐
You’ll learn how to choose the right programming style for each project, manage unanticipated problems, and work more successfully with every facet of JavaScript programming from data structures to ...
Java compiler level does not match the version of the installed Java project facet. Unknown Faceted Project Problem (Java Version Mismatch) 1、preferences > java > Installed JRES > 选择java version ...
可实现表达式的加减运算,以及中缀和后缀表达式
<module org.jetbrains.idea.maven.project.MavenProjectsManager.isMavenModule="true" type="JAVA_MODULE" version="4"> <facet type="web" name="Web"> <deploymentDescriptor name="web.xml" url="file:...
<module external.linked.project.id="VoicePhone" external.linked.project.path="$MODULE_DIR$" external.root.project.path="$MODULE_DIR$" external.system.id="GRADLE" type="JAVA_MODULE" version="4"> ...
lucene facet查询示例,区间查询多dim查询,key-field-value模型了解
facet边缘检测的matlab源代码,是基于二阶模型,只要运行最后一个hhh.m就可以了
Pro JavaFX 9: A Definitive Guide to Building Desktop, Mobile, and Embedded Java Clients also contains engaging tutorials that cover virtually every facet of JavaFX development and reference materials...
idea部署eclipse的web项目(tomcat) 跟着走,无脑操作
solrj的facet查询总结
一、获取元素(Getting Elements) 1.Ext.get var el = Ext.get('myElementId');//获取元素,等同于document.getElementById('myElementId');//会缓存 2. Ext.fly var el = Ext.fly('myElementId')//不需要缓存...
solr facet 笔记
MFC开发的基于WinPcap的网络数据包的捕获与分析。
Effects of facet reflectivity of a laser diode on thc performance of fiber Bragg grating semiconductor lasers... Facet reflectivity of less than 10"4 is necessary to obtain stable oscillation wavelength.
lucene的facet用bobo-browse实现的办法,可以实现淘宝分类样式
图书管理系统
通过matlab完整再现facet小面模板卷积方法下的灰度图像边缘检测,注解完整,有效帮助理解整个理论实现。
NULL 博文链接:https://iamyida.iteye.com/blog/2203743
Then, you'll look at each facet of a typical Play application, both by exploring simple code snippets and by adding to a larger running example. Along the way, you'll contrast Play and JEE patterns ...