4 Replies Latest reply on Jan 2, 2015 8:17 AM by Scott Carpenter

    Wildfly 8.2.0.Final - with RichFaces get blocking request failed

    Andres Guzman Newbie

      Until version of Wildfly 8.1 everything worked perfectly.

       

      But now I've migrated to Wildfly 8.2.0.Final, the problem is that in the Java EE7 projects (with RichFaces 4.3.7.Final and Weld CDI) I get the following error:

       

      16:31:47,136 ERROR [io.undertow.request] (default task-3) UT005023: Exception handling request to /javaee7_ejemplo_holamundo/home.jsf: java.lang.IllegalStateException

      at com.sun.faces.context.FacesContextImpl.assertNotReleased(FacesContextImpl.java:705) [jsf-impl-2.2.8-jbossorg-1.jar:]

      at com.sun.faces.context.FacesContextImpl.getAttributes(FacesContextImpl.java:237) [jsf-impl-2.2.8-jbossorg-1.jar:]

      at org.richfaces.context.ExtendedPartialViewContext.setInstance(ExtendedPartialViewContext.java:55) [richfaces-core-api-4.3.6.Final.jar:4.3.6.Final]

      at org.richfaces.context.ExtendedPartialViewContext.release(ExtendedPartialViewContext.java:64) [richfaces-core-api-4.3.6.Final.jar:4.3.6.Final]

      at org.richfaces.context.ExtendedPartialViewContextImpl.release(ExtendedPartialViewContextImpl.java:424) [richfaces-core-impl-4.3.6.Final.jar:4.3.6.Final]

      at com.sun.faces.context.FacesContextImpl.release(FacesContextImpl.java:591) [jsf-impl-2.2.8-jbossorg-1.jar:]

      at javax.faces.webapp.FacesServlet.service(FacesServlet.java:665) [jboss-jsf-api_2.2_spec-2.2.8.jar:2.2.8]

      at io.undertow.servlet.handlers.ServletHandler.handleRequest(ServletHandler.java:85) [undertow-servlet-1.1.0.Final.jar:1.1.0.Final]

      etc....

       

      I'm assuming that the problem is with RichFaces, because if I remove the RichFaces dependence of the pom.xml works well.

       

      The pom.xml is:

       

      <?xml version="1.0" encoding="UTF-8"?>

      <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">

          <modelVersion>4.0.0</modelVersion>

          <groupId>com.formacionbdi.weld.ejemplos.testjavaee7</groupId>

          <artifactId>test_project_javaee7</artifactId>

          <packaging>war</packaging>

          <name>Probar instalación y pasar datos a la vista</name>

          <version>1.0.0-SNAPSHOT</version>

          <properties>

              <!-- Explicitly declaring the source encoding eliminates the following message: -->

              <!-- [WARNING] Using platform encoding (UTF-8 actually) to copy filtered

                  resources, i.e. build is platform dependent! -->

              <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>

       

              <!-- Define the version of the JBoss BOMs we want to import to specify tested stacks. -->

              <version.jboss.bom>8.0.0.Final</version.jboss.bom>

              <org.richfaces.bom.version>4.3.7.Final</org.richfaces.bom.version>

          </properties>

          <repositories>

              <!-- Several key Java EE APIs and RIs are missing from the Maven Central

                  Repository -->

              <!-- The goal is to eventually eliminate the reliance on the JBoss repository -->

              <repository>

                  <id>repository.jboss.org</id>

                  <name>JBoss Repository</name>

                  <url>https://repository.jboss.org/nexus/content/groups/public-jboss/</url>

              </repository>

          </repositories>

          <dependencyManagement>

              <dependencies>

                  <dependency>

                      <groupId>org.richfaces</groupId>

                      <artifactId>richfaces-bom</artifactId>

                      <version>${org.richfaces.bom.version}</version>

                      <scope>import</scope>

                      <type>pom</type>

                  </dependency>

                  <!-- Import scope will provide versions for dependencies below. -->

                  <dependency>

                      <groupId>org.wildfly.bom</groupId>

                      <artifactId>jboss-javaee-7.0-with-hibernate</artifactId>

                      <version>${version.jboss.bom}</version>

                      <type>pom</type>

                      <scope>import</scope>

                  </dependency>

              </dependencies>

          </dependencyManagement>

          <dependencies>

              <dependency>

                  <groupId>org.richfaces.ui</groupId>

                  <artifactId>richfaces-components-ui</artifactId>

              </dependency>

              <dependency>

                  <groupId>org.richfaces.core</groupId>

                  <artifactId>richfaces-core-impl</artifactId>

              </dependency>

              <!-- CDI (JSR-299) -->

              <dependency>

                  <groupId>javax.enterprise</groupId>

                  <artifactId>cdi-api</artifactId>

                  <scope>provided</scope>

              </dependency>

              <!-- EJB -->

              <dependency>

                  <groupId>org.jboss.spec.javax.ejb</groupId>

                  <artifactId>jboss-ejb-api_3.2_spec</artifactId>

                  <scope>provided</scope>

              </dependency>

              <!-- Common annotations (e.g., @PostConstruct, @PreDestroy, @Generated,

                  @Resource) -->

              <dependency>

                  <groupId>org.jboss.spec.javax.annotation</groupId>

                  <artifactId>jboss-annotations-api_1.2_spec</artifactId>

                  <scope>provided</scope>

              </dependency>

              <!-- JSF -->

              <dependency>

                  <groupId>org.jboss.spec.javax.faces</groupId>

                  <artifactId>jboss-jsf-api_2.1_spec</artifactId>

                  <scope>provided</scope>

              </dependency>

      ETC...

       

      There any way to make it work on Wildfly 8.2 with maven and RichFaces?

       

      any help?

       

      Sorry for my english.

      thanks!