Weld + WildFly Swarm errors - weld

I am trying to get CDI to work in WildFly Swarm, but Weld keeps throwing errors, even on a minimal toy example, see: https://github.com/delenius/weld-test
I am keeping things as simple as possible, and following the recommended way of setting up WildFly Swarm, using http://wildfly-swarm.io/generator/.
I am using version 2017.12.0-SNAPSHOT.
I have tried bean-discovery-mode="all", as mentioned in another stackoverflow issue.
This is the output I get from java -jar (after which it exits):
$ java -jar target/wildfly-weld-test-swarm.jar
2017-12-12 11:56:36,584 INFO [org.wildfly.swarm] (main) WFSWARM0013: Installed fraction: Logging - STABLE org.wildfly.swarm:logging:2017.12.0-SNAPSHOT
2017-12-12 11:56:36,593 INFO [org.wildfly.swarm] (main) WFSWARM0013: Installed fraction: JAX-RS with JAXB - STABLE org.wildfly.swarm:jaxrs-jaxb:2017.12.0-SNAPSHOT
2017-12-12 11:56:36,593 INFO [org.wildfly.swarm] (main) WFSWARM0013: Installed fraction: Bean Validation - STABLE org.wildfly.swarm:bean-validation:2017.12.0-SNAPSHOT
2017-12-12 11:56:36,594 INFO [org.wildfly.swarm] (main) WFSWARM0013: Installed fraction: CDI Configuration - STABLE org.wildfly.swarm:cdi-config:2017.12.0-SNAPSHOT
2017-12-12 11:56:36,594 INFO [org.wildfly.swarm] (main) WFSWARM0013: Installed fraction: CDI - STABLE org.wildfly.swarm:cdi:2017.12.0-SNAPSHOT
2017-12-12 11:56:36,594 INFO [org.wildfly.swarm] (main) WFSWARM0013: Installed fraction: Elytron - STABLE org.wildfly.swarm:elytron:2017.12.0-SNAPSHOT
2017-12-12 11:56:36,594 INFO [org.wildfly.swarm] (main) WFSWARM0013: Installed fraction: Transactions - STABLE org.wildfly.swarm:transactions:2017.12.0-SNAPSHOT
2017-12-12 11:56:36,594 INFO [org.wildfly.swarm] (main) WFSWARM0013: Installed fraction: Undertow - STABLE org.wildfly.swarm:undertow:2017.12.0-SNAPSHOT
2017-12-12 11:56:36,594 INFO [org.wildfly.swarm] (main) WFSWARM0013: Installed fraction: JAX-RS - STABLE org.wildfly.swarm:jaxrs:2017.12.0-SNAPSHOT
2017-12-12 11:56:36,670 WARNING [ServiceLoader] (main) Could not load service class org.wildfly.swarm.cdi.config.deployment.InjectConfigViewExtension
2017-12-12 11:56:38,188 INFO [org.jboss.msc] (main) JBoss MSC version 1.2.7.SP1
2017-12-12 11:56:38,286 INFO [org.jboss.as] (MSC service thread 1-7) WFLYSRV0049: WildFly Swarm 2017.12.0-SNAPSHOT (WildFly Core 3.0.8.Final) starting
2017-12-12 11:56:38,324 INFO [org.wildfly.swarm] (MSC service thread 1-7) WFSWARM0019: Install MSC service for command line args: []
2017-12-12 11:56:38,919 INFO [org.wildfly.security] (ServerService Thread Pool -- 8) ELY00001: WildFly Elytron version 1.1.6.Final
2017-12-12 11:56:38,952 WARN [org.jboss.as.txn] (ServerService Thread Pool -- 14) WFLYTX0013: The node-identifier attribute on the /subsystem=transactions is set to the default value. This is a danger for environments running multiple servers. Please make sure the attribute value is unique.
2017-12-12 11:56:38,957 INFO [org.jboss.as.naming] (ServerService Thread Pool -- 15) WFLYNAM0001: Activating Naming Subsystem
2017-12-12 11:56:38,956 INFO [org.jboss.as.jaxrs] (ServerService Thread Pool -- 20) WFLYRS0016: RESTEasy version 3.0.24.Final
2017-12-12 11:56:38,971 INFO [org.jboss.as.security] (ServerService Thread Pool -- 24) WFLYSEC0002: Activating Security Subsystem
2017-12-12 11:56:38,979 INFO [org.jboss.as.security] (MSC service thread 1-7) WFLYSEC0001: Current PicketBox version=5.0.2.Final
2017-12-12 11:56:38,986 INFO [org.xnio] (ServerService Thread Pool -- 21) XNIO version 3.5.4.Final
2017-12-12 11:56:39,004 INFO [org.jboss.as.naming] (MSC service thread 1-4) WFLYNAM0003: Starting Naming Service
2017-12-12 11:56:39,033 INFO [org.xnio.nio] (ServerService Thread Pool -- 21) XNIO NIO Implementation Version 3.5.4.Final
2017-12-12 11:56:39,070 INFO [org.wildfly.extension.io] (ServerService Thread Pool -- 21) WFLYIO001: Worker 'default' has auto-configured to 16 core threads with 128 task threads based on your 8 available processors
2017-12-12 11:56:39,147 INFO [org.wildfly.extension.undertow] (MSC service thread 1-5) WFLYUT0003: Undertow 1.4.18.Final starting
2017-12-12 11:56:39,247 INFO [org.wildfly.extension.undertow] (MSC service thread 1-5) WFLYUT0012: Started server default-server.
2017-12-12 11:56:39,299 INFO [org.wildfly.extension.undertow] (MSC service thread 1-5) WFLYUT0006: Undertow HTTP listener default listening on [0:0:0:0:0:0:0:0]:8080
2017-12-12 11:56:39,371 INFO [org.jboss.as.server] (Controller Boot Thread) WFLYSRV0212: Resuming server
2017-12-12 11:56:39,373 INFO [org.jboss.as] (Controller Boot Thread) WFLYSRV0025: WildFly Swarm 2017.12.0-SNAPSHOT (WildFly Core 3.0.8.Final) started in 1264ms - Started 122 of 130 services (20 services are lazy, passive or on-demand)
2017-12-12 11:56:39,824 INFO [org.wildfly.swarm.runtime.deployer] (main) deploying wildfly-weld-test.war
2017-12-12 11:56:39,849 INFO [org.jboss.as.server.deployment] (MSC service thread 1-8) WFLYSRV0027: Starting deployment of "wildfly-weld-test.war" (runtime-name: "wildfly-weld-test.war")
2017-12-12 11:56:40,263 WARN [org.jboss.as.dependency.private] (MSC service thread 1-3) WFLYSRV0018: Deployment "deployment.wildfly-weld-test.war" is using a private module ("org.jboss.jts") which may be changed or removed in future versions without notice.
2017-12-12 11:56:40,275 INFO [org.jboss.weld.deployer] (MSC service thread 1-4) WFLYWELD0003: Processing weld deployment wildfly-weld-test.war
2017-12-12 11:56:40,364 INFO [org.hibernate.validator.internal.util.Version] (MSC service thread 1-4) HV000001: Hibernate Validator 5.3.5.Final
2017-12-12 11:56:40,482 INFO [org.jboss.weld.Version] (MSC service thread 1-8) WELD-000900: 2.4.3 (Final)
2017-12-12 11:56:40,516 INFO [org.wildfly.extension.undertow] (MSC service thread 1-6) WFLYUT0018: Host default-host starting
2017-12-12 11:56:40,848 WARN [org.jboss.weld.Validator] (MSC service thread 1-5) WELD-001471: Interceptor method setupFactories defined on class org.wildfly.swarm.container.runtime.xmlconfig.StandaloneXMLParserProducer is not defined according to the specification. It should not throw java.lang.Exception, which is a checked exception.
at org.wildfly.swarm.container.runtime.xmlconfig.StandaloneXMLParserProducer.setupFactories(StandaloneXMLParserProducer.java:0)
StackTrace
2017-12-12 11:56:40,860 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-5) MSC000001: Failed to start service jboss.deployment.unit."wildfly-weld-test.war".WeldStartService: org.jboss.msc.service.StartException in service jboss.deployment.unit."wildfly-weld-test.war".WeldStartService: Failed to start service
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1978)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Caused by: org.jboss.weld.exceptions.DeploymentException: WELD-001408: Unsatisfied dependencies for type DeploymentContext with qualifiers #Default
at injection point [BackedAnnotatedField] #Inject org.wildfly.swarm.jaxrs.runtime.DefaultApplicationDeploymentProcessor.deploymentContext
at org.wildfly.swarm.jaxrs.runtime.DefaultApplicationDeploymentProcessor.deploymentContext(DefaultApplicationDeploymentProcessor.java:0)
at org.jboss.weld.bootstrap.Validator.validateInjectionPointForDeploymentProblems(Validator.java:362)
at org.jboss.weld.bootstrap.Validator.validateInjectionPoint(Validator.java:284)
at org.jboss.weld.bootstrap.Validator.validateGeneralBean(Validator.java:137)
at org.jboss.weld.bootstrap.Validator.validateRIBean(Validator.java:158)
at org.jboss.weld.bootstrap.Validator.validateBean(Validator.java:501)
at org.jboss.weld.bootstrap.ConcurrentValidator$1.doWork(ConcurrentValidator.java:61)
at org.jboss.weld.bootstrap.ConcurrentValidator$1.doWork(ConcurrentValidator.java:59)
at org.jboss.weld.executor.IterativeWorkerTaskFactory$1.call(IterativeWorkerTaskFactory.java:62)
at org.jboss.weld.executor.IterativeWorkerTaskFactory$1.call(IterativeWorkerTaskFactory.java:55)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
at org.jboss.threads.JBossThread.run(JBossThread.java:320)
2017-12-12 11:56:40,864 ERROR [org.jboss.as.controller.management-operation] (main) WFLYCTL0013: Operation ("add") failed - address: (("deployment" => "wildfly-weld-test.war")) - failure description: {"WFLYCTL0080: Failed services" => {"jboss.deployment.unit.\"wildfly-weld-test.war\".WeldStartService" => "Failed to start service
Caused by: org.jboss.weld.exceptions.DeploymentException: WELD-001408: Unsatisfied dependencies for type DeploymentContext with qualifiers #Default
at injection point [BackedAnnotatedField] #Inject org.wildfly.swarm.jaxrs.runtime.DefaultApplicationDeploymentProcessor.deploymentContext
at org.wildfly.swarm.jaxrs.runtime.DefaultApplicationDeploymentProcessor.deploymentContext(DefaultApplicationDeploymentProcessor.java:0)
"}}
2017-12-12 11:56:40,865 ERROR [org.jboss.as.server] (main) WFLYSRV0021: Deploy of deployment "wildfly-weld-test.war" was rolled back with the following failure message:
{"WFLYCTL0080: Failed services" => {"jboss.deployment.unit.\"wildfly-weld-test.war\".WeldStartService" => "Failed to start service
Caused by: org.jboss.weld.exceptions.DeploymentException: WELD-001408: Unsatisfied dependencies for type DeploymentContext with qualifiers #Default
at injection point [BackedAnnotatedField] #Inject org.wildfly.swarm.jaxrs.runtime.DefaultApplicationDeploymentProcessor.deploymentContext
at org.wildfly.swarm.jaxrs.runtime.DefaultApplicationDeploymentProcessor.deploymentContext(DefaultApplicationDeploymentProcessor.java:0)
"}}
2017-12-12 11:56:40,881 INFO [org.wildfly.extension.undertow] (MSC service thread 1-4) WFLYUT0019: Host default-host stopping
2017-12-12 11:56:40,908 INFO [org.jboss.as.server.deployment] (MSC service thread 1-5) WFLYSRV0028: Stopped deployment wildfly-weld-test.war (runtime-name: wildfly-weld-test.war) in 42ms
2017-12-12 11:56:40,910 ERROR [stderr] (main) org.wildfly.swarm.container.DeploymentException: org.wildfly.swarm.container.DeploymentException: WFSWARM0004: Deployment failed: {"WFLYCTL0080: Failed services" => {"jboss.deployment.unit.\"wildfly-weld-test.war\".WeldStartService" => "Failed to start service
2017-12-12 11:56:40,910 ERROR [stderr] (main) Caused by: org.jboss.weld.exceptions.DeploymentException: WELD-001408: Unsatisfied dependencies for type DeploymentContext with qualifiers #Default
2017-12-12 11:56:40,910 ERROR [stderr] (main) at injection point [BackedAnnotatedField] #Inject org.wildfly.swarm.jaxrs.runtime.DefaultApplicationDeploymentProcessor.deploymentContext
2017-12-12 11:56:40,910 ERROR [stderr] (main) at org.wildfly.swarm.jaxrs.runtime.DefaultApplicationDeploymentProcessor.deploymentContext(DefaultApplicationDeploymentProcessor.java:0)
2017-12-12 11:56:40,910 ERROR [stderr] (main) "}}
2017-12-12 11:56:40,910 ERROR [stderr] (main) at org.wildfly.swarm.container.runtime.RuntimeDeployer.deploy(RuntimeDeployer.java:301)
2017-12-12 11:56:40,910 ERROR [stderr] (main) at org.wildfly.swarm.container.runtime.RuntimeDeployer.deploy(RuntimeDeployer.java:174)
2017-12-12 11:56:40,911 ERROR [stderr] (main) at org.wildfly.swarm.container.runtime.RuntimeDeployer.deploy(RuntimeDeployer.java:107)
2017-12-12 11:56:40,911 ERROR [stderr] (main) at org.wildfly.swarm.container.runtime.RuntimeDeployer$Proxy$_$$_WeldClientProxy.deploy(Unknown Source)
2017-12-12 11:56:40,911 ERROR [stderr] (main) at org.wildfly.swarm.Swarm.deploy(Swarm.java:473)
2017-12-12 11:56:40,911 ERROR [stderr] (main) at org.wildfly.swarm.Swarm.main(Swarm.java:744)
2017-12-12 11:56:40,911 ERROR [stderr] (main) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
2017-12-12 11:56:40,911 ERROR [stderr] (main) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
2017-12-12 11:56:40,911 ERROR [stderr] (main) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
2017-12-12 11:56:40,911 ERROR [stderr] (main) at java.lang.reflect.Method.invoke(Method.java:497)
2017-12-12 11:56:40,912 ERROR [stderr] (main) at org.wildfly.swarm.bootstrap.MainInvoker.invoke(MainInvoker.java:53)
2017-12-12 11:56:40,912 ERROR [stderr] (main) at org.wildfly.swarm.bootstrap.Main.run(Main.java:132)
2017-12-12 11:56:40,912 ERROR [stderr] (main) at org.wildfly.swarm.bootstrap.Main.main(Main.java:85)
2017-12-12 11:56:40,912 ERROR [stderr] (main) Caused by: org.wildfly.swarm.container.DeploymentException: WFSWARM0004: Deployment failed: {"WFLYCTL0080: Failed services" => {"jboss.deployment.unit.\"wildfly-weld-test.war\".WeldStartService" => "Failed to start service
2017-12-12 11:56:40,912 ERROR [stderr] (main) Caused by: org.jboss.weld.exceptions.DeploymentException: WELD-001408: Unsatisfied dependencies for type DeploymentContext with qualifiers #Default
2017-12-12 11:56:40,912 ERROR [stderr] (main) at injection point [BackedAnnotatedField] #Inject org.wildfly.swarm.jaxrs.runtime.DefaultApplicationDeploymentProcessor.deploymentContext
2017-12-12 11:56:40,912 ERROR [stderr] (main) at org.wildfly.swarm.jaxrs.runtime.DefaultApplicationDeploymentProcessor.deploymentContext(DefaultApplicationDeploymentProcessor.java:0)
2017-12-12 11:56:40,912 ERROR [stderr] (main) "}}
2017-12-12 11:56:40,912 ERROR [stderr] (main) at org.wildfly.swarm.container.runtime.RuntimeDeployer.deploy(RuntimeDeployer.java:296)
2017-12-12 11:56:40,912 ERROR [stderr] (main) ... 12 more
2017-12-12 11:56:40,916 INFO [org.wildfly.extension.undertow] (MSC service thread 1-4) WFLYUT0008: Undertow HTTP listener default suspending
2017-12-12 11:56:40,918 INFO [org.wildfly.extension.undertow] (MSC service thread 1-4) WFLYUT0007: Undertow HTTP listener default stopped, was bound to [0:0:0:0:0:0:0:0]:8080
2017-12-12 11:56:40,920 INFO [org.wildfly.extension.undertow] (MSC service thread 1-1) WFLYUT0004: Undertow 1.4.18.Final stopping
2017-12-12 11:56:40,924 INFO [org.jboss.as] (MSC service thread 1-1) WFLYSRV0050: WildFly Swarm 2017.12.0-SNAPSHOT (WildFly Core 3.0.8.Final) stopped in 8ms
2017-12-12 11:56:40,932 INFO [org.jboss.weld.Bootstrap] (main) WELD-ENV-002001: Weld SE container internal shut down
2017-12-12 11:56:40,932 ERROR [stderr] (main) java.lang.reflect.InvocationTargetException
2017-12-12 11:56:40,932 ERROR [stderr] (main) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
2017-12-12 11:56:40,932 ERROR [stderr] (main) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
2017-12-12 11:56:40,932 ERROR [stderr] (main) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
2017-12-12 11:56:40,932 ERROR [stderr] (main) at java.lang.reflect.Method.invoke(Method.java:497)
2017-12-12 11:56:40,933 ERROR [stderr] (main) at org.wildfly.swarm.bootstrap.MainInvoker.invoke(MainInvoker.java:53)
2017-12-12 11:56:40,933 ERROR [stderr] (main) at org.wildfly.swarm.bootstrap.Main.run(Main.java:132)
2017-12-12 11:56:40,933 ERROR [stderr] (main) at org.wildfly.swarm.bootstrap.Main.main(Main.java:85)
2017-12-12 11:56:40,933 ERROR [stderr] (main) Caused by: org.wildfly.swarm.container.DeploymentException: org.wildfly.swarm.container.DeploymentException: WFSWARM0004: Deployment failed: {"WFLYCTL0080: Failed services" => {"jboss.deployment.unit.\"wildfly-weld-test.war\".WeldStartService" => "Failed to start service
2017-12-12 11:56:40,933 ERROR [stderr] (main) Caused by: org.jboss.weld.exceptions.DeploymentException: WELD-001408: Unsatisfied dependencies for type DeploymentContext with qualifiers #Default
2017-12-12 11:56:40,933 ERROR [stderr] (main) at injection point [BackedAnnotatedField] #Inject org.wildfly.swarm.jaxrs.runtime.DefaultApplicationDeploymentProcessor.deploymentContext
2017-12-12 11:56:40,933 ERROR [stderr] (main) at org.wildfly.swarm.jaxrs.runtime.DefaultApplicationDeploymentProcessor.deploymentContext(DefaultApplicationDeploymentProcessor.java:0)
2017-12-12 11:56:40,933 ERROR [stderr] (main) "}}
2017-12-12 11:56:40,933 ERROR [stderr] (main) at org.wildfly.swarm.container.runtime.RuntimeDeployer.deploy(RuntimeDeployer.java:301)
2017-12-12 11:56:40,933 ERROR [stderr] (main) at org.wildfly.swarm.container.runtime.RuntimeDeployer.deploy(RuntimeDeployer.java:174)
2017-12-12 11:56:40,933 ERROR [stderr] (main) at org.wildfly.swarm.container.runtime.RuntimeDeployer.deploy(RuntimeDeployer.java:107)
2017-12-12 11:56:40,934 ERROR [stderr] (main) at org.wildfly.swarm.container.runtime.RuntimeDeployer$Proxy$_$$_WeldClientProxy.deploy(Unknown Source)
2017-12-12 11:56:40,934 ERROR [stderr] (main) at org.wildfly.swarm.Swarm.deploy(Swarm.java:473)
2017-12-12 11:56:40,934 ERROR [stderr] (main) at org.wildfly.swarm.Swarm.main(Swarm.java:744)
2017-12-12 11:56:40,934 ERROR [stderr] (main) ... 7 more
2017-12-12 11:56:40,934 ERROR [stderr] (main) Caused by: org.wildfly.swarm.container.DeploymentException: WFSWARM0004: Deployment failed: {"WFLYCTL0080: Failed services" => {"jboss.deployment.unit.\"wildfly-weld-test.war\".WeldStartService" => "Failed to start service
2017-12-12 11:56:40,934 ERROR [stderr] (main) Caused by: org.jboss.weld.exceptions.DeploymentException: WELD-001408: Unsatisfied dependencies for type DeploymentContext with qualifiers #Default
2017-12-12 11:56:40,934 ERROR [stderr] (main) at injection point [BackedAnnotatedField] #Inject org.wildfly.swarm.jaxrs.runtime.DefaultApplicationDeploymentProcessor.deploymentContext
2017-12-12 11:56:40,934 ERROR [stderr] (main) at org.wildfly.swarm.jaxrs.runtime.DefaultApplicationDeploymentProcessor.deploymentContext(DefaultApplicationDeploymentProcessor.java:0)
2017-12-12 11:56:40,934 ERROR [stderr] (main) "}}
2017-12-12 11:56:40,934 ERROR [stderr] (main) at org.wildfly.swarm.container.runtime.RuntimeDeployer.deploy(RuntimeDeployer.java:296)
2017-12-12 11:56:40,934 ERROR [stderr] (main) ... 12 more
2017-12-12 11:56:40,934 ERROR [stderr] (main) Exception in thread "main" java.lang.reflect.InvocationTargetException
2017-12-12 11:56:40,935 ERROR [stderr] (main) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
2017-12-12 11:56:40,935 ERROR [stderr] (main) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
2017-12-12 11:56:40,935 ERROR [stderr] (main) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
2017-12-12 11:56:40,935 ERROR [stderr] (main) at java.lang.reflect.Method.invoke(Method.java:497)
2017-12-12 11:56:40,935 ERROR [stderr] (main) at org.wildfly.swarm.bootstrap.MainInvoker.invoke(MainInvoker.java:53)
2017-12-12 11:56:40,935 ERROR [stderr] (main) at org.wildfly.swarm.bootstrap.Main.run(Main.java:132)
2017-12-12 11:56:40,935 ERROR [stderr] (main) at org.wildfly.swarm.bootstrap.Main.main(Main.java:85)
2017-12-12 11:56:40,935 ERROR [stderr] (main) Caused by: org.wildfly.swarm.container.DeploymentException: org.wildfly.swarm.container.DeploymentException: WFSWARM0004: Deployment failed: {"WFLYCTL0080: Failed services" => {"jboss.deployment.unit.\"wildfly-weld-test.war\".WeldStartService" => "Failed to start service
2017-12-12 11:56:40,935 ERROR [stderr] (main) Caused by: org.jboss.weld.exceptions.DeploymentException: WELD-001408: Unsatisfied dependencies for type DeploymentContext with qualifiers #Default
2017-12-12 11:56:40,935 ERROR [stderr] (main) at injection point [BackedAnnotatedField] #Inject org.wildfly.swarm.jaxrs.runtime.DefaultApplicationDeploymentProcessor.deploymentContext
2017-12-12 11:56:40,935 ERROR [stderr] (main) at org.wildfly.swarm.jaxrs.runtime.DefaultApplicationDeploymentProcessor.deploymentContext(DefaultApplicationDeploymentProcessor.java:0)
2017-12-12 11:56:40,936 ERROR [stderr] (main) "}}
2017-12-12 11:56:40,936 ERROR [stderr] (main) at org.wildfly.swarm.container.runtime.RuntimeDeployer.deploy(RuntimeDeployer.java:301)
2017-12-12 11:56:40,936 ERROR [stderr] (main) at org.wildfly.swarm.container.runtime.RuntimeDeployer.deploy(RuntimeDeployer.java:174)
2017-12-12 11:56:40,936 ERROR [stderr] (main) at org.wildfly.swarm.container.runtime.RuntimeDeployer.deploy(RuntimeDeployer.java:107)
2017-12-12 11:56:40,936 ERROR [stderr] (main) at org.wildfly.swarm.container.runtime.RuntimeDeployer$Proxy$_$$_WeldClientProxy.deploy(Unknown Source)
2017-12-12 11:56:40,936 ERROR [stderr] (main) at org.wildfly.swarm.Swarm.deploy(Swarm.java:473)
2017-12-12 11:56:40,936 ERROR [stderr] (main) at org.wildfly.swarm.Swarm.main(Swarm.java:744)
2017-12-12 11:56:40,936 ERROR [stderr] (main) ... 7 more
2017-12-12 11:56:40,936 ERROR [stderr] (main) Caused by: org.wildfly.swarm.container.DeploymentException: WFSWARM0004: Deployment failed: {"WFLYCTL0080: Failed services" => {"jboss.deployment.unit.\"wildfly-weld-test.war\".WeldStartService" => "Failed to start service
2017-12-12 11:56:40,936 ERROR [stderr] (main) Caused by: org.jboss.weld.exceptions.DeploymentException: WELD-001408: Unsatisfied dependencies for type DeploymentContext with qualifiers #Default
2017-12-12 11:56:40,936 ERROR [stderr] (main) at injection point [BackedAnnotatedField] #Inject org.wildfly.swarm.jaxrs.runtime.DefaultApplicationDeploymentProcessor.deploymentContext
2017-12-12 11:56:40,937 ERROR [stderr] (main) at org.wildfly.swarm.jaxrs.runtime.DefaultApplicationDeploymentProcessor.deploymentContext(DefaultApplicationDeploymentProcessor.java:0)
2017-12-12 11:56:40,937 ERROR [stderr] (main) "}}
2017-12-12 11:56:40,937 ERROR [stderr] (main) at org.wildfly.swarm.container.runtime.RuntimeDeployer.deploy(RuntimeDeployer.java:296)
2017-12-12 11:56:40,937 ERROR [stderr] (main) ... 12 more

I was able to get it working by using the released version 2017.12.0 and removing the beans.xml

Related

WFLYCTL0085: Failed to parse configuration

I am new to Jboss world and running JBOSS and getting following error while starting.
=========================================================================
JBoss Bootstrap Environment
JBOSS_HOME: /home/manish/Desktop/ometap/wildfly-10.0.0.Final
JAVA: java
JAVA_OPTS: -server -Xms64m -Xmx512m -XX:MetaspaceSize=96M -XX:MaxMetaspaceSize=256m -Djava.net.preferIPv4Stack=true -Djboss.modules.system.pkgs=org.jboss.byteman -Djava.awt.headless=true -agentlib:jdwp=transport=dt_socket,address=8787,server=y,suspend=n
=========================================================================
Listening for transport dt_socket at address: 8787
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by __redirected.__SAXParserFactory (file:/home/manish/Desktop/ometap/wildfly-10.0.0.Final/jboss-modules.jar) to constructor com.sun.org.apache.xerces.internal.jaxp.SAXParserFactoryImpl()
WARNING: Please consider reporting this to the maintainers of __redirected.__SAXParserFactory
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
13:34:35,267 INFO [org.jboss.modules] (main) JBoss Modules version 1.5.1.Final
13:34:35,627 INFO [org.jboss.msc] (main) JBoss MSC version 1.2.6.Final
13:34:35,798 INFO [org.jboss.as] (MSC service thread 1-7) WFLYSRV0049: WildFly Full 10.0.0.Final (WildFly Core 2.0.10.Final) starting
13:34:36,608 ERROR [org.jboss.as.server] (Controller Boot Thread) WFLYSRV0055: Caught exception during boot: org.jboss.as.controller.persistence.ConfigurationPersistenceException: WFLYCTL0085: Failed to parse configuration
at org.jboss.as.controller.persistence.XmlConfigurationPersister.load(XmlConfigurationPersister.java:131)
at org.jboss.as.server.ServerService.boot(ServerService.java:356)
at org.jboss.as.controller.AbstractControllerService$1.run(AbstractControllerService.java:299)
at java.base/java.lang.Thread.run(Thread.java:834)
Caused by: javax.xml.stream.XMLStreamException: WFLYCTL0083: Failed to load module org.wildfly.extension.core-management
at org.jboss.as.controller.parsing.ExtensionXml.parseExtensions(ExtensionXml.java:155)
at org.jboss.as.server.parsing.StandaloneXml$DefaultExtensionHandler.parseExtensions(StandaloneXml.java:126)
at org.jboss.as.server.parsing.StandaloneXml_4.readServerElement(StandaloneXml_4.java:218)
at org.jboss.as.server.parsing.StandaloneXml_4.readElement(StandaloneXml_4.java:141)
at org.jboss.as.server.parsing.StandaloneXml.readElement(StandaloneXml.java:103)
at org.jboss.as.server.parsing.StandaloneXml.readElement(StandaloneXml.java:49)
at org.jboss.staxmapper.XMLMapperImpl.processNested(XMLMapperImpl.java:110)
at org.jboss.staxmapper.XMLMapperImpl.parseDocument(XMLMapperImpl.java:69)
at org.jboss.as.controller.persistence.XmlConfigurationPersister.load(XmlConfigurationPersister.java:123)
... 3 more
Caused by: java.util.concurrent.ExecutionException: javax.xml.stream.XMLStreamException: WFLYCTL0083: Failed to load module
at java.base/java.util.concurrent.FutureTask.report(FutureTask.java:122)
at java.base/java.util.concurrent.FutureTask.get(FutureTask.java:191)
at org.jboss.as.controller.parsing.ExtensionXml.parseExtensions(ExtensionXml.java:147)
... 11 more
Caused by: javax.xml.stream.XMLStreamException: WFLYCTL0083: Failed to load module
at org.jboss.as.controller.parsing.ExtensionXml.loadModule(ExtensionXml.java:196)
at org.jboss.as.controller.parsing.ExtensionXml.access$000(ExtensionXml.java:69)
at org.jboss.as.controller.parsing.ExtensionXml$1.call(ExtensionXml.java:127)
at org.jboss.as.controller.parsing.ExtensionXml$1.call(ExtensionXml.java:124)
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.JBossThread.run(JBossThread.java:320)
Caused by: org.jboss.modules.ModuleNotFoundException: org.wildfly.extension.core-management:main
at org.jboss.modules.ModuleLoader.loadModule(ModuleLoader.java:223)
at org.jboss.as.controller.parsing.ExtensionXml.loadModule(ExtensionXml.java:178)
... 8 more
13:34:36,611 FATAL [org.jboss.as.server] (Controller Boot Thread) WFLYSRV0056: Server boot has failed in an unrecoverable manner; exiting. See previous messages for details.
13:34:36,615 INFO [org.jboss.as.server] (Thread-1) WFLYSRV0220: Server shutdown has been requested.
13:34:36,681 INFO [org.jboss.as] (MSC service thread 1-3) WFLYSRV0050: WildFly Full 10.0.0.Final (WildFly Core 2.0.10.Final) stopped in 34ms
How can i fix above error?
If you want to use Java 9+ I'd suggest using at least WildFly 15. WildFly 17.0.1.Final is the latest release and does work with Java 9+.
If you are stuck on WildFly 10, I'd suggest using Java 1.8 instead.

Suddenly unable to launch Grails: "Error creating bean with name 'grailsApplication'"

I've been able to run Grails integration tests previously (I think Dec was the last time), but now I'm getting the error pasted below. A colleague has stated that he's currently able to run, so it seems like something must have changed on my laptop even though I can't imagine what (I'm using macOS Sierra, he's on Windows).
I tried clean, clean-all and those didn't help.
Is there something else I could try to clean or any other ideas on what has gone wrong?
Fatal error running tests: Error creating bean with name 'grailsApplication': Bean instantiation via constructor failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.codehaus.groovy.grails.commons.DefaultGrailsApplication]: Constructor threw exception; nested exception is java.lang.NullPointerException (NOTE: Stack trace has been filtered. Use --verbose to see entire trace.)
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'grailsApplication': Bean instantiation via constructor failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.codehaus.groovy.grails.commons.DefaultGrailsApplication]: Constructor threw exception; nested exception is java.lang.NullPointerException
at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:275)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1137)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1040)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:504)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:476)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:303)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:299)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199)
at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:966)
at org.springframework.context.support.AbstractApplicationContext.prepareBeanFactory(AbstractApplicationContext.java:553)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:455)
at grails.spring.BeanBuilder.createApplicationContext(BeanBuilder.java:593)
at _GrailsTest$_run_closure1.doCall(_GrailsTest.groovy:102)
at org.codehaus.gant.GantMetaClass.invokeMethod(GantMetaClass.java:133)
at org.codehaus.gant.GantBinding$_initializeGantBinding_closure5_closure16_closure18.doCall(GantBinding.groovy:185)
at org.codehaus.gant.GantBinding$_initializeGantBinding_closure5_closure16_closure18.doCall(GantBinding.groovy)
at org.codehaus.gant.GantBinding.withTargetEvent(GantBinding.groovy:90)
at org.codehaus.gant.GantBinding.this$4$withTargetEvent(GantBinding.groovy)
at org.codehaus.gant.GantBinding$_initializeGantBinding_closure5_closure16.doCall(GantBinding.groovy:185)
at org.codehaus.gant.GantBinding$_initializeGantBinding_closure5_closure16.doCall(GantBinding.groovy)
at org.codehaus.gant.GantMetaClass.invokeMethod(GantMetaClass.java:133)
at TestApp$_run_closure1.doCall(TestApp.groovy:32)
at org.codehaus.gant.GantMetaClass.invokeMethod(GantMetaClass.java:133)
at org.codehaus.gant.GantBinding$_initializeGantBinding_closure5_closure16_closure18.doCall(GantBinding.groovy:185)
at org.codehaus.gant.GantBinding$_initializeGantBinding_closure5_closure16_closure18.doCall(GantBinding.groovy)
at org.codehaus.gant.GantBinding.withTargetEvent(GantBinding.groovy:90)
at org.codehaus.gant.GantBinding.this$4$withTargetEvent(GantBinding.groovy)
at org.codehaus.gant.GantBinding$_initializeGantBinding_closure5_closure16.doCall(GantBinding.groovy:185)
at org.codehaus.gant.GantBinding$_initializeGantBinding_closure5_closure16.doCall(GantBinding.groovy)
at gant.Gant$_dispatch_closure5.doCall(Gant.groovy:381)
at gant.Gant$_dispatch_closure7.doCall(Gant.groovy:415)
at gant.Gant$_dispatch_closure7.doCall(Gant.groovy)
at gant.Gant.withBuildListeners(Gant.groovy:427)
at gant.Gant.this$2$withBuildListeners(Gant.groovy)
at gant.Gant.dispatch(Gant.groovy:415)
at gant.Gant.this$2$dispatch(Gant.groovy)
at gant.Gant.invokeMethod(Gant.groovy)
at gant.Gant.executeTargets(Gant.groovy:591)
at gant.Gant.executeTargets(Gant.groovy:590)
Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.codehaus.groovy.grails.commons.DefaultGrailsApplication]: Constructor threw exception; nested exception is java.lang.NullPointerException
at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:163)
at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:122)
at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:267)
... 39 more
Caused by: java.lang.NullPointerException
at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:147)
... 41 more
Here's the command IntelliJ tells me is running:
/Library/Java/JavaVirtualMachines/jdk1.8.0_60.jdk/Contents/Home/bin/java -Dgrails.home=/Users/username/src/grails-2.5.5 -Dtools.jar=/Library/Java/JavaVirtualMachines/jdk1.8.0_60.jdk/Contents/Home/lib/tools.jar -Dgroovy.starter.conf=/Users/username/src/grails-2.5.5/conf/groovy-starter.conf -Dbase.dir=/Users/username/IdeaProjects/gdbxt-git -Dgrails.build.listeners=org.jetbrains.groovy.grails.rt.GrailsIdeaTestListener -Dfile.encoding=UTF-8 -classpath /Users/username/src/grails-2.5.5/lib/org.codehaus.groovy/groovy-all/jars/groovy-all-2.4.5.jar:/Users/username/src/grails-2.5.5/dist/grails-bootstrap-2.5.5.jar org.codehaus.groovy.grails.cli.support.GrailsStarter --classpath "/Applications/IntelliJ IDEA.app/Contents/plugins/Grails/lib/grails-rt.jar" --main org.codehaus.groovy.grails.cli.GrailsScriptRunner --conf /Users/username/src/grails-2.5.5/conf/groovy-starter.conf "test-app integration: --stacktrace -plain-output"
But I get the same error if I run
grails test-app integration: --stacktrace -plain-output
in the terminal.
If I try grails run-app, then I see something similar:
2018-03-01 08:33:50,828 [main] WARN webxml.WebxmlGrailsPlugin - Did not find application config file: WebXmlConfig
| Running Grails application
2018-03-01 08:33:51,785 [localhost-startStop-1] INFO context.ContextLoader - Root WebApplicationContext: initialization started
2018-03-01 08:33:51,795 [localhost-startStop-1] INFO support.XmlWebApplicationContext - Refreshing Root WebApplicationContext: startup date [Thu Mar 01 08:33:51 EST 2018]; root of context hierarchy
2018-03-01 08:33:51,811 [localhost-startStop-1] INFO xml.XmlBeanDefinitionReader - Loading XML bean definitions from ServletContext resource [/WEB-INF/applicationContext.xml]
2018-03-01 08:33:52,863 [localhost-startStop-1] WARN support.XmlWebApplicationContext - Exception encountered during context initialization - cancelling refresh attempt
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'grailsApplication' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: Invocation of init method failed; nested exception is java.lang.NullPointerException
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.NullPointerException
at java.util.concurrent.ConcurrentHashMap.putVal(ConcurrentHashMap.java:1011)
at java.util.concurrent.ConcurrentHashMap.putIfAbsent(ConcurrentHashMap.java:1535)
at java.lang.ClassLoader.getClassLoadingLock(ClassLoader.java:463)
at java.lang.ClassLoader.loadClass(ClassLoader.java:404)
at java.lang.ClassLoader.loadClass(ClassLoader.java:411)
at java.lang.ClassLoader.loadClass(ClassLoader.java:411)
... 4 more
2018-03-01 08:33:52,864 [localhost-startStop-1] ERROR context.ContextLoader - Context initialization failed

Exception in thread "neo4j.FileWatcher-1" java.lang.NoClassDefFoundError: com/sun/nio/file/SensitivityWatchEventModifier

I try to use new neo4j version 3.2.1 with WildFly 10
and when I try to connect to an embedded Database created with
this.gdbs = new GraphDatabaseFactory().newEmbeddedDatabase(new File(DB_PATH))
I have got this error
10:28:12,960 ERROR [stderr] (neo4j.FileWatcher-1) Exception in thread "neo4j.FileWatcher-1" java.lang.NoClassDefFoundError: com/sun/nio/file/SensitivityWatchEventModifier
10:28:12,960 ERROR [stderr] (neo4j.FileWatcher-1) at org.neo4j.io.fs.watcher.DefaultFileSystemWatcher.watch(DefaultFileSystemWatcher.java:66)
10:28:12,960 ERROR [stderr] (neo4j.FileWatcher-1) at org.neo4j.io.fs.watcher.RestartableFileSystemWatcher.watchFile(RestartableFileSystemWatcher.java:107)
10:28:12,961 ERROR [stderr] (neo4j.FileWatcher-1) at org.neo4j.io.fs.watcher.RestartableFileSystemWatcher.startWatching(RestartableFileSystemWatcher.java:92)
10:28:12,961 ERROR [stderr] (neo4j.FileWatcher-1) at org.neo4j.kernel.impl.util.watcher.DefaultFileSystemWatcherService$FileSystemEventWatcher.run(DefaultFileSystemWatcherService.java:92)
10:28:12,961 ERROR [stderr] (neo4j.FileWatcher-1) at java.lang.Thread.run(Thread.java:745)
10:28:12,961 ERROR [stderr] (neo4j.FileWatcher-1) Caused by: java.lang.ClassNotFoundException: com.sun.nio.file.SensitivityWatchEventModifier from [Module "deployment.ksm-app.ear:main" from Service Module Loader]
10:28:12,961 ERROR [stderr] (neo4j.FileWatcher-1) at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:198)
10:28:12,962 ERROR [stderr] (neo4j.FileWatcher-1) at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:363)
10:28:12,962 ERROR [stderr] (neo4j.FileWatcher-1) at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:351)
10:28:12,962 ERROR [stderr] (neo4j.FileWatcher-1) at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:93)
10:28:12,962 ERROR [stderr] (neo4j.FileWatcher-1) ... 5 more
meanwhile node in DB can be created by this code
try(Transaction trn = this.gdbs.beginTx()){
this.gdbs.createNode(Label.label("Test"));
trn.success();
}
Can you help me to fix this problem?
All JDK classes are not exposed to a deployment by default,
add dependencies in jboss-deployment-structure.xml file as below
<jboss-deployment-structure xmlns="urn:jboss:deployment-structure:1.1">
<deployment>
<dependencies>
<system export="true">
<paths>
<path name="com/sun/nio/file"/>
</paths>
</system>
</dependencies>
</deployment>
</jboss-deployment-structure>

java.lang.ClassNotFoundException: org.apache.struts2.tiles.StrutsTilesListener

15:06:38,636 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-1) MSC00001: Failed to start service jboss.deployment.unit."myapp.war".POST_MODULE: org.jboss.msc.service.StartException in service jboss.deployment.unit."myapp.war".POST_MODULE: Failed to process phase POST_MODULE of deployment "myapp.war"
at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:119) [jboss-as-server-7.1.0.Final.jar:7.1.0.Final]
at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [rt.jar:1.7.0_13]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [rt.jar:1.7.0_13]
at java.lang.Thread.run(Unknown Source) [rt.jar:1.7.0_13]
Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: JBAS011093: Could not load component class org.apache.struts2.tiles.StrutsTilesListener
at org.jboss.as.ee.component.deployers.InterceptorAnnotationProcessor.processComponentConfig(InterceptorAnnotationProcessor.java:113)
at org.jboss.as.ee.component.deployers.InterceptorAnnotationProcessor.deploy(InterceptorAnnotationProcessor.java:54)
at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:113) [jboss-as-server-7.1.0.Final.jar:7.1.0.Final]
... 5 more
Caused by: java.lang.ClassNotFoundException: org.apache.struts2.tiles.StrutsTilesListener from [Module "deployment.myapp.war:main" from Service Module Loader]
at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:190)
at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:468)
at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:456)
at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:398)
at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:120)
at org.jboss.as.ee.component.deployers.InterceptorAnnotationProcessor.processComponentConfig(InterceptorAnnotationProcessor.java:111)
... 7 more
15:06:39,542 ERROR [org.jboss.as] (MSC service thread 1-10) JBAS015875: JBoss AS 7.1.0.Final "Thunder" started (with errors) in 92339ms - Started 144 of 219 services (2 services failed or missing dependencies, 71 services are passive or on-demand)
15:06:39,543 INFO [org.jboss.as.server] (DeploymentScanner-threads - 2) JBAS015870: Deploy of deployment "myapp.war" was rolled back with failure message {"JBAS014671: Failed services" => {"jboss.deployment.unit.\"myapp.war\".POST_MODULE" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"myapp.war\".POST_MODULE: Failed to process phase POST_MODULE of deployment \"myapp.war\""}}
15:06:40,397 INFO [org.jboss.as.server.deployment] (MSC service thread 1-16) JBAS015877: Stopped deployment myapp.war in 853ms
15:06:40,398 INFO [org.jboss.as.controller] (DeploymentScanner-threads - 2) JBAS014774: Service status report
JBAS014777: Services which failed to start: service jboss.deployment.unit."myapp.war".POST_MODULE: org.jboss.msc.service.StartException in service jboss.deployment.unit."myapp.war".POST_MODULE: Failed to process phase POST_MODULE of deployment "myapp.war"
15:06:40,399 ERROR [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 1) {"JBAS014653: Composite operation failed and was rolled back. Steps that failed:" => {"Operation step-2" => {"JBAS014671: Failed services" => {"jboss.deployment.unit.\"myapp.war\".POST_MODULE" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"myapp.war\".POST_MODULE: Failed to process phase POST_MODULE of deployment \"myapp.war\""}}}}
I had added more dependencies than those that were needed.
The only dependency is
<dependency>
<groupId>org.apache.struts</groupId>
<artifactId>struts2-tiles-plugin</artifactId>
<version>2.3.12</version>
</dependency>

Rich:Layout is not tagged

i am working with JBoss AS 6, Richfaces 4, and JSF 2.0.
i developped a simple xhtml page to define my layouts
here it is :
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:a4j="http://richfaces.org/a4j"
xmlns:rich="http://richfaces.org/rich">
<rich:layout>
<rich:layoutPanel position="top">
Top
</rich:layoutPanel>
<rich:layoutPanel position="right">
Right
</rich:layoutPanel>
<rich:layoutPanel position="center">
Center
</rich:layoutPanel>
<rich:layoutPanel position="left">
Left
</rich:layoutPanel>
<rich:layoutPanel position="bottom">
Bottom
</rich:layoutPanel>
</rich:layout>
</ui:composition>
I've add these jars on my build path:
jsf-api.jar
jsf-impl.jar
richfaces-components-api-4.1.0.Final.jar
richfaces-components-ui-4.1.0.Final.jar
richfaces-core-api-4.1.0.Final.jar
richfaces-core-impl-4.1.0.Final.jar
guava-r09.jar
cssparser-0.9.5.jar
sac-1.3.jar
but unfortunetely when I publish i receive this error :
19:37:11,557 ERROR [STDERR] javax.faces.view.facelets.TagException: /menu.xhtml #11,17 <rich:layout> Tag Library supports namespace: http://richfaces.org/rich, but no tag was defined for name: layout
19:37:11,558 ERROR [STDERR] at com.sun.faces.facelets.compiler.CompilationManager.pushTag(CompilationManager.java:289)
19:37:11,558 ERROR [STDERR] at com.sun.faces.facelets.compiler.SAXCompiler$CompilationHandler.startElement(SAXCompiler.java:228)
19:37:11,558 ERROR [STDERR] at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)
19:37:11,558 ERROR [STDERR] at org.apache.xerces.impl.dtd.XMLDTDValidator.startElement(Unknown Source)
19:37:11,558 ERROR [STDERR] at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source)
19:37:11,558 ERROR [STDERR] at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
19:37:11,558 ERROR [STDERR] at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
19:37:11,558 ERROR [STDERR] at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
19:37:11,559 ERROR [STDERR] at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
19:37:11,559 ERROR [STDERR] at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
19:37:11,559 ERROR [STDERR] at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
19:37:11,559 ERROR [STDERR] at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
19:37:11,559 ERROR [STDERR] at org.apache.xerces.jaxp.SAXParserImpl.parse(Unknown Source)
19:37:11,559 ERROR [STDERR] at javax.xml.parsers.SAXParser.parse(SAXParser.java:195)
19:37:11,559 ERROR [STDERR] at com.sun.faces.facelets.compiler.SAXCompiler.doCompile(SAXCompiler.java:388)
19:37:11,559 ERROR [STDERR] at com.sun.faces.facelets.compiler.SAXCompiler.doCompile(SAXCompiler.java:364)
19:37:11,559 ERROR [STDERR] at com.sun.faces.facelets.compiler.Compiler.compile(Compiler.java:122)
19:37:11,560 ERROR [STDERR] at com.sun.faces.facelets.impl.DefaultFaceletFactory.createFacelet(DefaultFaceletFactory.java:294)
19:37:11,560 ERROR [STDERR] at com.sun.faces.facelets.impl.DefaultFaceletFactory.access$100(DefaultFaceletFactory.java:89)
19:37:11,560 ERROR [STDERR] at com.sun.faces.facelets.impl.DefaultFaceletFactory$1.newInstance(DefaultFaceletFactory.java:159)
19:37:11,560 ERROR [STDERR] at com.sun.faces.facelets.impl.DefaultFaceletFactory$1.newInstance(DefaultFaceletFactory.java:157)
19:37:11,560 ERROR [STDERR] at com.sun.faces.facelets.impl.DefaultFaceletCache$1.newInstance(DefaultFaceletCache.java:79)
19:37:11,560 ERROR [STDERR] at com.sun.faces.facelets.impl.DefaultFaceletCache$1.newInstance(DefaultFaceletCache.java:74)
19:37:11,560 ERROR [STDERR] at com.sun.faces.util.ExpiringConcurrentCache$1.call(ExpiringConcurrentCache.java:95)
19:37:11,560 ERROR [STDERR] at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
19:37:11,561 ERROR [STDERR] at java.util.concurrent.FutureTask.run(FutureTask.java:166)
19:37:11,561 ERROR [STDERR] at com.sun.faces.util.ExpiringConcurrentCache.get(ExpiringConcurrentCache.java:110)
19:37:11,561 ERROR [STDERR] at com.sun.faces.facelets.impl.DefaultFaceletCache.getFacelet(DefaultFaceletCache.java:115)
19:37:11,561 ERROR [STDERR] at com.sun.faces.facelets.impl.DefaultFaceletCache.getFacelet(DefaultFaceletCache.java:58)
19:37:11,561 ERROR [STDERR] at com.sun.faces.facelets.impl.DefaultFaceletFactory.getFacelet(DefaultFaceletFactory.java:245)
19:37:11,561 ERROR [STDERR] at com.sun.faces.facelets.impl.DefaultFaceletFactory.getFacelet(DefaultFaceletFactory.java:190)
19:37:11,562 ERROR [STDERR] at com.sun.faces.application.view.FaceletViewHandlingStrategy.buildView(FaceletViewHandlingStrategy.java:731)
19:37:11,562 ERROR [STDERR] at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:96)
19:37:11,562 ERROR [STDERR] at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:97)
19:37:11,562 ERROR [STDERR] at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:135)
19:37:11,562 ERROR [STDERR] at javax.faces.webapp.FacesServlet.service(FacesServlet.java:309)
19:37:11,562 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:324)
19:37:11,562 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:242)
19:37:11,563 ERROR [STDERR] at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275)
19:37:11,563 ERROR [STDERR] at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161)
19:37:11,563 ERROR [STDERR] at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:181)
19:37:11,563 ERROR [STDERR] at org.jboss.modcluster.catalina.CatalinaContext$RequestListenerValve.event(CatalinaContext.java:285)
19:37:11,563 ERROR [STDERR] at org.jboss.modcluster.catalina.CatalinaContext$RequestListenerValve.invoke(CatalinaContext.java:261)
19:37:11,563 ERROR [STDERR] at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:88)
19:37:11,563 ERROR [STDERR] at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:100)
19:37:11,563 ERROR [STDERR] at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:159)
19:37:11,563 ERROR [STDERR] at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
19:37:11,564 ERROR [STDERR] at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158)
19:37:11,564 ERROR [STDERR] at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
19:37:11,564 ERROR [STDERR] at org.jboss.web.tomcat.service.request.ActiveRequestResponseCacheValve.invoke(ActiveRequestResponseCacheValve.java:53)
19:37:11,564 ERROR [STDERR] at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:362)
19:37:11,564 ERROR [STDERR] at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877)
19:37:11,564 ERROR [STDERR] at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:654)
19:37:11,564 ERROR [STDERR] at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:951)
19:37:11,564 ERROR [STDERR] at java.lang.Thread.run(Thread.java:636)
Please could you help.
RichFaces 4 has removed support for rich:layout
having large experinece with 3.3.x users opinions could only say that those components has lower priority because our previous layouts were not used much. Users still preferred to use plain Y! or jQuery(to get more control). So that's why postponed and want to revise to make more convenient/rich.
See this

Resources