One or more constraints have not been satisfied
来源:互联网 发布:js随机数 不重复 编辑:程序博客网 时间:2024/05/16 14:03
Eclipse导入项目后在 Markers 窗口中看到这个相关错误信息,包括以下四条:
DescriptionResourcePathLocationTypeJavaServer Faces 2.2 can not be installed : One or more constraints have not been satisfied.doubleline 1Maven Java EE Configuration ProblemDescriptionResourcePathLocationTypeJavaServer Faces 2.2 requires Dynamic Web Module 2.5 or newer.doubleline 1Maven Java EE Configuration Problem为什么要分开贴呢?因为它们是有区别的。
DescriptionResourcePathLocationTypeJAX-RS (REST Web Services) 2.0 can not be installed : One or more constraints have not been satisfied.doubleline 1Maven Java EE Configuration ProblemDescriptionResourcePathLocationTypeJAX-RS (REST Web Services) 2.0 requires Java 1.6 or newer.doubleline 1Maven Java EE Configuration Problem上面两个的解决方法:
首先,将web.xml文件中的
<!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 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"xmlns="http://java.sun.com/xml/ns/javaee"xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"version="3.0">然后,改项目下的.settings\org.eclipse.wst.common.project.facet.core.xml,将 版本改成为3.0,将成后是<installed facet="jst.web" version="3.0"/>, 在Eclipse中的项目上右键,选择刷新, 再右键项目->Maven->Update Project。
后面两个的解决方法:
是在pom.xml中的<project>节点中添加:<profiles><profile><id>jdk-1.8</id><!-- 另外一种激活方式 --><activation><activeByDefault>true</activeByDefault><jdk>1.8</jdk></activation><properties><maven.compiler.source>1.8</maven.compiler.source><maven.compiler.target>1.8</maven.compiler.target><maven.compiler.compilerVersion>1.8</maven.compiler.compilerVersion></properties></profile></profiles>如果你用的JDK是1.7就全部指定为1.7。
阅读全文
1 0
- one or more constraints have not been satisfied
- One or more constraints have not been satisfied.(SAPUI5+Eclipse)
- one or more constraints have not been satisfied
- One or more constraints have not been satisfied.
- Type One or more constraints have not been satisfied
- maven - Type One or more constraints have not been satisfied
- One or more constraints have not been satisfied.
- One or more constraints have not been satisfied.
- Type One or more constraints have not been satisfied.
- One or more constraints have not been satisfied.
- One or more constraints have not been satisfied. 问题解决
- 解决One or more constraints have not been satisfied问题
- One or more constraints have not been satisfied.
- One or more constraints have not been satisfied
- Maven错误:One or more constraints have not been satisfied
- One or more constraints have not been satisfied. Spring 4.1 requires Java 1.6 or newer
- JavaServer Faces 2.2 can not be installed : One or more constraints have not been satisfied.
- eclipse报错:one or more constraints have not been satisfied
- ajax 传参json字符串
- Markdown示例
- java中计算机的执行机制002
- SVN导出项目(从虚拟机创建到项目运行六)
- android隐藏标题栏(Action Bar)
- One or more constraints have not been satisfied
- 【笔记】《WebGL编程指南》学习-第7章进入三维世界(1-视点和视线)
- 【上云须知】全面了解阿里云能为你做什么
- 八进制 输入一个整数,将其转换成八进制数输出
- ramdisk.img system.img userdata.img 分析
- 关于无人驾驶的过去、现在以及未来,看这篇文章就够了!
- vs2013+opencv2.4.13环境变量配置
- javascript 的 map/reduce
- 新手程序员快速成长的5个秘诀