您的位置:首页 > Web前端 > JavaScript

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

2013-11-17 19:54 429 查看
如下在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才支持注解方式。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐