If you face the below exception in a web application involving JBoss-Seam please read on.
java.lang.IllegalStateException: No phase id bound to current thread (make sure you do not have two SeamPhaseListener instances installed)
Also when the server [for example Tomcat] is starting up, we may notice the below warning.
WARNING: There should only be one Seam phase listener per application
The possible reason may be that we played around when trying to get the application
up and running with JBoss-Seam and in the process jboss-seam-2.x.x.jar was copied under
servers common lib folder [in Tomcat it is TOMCAT_HOME\lib].
Then we forgot that copied jar and used Maven or Perhaps to build and deploy the application as a web archive.
Now as two instances of jboss-seam-2.x.x jars are present in classpath [one from the common lib folder
and the other within WEB-INF\lib of the specific web application], the above exception will occur.
The solution is to remove the jar at any one location
