将mojarra 2.2.8升级到2.2.14后找不到托管Bean

时间:2016-12-29 09:38:47

标签: jsf-2.2 embedded-jetty mojarra

我使用jetty-webapp 9.4.0.v2016120,我尝试将jsf实现(mojarra)从2.2.8升级到2.2.14

升级后找不到我的Managed Bean。我注意到ConfigManager类中的AnnotationScaner为空

  AnnotationScanner annotationScanner = this.metadataGetter.getAnnotationScanner();

现在有人如何修复它?

提前致谢

以下是我的pom依赖项:

  <dependency>
      <groupId>org.primefaces</groupId>
      <artifactId>primefaces</artifactId>
      <version>6.0</version>
    </dependency>

<!-- https://mvnrepository.com/artifact/org.eclipse.jetty/jetty-webapp -->
<dependency>
  <groupId>org.eclipse.jetty</groupId>
  <artifactId>jetty-webapp</artifactId>
  <version>9.4.0.v20161208</version>
</dependency>

<!-- https://mvnrepository.com/artifact/org.eclipse.jetty/jetty-util -->
<dependency>
  <groupId>org.eclipse.jetty</groupId>
  <artifactId>jetty-util</artifactId>
  <version>9.4.0.v20161208</version>
</dependency>

<!-- https://mvnrepository.com/artifact/com.sun.faces/jsf-api -->
<dependency>
  <groupId>com.sun.faces</groupId>
  <artifactId>jsf-api</artifactId>
  <version>2.2.14</version>
</dependency>

<!-- https://mvnrepository.com/artifact/com.sun.faces/jsf-impl -->
<dependency>
  <groupId>com.sun.faces</groupId>
  <artifactId>jsf-impl</artifactId>
  <version>2.2.14</version>
</dependency>

<!-- https://mvnrepository.com/artifact/javax.el/javax.el-api -->
<dependency>
  <groupId>javax.el</groupId>
  <artifactId>javax.el-api</artifactId>
  <version>3.0.1-b04</version>
</dependency>


<!-- https://mvnrepository.com/artifact/org.glassfish.web/el-impl -->
<dependency>
  <groupId>org.glassfish.web</groupId>
  <artifactId>el-impl</artifactId>
  <version>2.2.1-b05</version>
</dependency>

0 个答案:

没有答案