voyent
IceFaces Spring  XML
Forum Index -> General Help
Author Message
roysilva27

Joined: 25/Jul/2008 00:00:00
Messages: 12
Offline


Hi,

I am trying to use Spring with IceFaces and get the following error. Could somebody help please.

Many thanks

Code:
SEVERE: Exception sending context initialized event to listener instance of class com.sun.faces.config.ConfigureListener
 com.sun.faces.config.ConfigurationException: CONFIGURATION FAILED! org.springframework.web.jsf.SpringApplicationFactory
 	at com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:212)
 	at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:195)
 	at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3843)
 	at org.apache.catalina.core.StandardContext.start(StandardContext.java:4342)
 	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
 	at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
 	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
 	at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
 	at org.apache.catalina.core.StandardService.start(StandardService.java:516)
 	at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
 	at org.apache.catalina.startup.Catalina.start(Catalina.java:578)
 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
 	at java.lang.reflect.Method.invoke(Unknown Source)
 	at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
 	at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
 Caused by: java.lang.ClassNotFoundException: org.springframework.web.jsf.SpringApplicationFactory
 	at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1387)
 	at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1233)
 	at java.lang.ClassLoader.loadClassInternal(Unknown Source)
 	at java.lang.Class.forName0(Native Method)
 	at java.lang.Class.fo
hakimkimo

Joined: 11/Dec/2008 00:00:00
Messages: 8
Offline


Make sure that in you web.xml exist:

<listener>
<listener-class>
org.springframework.web.context.ContextLoaderListener
</listener-class>
</listener>

And add in your faces-config.xml:

<application>
<variable-resolver>
org.springframework.web.jsf.DelegatingVariableResolver
</variable-resolver>
</application>
 
Forum Index -> General Help
Go to:   
Powered by JForum 2.1.7ice © JForum Team