rxue / dictionary

Practice in Java EE
1 stars 0 forks source link

sub-task of #55 : bug : the 2nd Ajax event listener on selecting the word cannot be invoked successfully #57

Closed rxue closed 1 year ago

rxue commented 1 year ago

https://github.com/rxue/dictionary/commit/08a946dfae5104cee578958c2f259c4ca9994337#diff-4dd32a25d6207dad25bfeb2c6645dee9bbe224e215eefbf165033da17e08071a

In the linked code snippet above, the ajaxSearchComponent.exactSearch cannot be invoked as expected when selecting a result candidate from the populated dropdown list

rxue commented 1 year ago

Encountered the following error when starting the server:

           06:24:01,438 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-5) MSC000001: Failed to start service jboss.deployment.unit."dictionary.war".WeldStartService: org.jboss.msc.service.StartException in service jboss.deployment.unit."dictionary.war".WeldStartService: Failed to start service
            at org.jboss.msc@1.4.13.Final//org.jboss.msc.service.ServiceControllerImpl$StartTask.execute(ServiceControllerImpl.java:1731)
            at org.jboss.msc@1.4.13.Final//org.jboss.msc.service.ServiceControllerImpl$ControllerTask.run(ServiceControllerImpl.java:1559)
            at org.jboss.threads@2.4.0.Final//org.jboss.threads.ContextClassLoaderSavingRunnable.run(ContextClassLoaderSavingRunnable.java:35)
            at org.jboss.threads@2.4.0.Final//org.jboss.threads.EnhancedQueueExecutor.safeRun(EnhancedQueueExecutor.java:1990)
            at org.jboss.threads@2.4.0.Final//org.jboss.threads.EnhancedQueueExecutor$ThreadBody.doRunTask(EnhancedQueueExecutor.java:1486)
            at org.jboss.threads@2.4.0.Final//org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1377)
            at java.base/java.lang.Thread.run(Thread.java:834)
           Caused by: org.jboss.weld.exceptions.DeploymentException: WELD-000072: Bean declaring a passivating scope must be passivation capable.  Bean:  Managed Bean [class rx.dictionary.ui.jsf.search.AjaxSearchComponent] with qualifiers [@Default @Any @Named]
            at org.jboss.weld.core@3.1.8.Final//org.jboss.weld.bean.ManagedBean.checkType(ManagedBean.java:220)
            at org.jboss.weld.core@3.1.8.Final//org.jboss.weld.bean.AbstractBean.initializeAfterBeanDiscovery(AbstractBean.java:108)
            at org.jboss.weld.core@3.1.8.Final//org.jboss.weld.bean.ManagedBean.initializeAfterBeanDiscovery(ManagedBean.java:124)
            at org.jboss.weld.core@3.1.8.Final//org.jboss.weld.bootstrap.ConcurrentBeanDeployer$AfterBeanDiscoveryInitializerFactory.doWork(ConcurrentBeanDeployer.java:111)
            at org.jboss.weld.core@3.1.8.Final//org.jboss.weld.bootstrap.ConcurrentBeanDeployer$AfterBeanDiscoveryInitializerFactory.doWork(ConcurrentBeanDeployer.java:102)
            at org.jboss.weld.core@3.1.8.Final//org.jboss.weld.executor.IterativeWorkerTaskFactory$1.call(IterativeWorkerTaskFactory.java:62)
            at org.jboss.weld.core@3.1.8.Final//org.jboss.weld.executor.IterativeWorkerTaskFactory$1.call(IterativeWorkerTaskFactory.java:55)
            at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
            at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
            at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
            at java.base/java.lang.Thread.run(Thread.java:834)
            at org.jboss.threads@2.4.0.Final//org.jboss.threads.JBossThread.run(JBossThread.java:513)

           06:24:01,444 ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) WFLYCTL0013: Operation ("deploy") failed - address: ([("deployment" => "dictionary.war")]) - failure description: {"WFLYCTL0080: Failed services" => {"jboss.deployment.unit.\"dictionary.war\".WeldStartService" => "Failed to start service
               Caused by: org.jboss.weld.exceptions.DeploymentException: WELD-000072: Bean declaring a passivating scope must be passivation capable.  Bean:  Managed Bean [class rx.dictionary.ui.jsf.search.AjaxSearchComponent] with qualifiers [@Default @Any @Named]"}}
           06:24:01,494 INFO  [org.jboss.as.server] (ServerService Thread Pool -- 45) WFLYSRV0010: Deployed "dictionary.war" (runtime-name : "dictionary.war")
           06:24:01,496 INFO  [org.jboss.as.controller] (Controller Boot Thread) WFLYCTL0183: Service status report
           WFLYCTL0186:   Services which failed to start:      service jboss.deployment.unit."dictionary.war".WeldStartService: Failed to start service
           WFLYCTL0448: 17 additional services are down due to their dependencies being missing or failed
           06:24:01,537 INFO  [org.jboss.as.server] (Controller Boot Thread) WFLYSRV0212: Resuming server
           06:24:01,540 ERROR [org.jboss.as] (Controller Boot Thread) WFLYSRV0026: WildFly Full 25.0.0.Final (WildFly Core 17.0.1.Final) started (with errors) in 6072ms - Started 434 of 636 services (21 services failed or missing dependencies, 341 services are lazy, passive or on-demand)