您的位置:首页 > 编程语言 > Java开发

解决JavaServer Faces 2.2 can not be installed : One or more constraints have not been satisfied错误

2018-01-30 16:05 330 查看
1. 根据自身情况修改web.xml中的<webapp>中的内容:

 我的修改为:

<?xml version="1.0" encoding="UTF-8"?>

<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"> 

2.关闭eclipse

 修改项目文件加中的.seting\org.eclipse.wst.common.project.facet.core文件

我的修改为:

<installed facet="jst.web" version="3.1"/>

打开eclipse,刷新项目。。。。。。。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐