You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@openwebbeans.apache.org by "Mark Struberg (JIRA)" <ji...@apache.org> on 2016/02/16 17:18:18 UTC

[jira] [Resolved] (OWB-1101) There are more than one WebBeans with name : csfFLOWDISCOVERYCDIHELPER

     [ https://issues.apache.org/jira/browse/OWB-1101?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Mark Struberg resolved OWB-1101.
--------------------------------
    Resolution: Cannot Reproduce

Hi!

Closing for now. Please reopen if you manage to reproduce this (I tried but was not able to).

> There are more than one WebBeans with name : csfFLOWDISCOVERYCDIHELPER
> ----------------------------------------------------------------------
>
>                 Key: OWB-1101
>                 URL: https://issues.apache.org/jira/browse/OWB-1101
>             Project: OpenWebBeans
>          Issue Type: Bug
>          Components: Core, JSF
>    Affects Versions: 1.6.2
>         Environment: Tomcat 8, JSF Mojarra 2.2.12
> I use the following dependencies:
> 			<dependency>
> 				<groupId>org.apache.geronimo.specs</groupId>
> 				<artifactId>geronimo-atinject_1.0_spec</artifactId>
> 				<version>1.0</version>
> 			</dependency>
> 			<dependency>
> 				<groupId>org.apache.geronimo.specs</groupId>
> 				<artifactId>geronimo-jcdi_1.1_spec</artifactId>
> 				<version>1.0</version>
> 			</dependency>
> 			<dependency>
> 				<groupId>org.apache.geronimo.specs</groupId>
> 				<artifactId>geronimo-interceptor_1.2_spec</artifactId>
> 				<version>1.0</version>
> 				<scope>compile</scope>
> 			</dependency>
> 			<dependency>
> 				<groupId>org.apache.geronimo.specs</groupId>
> 				<artifactId>geronimo-annotation_1.2_spec</artifactId>
> 				<version>1.0</version>
> 				<scope>compile</scope>
> 			</dependency>
> 			<dependency>
> 				<groupId>org.apache.openwebbeans</groupId>
> 				<artifactId>openwebbeans-spi</artifactId>
> 				<version>${owb.version}</version>
> 				<scope>runtime</scope>
> 			</dependency>
> 			<dependency>
> 				<groupId>org.apache.openwebbeans</groupId>
> 				<artifactId>openwebbeans-impl</artifactId>
> 				<version>${owb.version}</version>
> 				<scope>runtime</scope>
> 			</dependency>
> 			<dependency>
> 				<groupId>org.apache.openwebbeans</groupId>
> 				<artifactId>openwebbeans-web</artifactId>
> 				<version>${owb.version}</version>
> 				<scope>runtime</scope>
> 			</dependency>
> 			<dependency>
> 				<groupId>org.apache.openwebbeans</groupId>
> 				<artifactId>openwebbeans-jsf</artifactId>
> 				<version>${owb.version}</version>
> 				<scope>runtime</scope>
> 			</dependency>
> 			<dependency>
> 				<groupId>org.apache.openwebbeans</groupId>
> 				<artifactId>openwebbeans-el22</artifactId>
> 				<version>${owb.version}</version>
> 				<scope>runtime</scope>
> 			</dependency>
> 			<dependency>
> 				<groupId>org.apache.openwebbeans</groupId>
> 				<artifactId>openwebbeans-tomcat7</artifactId>
> 				<version>${owb.version}</version>
> 				<scope>runtime</scope>
> 			</dependency>
>            Reporter: Boda Béla
>            Assignee: Mark Struberg
>
> I try to initegrate OpenWebBeans into a JSF 2.2 project deployed into Tomcat 8. All JSF libraries are in the applicaion's WEB-INF/lib.
> The listener is in the web.xml as intended:
> <listener>
> 		<listener-class>org.apache.webbeans.servlet.WebBeansConfigurationListener</listener-class>
> 	</listener>
> I get the following at the startup:
> SEVERE: Exception sending context initialized event to listener instance of class org.apache.webbeans.servlet.WebBeansConfigurationListener
> org.apache.webbeans.exception.WebBeansDeploymentException: javax.enterprise.inject.AmbiguousResolutionException: There are more than one WebBeans with name : csfFLOWDISCOVERYCDIHELPER
> found beans: 
> FlowDiscoveryCDIHelper, WebBeansType:MANAGED, Name:csfFLOWDISCOVERYCDIHELPER, API Types:[java.lang.Object,java.io.Serializable,com.sun.faces.flow.FlowDiscoveryCDIHelper], Qualifiers:[javax.enterprise.inject.Any,javax.enterprise.inject.Default,javax.inject.Named] from jar:file:/D:/@s2s/s2s-creator-ws/sketchup-ws/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/sketchup-canvas/WEB-INF/lib/jsf-impl-2.2.12.jar!/com/sun/faces/flow/FlowDiscoveryCDIHelper.class
> FlowDiscoveryCDIHelper, WebBeansType:MANAGED, Name:csfFLOWDISCOVERYCDIHELPER, API Types:[java.lang.Object,java.io.Serializable,com.sun.faces.flow.FlowDiscoveryCDIHelper], Qualifiers:[javax.enterprise.inject.Any,javax.enterprise.inject.Default,javax.inject.Named] from jar:file:/D:/@s2s/s2s-creator-ws/sketchup-ws/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/sketchup-canvas/WEB-INF/lib/jsf-impl-2.2.12.jar!/com/sun/faces/flow/FlowDiscoveryCDIHelper.class
> 	at org.apache.webbeans.config.BeansDeployer.deploy(BeansDeployer.java:297)
> 	at org.apache.webbeans.lifecycle.AbstractLifeCycle.bootstrapApplication(AbstractLifeCycle.java:138)
> 	at org.apache.webbeans.lifecycle.AbstractLifeCycle.startApplication(AbstractLifeCycle.java:104)
> 	at org.apache.webbeans.web.lifecycle.WebContainerLifecycle.startApplication(WebContainerLifecycle.java:87)
> 	at org.apache.webbeans.servlet.WebBeansConfigurationListener.contextInitialized(WebBeansConfigurationListener.java:85)
> 	at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4729)
> 	at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5167)
> 	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
> 	at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1409)
> 	at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1399)
> 	at java.util.concurrent.FutureTask.run(FutureTask.java:262)
> 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
> 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
> 	at java.lang.Thread.run(Thread.java:745)
> Caused by: javax.enterprise.inject.AmbiguousResolutionException: There are more than one WebBeans with name : csfFLOWDISCOVERYCDIHELPER
> found beans: 
> FlowDiscoveryCDIHelper, WebBeansType:MANAGED, Name:csfFLOWDISCOVERYCDIHELPER, API Types:[java.lang.Object,java.io.Serializable,com.sun.faces.flow.FlowDiscoveryCDIHelper], Qualifiers:[javax.enterprise.inject.Any,javax.enterprise.inject.Default,javax.inject.Named] from jar:file:/D:/@s2s/s2s-creator-ws/sketchup-ws/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/sketchup-canvas/WEB-INF/lib/jsf-impl-2.2.12.jar!/com/sun/faces/flow/FlowDiscoveryCDIHelper.class
> FlowDiscoveryCDIHelper, WebBeansType:MANAGED, Name:csfFLOWDISCOVERYCDIHELPER, API Types:[java.lang.Object,java.io.Serializable,com.sun.faces.flow.FlowDiscoveryCDIHelper], Qualifiers:[javax.enterprise.inject.Any,javax.enterprise.inject.Default,javax.inject.Named] from jar:file:/D:/@s2s/s2s-creator-ws/sketchup-ws/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/sketchup-canvas/WEB-INF/lib/jsf-impl-2.2.12.jar!/com/sun/faces/flow/FlowDiscoveryCDIHelper.class
> 	at org.apache.webbeans.util.InjectionExceptionUtil.throwAmbiguousResolutionExceptionForBeans(InjectionExceptionUtil.java:108)
> 	at org.apache.webbeans.util.InjectionExceptionUtil.throwAmbiguousResolutionExceptionForBeanName(InjectionExceptionUtil.java:70)
> 	at org.apache.webbeans.config.BeansDeployer.validateBeanNames(BeansDeployer.java:860)
> 	at org.apache.webbeans.config.BeansDeployer.validate(BeansDeployer.java:812)
> 	at org.apache.webbeans.config.BeansDeployer.validateInjectionPoints(BeansDeployer.java:710)
> 	at org.apache.webbeans.config.BeansDeployer.deploy(BeansDeployer.java:274)
> 	... 13 more
> Thanks in advance.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)