3 Replies Latest reply on Jul 12, 2016 12:40 AM by valeriasilva

    From Glassfish to Jboss EAP 6.1 with Netbeans and JSF 2.2 application

    valeriasilva

      Hello everyone!! I`ve had a problem to migrate from Glassfish 4 to Jboss EAP 6.1.

      I have an JSF (2.2) application and have used the Glassfish server. However, now I have to change the application server to Jboss.

      I`ve found many tutorials about migrating from glassfish to Jboss, but the authors refer to the Jboss AS, instead Jboss EAP.

      I really have to use the Jboss EAP in order to avoid inconsistencies problems regarding to the company's production environment.

       

      I want to use the Jboss EAP 6.1 even in the development environment, of which I use the Netbeans IDE. That is, I have to integrate Jboss EAP with Netbeans.

       

      So, I apologize for my English and ask the help from everybody !!!

       

      If you can tell me a little bit about the changes I'll have to do after the migrating (regarding Jboss and JSF 2.2, Hibernate, etc), It will be great!!!

       

      Thanks!!

        • 1. Re: From Glassfish to Jboss EAP 6.1 with Netbeans and JSF 2.2 application
          valeriasilva

          Anyone ?

          • 2. Re: From Glassfish to Jboss EAP 6.1 with Netbeans and JSF 2.2 application
            jaysensharma

            JBoss EAP 6.x is EE6 certified. It supported JSF 2.1, As EE6 requires support for JSF 2.1

             

            However EE7 requires support for JSF 2.2, Hence it is currently not supported with EAP 6.x

             

            If you really want to use JSF 2.2 then WildFly 8 or Above (current WildFly release is 10) will be best suited for you. As WildFly 8 is officially Java EE7 certified.

            • 3. Re: From Glassfish to Jboss EAP 6.1 with Netbeans and JSF 2.2 application
              valeriasilva

              Hi folks ..

              I have faced some problems about that migration ..

              I decided migrating to Wildfly 8 instead of Jboss EAP 6.1.

              But I am facing this error:

               

              01:34:21,848 ERROR [io.undertow.request] (default task-2) UT005023: Exception handling request to /ppgnet/login.xhtml: java.lang.NullPointerException

                  at org.hibernate.engine.transaction.internal.jta.JtaStatusHelper.getStatus(JtaStatusHelper.java:76) [hibernate-core-4.3.7.Final.jar:4.3.7.Final]

                  at org.hibernate.engine.transaction.internal.jta.JtaStatusHelper.isActive(JtaStatusHelper.java:118) [hibernate-core-4.3.7.Final.jar:4.3.7.Final]

                  at org.hibernate.engine.transaction.internal.jta.CMTTransaction.join(CMTTransaction.java:149) [hibernate-core-4.3.7.Final.jar:4.3.7.Final]

                  at org.hibernate.jpa.spi.AbstractEntityManagerImpl.joinTransaction(AbstractEntityManagerImpl.java:1602) [hibernate-entitymanager-4.3.7.Final.jar:4.3.7.Final]

                  at org.hibernate.jpa.spi.AbstractEntityManagerImpl.postInit(AbstractEntityManagerImpl.java:210) [hibernate-entitymanager-4.3.7.Final.jar:4.3.7.Final]

                  at org.hibernate.jpa.internal.EntityManagerImpl.<init>(EntityManagerImpl.java:91) [hibernate-entitymanager-4.3.7.Final.jar:4.3.7.Final]

                  at org.hibernate.jpa.internal.EntityManagerFactoryImpl.internalCreateEntityManager(EntityManagerFactoryImpl.java:345) [hibernate-entitymanager-4.3.7.Final.jar:4.3.7.Final]

                  at org.hibernate.jpa.internal.EntityManagerFactoryImpl.createEntityManager(EntityManagerFactoryImpl.java:313) [hibernate-entitymanager-4.3.7.Final.jar:4.3.7.Final]

                  at br.com.sigd.util.JPAFilter.doFilter(JPAFilter.java:45) [classes:]

                  at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:60) [undertow-servlet-1.1.0.Final.jar:1.1.0.Final]

                  at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:132) [undertow-servlet-1.1.0.Final.jar:1.1.0.Final]

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

                  at io.undertow.servlet.handlers.security.ServletSecurityRoleHandler.handleRequest(ServletSecurityRoleHandler.java:61) [undertow-servlet-1.1.0.Final.jar:1.1.0.Final]

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

                  at org.wildfly.extension.undertow.security.SecurityContextAssociationHandler.handleRequest(SecurityContextAssociationHandler.java:78)

                  at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43) [undertow-core-1.1.0.Final.jar:1.1.0.Final]

                  at io.undertow.servlet.handlers.security.SSLInformationAssociationHandler.handleRequest(SSLInformationAssociationHandler.java:131) [undertow-servlet-1.1.0.Final.jar:1.1.0.Final]

                  at io.undertow.servlet.handlers.security.ServletAuthenticationCallHandler.handleRequest(ServletAuthenticationCallHandler.java:56) [undertow-servlet-1.1.0.Final.jar:1.1.0.Final]

                  at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43) [undertow-core-1.1.0.Final.jar:1.1.0.Final]

                  at io.undertow.security.handlers.AbstractConfidentialityHandler.handleRequest(AbstractConfidentialityHandler.java:45) [undertow-core-1.1.0.Final.jar:1.1.0.Final]

                  at io.undertow.servlet.handlers.security.ServletConfidentialityConstraintHandler.handleRequest(ServletConfidentialityConstraintHandler.java:63) [undertow-servlet-1.1.0.Final.jar:1.1.0.Final]

                  at io.undertow.security.handlers.AuthenticationMechanismsHandler.handleRequest(AuthenticationMechanismsHandler.java:58) [undertow-core-1.1.0.Final.jar:1.1.0.Final]

                  at io.undertow.servlet.handlers.security.CachedAuthenticatedSessionHandler.handleRequest(CachedAuthenticatedSessionHandler.java:70) [undertow-servlet-1.1.0.Final.jar:1.1.0.Final]

                  at io.undertow.security.handlers.SecurityInitialHandler.handleRequest(SecurityInitialHandler.java:76) [undertow-core-1.1.0.Final.jar:1.1.0.Final]

                  at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43) [undertow-core-1.1.0.Final.jar:1.1.0.Final]

                  at org.wildfly.extension.undertow.security.jacc.JACCContextIdHandler.handleRequest(JACCContextIdHandler.java:61)

                  at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43) [undertow-core-1.1.0.Final.jar:1.1.0.Final]

                  at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43) [undertow-core-1.1.0.Final.jar:1.1.0.Final]

                  at io.undertow.servlet.handlers.ServletInitialHandler.handleFirstRequest(ServletInitialHandler.java:261) [undertow-servlet-1.1.0.Final.jar:1.1.0.Final]

                  at io.undertow.servlet.handlers.ServletInitialHandler.dispatchRequest(ServletInitialHandler.java:247) [undertow-servlet-1.1.0.Final.jar:1.1.0.Final]

                  at io.undertow.servlet.handlers.ServletInitialHandler.access$000(ServletInitialHandler.java:76) [undertow-servlet-1.1.0.Final.jar:1.1.0.Final]

                  at io.undertow.servlet.handlers.ServletInitialHandler$1.handleRequest(ServletInitialHandler.java:166) [undertow-servlet-1.1.0.Final.jar:1.1.0.Final]

                  at io.undertow.server.Connectors.executeRootHandler(Connectors.java:197) [undertow-core-1.1.0.Final.jar:1.1.0.Final]

                  at io.undertow.server.HttpServerExchange$1.run(HttpServerExchange.java:759) [undertow-core-1.1.0.Final.jar:1.1.0.Final]

                  at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [rt.jar:1.8.0_60]

                  at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [rt.jar:1.8.0_60]

                  at java.lang.Thread.run(Thread.java:745) [rt.jar:1.8.0_60]

               

              Can someone help me ? Thanks