maven ssm项目报错javaserver faces 2.2 can not been 。。。
2017-09-10 19:16
351 查看
这种情况基本是自己更改了service的版本,但是又没有更改完全:
1、首先wex.xml头部更改如下:
3、项目内执行快捷键:alt+f5 (或者,右键项目->Maven->Update Project)
如果还不行再执行以下方法中的一种:
方法1:可以在pom.xml 的project标签内添加一下内容,然后alt+f5 更新项目即可。
方法2:或者在build标签内添加一下内容,然后alt+f5 更新项目即可。
1、首先wex.xml头部更改如下:
<?xml version="1.0" encoding="UTF-8"?> <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd" version="3.0"> <display-name>SSMDemo</display-name> </web-app>2、然后,关闭Eclipse,改项目下的.settings\org.eclipse.wst.common.project.facet.core.xml,将 <installed facet="jst.web" version="3.0"/>部分版本改成为3.0保存 ,再启动Eclipse.
3、项目内执行快捷键:alt+f5 (或者,右键项目->Maven->Update Project)
如果还不行再执行以下方法中的一种:
方法1:可以在pom.xml 的project标签内添加一下内容,然后alt+f5 更新项目即可。
<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>
方法2:或者在build标签内添加一下内容,然后alt+f5 更新项目即可。
<plugins> <plugin> <artifactId>maven-compiler-plugin</artifactId> <version>2.0.2</version> <configuration> <source>1.6</source> <target>1.6</target> </configuration> </plugin> </plugins>
相关文章推荐
- 解决maven3.5.0项目报错“JavaServer Faces 2.2 can not be installed : One or more constraints”问题
- 项目报错“JavaServer Faces 2.2 can not be installed : One or more constraints”等一系列问题
- 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”等一系列问题
- 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.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.0 can not be installed解决方案
- JavaServer Faces 2.0 can not be installed解决方案
- 解决Maven项目发布报错:Publishing failed Could not publish to the server. java.lang.IndexOutOfBoundsException
- eclipse启动项目报错:java.lang.ClassNotFoundException: ContextLoaderListener
- 【项目启动】 tomcat启动,项目无法启动,无法正常访问/项目可以启动,报错:java.lang.ClassNotFoundException: ContextLoaderListener
- JavaServer Faces 2.2 requires Dynamic Web Module 2.5 or newer
- 【maven 报错】maven项目update之后报错One or more constraints have not been satisfied.
- java 项目导入时出现错误:can not find class for file Java.lang .Object