[jboss-jira] [JBoss JIRA] (WFLY-4212) REGRESSION: CDI application fails to deploy in 8.2.0 vs 8.1.0

Arcadiy Ivanov (JIRA) issues at jboss.org
Wed Dec 31 05:13:29 EST 2014


    [ https://issues.jboss.org/browse/WFLY-4212?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13029656#comment-13029656 ] 

Arcadiy Ivanov commented on WFLY-4212:
--------------------------------------

Running the test case requires a domain with a single server-group "primary-clustered".

{noformat}
Running wfcore488.test.ServiceIT
======
bf40aa60-1792-473b-bc2c-344adf89790c.ear:
/lib/
/lib/wfcore488-lib-1.0.0-SNAPSHOT.jar
/lib/arquillian-junit-container-1.1.5.Final.jar
/lib/wildfly-arquillian-container-domain-remote-1.0.0.Alpha4.jar
/lib/junit-4.11.jar
/lib/arquillian-suite-extension-1.1.1.jar
/lib/mockito-all-1.10.17.jar
/wfcore488-ejb-1.0.0-SNAPSHOT.jar
/test.war
/META-INF/
/META-INF/application.xml
======
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<application xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="6">
  <library-directory>lib</library-directory>
  <module>
    <web>
      <web-uri>test.war</web-uri>
      <context-root>/</context-root>
    </web>
  </module>
  <module>
    <ejb>wfcore488-ejb-1.0.0-SNAPSHOT.jar</ejb>
  </module>
</application>

======
test.war:
/WEB-INF/
/WEB-INF/classes/
/WEB-INF/classes/wfcore488/
/WEB-INF/classes/wfcore488/web/
/WEB-INF/classes/wfcore488/web/ExampleService.class
/WEB-INF/classes/wfcore488/test/
/WEB-INF/classes/wfcore488/test/ServiceIT.class
/WEB-INF/classes/wfcore488/test/common/
/WEB-INF/classes/wfcore488/test/common/AbstractArquillianSuite.class
/WEB-INF/classes/wfcore488/test/common/ServiceTestBase.class
/META-INF/
/META-INF/arquillian.ArchiveUnderTest
======
{noformat}

Test case is as follows:
# An Arquillian test creates an EAR
# An EAR contains a test.war, an EJB module and a utility Lib (in EAR's lib/)
# WAR injects EJB from an EJB module
# EJB module injects CDI bean from a utility Lib
# The latter injection fails on 8.2.0.


> 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}



--
This message was sent by Atlassian JIRA
(v6.3.11#6341)


More information about the jboss-jira mailing list