[ 
https://issues.jboss.org/browse/RF-11795?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12650510#comment-12650510
 ] 

Lukáš Fryč commented on RF-11795:
---------------------------------

Thanks for confirming it's not RichFaces issue, Jean Andre.
                
> CDI - Class cast exception in RichFaces
> ---------------------------------------
>
>                 Key: RF-11795
>                 URL: https://issues.jboss.org/browse/RF-11795
>             Project: RichFaces
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>         Environment: Websphere 8 - RAD 8.0.0.4 - JSF Mojorra 2.1.4 - Spring 
> 3.0.6 Final - Use @Inject @Named @SessionScoped as annotations - Firefox 
> 7.0.1 - Windows 7 (6.1 sp1) -  AJDT 2.1.3
>            Reporter: Jean ANDRE
>            Assignee: Lukáš Fryč
>
> Well, not sure it is a bug - Need to be confirmed.
> RAD 8.0.0 supports CDI 1.0 but due to a bug in RAD we have to upgrade in CDI 
> 1.1 at least. We have tried both implementation, Weld 1.1 and OpenWebBean 
> 1.1.2 and richfaces fails to work when we use one of them.
> We got an class cast exception as shown below:
> {code}
> Caused by: java.lang.ClassCastException: Cannot cast class 
> org.richfaces.cdi.push.PushCDIDependencyRegistrationExtension to interface 
> javax.enterprise.inject.spi.Extension
>       at java.lang.Class.cast(Class.java:1718)
>       at java.util.ServiceLoader$ServiceIterator.next(ServiceLoader.java:195)
>       ... 78 more
> {code}
> The first question is which CDI version and implementation richfaces is 
> supposed to run with ? and what we need to know if we need to change the CDI 
> implementation for an another one (such as dependency...) ?
> Other trace is :
> {code}
> Caused by: java.util.ServiceConfigurationError: KB005
>       at java.util.ServiceLoader$ServiceIterator.next(ServiceLoader.java:200)
>       at 
> org.apache.webbeans.portable.events.ExtensionLoader.loadExtensionServices(ExtensionLoader.java:78)
>       at 
> org.apache.webbeans.config.BeansDeployer.deploy(BeansDeployer.java:139)
>       at 
> org.apache.webbeans.lifecycle.AbstractLifeCycle.startApplication(AbstractLifeCycle.java:124)
>       at 
> org.apache.webbeans.web.lifecycle.WebContainerLifecycle.startApplication(WebContainerLifecycle.java:78)
>       at 
> com.ibm.ws.webbeans.common.CommonLifeCycle.startApplication(CommonLifeCycle.java:106)
>       at 
> com.ibm.ws.webbeans.services.JCDIServletContainerInitializer.onStartup(JCDIServletContainerInitializer.java:85)
>       at 
> com.ibm.ws.webcontainer.webapp.WebAppImpl.initializeServletContainerInitializers(WebAppImpl.java:609)
>       at 
> com.ibm.ws.webcontainer.webapp.WebAppImpl.initialize(WebAppImpl.java:405)
>       at 
> com.ibm.ws.webcontainer.webapp.WebGroupImpl.addWebApplication(WebGroupImpl.java:88)
>       at 
> com.ibm.ws.webcontainer.VirtualHostImpl.addWebApplication(VirtualHostImpl.java:169)
>       ... 68 more
> {code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

_______________________________________________
richfaces-issues mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/richfaces-issues

Reply via email to