7 Replies Latest reply on Feb 4, 2014 9:24 AM by Vitalii Chepeliuk

    WELD container is not working with WebLogic server 12.1.2.0

    Vitalii Chepeliuk Newbie

      Following exception is thrown when I want to run Infinispan CDI tests for WebLogic

      org.jboss.weld.exceptions.DeploymentException: WELD-001409 Ambiguous dependencies for type [RemoteCacheManager] with qualifiers [@Default] at injection point [[field] @Inject private org.infinispan.cdi.RemoteCacheProducer.defaultRemoteCacheManager]. Possible dependencies [[Producer Method [RemoteCacheManager] with qualifiers [@Any @Default] declared as [[method] @Produces @ApplicationScoped public org.infinispan.cdi.test.cachemanager.remote.DefaultCacheManagerOverrideTest.defaultRemoteCacheManager()], Producer Method [RemoteCacheManager] with qualifiers [@Any @Default] declared as [[method] @Produces @ApplicationScoped @DefaultBean public org.infinispan.cdi.DefaultRemoteCacheManagerProducer.getDefaultRemoteCacheManager()]]]

          at org.jboss.weld.bootstrap.Validator.validateInjectionPoint(Validator.java:314)

          at org.jboss.weld.bootstrap.Validator.validateInjectionPoint(Validator.java:280)

          at org.jboss.weld.bootstrap.Validator.validateBean(Validator.java:143)

          at org.jboss.weld.bootstrap.Validator.validateRIBean(Validator.java:163)

          at org.jboss.weld.bootstrap.Validator.validateBeans(Validator.java:382)

          at org.jboss.weld.bootstrap.Validator.validateDeployment(Validator.java:367)

          at org.jboss.weld.bootstrap.WeldBootstrap.validateBeans(WeldBootstrap.java:379)

          at com.oracle.injection.provider.weld.WeldInjectionContainer.start(WeldInjectionContainer.java:106)

          at com.oracle.injection.integration.CDIAppDeploymentExtension.initCdi(CDIAppDeploymentExtension.java:70)

          at com.oracle.injection.integration.CDIAppDeploymentExtension.activate(CDIAppDeploymentExtension.java:47)

          at weblogic.application.internal.flow.AppDeploymentExtensionFlow.activate(AppDeploymentExtensionFlow.java:37)

          at weblogic.application.internal.BaseDeployment$2.next(BaseDeployment.java:729)

          at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:42)

          at weblogic.application.internal.BaseDeployment.activate(BaseDeployment.java:258)

          at weblogic.application.internal.SingleModuleDeployment.activate(SingleModuleDeployment.java:48)

          at weblogic.application.internal.DeploymentStateChecker.activate(DeploymentStateChecker.java:165)

          at weblogic.deploy.internal.targetserver.AppContainerInvoker.activate(AppContainerInvoker.java:80)

          at weblogic.deploy.internal.targetserver.operations.AbstractOperation.activate(AbstractOperation.java:586)

          at weblogic.deploy.internal.targetserver.operations.ActivateOperation.activateDeployment(ActivateOperation.java:148)

          at weblogic.deploy.internal.targetserver.operations.ActivateOperation.doCommit(ActivateOperation.java:114)

          at weblogic.deploy.internal.targetserver.operations.AbstractOperation.commit(AbstractOperation.java:339)

          at weblogic.deploy.internal.targetserver.DeploymentManager.handleDeploymentCommit(DeploymentManager.java:846)

          at weblogic.deploy.internal.targetserver.DeploymentManager.activateDeploymentList(DeploymentManager.java:1275)

          at weblogic.deploy.internal.targetserver.DeploymentManager.handleCommit(DeploymentManager.java:442)

          at weblogic.deploy.internal.targetserver.DeploymentServiceDispatcher.commit(DeploymentServiceDispatcher.java:176)

          at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.doCommitCallback(DeploymentReceiverCallbackDeliverer.java:195)

          at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.access$100(DeploymentReceiverCallbackDeliverer.java:13)

          at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer$2.run(DeploymentReceiverCallbackDeliverer.java:68)

          at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:550)

          at weblogic.work.ExecuteThread.execute(ExecuteThread.java:295)

          at weblogic.work.ExecuteThread.run(ExecuteThread.java:254)

       

      Add attachments for CDI tests and meven settings.xml file