12 Replies Latest reply on Apr 25, 2014 1:25 AM by Brian Leathem

    richfaces 4.3.4 with glassfish 4

    Joao Granado Newbie

      I have noticed that the pop-up feature of autocomplete component does not work with glassfish 4. Am I missing something in the usage of richface 4.3.4.

      Thank you for your answers.

        • 1. Re: richfaces 4.3.4 with glassfish 4
          Brian Leathem Master

          It should work.  Any errors in the browser console or server log?

           

          Do you have a code sample? 

          • 2. Re: richfaces 4.3.4 with glassfish 4
            Joao Granado Newbie

            Brian, thank you for your concern. I used this sample with success with glassfish 3.1.2.2 :

             

            // xhtml code //

             

            <h:form>
                Autocomplete: <br/>
                <rich:autocomplete
                                               value="#{richAutocomplete.user}"
                                               minChars="1"
                                               autocompleteList="#{richAutocomplete.listUsers()}"
                                               var="_user"
                                               layout="div">
                        <i>{#_user.id}</i>
                </rich:autocomplete>
            </h:form>
            

             

            // stateful session bean

             

            .....
            public List listUsers() {
                System.out.println("listUsers()");
                users = new ArrayList<>();
                users.add(new User(1, "joao"));
                users.add(new User(2, "josé"));
                return users;
            }
            .....
            
            • 3. Re: richfaces 4.3.4 with glassfish 4
              Brian Leathem Master

              That's not a lot to go on.  Maybe you are seeing https://issues.jboss.org/browse/RF-11469 but it's hard to say.

               

              What about the browser console / server log?

               

              See this wrtieup on how to debug RichFaces applications:

              https://gist.github.com/lfryc/6123495

              1 of 1 people found this helpful
              • 4. Re: richfaces 4.3.4 with glassfish 4
                Joao Granado Newbie

                Hello Brian,

                in the server log just appears each time I type a letter: 'INFO:   listUsers()'.

                In the firefox browser console just appears each time I type a letter: '[23:28:46.737] POST http://localhost:8080/WebApplication4/faces/index.xhtml [HTTP/1.1 200 OK 26ms]'

                 

                I will follow your link on debugging Richfaces applications.

                 

                Thanks

                • 5. Re: richfaces 4.3.4 with glassfish 4
                  Joao Granado Newbie

                  Brian, after following the tips of the link you gave to me the results in the browser log are the following each time I type a letter:

                   

                  [23:43:10.988] "RichFaces: New request added to queue. Queue requestGroupingId changed to j_idt10:j_idt12"

                  [23:43:10.988] "RichFaces: Queue will wait 0ms before submit"

                  [23:43:10.989] "RichFaces: richfaces.queue: will submit request NOW"

                  [23:43:10.991] "RichFaces: Received 'begin' event from <span id=j_idt10:j_idt12 class="rf-au" ...>"

                  [23:43:11.030] "RichFaces: Received 'beforedomupdate' event from <span id=j_idt10:j_idt12 class="rf-au" ...>"

                  [23:43:11.031] "RichFaces: [object Object]"

                  [23:43:11.034] "RichFaces: [object Object]"

                  [23:43:11.037] "RichFaces: richfaces.queue: ajax submit error: During update: javax.faces.ViewState not found"

                  [23:43:11.037] "RichFaces: richfaces.queue: Nothing to submit"

                  [23:43:11.038] "RichFaces: Received 'error@malformedXML' event from <span id=j_idt10:j_idt12 class="rf-au" ...>"

                  [23:43:11.038] "RichFaces: [status=200]  During update: javax.faces.ViewState not found"

                  [23:43:11.038] "RichFaces: Received 'complete' event from <span id=j_idt10:j_idt12 class="rf-au" ...>"

                  • 6. Re: richfaces 4.3.4 with glassfish 4
                    Brian Leathem Master

                    Is Glassfish 4 using JSF 2.2?  Due to other priorities, we haven't yet worked out all the RichFaces / JSF 2.2 issues.  We expect to do so in the next release cycle of RichFaces 4/5.

                     

                    Please file an issue in our jira.

                    • 7. Re: richfaces 4.3.4 with glassfish 4
                      Joao Granado Newbie

                      Thank you Brian. Yes Glassfish 4 is using JSF 2.2.

                      • 8. Re: richfaces 4.3.4 with glassfish 4
                        Brian Leathem Master

                        Please file a jira issue.  We'll try and address all JSF 2.2 compatibility issues for RichFaces 4.3.5 (expected end-of-January).

                        • 9. Re: richfaces 4.3.4 with glassfish 4
                          Edilmar Alves Expert

                          Hi Brian and Joao,

                           

                          I am trying to use my webapp, that works fine with GF3.x, now with GF4 + RF4.3.5.

                          And I am having the same problem that autocomplete doesn't work.

                          The autocompleteMethod method is called but nothing is displayed in the browser.

                          I use Firefox 28 and Chrome 34.

                          • 10. Re: richfaces 4.3.4 with glassfish 4
                            Jose Alvarez de Lara Novice

                            Hi,

                             

                            I am not sure if this is the right thread to post my issue but let me tell you.

                             

                            I am trying GF4 + RF4.3.5.Final to deploy the richfaces-photoalbum example

                            and always get the following exception on deployment.

                             

                            Here is what I get,

                             

                            Advertencia:   Exception while dispatching an event

                            java.lang.NullPointerException

                                at org.hibernate.engine.transaction.internal.jta.JtaStatusHelper.getStatus(JtaStatusHelper.java:76)

                                at org.hibernate.engine.transaction.internal.jta.JtaStatusHelper.isActive(JtaStatusHelper.java:118)

                                at org.hibernate.engine.transaction.internal.jta.CMTTransaction.join(CMTTransaction.java:149)

                                at org.hibernate.jpa.spi.AbstractEntityManagerImpl.joinTransaction(AbstractEntityManagerImpl.java:1602)

                                at org.hibernate.jpa.spi.AbstractEntityManagerImpl.postInit(AbstractEntityManagerImpl.java:210)

                                at org.hibernate.jpa.internal.EntityManagerImpl.<init>(EntityManagerImpl.java:91)

                                at org.hibernate.jpa.internal.EntityManagerFactoryImpl.internalCreateEntityManager(EntityManagerFactoryImpl.java:345)

                                at org.hibernate.jpa.internal.EntityManagerFactoryImpl.createEntityManager(EntityManagerFactoryImpl.java:313)

                                at org.glassfish.persistence.jpa.JPADeployer$2.visitPUD(JPADeployer.java:451)

                                at org.glassfish.persistence.jpa.JPADeployer$PersistenceUnitDescriptorIterator.iteratePUDs(JPADeployer.java:510)

                                at org.glassfish.persistence.jpa.JPADeployer.iterateInitializedPUsAtApplicationPrepare(JPADeployer.java:492)

                                at org.glassfish.persistence.jpa.JPADeployer.event(JPADeployer.java:398)

                                at org.glassfish.kernel.event.EventsImpl.send(EventsImpl.java:131)

                                at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:484)

                                at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:219)

                                at org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:491)

                                at com.sun.enterprise.v3.admin.CommandRunnerImpl$2$1.run(CommandRunnerImpl.java:527)

                                at com.sun.enterprise.v3.admin.CommandRunnerImpl$2$1.run(CommandRunnerImpl.java:523)

                                at java.security.AccessController.doPrivileged(Native Method)

                                at javax.security.auth.Subject.doAs(Subject.java:356)

                                at com.sun.enterprise.v3.admin.CommandRunnerImpl$2.execute(CommandRunnerImpl.java:522)

                                at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:546)

                                at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1423)

                                at com.sun.enterprise.v3.admin.CommandRunnerImpl.access$1500(CommandRunnerImpl.java:108)

                                at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1762)

                                at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1674)

                                at com.sun.enterprise.v3.admin.AdminAdapter.doCommand(AdminAdapter.java:534)

                                at com.sun.enterprise.v3.admin.AdminAdapter.onMissingResource(AdminAdapter.java:224)

                                at org.glassfish.grizzly.http.server.StaticHttpHandler.service(StaticHttpHandler.java:297)

                                at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:246)

                                at org.glassfish.grizzly.http.server.HttpHandler.runService(HttpHandler.java:191)

                                at org.glassfish.grizzly.http.server.HttpHandler.doHandle(HttpHandler.java:168)

                                at org.glassfish.grizzly.http.server.HttpServerFilter.handleRead(HttpServerFilter.java:189)

                                at org.glassfish.grizzly.filterchain.ExecutorResolver$9.execute(ExecutorResolver.java:119)

                                at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter(DefaultFilterChain.java:288)

                                at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(DefaultFilterChain.java:206)

                                at org.glassfish.grizzly.filterchain.DefaultFilterChain.execute(DefaultFilterChain.java:136)

                                at org.glassfish.grizzly.filterchain.DefaultFilterChain.process(DefaultFilterChain.java:114)

                                at org.glassfish.grizzly.ProcessorExecutor.execute(ProcessorExecutor.java:77)

                                at org.glassfish.grizzly.nio.transport.TCPNIOTransport.fireIOEvent(TCPNIOTransport.java:838)

                                at org.glassfish.grizzly.strategies.AbstractIOStrategy.fireIOEvent(AbstractIOStrategy.java:113)

                                at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.run0(WorkerThreadIOStrategy.java:115)

                                at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.access$100(WorkerThreadIOStrategy.java:55)

                                at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy$WorkerThreadRunnable.run(WorkerThreadIOStrategy.java:135)

                                at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:564)

                                at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.run(AbstractThreadPool.java:544)

                                at java.lang.Thread.run(Thread.java:744)

                             

                            and later the issue ends with the following exception,

                             

                            Grave:   Exception during lifecycle processing

                            org.glassfish.deployment.common.DeploymentException: CDI definition failure:Exception List with 1 exceptions:

                            Exception 0 :

                            org.jboss.weld.exceptions.IllegalStateException: WELD-001332 BeanManager method getBeans() is not available during application initialization

                                at org.jboss.weld.bean.builtin.BeanManagerProxy.checkContainerValidated(BeanManagerProxy.java:142)

                                at org.jboss.weld.bean.builtin.BeanManagerProxy.getBeans(BeanManagerProxy.java:80)

                                at org.jboss.solder.core.CoreExtension.failIfWeldExtensionsDetected(CoreExtension.java:215)

                                at org.jboss.solder.core.CoreExtension.afterBeanDiscovery(CoreExtension.java:208)

                                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

                                at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

                                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

                                at java.lang.reflect.Method.invoke(Method.java:606)

                                at org.jboss.weld.injection.MethodInjectionPoint.invokeOnInstanceWithSpecialValue(MethodInjectionPoint.java:93)

                                at org.jboss.weld.event.ObserverMethodImpl.sendEvent(ObserverMethodImpl.java:274)

                                at org.jboss.weld.event.ExtensionObserverMethodImpl.sendEvent(ExtensionObserverMethodImpl.java:121)

                                at org.jboss.weld.event.ObserverMethodImpl.sendEvent(ObserverMethodImpl.java:261)

                                at org.jboss.weld.event.ObserverMethodImpl.notify(ObserverMethodImpl.java:240)

                                at org.jboss.weld.event.ObserverNotifier.notifyObserver(ObserverNotifier.java:170)

                                at org.jboss.weld.event.ObserverNotifier.notifyObservers(ObserverNotifier.java:129)

                                at org.jboss.weld.event.ObserverNotifier.fireEvent(ObserverNotifier.java:103)

                                at org.jboss.weld.bootstrap.events.AbstractContainerEvent.fire(AbstractContainerEvent.java:63)

                                at org.jboss.weld.bootstrap.events.AbstractDefinitionContainerEvent.fire(AbstractDefinitionContainerEvent.java:35)

                                at org.jboss.weld.bootstrap.events.AfterBeanDiscoveryImpl.fire(AfterBeanDiscoveryImpl.java:53)

                                at org.jboss.weld.bootstrap.WeldBootstrap.deployBeans(WeldBootstrap.java:515)

                                at org.glassfish.weld.WeldDeployer.event(WeldDeployer.java:213)

                                at org.glassfish.kernel.event.EventsImpl.send(EventsImpl.java:131)

                                at org.glassfish.internal.data.ApplicationInfo.load(ApplicationInfo.java:328)

                                at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:493)

                                at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:219)

                                at org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:491)

                                at com.sun.enterprise.v3.admin.CommandRunnerImpl$2$1.run(CommandRunnerImpl.java:527)

                                at com.sun.enterprise.v3.admin.CommandRunnerImpl$2$1.run(CommandRunnerImpl.java:523)

                                at java.security.AccessController.doPrivileged(Native Method)

                                at javax.security.auth.Subject.doAs(Subject.java:356)

                                at com.sun.enterprise.v3.admin.CommandRunnerImpl$2.execute(CommandRunnerImpl.java:522)

                                at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:546)

                                at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1423)

                                at com.sun.enterprise.v3.admin.CommandRunnerImpl.access$1500(CommandRunnerImpl.java:108)

                                at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1762)

                                at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1674)

                                at com.sun.enterprise.v3.admin.AdminAdapter.doCommand(AdminAdapter.java:534)

                                at com.sun.enterprise.v3.admin.AdminAdapter.onMissingResource(AdminAdapter.java:224)

                                at org.glassfish.grizzly.http.server.StaticHttpHandler.service(StaticHttpHandler.java:297)

                                at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:246)

                                at org.glassfish.grizzly.http.server.HttpHandler.runService(HttpHandler.java:191)

                                at org.glassfish.grizzly.http.server.HttpHandler.doHandle(HttpHandler.java:168)

                                at org.glassfish.grizzly.http.server.HttpServerFilter.handleRead(HttpServerFilter.java:189)

                                at org.glassfish.grizzly.filterchain.ExecutorResolver$9.execute(ExecutorResolver.java:119)

                                at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter(DefaultFilterChain.java:288)

                                at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(DefaultFilterChain.java:206)

                                at org.glassfish.grizzly.filterchain.DefaultFilterChain.execute(DefaultFilterChain.java:136)

                                at org.glassfish.grizzly.filterchain.DefaultFilterChain.process(DefaultFilterChain.java:114)

                                at org.glassfish.grizzly.ProcessorExecutor.execute(ProcessorExecutor.java:77)

                                at org.glassfish.grizzly.nio.transport.TCPNIOTransport.fireIOEvent(TCPNIOTransport.java:838)

                                at org.glassfish.grizzly.strategies.AbstractIOStrategy.fireIOEvent(AbstractIOStrategy.java:113)

                                at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.run0(WorkerThreadIOStrategy.java:115)

                                at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.access$100(WorkerThreadIOStrategy.java:55)

                                at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy$WorkerThreadRunnable.run(WorkerThreadIOStrategy.java:135)

                                at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:564)

                                at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.run(AbstractThreadPool.java:544)

                                at java.lang.Thread.run(Thread.java:744)

                                at org.glassfish.weld.WeldDeployer.event(WeldDeployer.java:225)

                                at org.glassfish.kernel.event.EventsImpl.send(EventsImpl.java:131)

                                at org.glassfish.internal.data.ApplicationInfo.load(ApplicationInfo.java:328)

                                at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:493)

                                at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:219)

                                at org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:491)

                                at com.sun.enterprise.v3.admin.CommandRunnerImpl$2$1.run(CommandRunnerImpl.java:527)

                                at com.sun.enterprise.v3.admin.CommandRunnerImpl$2$1.run(CommandRunnerImpl.java:523)

                                at java.security.AccessController.doPrivileged(Native Method)

                                at javax.security.auth.Subject.doAs(Subject.java:356)

                                at com.sun.enterprise.v3.admin.CommandRunnerImpl$2.execute(CommandRunnerImpl.java:522)

                                at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:546)

                                at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1423)

                                at com.sun.enterprise.v3.admin.CommandRunnerImpl.access$1500(CommandRunnerImpl.java:108)

                                at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1762)

                                at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1674)

                                at com.sun.enterprise.v3.admin.AdminAdapter.doCommand(AdminAdapter.java:534)

                                at com.sun.enterprise.v3.admin.AdminAdapter.onMissingResource(AdminAdapter.java:224)

                                at org.glassfish.grizzly.http.server.StaticHttpHandler.service(StaticHttpHandler.java:297)

                                at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:246)

                                at org.glassfish.grizzly.http.server.HttpHandler.runService(HttpHandler.java:191)

                                at org.glassfish.grizzly.http.server.HttpHandler.doHandle(HttpHandler.java:168)

                                at org.glassfish.grizzly.http.server.HttpServerFilter.handleRead(HttpServerFilter.java:189)

                                at org.glassfish.grizzly.filterchain.ExecutorResolver$9.execute(ExecutorResolver.java:119)

                                at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter(DefaultFilterChain.java:288)

                                at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(DefaultFilterChain.java:206)

                                at org.glassfish.grizzly.filterchain.DefaultFilterChain.execute(DefaultFilterChain.java:136)

                                at org.glassfish.grizzly.filterchain.DefaultFilterChain.process(DefaultFilterChain.java:114)

                                at org.glassfish.grizzly.ProcessorExecutor.execute(ProcessorExecutor.java:77)

                                at org.glassfish.grizzly.nio.transport.TCPNIOTransport.fireIOEvent(TCPNIOTransport.java:838)

                                at org.glassfish.grizzly.strategies.AbstractIOStrategy.fireIOEvent(AbstractIOStrategy.java:113)

                                at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.run0(WorkerThreadIOStrategy.java:115)

                                at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.access$100(WorkerThreadIOStrategy.java:55)

                                at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy$WorkerThreadRunnable.run(WorkerThreadIOStrategy.java:135)

                                at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:564)

                                at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.run(AbstractThreadPool.java:544)

                                at java.lang.Thread.run(Thread.java:744)

                            Caused by: org.jboss.weld.exceptions.DefinitionException: Exception List with 1 exceptions:

                            Exception 0 :

                            org.jboss.weld.exceptions.IllegalStateException: WELD-001332 BeanManager method getBeans() is not available during application initialization

                                at org.jboss.weld.bean.builtin.BeanManagerProxy.checkContainerValidated(BeanManagerProxy.java:142)

                                at org.jboss.weld.bean.builtin.BeanManagerProxy.getBeans(BeanManagerProxy.java:80)

                                at org.jboss.solder.core.CoreExtension.failIfWeldExtensionsDetected(CoreExtension.java:215)

                                at org.jboss.solder.core.CoreExtension.afterBeanDiscovery(CoreExtension.java:208)

                                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

                                at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

                                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

                                at java.lang.reflect.Method.invoke(Method.java:606)

                                at org.jboss.weld.injection.MethodInjectionPoint.invokeOnInstanceWithSpecialValue(MethodInjectionPoint.java:93)

                                at org.jboss.weld.event.ObserverMethodImpl.sendEvent(ObserverMethodImpl.java:274)

                                at org.jboss.weld.event.ExtensionObserverMethodImpl.sendEvent(ExtensionObserverMethodImpl.java:121)

                                at org.jboss.weld.event.ObserverMethodImpl.sendEvent(ObserverMethodImpl.java:261)

                                at org.jboss.weld.event.ObserverMethodImpl.notify(ObserverMethodImpl.java:240)

                                at org.jboss.weld.event.ObserverNotifier.notifyObserver(ObserverNotifier.java:170)

                                at org.jboss.weld.event.ObserverNotifier.notifyObservers(ObserverNotifier.java:129)

                                at org.jboss.weld.event.ObserverNotifier.fireEvent(ObserverNotifier.java:103)

                                at org.jboss.weld.bootstrap.events.AbstractContainerEvent.fire(AbstractContainerEvent.java:63)

                                at org.jboss.weld.bootstrap.events.AbstractDefinitionContainerEvent.fire(AbstractDefinitionContainerEvent.java:35)

                                at org.jboss.weld.bootstrap.events.AfterBeanDiscoveryImpl.fire(AfterBeanDiscoveryImpl.java:53)

                                at org.jboss.weld.bootstrap.WeldBootstrap.deployBeans(WeldBootstrap.java:515)

                                at org.glassfish.weld.WeldDeployer.event(WeldDeployer.java:213)

                                at org.glassfish.kernel.event.EventsImpl.send(EventsImpl.java:131)

                                at org.glassfish.internal.data.ApplicationInfo.load(ApplicationInfo.java:328)

                                at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:493)

                                at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:219)

                                at org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:491)

                                at com.sun.enterprise.v3.admin.CommandRunnerImpl$2$1.run(CommandRunnerImpl.java:527)

                                at com.sun.enterprise.v3.admin.CommandRunnerImpl$2$1.run(CommandRunnerImpl.java:523)

                                at java.security.AccessController.doPrivileged(Native Method)

                                at javax.security.auth.Subject.doAs(Subject.java:356)

                                at com.sun.enterprise.v3.admin.CommandRunnerImpl$2.execute(CommandRunnerImpl.java:522)

                                at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:546)

                                at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1423)

                                at com.sun.enterprise.v3.admin.CommandRunnerImpl.access$1500(CommandRunnerImpl.java:108)

                                at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1762)

                                at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1674)

                                at com.sun.enterprise.v3.admin.AdminAdapter.doCommand(AdminAdapter.java:534)

                                at com.sun.enterprise.v3.admin.AdminAdapter.onMissingResource(AdminAdapter.java:224)

                                at org.glassfish.grizzly.http.server.StaticHttpHandler.service(StaticHttpHandler.java:297)

                                at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:246)

                                at org.glassfish.grizzly.http.server.HttpHandler.runService(HttpHandler.java:191)

                                at org.glassfish.grizzly.http.server.HttpHandler.doHandle(HttpHandler.java:168)

                                at org.glassfish.grizzly.http.server.HttpServerFilter.handleRead(HttpServerFilter.java:189)

                                at org.glassfish.grizzly.filterchain.ExecutorResolver$9.execute(ExecutorResolver.java:119)

                                at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter(DefaultFilterChain.java:288)

                                at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(DefaultFilterChain.java:206)

                                at org.glassfish.grizzly.filterchain.DefaultFilterChain.execute(DefaultFilterChain.java:136)

                                at org.glassfish.grizzly.filterchain.DefaultFilterChain.process(DefaultFilterChain.java:114)

                                at org.glassfish.grizzly.ProcessorExecutor.execute(ProcessorExecutor.java:77)

                                at org.glassfish.grizzly.nio.transport.TCPNIOTransport.fireIOEvent(TCPNIOTransport.java:838)

                                at org.glassfish.grizzly.strategies.AbstractIOStrategy.fireIOEvent(AbstractIOStrategy.java:113)

                                at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.run0(WorkerThreadIOStrategy.java:115)

                                at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.access$100(WorkerThreadIOStrategy.java:55)

                                at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy$WorkerThreadRunnable.run(WorkerThreadIOStrategy.java:135)

                                at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:564)

                                at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.run(AbstractThreadPool.java:544)

                                at java.lang.Thread.run(Thread.java:744)

                                at org.jboss.weld.bootstrap.events.AbstractDefinitionContainerEvent.fire(AbstractDefinitionContainerEvent.java:37)

                                at org.jboss.weld.bootstrap.events.AfterBeanDiscoveryImpl.fire(AfterBeanDiscoveryImpl.java:53)

                                at org.jboss.weld.bootstrap.WeldBootstrap.deployBeans(WeldBootstrap.java:515)

                                at org.glassfish.weld.WeldDeployer.event(WeldDeployer.java:213)

                                ... 36 more

                             

                            Grave:   Exception while loading the app

                            Grave:   Undeployment failed for context /richfaces_photoalbum

                            Grave:   Exception while loading the app : CDI definition failure:Exception List with 1 exceptions:

                            Exception 0 :

                            org.jboss.weld.exceptions.IllegalStateException: WELD-001332 BeanManager method getBeans() is not available during application initialization

                                at org.jboss.weld.bean.builtin.BeanManagerProxy.checkContainerValidated(BeanManagerProxy.java:142)

                                at org.jboss.weld.bean.builtin.BeanManagerProxy.getBeans(BeanManagerProxy.java:80)

                                at org.jboss.solder.core.CoreExtension.failIfWeldExtensionsDetected(CoreExtension.java:215)

                                at org.jboss.solder.core.CoreExtension.afterBeanDiscovery(CoreExtension.java:208)

                                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

                                at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

                                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

                                at java.lang.reflect.Method.invoke(Method.java:606)

                                at org.jboss.weld.injection.MethodInjectionPoint.invokeOnInstanceWithSpecialValue(MethodInjectionPoint.java:93)

                                at org.jboss.weld.event.ObserverMethodImpl.sendEvent(ObserverMethodImpl.java:274)

                                at org.jboss.weld.event.ExtensionObserverMethodImpl.sendEvent(ExtensionObserverMethodImpl.java:121)

                                at org.jboss.weld.event.ObserverMethodImpl.sendEvent(ObserverMethodImpl.java:261)

                                at org.jboss.weld.event.ObserverMethodImpl.notify(ObserverMethodImpl.java:240)

                                at org.jboss.weld.event.ObserverNotifier.notifyObserver(ObserverNotifier.java:170)

                                at org.jboss.weld.event.ObserverNotifier.notifyObservers(ObserverNotifier.java:129)

                                at org.jboss.weld.event.ObserverNotifier.fireEvent(ObserverNotifier.java:103)

                                at org.jboss.weld.bootstrap.events.AbstractContainerEvent.fire(AbstractContainerEvent.java:63)

                                at org.jboss.weld.bootstrap.events.AbstractDefinitionContainerEvent.fire(AbstractDefinitionContainerEvent.java:35)

                                at org.jboss.weld.bootstrap.events.AfterBeanDiscoveryImpl.fire(AfterBeanDiscoveryImpl.java:53)

                                at org.jboss.weld.bootstrap.WeldBootstrap.deployBeans(WeldBootstrap.java:515)

                                at org.glassfish.weld.WeldDeployer.event(WeldDeployer.java:213)

                                at org.glassfish.kernel.event.EventsImpl.send(EventsImpl.java:131)

                                at org.glassfish.internal.data.ApplicationInfo.load(ApplicationInfo.java:328)

                                at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:493)

                                at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:219)

                                at org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:491)

                                at com.sun.enterprise.v3.admin.CommandRunnerImpl$2$1.run(CommandRunnerImpl.java:527)

                                at com.sun.enterprise.v3.admin.CommandRunnerImpl$2$1.run(CommandRunnerImpl.java:523)

                                at java.security.AccessController.doPrivileged(Native Method)

                                at javax.security.auth.Subject.doAs(Subject.java:356)

                                at com.sun.enterprise.v3.admin.CommandRunnerImpl$2.execute(CommandRunnerImpl.java:522)

                                at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:546)

                                at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1423)

                                at com.sun.enterprise.v3.admin.CommandRunnerImpl.access$1500(CommandRunnerImpl.java:108)

                                at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1762)

                                at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1674)

                                at com.sun.enterprise.v3.admin.AdminAdapter.doCommand(AdminAdapter.java:534)

                                at com.sun.enterprise.v3.admin.AdminAdapter.onMissingResource(AdminAdapter.java:224)

                                at org.glassfish.grizzly.http.server.StaticHttpHandler.service(StaticHttpHandler.java:297)

                                at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:246)

                                at org.glassfish.grizzly.http.server.HttpHandler.runService(HttpHandler.java:191)

                                at org.glassfish.grizzly.http.server.HttpHandler.doHandle(HttpHandler.java:168)

                                at org.glassfish.grizzly.http.server.HttpServerFilter.handleRead(HttpServerFilter.java:189)

                                at org.glassfish.grizzly.filterchain.ExecutorResolver$9.execute(ExecutorResolver.java:119)

                                at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter(DefaultFilterChain.java:288)

                                at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(DefaultFilterChain.java:206)

                                at org.glassfish.grizzly.filterchain.DefaultFilterChain.execute(DefaultFilterChain.java:136)

                                at org.glassfish.grizzly.filterchain.DefaultFilterChain.process(DefaultFilterChain.java:114)

                                at org.glassfish.grizzly.ProcessorExecutor.execute(ProcessorExecutor.java:77)

                                at org.glassfish.grizzly.nio.transport.TCPNIOTransport.fireIOEvent(TCPNIOTransport.java:838)

                                at org.glassfish.grizzly.strategies.AbstractIOStrategy.fireIOEvent(AbstractIOStrategy.java:113)

                                at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.run0(WorkerThreadIOStrategy.java:115)

                                at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.access$100(WorkerThreadIOStrategy.java:55)

                                at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy$WorkerThreadRunnable.run(WorkerThreadIOStrategy.java:135)

                                at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:564)

                                at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.run(AbstractThreadPool.java:544)

                                at java.lang.Thread.run(Thread.java:744)

                            org.jboss.weld.exceptions.DefinitionException: Exception List with 1 exceptions:

                            Exception 0 :

                            org.jboss.weld.exceptions.IllegalStateException: WELD-001332 BeanManager method getBeans() is not available during application initialization

                                at org.jboss.weld.bean.builtin.BeanManagerProxy.checkContainerValidated(BeanManagerProxy.java:142)

                                at org.jboss.weld.bean.builtin.BeanManagerProxy.getBeans(BeanManagerProxy.java:80)

                                at org.jboss.solder.core.CoreExtension.failIfWeldExtensionsDetected(CoreExtension.java:215)

                                at org.jboss.solder.core.CoreExtension.afterBeanDiscovery(CoreExtension.java:208)

                                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

                                at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

                                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

                                at java.lang.reflect.Method.invoke(Method.java:606)

                                at org.jboss.weld.injection.MethodInjectionPoint.invokeOnInstanceWithSpecialValue(MethodInjectionPoint.java:93)

                                at org.jboss.weld.event.ObserverMethodImpl.sendEvent(ObserverMethodImpl.java:274)

                                at org.jboss.weld.event.ExtensionObserverMethodImpl.sendEvent(ExtensionObserverMethodImpl.java:121)

                                at org.jboss.weld.event.ObserverMethodImpl.sendEvent(ObserverMethodImpl.java:261)

                                at org.jboss.weld.event.ObserverMethodImpl.notify(ObserverMethodImpl.java:240)

                                at org.jboss.weld.event.ObserverNotifier.notifyObserver(ObserverNotifier.java:170)

                                at org.jboss.weld.event.ObserverNotifier.notifyObservers(ObserverNotifier.java:129)

                                at org.jboss.weld.event.ObserverNotifier.fireEvent(ObserverNotifier.java:103)

                                at org.jboss.weld.bootstrap.events.AbstractContainerEvent.fire(AbstractContainerEvent.java:63)

                                at org.jboss.weld.bootstrap.events.AbstractDefinitionContainerEvent.fire(AbstractDefinitionContainerEvent.java:35)

                                at org.jboss.weld.bootstrap.events.AfterBeanDiscoveryImpl.fire(AfterBeanDiscoveryImpl.java:53)

                                at org.jboss.weld.bootstrap.WeldBootstrap.deployBeans(WeldBootstrap.java:515)

                                at org.glassfish.weld.WeldDeployer.event(WeldDeployer.java:213)

                                at org.glassfish.kernel.event.EventsImpl.send(EventsImpl.java:131)

                                at org.glassfish.internal.data.ApplicationInfo.load(ApplicationInfo.java:328)

                                at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:493)

                                at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:219)

                                at org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:491)

                                at com.sun.enterprise.v3.admin.CommandRunnerImpl$2$1.run(CommandRunnerImpl.java:527)

                                at com.sun.enterprise.v3.admin.CommandRunnerImpl$2$1.run(CommandRunnerImpl.java:523)

                                at java.security.AccessController.doPrivileged(Native Method)

                                at javax.security.auth.Subject.doAs(Subject.java:356)

                                at com.sun.enterprise.v3.admin.CommandRunnerImpl$2.execute(CommandRunnerImpl.java:522)

                                at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:546)

                                at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1423)

                                at com.sun.enterprise.v3.admin.CommandRunnerImpl.access$1500(CommandRunnerImpl.java:108)

                                at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1762)

                                at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1674)

                                at com.sun.enterprise.v3.admin.AdminAdapter.doCommand(AdminAdapter.java:534)

                                at com.sun.enterprise.v3.admin.AdminAdapter.onMissingResource(AdminAdapter.java:224)

                                at org.glassfish.grizzly.http.server.StaticHttpHandler.service(StaticHttpHandler.java:297)

                                at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:246)

                                at org.glassfish.grizzly.http.server.HttpHandler.runService(HttpHandler.java:191)

                                at org.glassfish.grizzly.http.server.HttpHandler.doHandle(HttpHandler.java:168)

                                at org.glassfish.grizzly.http.server.HttpServerFilter.handleRead(HttpServerFilter.java:189)

                                at org.glassfish.grizzly.filterchain.ExecutorResolver$9.execute(ExecutorResolver.java:119)

                                at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter(DefaultFilterChain.java:288)

                                at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(DefaultFilterChain.java:206)

                                at org.glassfish.grizzly.filterchain.DefaultFilterChain.execute(DefaultFilterChain.java:136)

                                at org.glassfish.grizzly.filterchain.DefaultFilterChain.process(DefaultFilterChain.java:114)

                                at org.glassfish.grizzly.ProcessorExecutor.execute(ProcessorExecutor.java:77)

                                at org.glassfish.grizzly.nio.transport.TCPNIOTransport.fireIOEvent(TCPNIOTransport.java:838)

                                at org.glassfish.grizzly.strategies.AbstractIOStrategy.fireIOEvent(AbstractIOStrategy.java:113)

                                at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.run0(WorkerThreadIOStrategy.java:115)

                                at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.access$100(WorkerThreadIOStrategy.java:55)

                                at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy$WorkerThreadRunnable.run(WorkerThreadIOStrategy.java:135)

                                at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:564)

                                at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.run(AbstractThreadPool.java:544)

                                at java.lang.Thread.run(Thread.java:744)

                                at org.jboss.weld.bootstrap.events.AbstractDefinitionContainerEvent.fire(AbstractDefinitionContainerEvent.java:37)

                                at org.jboss.weld.bootstrap.events.AfterBeanDiscoveryImpl.fire(AfterBeanDiscoveryImpl.java:53)

                                at org.jboss.weld.bootstrap.WeldBootstrap.deployBeans(WeldBootstrap.java:515)

                                at org.glassfish.weld.WeldDeployer.event(WeldDeployer.java:213)

                                at org.glassfish.kernel.event.EventsImpl.send(EventsImpl.java:131)

                                at org.glassfish.internal.data.ApplicationInfo.load(ApplicationInfo.java:328)

                                at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:493)

                                at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:219)

                                at org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:491)

                                at com.sun.enterprise.v3.admin.CommandRunnerImpl$2$1.run(CommandRunnerImpl.java:527)

                                at com.sun.enterprise.v3.admin.CommandRunnerImpl$2$1.run(CommandRunnerImpl.java:523)

                                at java.security.AccessController.doPrivileged(Native Method)

                                at javax.security.auth.Subject.doAs(Subject.java:356)

                                at com.sun.enterprise.v3.admin.CommandRunnerImpl$2.execute(CommandRunnerImpl.java:522)

                                at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:546)

                                at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1423)

                                at com.sun.enterprise.v3.admin.CommandRunnerImpl.access$1500(CommandRunnerImpl.java:108)

                                at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1762)

                                at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1674)

                                at com.sun.enterprise.v3.admin.AdminAdapter.doCommand(AdminAdapter.java:534)

                                at com.sun.enterprise.v3.admin.AdminAdapter.onMissingResource(AdminAdapter.java:224)

                                at org.glassfish.grizzly.http.server.StaticHttpHandler.service(StaticHttpHandler.java:297)

                                at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:246)

                                at org.glassfish.grizzly.http.server.HttpHandler.runService(HttpHandler.java:191)

                                at org.glassfish.grizzly.http.server.HttpHandler.doHandle(HttpHandler.java:168)

                                at org.glassfish.grizzly.http.server.HttpServerFilter.handleRead(HttpServerFilter.java:189)

                                at org.glassfish.grizzly.filterchain.ExecutorResolver$9.execute(ExecutorResolver.java:119)

                                at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter(DefaultFilterChain.java:288)

                                at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(DefaultFilterChain.java:206)

                                at org.glassfish.grizzly.filterchain.DefaultFilterChain.execute(DefaultFilterChain.java:136)

                                at org.glassfish.grizzly.filterchain.DefaultFilterChain.process(DefaultFilterChain.java:114)

                                at org.glassfish.grizzly.ProcessorExecutor.execute(ProcessorExecutor.java:77)

                                at org.glassfish.grizzly.nio.transport.TCPNIOTransport.fireIOEvent(TCPNIOTransport.java:838)

                                at org.glassfish.grizzly.strategies.AbstractIOStrategy.fireIOEvent(AbstractIOStrategy.java:113)

                                at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.run0(WorkerThreadIOStrategy.java:115)

                                at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.access$100(WorkerThreadIOStrategy.java:55)

                                at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy$WorkerThreadRunnable.run(WorkerThreadIOStrategy.java:135)

                                at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:564)

                                at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.run(AbstractThreadPool.java:544)

                                at java.lang.Thread.run(Thread.java:744)

                             

                            Thank you,

                            Jose

                            • 11. Re: richfaces 4.3.4 with glassfish 4
                              Edilmar Alves Expert

                              Your error is a JTA error, not the problem discussed in this thread about compatibility between GF4/JSF2.2 and RichFaces.

                              The actual problem with RichFaces is that it is not full compatible with GF4, and Brian told about next 4.5 version to solve this.

                              Please create another thread to discuss your problem.

                              • 12. Re: richfaces 4.3.4 with glassfish 4
                                Brian Leathem Master

                                JSF 2.2 compatibility proved to require changes more significant than what would fit in a micro release.  Look to our upcoming 4.5 release of RichFaces for JSF 2.2 compatibility.