解决报错:One or more constraints have not been satisfied.

eclipse 报错:One or more constraints have not been satisfied.

转自:stackOverflow

回答问题者:Basit


向下投票 接受

我有同样的问题。在我的maven项目中添加速度依赖关系后,我在标记选项卡中得到相同的错误。然后我注意到maven项目创建的web.xml文件具有servlet2.3模式。当我将其更改为servlet 3.0模式并保存项目时,此错误消失。这是maven创建的web.xml文件




    Archetype Created Web Application

更改为

 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"
                        version="3.0">
    Archetype Created Web Application

补充:

其实还有其他问题可能导致这种报错;

比如web.xml 中修改完了之后还是报这种错误.

那么首先点击:

解决报错:One or more constraints have not been satisfied._第1张图片

然后找到

解决报错:One or more constraints have not been satisfied._第2张图片

修改:

解决报错:One or more constraints have not been satisfied._第3张图片


你可能感兴趣的:(解决报错:One or more constraints have not been satisfied.)