You are right, I do have different namingcontainer around each other. I will try with the name of the container later on.
I have actually one more issue if I follow your thread. This is regarding the usage of Spring Security + PrettyFaces.
Basically, if I use the two framework together, a forward request from the PrettyFaces is processed twice by Spring Security. I did follow the thread by Christian to remove the dispatcher-forward from the spring security forward. However, the Spring security ignored my login request forwarded by loginbean on purpose. I am not sure if you have a better way of handling the issue?