Search code examples
seam

Seam IllegalStateException: Two components with the same name and precedence


When I run my seam application I get the following error

Exception sending context initialized event to listener instance of class org.jboss.seam.servlet.SeamListener
java.lang.IllegalStateException: Two components with the same name and precedence - component name: wizardController, component classes: package.WizardController, package.WizardController
    at org.jboss.seam.init.Initialization.addComponentDescriptor(Initialization.java:543)
    at org.jboss.seam.init.Initialization.installScannedComponentAndRoles(Initialization.java:809)
    at org.jboss.seam.init.Initialization.scanForComponents(Initialization.java:756)
    at org.jboss.seam.init.Initialization.init(Initialization.java:629)
    at org.jboss.seam.servlet.SeamListener.contextInitialized(SeamListener.java:35)

I am not able to resolve this problem.


Solution

  • Seems like you have two components with the name wizardController. Try searching for wizardController and see if you find any duplicates somewhere.