wildfly-16.0.0.Final and spring4+hibernate5+struts2
bigq517 Apr 10, 2019 4:01 AMWhen I run my ssh2 application with wildfly-16.0.0.Final,I get some error.But working well on tomcat.
Also,I didn't use CDI.
WFLYWELD0013: Deployment wisdomservice.war contains CDI annotations but no bean archive was found (no beans.xml or class with bean defining annotations was present).
10:24:18,997 INFO [org.jboss.as.connector.deployers.jdbc] (MSC service thread 1-3) WFLYJCA0018: Started Driver service with driver-name = wisdomservice.war_com.mysql.cj.jdbc.Driver_8_0
10:24:19,536 INFO [org.jboss.as.clustering.infinispan] (ServerService Thread Pool -- 31) WFLYCLINF0002: Started client-mappings cache from ejb container
10:24:23,141 INFO [javax.enterprise.resource.webcontainer.jsf.config] (ServerService Thread Pool -- 35) 初始化上下文 '/wisdomservice' 的 Mojarra 2.3.9.SP01
10:24:23,758 ERROR [stderr] (ServerService Thread Pool -- 35) javax.faces.FacesException: Unable to find CDI BeanManager
10:24:23,758 ERROR [stderr] (ServerService Thread Pool -- 35) at com.sun.faces.application.applicationimpl.Version.isJsf23(Version.java:62)
10:24:23,758 ERROR [stderr] (ServerService Thread Pool -- 35) at com.sun.faces.application.applicationimpl.ExpressionLanguage.addELResolver(ExpressionLanguage.java:136)
10:24:23,758 ERROR [stderr] (ServerService Thread Pool -- 35) at com.sun.faces.application.ApplicationImpl.addELResolver(ApplicationImpl.java:221)
10:24:23,758 ERROR [stderr] (ServerService Thread Pool -- 35) at org.jboss.as.jsf.injection.weld.WeldApplication.<init>(WeldApplication.java:60)
10:24:23,758 ERROR [stderr] (ServerService Thread Pool -- 35) at org.jboss.as.jsf.injection.weld.WeldApplicationFactory.getApplication(WeldApplicationFactory.java:52)
10:24:23,759 ERROR [stderr] (ServerService Thread Pool -- 35) at com.sun.faces.application.InjectionApplicationFactory.getApplication(InjectionApplicationFactory.java:61)
10:24:23,759 ERROR [stderr] (ServerService Thread Pool -- 35) at com.sun.faces.config.InitFacesContext.getApplication(InitFacesContext.java:109)
10:24:23,759 ERROR [stderr] (ServerService Thread Pool -- 35) at com.sun.faces.lifecycle.ClientWindowFactoryImpl.<init>(ClientWindowFactoryImpl.java:39)
10:24:23,759 ERROR [stderr] (ServerService Thread Pool -- 35) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
10:24:23,759 ERROR [stderr] (ServerService Thread Pool -- 35) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
10:24:23,759 ERROR [stderr] (ServerService Thread Pool -- 35) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
10:24:23,759 ERROR [stderr] (ServerService Thread Pool -- 35) at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
10:24:23,759 ERROR [stderr] (ServerService Thread Pool -- 35) at java.lang.Class.newInstance(Class.java:442)
10:24:23,759 ERROR [stderr] (ServerService Thread Pool -- 35) at javax.faces.FactoryFinderInstance.getImplGivenPreviousImpl(FactoryFinderInstance.java:458)
10:24:23,759 ERROR [stderr] (ServerService Thread Pool -- 35) at javax.faces.FactoryFinderInstance.getImplementationInstance(FactoryFinderInstance.java:348)
10:24:23,760 ERROR [stderr] (ServerService Thread Pool -- 35) at javax.faces.FactoryFinderInstance.getFactory(FactoryFinderInstance.java:200)
10:24:23,760 ERROR [stderr] (ServerService Thread Pool -- 35) at javax.faces.FactoryFinder.getFactory(FactoryFinder.java:279)
10:24:23,760 ERROR [stderr] (ServerService Thread Pool -- 35) at com.sun.faces.config.processor.FactoryConfigProcessor.lambda$verifyFactoriesExist$0(FactoryConfigProcessor.java:303)
10:24:23,760 ERROR [stderr] (ServerService Thread Pool -- 35) at java.util.Spliterators$ArraySpliterator.forEachRemaining(Spliterators.java:948)
10:24:23,761 ERROR [stderr] (ServerService Thread Pool -- 35) at java.util.stream.ReferencePipeline$Head.forEach(ReferencePipeline.java:580)
10:24:23,761 ERROR [stderr] (ServerService Thread Pool -- 35) at com.sun.faces.config.processor.FactoryConfigProcessor.verifyFactoriesExist(FactoryConfigProcessor.java:297)
10:24:23,761 ERROR [stderr] (ServerService Thread Pool -- 35) at com.sun.faces.config.processor.FactoryConfigProcessor.process(FactoryConfigProcessor.java:211)
10:24:23,761 ERROR [stderr] (ServerService Thread Pool -- 35) at com.sun.faces.config.ConfigManager.lambda$initialize$0(ConfigManager.java:294)
10:24:23,761 ERROR [stderr] (ServerService Thread Pool -- 35) at java.util.Iterator.forEachRemaining(Iterator.java:116)
10:24:23,761 ERROR [stderr] (ServerService Thread Pool -- 35) at java.util.Spliterators$IteratorSpliterator.forEachRemaining(Spliterators.java:1801)
10:24:23,761 ERROR [stderr] (ServerService Thread Pool -- 35) at java.util.stream.ReferencePipeline$Head.forEach(ReferencePipeline.java:580)
10:24:23,761 ERROR [stderr] (ServerService Thread Pool -- 35) at com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:292)
10:24:23,763 ERROR [stderr] (ServerService Thread Pool -- 35) at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:205)
10:24:23,763 ERROR [stderr] (ServerService Thread Pool -- 35) at io.undertow.servlet.core.ApplicationListeners.contextInitialized(ApplicationListeners.java:187)
10:24:23,763 ERROR [stderr] (ServerService Thread Pool -- 35) at io.undertow.servlet.core.DeploymentManagerImpl$1.call(DeploymentManagerImpl.java:216)
10:24:23,763 ERROR [stderr] (ServerService Thread Pool -- 35) at io.undertow.servlet.core.DeploymentManagerImpl$1.call(DeploymentManagerImpl.java:185)
10:24:23,763 ERROR [stderr] (ServerService Thread Pool -- 35) at io.undertow.servlet.core.ServletRequestContextThreadSetupAction$1.call(ServletRequestContextThreadSetupAction.java:42)
10:24:23,763 ERROR [stderr] (ServerService Thread Pool -- 35) at io.undertow.servlet.core.ContextClassLoaderSetupAction$1.call(ContextClassLoaderSetupAction.java:43)
10:24:23,763 ERROR [stderr] (ServerService Thread Pool -- 35) at org.wildfly.extension.undertow.security.SecurityContextThreadSetupAction.lambda$create$0(SecurityContextThreadSetupAction.java:105)
10:24:23,764 ERROR [stderr] (ServerService Thread Pool -- 35) at org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1502)
10:24:23,764 ERROR [stderr] (ServerService Thread Pool -- 35) at org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1502)
10:24:23,764 ERROR [stderr] (ServerService Thread Pool -- 35) at org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1502)
10:24:23,764 ERROR [stderr] (ServerService Thread Pool -- 35) at org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1502)
10:24:23,764 ERROR [stderr] (ServerService Thread Pool -- 35) at io.undertow.servlet.core.DeploymentManagerImpl.deploy(DeploymentManagerImpl.java:250)
10:24:23,764 ERROR [stderr] (ServerService Thread Pool -- 35) at org.wildfly.extension.undertow.deployment.UndertowDeploymentService.startContext(UndertowDeploymentService.java:96)
10:24:23,764 ERROR [stderr] (ServerService Thread Pool -- 35) at org.wildfly.extension.undertow.deployment.UndertowDeploymentService$1.run(UndertowDeploymentService.java:78)
10:24:23,764 ERROR [stderr] (ServerService Thread Pool -- 35) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
10:24:23,764 ERROR [stderr] (ServerService Thread Pool -- 35) at java.util.concurrent.FutureTask.run(FutureTask.java:266)
10:24:23,764 ERROR [stderr] (ServerService Thread Pool -- 35) at org.jboss.threads.ContextClassLoaderSavingRunnable.run(ContextClassLoaderSavingRunnable.java:35)
10:24:23,765 ERROR [stderr] (ServerService Thread Pool -- 35) at org.jboss.threads.EnhancedQueueExecutor.safeRun(EnhancedQueueExecutor.java:1982)
10:24:23,765 ERROR [stderr] (ServerService Thread Pool -- 35) at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.doRunTask(EnhancedQueueExecutor.java:1486)
10:24:23,765 ERROR [stderr] (ServerService Thread Pool -- 35) at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1377)
10:24:23,765 ERROR [stderr] (ServerService Thread Pool -- 35) at java.lang.Thread.run(Thread.java:748)
10:24:23,765 ERROR [stderr] (ServerService Thread Pool -- 35) at org.jboss.threads.JBossThread.run(JBossThread.java:485)