0 Replies Latest reply on May 8, 2009 7:40 AM by kamilbek

    Exception:"duplicate factory for :org.jboss.seam.web.webSession (duplicate is specified in components.xml)" after restarting Glassfish, when more than 1 web modules in one ear. Why?

    kamilbek

      I have web application with more than one modules. I use SEAM 2.1.1 and Glassfish as application server. When I deploy my projecT, after that stop Glassfish, after it start it again, I have follow exception. How to fix it?


      WebModule[/home]PWC1275: Exception sending context initialized event to listener instance of class org.jboss.seam.servlet.SeamListener 
      java.lang.IllegalStateException: duplicate factory for: org.jboss.seam.web.webSession (duplicate is specified in components.xml) 
              at org.jboss.seam.core.Init.checkDuplicateFactoryExpressions(Init.java:2 
      27) 
              at org.jboss.seam.core.Init.checkDuplicateFactory(Init.java:220) 
              at org.jboss.seam.core.Init.addFactoryValueExpression(Init.java:283) 
              at org.jboss.seam.init.Initialization.installComponents(Initialization.j 
      ava:1128) 
              at org.jboss.seam.init.Initialization.init(Initialization.java:728) 
              at org.jboss.seam.servlet.SeamListener.contextInitialized(SeamListener.j 
      ava:35) 
              at org.apache.catalina.core.StandardContext.listenerStart(StandardContex 
      t.java:4632) 
              at org.apache.catalina.core.StandardContext.start(StandardContext.java:5 
      312) 
              at com.sun.enterprise.web.WebModule.start(WebModule.java:353) 
              at com.sun.enterprise.web.LifecycleStarter.doRun(LifecycleStarter.java:5 
      8) 
              at com.sun.appserv.management.util.misc.RunnableBase.runSync(RunnableBas



      P.S. But if I rebuild my project, It work again.