Nov 25th, 2008, 04:09 AM
Warning messages when using JSF with spring
I am using Spring 2.5 with JSF richfaces on WAS 6.1. I am using "Controller" annotation for my spring and JSF managed beans. But everytime when a bean is accessed the following warning message is given :
org.springframework.web.context.request.FacesReque stAttributes registerDestructionCallback Could not register destruction callback [org.springframework.beans.factory.support.Disposab leBeanAdapter] for attribute 'userLoginBean' because FacesRequestAttributes does not support such callbacks
Is there a way to correct this warning?
Feb 26th, 2009, 09:29 AM
I'm having the same problem.
Can anyone make clear what this warning is for?
Jun 5th, 2009, 07:52 AM
For others who land here with the same problem:
You're missing the org.springframework.web.context.request.RequestCon textListener in web.xml.
Lookup in Spring Reference, chapter 126.96.36.199. Initial web configuration.
Jun 9th, 2009, 02:58 AM
I have this definition in web.xml and the problem is not because of this I suppose.
Jun 9th, 2009, 05:05 AM
I guess this warning is more ambiguous that what I first thought...
I'm not using websphere (I'm using Tomcat), and my warning disappeared when I added the listener.
My suggestion is to make a little prototype in tomcat, bundling all the spring + jsf jars in the WEB-INF/lib folder. When you have the prototype working, dump the application (war) in WebSphere (with the complete lib folder!) and see if it works.
You may have stumbled on those classloading-shared-jar issues where you're using the wrong libraries.
Hope it helps!