经常被一个问题困扰:
JavaServer Faces 2.2 can not be installed : One or more constraints have not been satisfied.
JavaServer Faces 2.2 requires Dynamic Web Module 2.5 or newer
eclipse里面是这样子的:
aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAA/gAAABVCAYAAAD9sU86AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAACrISURBVHhe7Z35k13Fleffv+EIR3gmHO4fzAgjIalLFTQgxsYYorExNrLEJlRyTbjBY7vD4QhQG9rNIhCSLUdMe8IeMAzGWIACJGiq2+1uA+MmoEogWVshqJa1oUIYtC9VWkpncrlLZt6Tee99y633Lt+M+LTfzZPLyXNO5s3z6qFu/Oyd03Ts9DkAAAAAAFACeYdC6Xw5duxY9AmljgX+rabAzvUr0qecX5HgAwC6msuXfJ+tBwCA6QYJfjUFiUm9C/xbTYGd61eQ4AMAeo5LbvlbuuH/vEK3PPh/WTkAAEwnSPCrKUhM6l3g32oK7Fy/ggQfANBTXLLwDrrtZ0P0wBsf0k83fES/GHqNbQcAANMFEvxqytGjR6NPKHUs8G81BXauX5E+5fyKBB8A0HX891u/Q8vXv0b/uvcEvbTzGP3HvhM0Mn6S/vDeSbY9AABMB0jwqylITOpd4N9qCuxcvyJ9euTIkegpLUjwAQAAAACaAAl+NQWJSb0L/FtNgZ3rV3ozwR/9Mc1tzKMHRxlZHq30BQAAAADIAQl+NYW7wLa/DNFgo59Wj0WPKJWVavzbRBlbTf01iomutTNK00X69PDhw9FTWgIJ/g56sK9BjYbJN2kt27ZDIMEHAAAAQJcSTvDHaHW/c4/qXy1qUcqWcGKStfPgUCQqVZDgT1cp4t/mfNpi+Rgl+EOD9h5KmBbDoxQtcYJ/7txUVKNLboJ/23qjbv03lbOtuq6B0RcAAAAAoEMUSfDN+7G6ROPCXLpwf6FKi7SzkYQVTspc/yDBn66S79+qEvxp/DKhghK2c1zkPhgU/xelF4r0qTfB33OUY5TumdugRWud+k0r6eLGUnrcr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TXq7fkFpccxyZkrGjNjC2tOX709bmJzibuGGLnhjP6afrpTBLUeO/ocapcZ17PGgK72+GLce/VB8C+R3PSrZRs1ZmyP8vMWspHjG4Whm4kaz5IN0Q2WneRY8XPI526/wLNlg/g5Hteo54jsbttMji36lo17oX8sC8+b9ZPyrzmf1Ctjx3TuzPjNxo8a12c71y4Gof2gxjB8Zbb1xE1KaJ1Zu2Ux4kI9m/EmCK0vkiV17jqC/RnduP4AtIi8XHH1iqbPgbwzLE8uyTmjOKz9ZLYPjRXe4+w7zdyLvs/J+JqgnUHP4/evjK8o3lR8xLHXwrvFQu+lJEZz2/c2fjtHZ4qx7vA9yLZbJkeI5YXvbTn+NKgqf7Ox22pi/UIyD+6drQNno0rw9x4i2vZ+b/HH9a/T8AV/RW984rOaT86gDX/5JdoyvIttD0BL/FofbEOcrIv53zc16KIfjbEyAAAArSEvV1w9aC+wc72Bf6sBdq4fPp+qBH+3SPC3jPcum3edZusBaBtP6gT/nzhZt/LaarqoMUg/42QAAABaRl6uuHrQXmDnegP/VgPsXD98PlUJvvzn9DeLBwCAhyjBf5GTdSH/eJP+2c/XnuTlAAAAWkderrh60F5g53oD/1YD7Fw/fD5t/PjF3bTjwDnaKh7+uB8AAAAAABRBXq64etBeYOd6A/9WA+xcP3w+bfzzxg9p3YaDNPbnqcz/k3wAAAAAAMAjL1dcPWgvsHO9gX+rAXauHz6fNqQAAAAAAAAAAAAAvU3jXdpNAAAAAACgHPIihdL5AjvXu8C/1RTYuX6F9ynR/wcKbRReEfCmIwAAAABJRU5ErkJgggA=" alt="" />
通过Type来看是因为maven的配置导致的。
今天决定解决这个问题:
之前做的一些尝试:打算选择搞版本的Dynamic Web Module,但是报错,说是和其他组件冲突。
于是你需要做两件事情:
1. 修改web app版本;
maven默认生成的web.xml中webapp的版本是2.3的:
<!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为4.0版本:
<!DOCTYPE web-app PUBLIC
"-//Sun Microsystems, Inc.//DTD Web Application 4.0//EN"
"http://java.sun.com/dtd/web-app_4_0.dtd" >
其实只要是3.0以上就可以,我这里写的是4.0,最新版本的
开始好用,但是当工程重新被打开后,又报错,于是修改为(!DOCTYPE部分删掉):
<webapp xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
其实你可以到http://java.sun.com/dtd/上面去看看(现在已经跳抓到了oracle java的页面)里面根本没有web-app_4_0.dtd,最高版本为2.3,导致Dyanmaic Web module最高版本只能配置到2.3;所以dtd的格式是无法满足Java Server Factes的要求;于是需要改dtd声明为xsd的声明。
然后在工程右键,然后在Project Facts的页面取消勾选Dynamic Web Module;然后更新工程,问题解决了。其实你回到Project Facts里面看到Dynamic Web Module又从新勾选上了,只不过版本成为了3.1;可以看出来eclipse的这个wst组件处理逻辑就是从web.xml文件中读取定义的web-app版本(因为Dynamic Web Module是web的模板,所以读web.xml);然后设置对应的版本号,当发现自身最高版本是3.1(我用的是Neon.1a Release (4.6.1),貌似最高就是3.1)于是设置为了最高版本。
之前报错的原因就是因为需要2.5以上版本的Dynamic Web Module(推测是因为maven的web模板要求的);但是因为web.xml里面的DTD限制了web app的版本,即限制了Dynamic Web Module的版本;于是爆了那个错误;提高了web.xml的版本之后,在取消勾选就是让wst组件自己再去重置一下该版本。
参考
- 从解决一个java.lang.NoSuchMethodError想到的
今天在发布系统部署一个web app的时候,发现应用服务器(tomcat 7.0.26)不能正常启动,于是远程登陆到服务器上查看应用服务器的启动日志,在tomcat_home的logs/localho ...
- 在Eclipse中,如何把一个java项目变成web项目
经常在eclipse中导入web项目时,出现转不了项目类型的问题,导入后就是一个java项目.解决步骤:1.进入项目目录,可看到.project文件,打开.2.找到<natures>... ...
- 一个Java程序员的实习总结(2)
在今天的总结里,主要讲述第二.三周这半个月的培训情况,并且穿插讲讲我对实习和见习的看法,有需要有兴趣的童鞋可以看看. 半个月的见习 其实我更愿意把实习和见习分开讲,实习指的是还没签三方或者直接就是大三 ...
- webmagic的设计机制及原理-如何开发一个Java爬虫
之前就有网友在博客里留言,觉得webmagic的实现比较有意思,想要借此研究一下爬虫.最近终于集中精力,花了三天时间,终于写完了这篇文章.之前垂直爬虫写了一年多,webmagic框架写了一个多月,这方 ...
- 自己写一个java.lang.reflect.Proxy代理的实现
前言 Java设计模式9:代理模式一文中,讲到了动态代理,动态代理里面用到了一个类就是java.lang.reflect.Proxy,这个类是根据代理内容为传入的接口生成代理用的.本文就自己写一个Pr ...
- 一个java高级工程师的进阶之路
宏观方面 一. JAVA.要想成为JAVA(高级)工程师肯定要学习JAVA.一般的程序员或许只需知道一些JAVA的语法结构就可以应付了.但要成为JAVA(高级) 工程师,您要对JAVA做比较深入的研究 ...
- 【JMeter】JMeter完成一个java请求的压测
先定义一下我说的remoteService:即远程调用服务,没有http的url.不对外提供或者对外提供有限的服务.具体视各公司的代码架构所定,比如有些公司为web工程,scf服务,db.scf即为服 ...
- 一个Java程序的执行过程(转)
我们手工执行java程序是这样的: 1.在记事本中或者是UE的文本编辑器中,写好源程序: 2.使用javac命令把源程序编译成.class文件: 编译后的.class(类字节码)文件中会包含 ...
- Atitit.dwr3 不能显示错误具体信息的解决方式,控件显示错误具体信息的解决方式 java .net php
Atitit.dwr3 不能显示错误具体信息的解决方式,控件显示错误具体信息的解决方式 java .net php 1. Keyword/subtitle 1 2. 使用dwr3的异常convert处 ...
随机推荐
- IIS应用程序池自动停止,报503错误解决方法
前两天遇见一个问题,部署网站之后,浏览时总是报503,找了半天才发现是用户权限问题,现在记录一下,方便以后遇到的大伙快速解决问题,以至于不会浪费太多时间 解决方法: 应 用程序-特定 权限设置未将 C ...
- Vue学习笔记之Vue的使用
0x00 安装 对于新手来说,强烈建议大家使用<script>引入 0x01 引入vue.js文件 我们能发现,引入vue.js文件之后,Vue被注册为一个全局的变量,它是一个构造函数. ...
- JavaWeb实现分页的四种方法
一.借助数组进行分页 原理:进行数据库查询操作时,获取到数据库中所有满足条件的记录,保存在应用的临时数组中,再通过List的subList方法,获取到满足条件的所有记录. 实现: 首先在dao层,创建 ...
- linux及安全第七周总结——20135227黄晓妍
实验部分 首先clone最新的menu 我们可以看到,test.c里多了一个exec的功能,它的代码和fork基本一致,多了一项加载hello rootfs也有一些变化 执行一下exec 让我们启动一 ...
- HBase参数优化
zookeeper.session.timeout默认值:3分钟(180000ms)说明:RegionServer与Zookeeper间的连接超时时间.当超时时间到后,ReigonServer会被Zo ...
- 可替换参数在SharePoint和VS中的使用
什么是可替换参数呢?你可能会在代码里看到像$SharePoint.Project.AssemblyFullName$一样的标记.VS会在编译的时候用完整的签名来替换相应参数.例如,标记 $ShareP ...
- API设计原则(觉得太合适,转发做记录)
API设计原则 对于云计算系统,系统API实际上处于系统设计的统领地位,正如本文前面所说,K8s集群系统每支持一项新功能,引入一项新技术,一定会新引入对应的API对象,支持对该功能的管理操作,理解掌握 ...
- VS2012 QT程序打包部署详解
1.设置安装程序集 InstallShield安装完成后,执行以下步骤右键解决方案-->添加-->新建项目-->其他项目类型-->安装和部署,具体操作如下图: 2.发布程序 在 ...
- 农历03__ZC
代码,改自 农历01(http://www.cnblogs.com/cppskill/p/5930558.html) 1.main.cpp #include "Lunar_ZC.h" ...
- css3 抖动
1. html <div id="wrapper"> <section> <p class="shake freez shake-hard& ...