-
Nov 25th, 2008, 04:09 AM
#1
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
#2
I'm having the same problem.
Can anyone make clear what this warning is for?
-
Jun 5th, 2009, 07:52 AM
#3
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 3.4.4.1. Initial web configuration.
-
Jun 9th, 2009, 02:58 AM
#4
I have this definition in web.xml and the problem is not because of this I suppose.
<listener>
<listener-class>
org.springframework.web.context.ContextLoaderListe ner
</listener-class>
</listener>
<listener>
<listener-class>
org.springframework.web.context.request.RequestCon textListener
</listener-class>
</listener>
-
Jun 9th, 2009, 05:05 AM
#5
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!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules