maven-jetty导致jsf注解不可用问题Target Unreachable, identifier 'dataBean' resolved to null

来源:互联网 发布:win7不能启用网络发现 编辑:程序博客网 时间:2024/06/07 10:02

如下在pom文件中配置jetty插件

<plugin>
<groupId>org.mortbay.jetty</groupId>
<artifactId>maven-jetty-plugin</artifactId>
<!-- <version>6.1.10</version> -->
<configuration>
<scanIntervalSeconds>10</scanIntervalSeconds>
<stopKey>foo</stopKey>
<stopPort>9999</stopPort>
</configuration>
<executions>
<execution>
<id>start-jetty</id>
<phase>pre-integration-test</phase>
<goals>
<goal>run</goal>
</goals>
<configuration>
<scanIntervalSeconds>0</scanIntervalSeconds>
<daemon>true</daemon>
</configuration>
</execution>
<execution>
<id>stop-jetty</id>
<phase>post-integration-test</phase>
<goals>
<goal>stop</goal>
</goals>
</execution>
</executions>
</plugin>

当我使用  jetty:run

如下的jsf配置


总会报异常


但是如果是在tomcat下则能够正常运行,对此值得注意的是jsf2.0才支持注解方式。

原创粉丝点击