[
https://issues.jboss.org/browse/WFLY-10833?page=com.atlassian.jira.plugin...
]
Ondra Chaloupka commented on WFLY-10833:
----------------------------------------
The `CompensationManagerImpl` class was moved from `impl` package to `internal` based on
the issue
https://issues.jboss.org/browse/JBTM-2269.
The WildFly 10 integrates Narayana in the older version 5.2.x where the change are not
applied yet. The WildFly 13 integrates Narayana in version 5.5.x.
The module `org.jboss.narayana.compensations` uses the the correct new placing of the
bean. In the clean WildFly installation I can't see other place where the bean would
be defined.
[~westlake91361] I would bet your application depends on the Narayana in version 5.2.x
which brings this dependency to the container. Could it be that you pack the Naryana
compensation module to your application (e.g. you do not use the Maven scope `provided`
during the build)?
Wildfly 13.0.0.Final deployment failed due to WELD-001409: Ambiguous
dependencies for type CompensationManager with qualifiers @Default
---------------------------------------------------------------------------------------------------------------------------------------
Key: WFLY-10833
URL:
https://issues.jboss.org/browse/WFLY-10833
Project: WildFly
Issue Type: Bug
Components: Transactions
Affects Versions: 13.0.0.Final
Environment: JDK 8
Wildfly 13.0.0.Final
Reporter: Angela Yuan
Assignee: Ondra Chaloupka
Able to deploy the same WAR and EAR to Wildfly 10.0.0.Final but not to 13.0.0.Final with
the following error:
ERROR [org.jboss.msc.service.fail] (MSC service thread 1-7) MSC000001: Failed to start
service jboss.deployment.unit."xxxxx.war".WeldStartService:
org.jboss.msc.service.S
tartException in service
jboss.deployment.unit."fwdm-services-1.0-SNAPSHOT.war".WeldStartService: Failed
to start service
at
org.jboss.msc.service.ServiceControllerImpl$StartTask.execute(ServiceControllerImpl.java:1728)
at
org.jboss.msc.service.ServiceControllerImpl$ControllerTask.run(ServiceControllerImpl.java:1556)
at
org.jboss.threads.ContextClassLoaderSavingRunnable.run(ContextClassLoaderSavingRunnable.java:35)
at
org.jboss.threads.EnhancedQueueExecutor.safeRun(EnhancedQueueExecutor.java:1985)
at
org.jboss.threads.EnhancedQueueExecutor$ThreadBody.doRunTask(EnhancedQueueExecutor.java:1487)
at
org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1378)
at java.lang.Thread.run(Thread.java:748)
Caused by: org.jboss.weld.exceptions.DeploymentException: WELD-001409: Ambiguous
dependencies for type CompensationManager with qualifiers @Default
at injection point [UnbackedAnnotatedField] @Inject
org.jboss.narayana.compensations.impl.CancelOnFailureInterceptor.compensationManager
at
org.jboss.narayana.compensations.impl.CancelOnFailureInterceptor.compensationManager(CancelOnFailureInterceptor.java:0)
Possible dependencies:
- Managed Bean [class
org.jboss.narayana.compensations.internal.CompensationManagerImpl] with qualifiers [@Any
@Default],
- Managed Bean [class org.jboss.narayana.compensations.impl.CompensationManagerImpl]
with qualifiers [@Any @Default]
at
org.jboss.weld.bootstrap.Validator.validateInjectionPointForDeploymentProblems(Validator.java:386)
at org.jboss.weld.bootstrap.Validator.validateInjectionPoint(Validator.java:290)
at org.jboss.weld.bootstrap.Validator.validateInterceptor(Validator.java:564)
at
org.jboss.weld.bootstrap.ConcurrentValidator$2.doWork(ConcurrentValidator.java:81)
at
org.jboss.weld.bootstrap.ConcurrentValidator$2.doWork(ConcurrentValidator.java:79)
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:1149)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
at org.jboss.threads.JBossThread.run(JBossThread.java:485)
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)