Vaadin CDI fails on WebLogic 12.1.3

Vaadin CDI deployment on WebLogic Server 12.1.3 fails with IllegalStateException with Eclipse, I have tried both Vaadin CDI 1.0.2 & 1.0.3 & added empty & non-empty beans.xml to my WEB-INF directory without luck.

In reference to the closed ticket https://dev.vaadin.com/ticket/15344 this issue with WebLogic Server that has been resolved, the issue still persists with the latest Vaadin Eclipse plugin using the default Project.

Sep 12, 2015 6:50:55 PM org.apache.deltaspike.core.util.ClassDeactivationUtils cacheResult
INFO: class: org.apache.deltaspike.core.impl.scope.DeltaSpikeContextExtension activated=true
Sep 12, 2015 6:50:55 PM org.apache.deltaspike.core.util.ClassDeactivationUtils cacheResult
INFO: class: org.apache.deltaspike.core.impl.config.ConfigurationExtension activated=true
Sep 12, 2015 6:50:55 PM org.apache.deltaspike.core.util.ClassDeactivationUtils cacheResult
INFO: class: org.apache.deltaspike.core.impl.exception.control.extension.ExceptionControlExtension activated=true
Sep 12, 2015 6:50:55 PM org.apache.deltaspike.core.util.ClassDeactivationUtils cacheResult
INFO: class: org.apache.deltaspike.core.impl.message.MessageBundleExtension activated=true
Sep 12, 2015 6:50:55 PM org.apache.deltaspike.core.util.ClassDeactivationUtils cacheResult
INFO: class: org.apache.deltaspike.core.impl.message.NamedMessageBundleInvocationHandler activated=true
Sep 12, 2015 6:50:55 PM org.apache.deltaspike.core.util.ClassDeactivationUtils cacheResult
INFO: class: org.apache.deltaspike.core.impl.jmx.MBeanExtension activated=true
Sep 12, 2015 6:50:55 PM org.apache.deltaspike.core.util.ClassDeactivationUtils cacheResult
INFO: class: org.apache.deltaspike.core.impl.exclude.extension.ExcludeExtension activated=true
Sep 12, 2015 6:50:55 PM org.apache.deltaspike.core.util.ClassDeactivationUtils cacheResult
INFO: class: org.apache.deltaspike.core.impl.exclude.CustomProjectStageBeanFilter activated=true
Sep 12, 2015 6:50:55 PM org.apache.deltaspike.core.util.ClassDeactivationUtils cacheResult
INFO: class: org.apache.deltaspike.core.impl.exclude.GlobalAlternative activated=true
Sep 12, 2015 6:50:55 PM org.apache.deltaspike.core.util.ProjectStageProducer initProjectStage
INFO: Computed the following DeltaSpike ProjectStage: Production
Sep 12, 2015 6:51:03 PM com.vaadin.cdi.internal.VaadinExtension afterBeanDiscovery
INFO: UIScopedContext registered for Vaadin CDI
Sep 12, 2015 6:51:03 PM com.vaadin.cdi.internal.VaadinExtension afterBeanDiscovery
INFO: ViewScopedContext registered for Vaadin CDI
<Sep 12, 2015 6:51:03 PM GST> <Failure occurred in the execution of deployment request with ID “5129172304582” for task “46”. Error is: "weblogic.management.DeploymentException: org.jboss.weld.exceptions.DeploymentException: Exception List with 1 exceptions:
Exception 0 :
java.lang.IllegalStateException: Could not find beans for Type=class org.apache.deltaspike.core.impl.scope.window.WindowBeanHolder and qualifiers:
at org.apache.deltaspike.core.api.provider.BeanProvider.getContextualReference(BeanProvider.java:150)
at org.apache.deltaspike.core.impl.scope.DeltaSpikeContextExtension.initializeDeltaSpikeContexts(DeltaSpikeContextExtension.java:85)
at org.apache.deltaspike.core.impl.scope.DeltaSpikeContextExtension$Proxy$_$$WeldClientProxy.initializeDeltaSpikeContexts(DeltaSpikeContextExtension$Proxy$$$_WeldClientProxy.java)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.jboss.weld.util.reflection.SecureReflections$13.work(SecureReflections.java:267)
at org.jboss.weld.util.reflection.SecureReflectionAccess.run(SecureReflectionAccess.java:52)
at org.jboss.weld.util.reflection.SecureReflectionAccess.runAsInvocation(SecureReflectionAccess.java:137)
at org.jboss.weld.util.reflection.SecureReflections.invoke(SecureReflections.java:263)
at org.jboss.weld.introspector.jlr.WeldMethodImpl.invokeOnInstance(WeldMethodImpl.java:164)
at org.jboss.weld.introspector.ForwardingWeldMethod.invokeOnInstance(ForwardingWeldMethod.java:51)
at org.jboss.weld.injection.MethodInjectionPoint.invokeOnInstanceWithSpecialValue(MethodInjectionPoint.java:154)
at org.jboss.weld.event.ObserverMethodImpl.sendEvent(ObserverMethodImpl.java:245)
at org.jboss.weld.event.ObserverMethodImpl.sendEvent(ObserverMethodImpl.java:233)
at org.jboss.weld.event.ObserverMethodImpl.notify(ObserverMethodImpl.java:213)
at org.jboss.weld.bootstrap.events.AbstractContainerEvent.fire(AbstractContainerEvent.java:75)
at org.jboss.weld.bootstrap.events.AbstractDeploymentContainerEvent.fire(AbstractDeploymentContainerEvent.java:46)
at org.jboss.weld.bootstrap.events.AfterDeploymentValidationImpl.fire(AfterDeploymentValidationImpl.java:31)
at org.jboss.weld.bootstrap.WeldBootstrap.validateBeans(WeldBootstrap.java:382)
at com.oracle.injection.provider.weld.WeldInjectionContainer.start(WeldInjectionContainer.java:110)
at com.oracle.injection.integration.CDIAppDeploymentExtension.initCdi(CDIAppDeploymentExtension.java:76)
at com.oracle.injection.integration.CDIAppDeploymentExtension.activate(CDIAppDeploymentExtension.java:49)
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.EarDeployment.activate(EarDeployment.java:61)
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:587)
at weblogic.deploy.internal.targetserver.operations.ActivateOperation.activateDeployment(ActivateOperation.java:150)
at weblogic.deploy.internal.targetserver.operations.ActivateOperation.doCommit(ActivateOperation.java:116)
at weblogic.deploy.internal.targetserver.operations.StartOperation.doCommit(StartOperation.java:151)
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:553)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:311)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:263)

Hi,

There is not that much Vaadin specific in the stacktrace so maybe this is some other issue. Maybe you could try to check out some existing
Vaadin + CDI example
and check if that deploys properly.

BTW Did you remove the Servlet defined by the default project? That needs to be removed (CDI add-on automatically presents a servlet) or replaced with a one that inherits from the special servlet form the CDI add-on.

cheers,
matti