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才支持注解方式。
<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才支持注解方式。
相关文章推荐
- action="#{languageFrom.showChoice}": Target Unreachable, identifier 'languageFrom' resolved to null
- JSF2.0+SPRING target unreachable identifier resolved to null
- Target Unreachable, identifier '' resolved to null
- ADF JSF报错 Target Unreachable, 'null' returned null
- 关于导入Android程序提示:Unable to resolve target 'android-10'的问题
- android工程常见问题处理之Unable to resolve target 'android-xx'
- Android Eclipse 加载外部工程后错误提示 Unable to resolve target 'android-3'的问题解决
- linux内核编译中的各种问题:No rule to make target `menuconfig'&&Unable to find the Ncurses libraries
- 解决Unable to resolve target 'android-17'问题
- android5.0编译问题:No rule to make target 'external/chromium_org/third_party/angle/.git/index',
- jsf配置问题 Error performing conversion of value ' of type class java.lang.String to type class
- 报 Unable to resolve target 'android-19' 问题
- android中Unable to resolve target 'android-15'问题
- 学习Java路上遇到的问题——can't resolved to a type
- OracleADF报javax.el.PropertyNotFoundException: Target Unreachable, 'ManagedBean' returned null 异常
- Android5.0编译问题:No rule to make target 'external/chromium_org/third_party/angle/.git/index',
- make: *** No rule to make target `all'. Stop.的问题 解决办法!
- android中遇到java.lang.NumberFormatException: unable to parse 'null' as integer此类问题的原因及解决方法
- 解决SDK更新后项目工程Unable to resolve target 'android-**'问题