richfaces configuration with spring web flow
braduk Dec 16, 2009 5:37 AMHi all,
I'm trying to get richfaces working with spring web flow on JBoss 5.1. After lots of configuration issues I think I'm nearly there but I'm having trouble getting the richfaces tags to render. Basically the tags weren't being expanded, they'd just come back in their original raw form.
I think that problem may have been due to my faces-config.xml which was missing the view handler. So I added that:
<?xml version="1.0" encoding="UTF-8"?> <faces-config version="1.2" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xi="http://www.w3.org/2001/XInclude" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-facesconfig_1_2.xsd"> <application> <view-handler>com.sun.facelets.FaceletViewHandler</view-handler> </application> </faces-config>
Once I add the view handler section I get this error:
2009-12-16 10:15:14,071 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/test]](main) Exception sending context initialized event to listener instance of class org.jboss.web.jsf.integration.config.JBossJSFConfigureListener com.sun.faces.config.ConfigurationException: CONFIGURATION FAILED! Source Document: vfszip:/C:/java/jboss-5.1.0.GA/server/default/deploy/test.war/WEB-INF/lib/richfaces-ui-3.3.2.SR1.jar/META-INF/faces-config.xml Cause: Class 'org.richfaces.component.ClonedObjectResolver' is not an instance of 'class javax.el.ELResolver' at com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:213) at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:196) ... Caused by: com.sun.faces.config.ConfigurationException: Source Document: vfszip:/C:/java/jboss-5.1.0.GA/server/default/deploy/test.war/WEB-INF/lib/richfaces-ui-3.3.2.SR1.jar/META-INF/faces-config.xml Cause: Class 'org.richfaces.component.ClonedObjectResolver' is not an instance of 'class javax.el.ELResolver' at com.sun.faces.config.processor.AbstractConfigProcessor.createInstance(AbstractConfigProcessor.java:259) at com.sun.faces.config.processor.ApplicationConfigProcessor.addELResolver(ApplicationConfigProcessor.java:415) at com.sun.faces.config.processor.ApplicationConfigProcessor.process(ApplicationConfigProcessor.java:235) at com.sun.faces.config.processor.AbstractConfigProcessor.invokeNext(AbstractConfigProcessor.java:108) at com.sun.faces.config.processor.LifecycleConfigProcessor.process(LifecycleConfigProcessor.java:119) at com.sun.faces.config.processor.AbstractConfigProcessor.invokeNext(AbstractConfigProcessor.java:108) at com.sun.faces.config.processor.FactoryConfigProcessor.process(FactoryConfigProcessor.java:132) at com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:203)
Can anyone tell me where I'm going wrong? I'm pretty keen to get this working.
Thanks,
Brad.