What version of WAS are you using ?
WAS 8 sets up CDI automatically.
You don't need any CDI jars and its dependencies in the WEB-INF/lib dir,
since the server runtime provides
this automatically.
Please delete the listeners defined below in the web.xml
<listener>
<listener-class>org.apache.webbeans.servlet.WebBeansConfigurationListener</listener-class>
<listener-class>org.apache.myfaces.webapp.StartupServletContextListener</listener-class>
</listener>
--Thanks,
Rohit
On Mon, Nov 14, 2011 at 8:44 AM, ThorstenMohr <[email protected]> wrote:
>
> hello,
> we are using cdi 1.0.2 - this works fine as long as we use cdi only in the
> web-module. When i add cdi to another module using manifest.mf i get the
> following exception :
>
> org.apache.webbeans.exception.WebBeansConfigurationException: WebBeans XML
> configuration defined in
>
> file:C:\Daten\workspaces\rad8_T2S\ICM\compilations_src\apache\myfaces\codi\myfaces-extcdi-bundle-jsf20-1.0.2-SNAPSHOT-sources.jar!/META-INF/beans.xml
> is failed. Reason is : Interceptor class :
> org.apache.myfaces.extensions.cdi.jsf.impl.security.SecurityInterceptor is
> already defined
>
> both modules use the same jar - the exception suggest that cdi is
> initializing twice but i have no idea how to handle that
>
> thx in advance
> Thorsten Mohr
> --
> View this message in context:
> http://old.nabble.com/-CODI--WebBeansConfigurationException-tp32840442p32840442.html
> Sent from the MyFaces - Users mailing list archive at Nabble.com.
>
>