JavaServer Faces 2.0 can not be installed解决方案
来源:互联网 发布:windows重启数据库 编辑:程序博客网 时间:2024/06/05 21:36
JavaServer Faces 2.0 can not be installed解决方案
问题描述:maven项目出现如下错误
JavaServer Faces 2.0 requires Dynamic Web Module 2.5 or newer..Maven Java EE Configuration Problem
JavaServer Faces 2.0 can not be installed : One or more constraints have not been satisfied..line 1 Maven Java EE Configuration Problem
解决方案:
首先,将webapp下的web.xml文件
1 <?xml version="1.0" encoding="UTF-8"?>2 <!-- <!DOCTYPE web-app3 PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"4 "http://java.sun.com/dtd/web-app_2_3.dtd">
替换为
1 <web-app xmlns="http://java.sun.com/xml/ns/javaee"2 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"3 xsi:schemaLocation="http://java.sun.com/xml/ns/javaee 4 http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"5 version="3.0">6 <display-name>Archetype Created Web Application</display-name>7 </web-app>
然后,关闭Eclipse,改项目下的.settings\org.eclipse.wst.common.project.facet.core.xml,将 版本改成为3.0,将成后是<installed facet="jst.web" version="3.0"/>,再启动Eclipse.
最后,在Problems View的出错提示右键选Quick Fix,再按提示确定就OK;或者,右键项目->Maven->Update Project
=====================
此时,问题一般解决。如还不能解决,尝试在pom.xml中加入如下代码:
1 <build> 2 <finalName>chm</finalName> 3 <plugins> 4 <plugin> 5 <artifactId>maven-compiler-plugin</artifactId> 6 <version>2.0.2</version> 7 <configuration> 8 <source>1.6</source> 9 <target>1.6</target>10 </configuration>11 </plugin>12 </plugins>13 </build>
标签: maven错误, javaServerFaces错误
好文要顶关注我 收藏该文
0
0
«上一篇:python中str函数isdigit、isdecimal、isnumeric的区别
»下一篇:Maven Dependency错误——下载失败问题解决方案
»下一篇:Maven Dependency错误——下载失败问题解决方案
posted on 2015-04-13 00:23 降龙伏虎 阅读(3815) 评论(0)编辑 收藏
0 0
- JavaServer Faces 2.0 can not be installed解决方案
- JavaServer Faces 2.0 can not be installed解决方案
- JavaServer Faces 2.0 can not be installed解决方案
- JavaServer Faces 2.0 can not be installed解决方案
- JavaServer Faces 2.0 can not be installed
- JavaServer Faces 2.2 can not be installed
- JavaServer Faces 2.2 can not be installed : One or more constraints have not been satisfied.
- 项目报错“JavaServer Faces 2.2 can not be installed : One or more constraints”等一系列问题
- 项目报错“JavaServer Faces 2.2 can not be installed : One or more constraints”等一系列问题
- 解决maven3.5.0项目报错“JavaServer Faces 2.2 can not be installed : One or more constraints”问题
- JAX-RS (REST Web Services) 2.0 can not be installed
- maven ssm项目报错javaserver faces 2.2 can not been 。。。
- JavaServer Faces 2.0复合组件
- 框架:闲谈JavaServer Faces的解决方案
- javaserver faces
- maven+springmvc错误 JAX-RS (REST Web Services) 2.0 can not be installed
- maven+springmvc错误 JAX-RS (REST Web Services) 2.0 can not be installed
- 使用maven整合ssm报错:JAX-RS (REST Web Services) 2.0 can not be installed
- 项目管理和构建】——Maven下载、安装和配置
- 第一篇博客
- test
- Selenium
- Android Bitmap旋转
- JavaServer Faces 2.0 can not be installed解决方案
- 首页
- Android直播实现(二)srs流媒体服务器部署
- ZeroC Ice IceBox使用
- linux下jps命令找不到的问题
- ZeroC Ice Ice Registry实现负载均衡
- 关于快速排序与归并排序
- Android关于安兔兔手机信息造假的问题。
- 项目管理和构建】十分钟教程,eclipse配置maven + 创建maven项目