Я обновил weblogic до версии 12.2.1.3.0 (до этого был 12.1.2).Я попытался развернуть приложение на сервере weblogic (в начале с JAVA 7) и получил исключение:
weblogic.management.DeploymentException: CDI deployment failure:WELD-001409: Ambiguous dependencies for type Manager with qualifiers @Default
[java] at injection point [BackedAnnotatedField] @Inject protected (here is the package path) package.Manager
[java] at package.Manager(Session.java:0)
[java] Possible dependencies:
[java] - Managed Bean [class package.Manager] with qualifiers [@Any @Default],
[java] - Managed Bean [class package.Manager] with qualifiers [@Any @Default]
[java] :org.jboss.weld.exceptions.DeploymentException:WELD-001409: Ambiguous dependencies for type Manager with qualifiers @Default
[java] at injection point [BackedAnnotatedField] @Inject protected package.Manager
[java] at package.Manager(Session.java:0)
[java] Possible dependencies:
[java] - Managed Bean [package.Manager] with qualifiers [@Any @Default],
[java] - Managed Bean [package.Manager] with qualifiers [@Any @Default]
Я хотел бы добавить, что при развертывании на «старой» версии weblogic все включено.
После обновления Java до 1.8 во время развертывания я получаю исключение, как показано ниже:
weblogic.management.DeploymentException: CDI deployment failure:Exception List with 2 exceptions:
[java] Exception 0 :
[java] org.jboss.weld.exceptions.DeploymentException: WELD-001408: Unsatisfied dependencies for type ManagerAdapter with qualifiers @Default
[java] at injection point [BackedAnnotatedField] @Inject protected package.ManagerAdapter
[java] at package.ManagerAdapter(ProjectManagerBase.java:0)
[java]
[java] at org.jboss.weld.bootstrap.Validator.validateInjectionPointForDeploymentProblems(Validator.java:359)
[java] at org.jboss.weld.bootstrap.Validator.validateInjectionPoint(Validator.java:281)
[java] at org.jboss.weld.bootstrap.Validator.validateGeneralBean(Validator.java:134)
[java] at org.jboss.weld.bootstrap.Validator.validateRIBean(Validator.java:155)
[java] at org.jboss.weld.bootstrap.Validator.validateBean(Validator.java:518)
[java] at org.jboss.weld.bootstrap.Validator.validateBeans(Validator.java:504)
[java] at org.jboss.weld.bootstrap.Validator.validateDeployment(Validator.java:479)
[java] at org.jboss.weld.bootstrap.WeldStartup.validateBeans(WeldStartup.java:446)
[java] at org.jboss.weld.bootstrap.WeldBootstrap.validateBeans(WeldBootstrap.java:90)
[java] at com.oracle.injection.provider.weld.WeldInjectionContainer.start(WeldInjectionContainer.java:150)
[java] at com.oracle.injection.integration.CDIAppDeploymentExtension.initCdi(CDIAppDeploymentExtension.java:84)
[java] at com.oracle.injection.integration.CDIAppDeploymentExtension.activate(CDIAppDeploymentExtension.java:43)
[java] at weblogic.application.internal.flow.AppDeploymentExtensionFlow.activate(AppDeploymentExtensionFlow.java:39)
[java] at weblogic.application.internal.BaseDeployment$2.next(BaseDeployment.java:752)
[java] at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:45)
[java] at weblogic.application.internal.BaseDeployment.activate(BaseDeployment.java:262)
[java] at weblogic.application.internal.EarDeployment.activate(EarDeployment.java:66)
[java] at weblogic.application.internal.DeploymentStateChecker.activate(DeploymentStateChecker.java:165)
[java] at weblogic.deploy.internal.targetserver.AppContainerInvoker.activate(AppContainerInvoker.java:90)
[java] at weblogic.deploy.internal.targetserver.operations.AbstractOperation.activate(AbstractOperation.java:631)
[java] at weblogic.deploy.internal.targetserver.operations.ActivateOperation.activateDeployment(ActivateOperation.java:171)
[java] at weblogic.deploy.internal.targetserver.operations.ActivateOperation.doCommit(ActivateOperation.java:121)
[java] at weblogic.deploy.internal.targetserver.operations.AbstractOperation.commit(AbstractOperation.java:348)
[java] at weblogic.deploy.internal.targetserver.DeploymentManager.handleDeploymentCommit(DeploymentManager.java:907)
[java] at weblogic.deploy.internal.targetserver.DeploymentManager.activateDeploymentList(DeploymentManager.java:1468)
[java] at weblogic.deploy.internal.targetserver.DeploymentManager.handleCommit(DeploymentManager.java:459)
[java] at weblogic.deploy.internal.targetserver.DeploymentServiceDispatcher.commit(DeploymentServiceDispatcher.java:181)
[java] at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.doCommitCallback(DeploymentReceiverCallbackDeliverer.java:217)
[java] at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.access$100(DeploymentReceiverCallbackDeliverer.java:14)
[java] at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer$2.run(DeploymentReceiverCallbackDeliverer.java:69)
[java] at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:670)
[java] at weblogic.invocation.ComponentInvocationContextManager._runAs(ComponentInvocationContextManager.java:352)
[java] at weblogic.invocation.ComponentInvocationContextManager.runAs(ComponentInvocationContextManager.java:337)
[java] at weblogic.work.LivePartitionUtility.doRunWorkUnderContext(LivePartitionUtility.java:57)
[java] at weblogic.work.PartitionUtility.runWorkUnderContext(PartitionUtility.java:41)
[java] at weblogic.work.SelfTuningWorkManagerImpl.runWorkUnderContext(SelfTuningWorkManagerImpl.java:644)
[java] at weblogic.work.ExecuteThread.execute(ExecuteThread.java:415)
[java] at weblogic.work.ExecuteThread.run(ExecuteThread.java:355)
У вас есть какие-либо идеи, в чем может быть проблема или куда мне копать глубже?
Спасибо за все