The latest 1.2.1-SNAPSHOT crashes as well?
That's weird. I can understand the issue with 1.2.0 as we had a cast in there. 
But this cast doesn't exist with 1.2.1 anymore.
Can you please compile 1.2.1 from trunk and try again?

LieGrue,
strub




----- Original Message -----
> From: Thomas Andraschko <[email protected]>
> To: [email protected]
> Cc: 
> Sent: Friday, 20 September 2013, 16:12
> Subject: ClassCastException with CODI and OWB > 1.2.0
> 
> Hi,
> 
> today i tried to upgrade OWB from 1.1.5 to 1.2.0 but i get following
> exception with CODI (1.0.5):
> 
> java.lang.ClassCastException:
> org.apache.myfaces.extensions.cdi.jsf2.impl.scope.mapped.Jsf2BeanWrapper
> cannot be cast to org.apache.webbeans.portable.AnnotatedTypeImpl
>     at
> org.apache.webbeans.portable.AnnotatedElementFactory.newAnnotatedType(AnnotatedElementFactory.java:142)
>     at
> org.apache.webbeans.config.BeansDeployer.deployFromClassPath(BeansDeployer.java:534)
>     at
> org.apache.webbeans.config.BeansDeployer.deploy(BeansDeployer.java:183)
>     at
> org.apache.webbeans.lifecycle.AbstractLifeCycle.startApplication(AbstractLifeCycle.java:129)
>     at
> org.apache.webbeans.web.lifecycle.WebContainerLifecycle.startApplication(WebContainerLifecycle.java:89)
>     at
> org.apache.webbeans.servlet.WebBeansConfigurationListener.contextInitialized(WebBeansConfigurationListener.java:85)
>     at
> org.eclipse.jetty.server.handler.ContextHandler.callContextInitialized(ContextHandler.java:787)
>     at
> org.eclipse.jetty.servlet.ServletContextHandler.callContextInitialized(ServletContextHandler.java:434)
>     at
> org.eclipse.jetty.server.handler.ContextHandler.startContext(ContextHandler.java:779)
>     at
> org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:284)
>     at
> org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1322)
>     at
> org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:731)
>     at
> org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:490)
>     at
> org.eclipse.jetty.maven.plugin.JettyWebAppContext.doStart(JettyWebAppContext.java:280)
>     at
> org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:69)
>     at
> org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:108)
>     at
> org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:90)
>     at
> org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:58)
>     at
> org.eclipse.jetty.server.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:156)
>     at
> org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:69)
>     at
> org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:108)
>     at
> org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:90)
>     at
> org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:58)
>     at
> org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:69)
>     at
> org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:108)
>     at org.eclipse.jetty.server.Server.start(Server.java:342)
> 
> I also tried 1.2.1-SNAPSHOT but it's the same exception.
> Any idea?
> 
> Regards,
> Thomas
>

Reply via email to