1 Reply Latest reply on Aug 24, 2009 9:42 AM by fan42

    Deployment failed

    fan42

      Hi I am getting trouble, I can't deploy my ear anymore.


      I generated a seam project with Eclipse JBoss Seam Tools 3.1.0 M2. I Cheated to use Seam 2.2.0 and deploy on JBoss AS 5.1.


      My application worked fine until I tried to hook a valueChangeListener. I don't think it is important, but it is included in a <h:dataTable />



      <h:selectBooleanCheckbox 
           id="checkAddress" 
           value="#myEntity.isSelected(myVar)}" 
              disabled="false" 
           valueChangeListener="#{myManager.selected}" /> 



      my Bean looks like this


      public void addressSelected(ValueChangeEvent event)
      {
           log.debug("I made id");
      }



      I added the jsf-api.jar to my ear library in order to make my ejb-project compile (where my Bean is located).
      From what I read in the forums, it might be a conflict in the jsf library.
      I copied the jar from the seam distribution folder to the EarContent folder of my ear project. I also tried taking the jsf-api.jar jar from jboss-5.1.0.GA/server/default/deploy/jbossweb.sar/jsf-libs, but got the same result.


      Any help would be welcome


      The stack trace is as follow:


      
      10:42:49,073 INFO  [config] Initializing Mojarra (1.2_12-b01-FCS) for context '/leicom'
      10:42:49,203 ERROR [[/leicom]] Exception sending context initialized event to listener instance of class org.jboss.web.jsf.integration.config.JBossJSFConfigureListener
      com.sun.faces.config.ConfigurationException: CONFIGURATION FAILED! org.jboss.seam.jsf.SeamApplicationFactory
           at com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:213)
           at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:196)
           at org.jboss.web.jsf.integration.config.JBossJSFConfigureListener.contextInitialized(JBossJSFConfigureListener.java:60)
           at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3910)
           at org.apache.catalina.core.StandardContext.start(StandardContext.java:4393)
           at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(TomcatDeployment.java:310)
      
      





        • 1. Re: Deployment failed
          fan42

          Well I made some progress.


          I had to add


          <lifecycle>
               <phase-listener>org.jboss.seam.jsf.SeamPhaseListener</phase-listener>
           </lifecycle>



          to faces-config.xml.


          Now the application deploys, but I go an error when I try to use it.
          I suppose there is still something wrong in the config.


          any idea?
          Help would be great.



          java.lang.IllegalStateException: No phase id bound to current thread (make sure you do not have two SeamPhaseListener instances installed)
               at org.jboss.seam.contexts.PageContext.getPhaseId(PageContext.java:163)
               at org.jboss.seam.contexts.PageContext.isBeforeInvokeApplicationPhase(PageContext.java:175)
               at org.jboss.seam.contexts.PageContext.getCurrentWritableMap(PageContext.java:91)
               at org.jboss.seam.contexts.PageContext.remove(PageContext.java:105)
               at org.jboss.seam.Component.newInstance(Component.java:2141)
               at org.jboss.seam.Component.getInstance(Component.java:2021)
               at org.jboss.seam.Component.getInstance(Component.java:2000)
               at org.jboss.seam.Component.getInstance(Component.java:1994)
               at org.jboss.seam.Component.getInstance(Component.java:1967)
               at org.jboss.seam.Component.getInstance(Component.java:1962)
               at org.jboss.seam.faces.FacesPage.instance(FacesPage.java:92)
               at org.jboss.seam.core.ConversationPropagation.restorePageContextConversationId(ConversationPropagation.java:84)
               at org.jboss.seam.core.ConversationPropagation.restoreConversationId(ConversationPropagation.java:57)
               at org.jboss.seam.jsf.SeamPhaseListener.afterRestoreView(SeamPhaseListener.java:391)
               at org.jboss.seam.jsf.SeamPhaseListener.afterServletPhase(SeamPhaseListener.java:230)
               at org.jboss.seam.jsf.SeamPhaseListener.afterPhase(SeamPhaseListener.java:196)
               at com.sun.faces.lifecycle.Phase.handleAfterPhase(Phase.java:175)
               at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:114)