]
Stuart Douglas commented on WFLY-4212:
--------------------------------------
This is cause by the deployment generating a jandex annotation index using an old version
of Jandex. If you don't generate the index at build time wildfly will generate it
automatically. Unless the deployment is massive you are unlikely to see any noticeable
change in deployment time generating it at build time rather than leaving this up to
Wildfly.
REGRESSION: CDI application fails to deploy in 8.2.0 vs 8.1.0
-------------------------------------------------------------
Key: WFLY-4212
URL:
https://issues.jboss.org/browse/WFLY-4212
Project: WildFly
Issue Type: Bug
Components: CDI / Weld
Affects Versions: 8.2.0.Final
Reporter: Arcadiy Ivanov
Assignee: Stuart Douglas
Priority: Critical
Attachments: 8.1.0-cluster_logs.2014-12-31T04-01-53.tar.gz,
8.2.0-cluster_logs.2014-12-31T04-19-06.tar.gz
While testing an upgrade to 8.2.0 a multi-component integration test that worked on 8.1.0
failed to deploy.
A distilled clean-room test case reproducing the problem is located here:
https://github.com/arcivanov/misc/tree/WFCORE-488/WFCORE-488
This bug is also accompanied by the failure to undeploy partial deployment in WFCORE-488,
although at present the above test case not yet reproduces the behavior.
The deployment error on 8.2.0 is as follows:
{noformat}
2014-12-31 04:17:11,877 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-5)
MSC000001: Failed to start service
jboss.deployment.unit."bf40aa60-1792-473b-bc2c-344adf89790c.ear".WeldStartService:
org.jboss.msc.service.StartException in service
jboss.deployment.unit."bf40aa60-1792-473b-bc2c-344adf89790c.ear".WeldStartService:
Failed to start service
at
org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1904)
[jboss-msc-1.2.2.Final.jar:1.2.2.Final]
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
[rt.jar:1.8.0_25]
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
[rt.jar:1.8.0_25]
at java.lang.Thread.run(Thread.java:745) [rt.jar:1.8.0_25]
Caused by: org.jboss.weld.exceptions.DeploymentException: WELD-001408: Unsatisfied
dependencies for type DateGenerator with qualifiers @Default
at injection point [BackedAnnotatedField] @Inject private
wfcore488.ejb.ExampleEjb.dateGen
at wfcore488.ejb.ExampleEjb.dateGen(ExampleEjb.java:0)
at
org.jboss.weld.bootstrap.Validator.validateInjectionPointForDeploymentProblems(Validator.java:372)
at org.jboss.weld.bootstrap.Validator.validateInjectionPoint(Validator.java:293)
at org.jboss.weld.bootstrap.Validator.validateGeneralBean(Validator.java:134)
at org.jboss.weld.bootstrap.Validator.validateRIBean(Validator.java:167)
at org.jboss.weld.bootstrap.Validator.validateBean(Validator.java:531)
at
org.jboss.weld.bootstrap.ConcurrentValidator$1.doWork(ConcurrentValidator.java:68)
at
org.jboss.weld.bootstrap.ConcurrentValidator$1.doWork(ConcurrentValidator.java:66)
at
org.jboss.weld.executor.IterativeWorkerTaskFactory$1.call(IterativeWorkerTaskFactory.java:60)
at
org.jboss.weld.executor.IterativeWorkerTaskFactory$1.call(IterativeWorkerTaskFactory.java:53)
at java.util.concurrent.FutureTask.run(FutureTask.java:266) [rt.jar:1.8.0_25]
... 3 more
2014-12-31 04:17:11,886 ERROR [org.jboss.as.controller.management-operation]
(ServerService Thread Pool -- 66) JBAS014613: Operation ("deploy") failed -
address: ([("deployment" =>
"bf40aa60-1792-473b-bc2c-344adf89790c.ear")]) - failure description:
{"JBAS014671: Failed services" =>
{"jboss.deployment.unit.\"bf40aa60-1792-473b-bc2c-344adf89790c.ear\".WeldStartService"
=> "org.jboss.msc.service.StartException in service
jboss.deployment.unit.\"bf40aa60-1792-473b-bc2c-344adf89790c.ear\".WeldStartService:
Failed to start service
Caused by: org.jboss.weld.exceptions.DeploymentException: WELD-001408: Unsatisfied
dependencies for type DateGenerator with qualifiers @Default
at injection point [BackedAnnotatedField] @Inject private
wfcore488.ejb.ExampleEjb.dateGen
at wfcore488.ejb.ExampleEjb.dateGen(ExampleEjb.java:0)
"}}
2014-12-31 04:17:11,889 ERROR [org.jboss.as.server] (ServerService Thread Pool -- 66)
JBAS015870: Deploy of deployment "bf40aa60-1792-473b-bc2c-344adf89790c.ear" was
rolled back with the following failure message:
{"JBAS014671: Failed services" =>
{"jboss.deployment.unit.\"bf40aa60-1792-473b-bc2c-344adf89790c.ear\".WeldStartService"
=> "org.jboss.msc.service.StartException in service
jboss.deployment.unit.\"bf40aa60-1792-473b-bc2c-344adf89790c.ear\".WeldStartService:
Failed to start service
Caused by: org.jboss.weld.exceptions.DeploymentException: WELD-001408: Unsatisfied
dependencies for type DateGenerator with qualifiers @Default
at injection point [BackedAnnotatedField] @Inject private
wfcore488.ejb.ExampleEjb.dateGen
at wfcore488.ejb.ExampleEjb.dateGen(ExampleEjb.java:0)
"}}
{noformat}