4 Replies Latest reply on Jun 20, 2008 12:57 PM by Laurent 4x

    Installing Woodstock components with Seam and Facelets

    mladen babic Newbie



      Hi, I have  problem with installing Woodstock components.
      I've created generate sample application with Seam 2.0.1. and I've download Woodstock latest jar files. I added those files in app lib folders and I've started JBoss AS 4.2.2. When I try to open any pages , I get this in stackTrace:





      17:58:02,726 INFO  [Contexts] starting up: org.jboss.seam.web.session
      17:58:02,795 ERROR [SeamPhaseListener] uncaught exception
      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:162)
              at org.jboss.seam.contexts.PageContext.isBeforeInvokeApplicationPhase(PageContext.java:174)
              at org.jboss.seam.contexts.PageContext.getCurrentWritableMap(PageContext.java:90)
              at org.jboss.seam.contexts.PageContext.set(PageContext.java:97)
              at org.jboss.seam.Component.newInstance(Component.java:1975)
              at org.jboss.seam.Component.getInstance(Component.java:1873)
              at org.jboss.seam.Component.getInstance(Component.java:1852)
              at org.jboss.seam.Component.getInstance(Component.java:1829)
              at org.jboss.seam.Component.getInstance(Component.java:1824)
              at org.jboss.seam.faces.FacesPage.instance(FacesPage.java:92)
              at org.jboss.seam.core.ConversationPropagation.restorePageContextConversationId(Conversation
      Propagation.java:84)
              at org.jboss.seam.core.ConversationPropagation.restoreConversationId(ConversationPropagation
      .java:57)
              at org.jboss.seam.jsf.SeamPhaseListener.afterRestoreView(SeamPhaseListener.java:376)
              at org.jboss.seam.jsf.SeamPhaseListener.afterServletPhase(SeamPhaseListener.java:216)
              at org.jboss.seam.jsf.SeamPhaseListener.afterPhase(SeamPhaseListener.java:182)
              at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:280)
              at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:117)
              at javax.faces.webapp.FacesServlet.service(FacesServlet.java:244)
              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.j
      ava:290)
              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

              at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:83)
              at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:85)
              at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
              at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:64)
              at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
              at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45)
              at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
              at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:141)
              at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:281)
              at org.jboss.seam.web.Ajax4jsfFilter.doFilter(Ajax4jsfFilter.java:60)
              at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
              at org.jboss.seam.web.LoggingFilter.doFilter(LoggingFilter.java:58)
              at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
              at org.jboss.seam.debug.hot.HotDeployFilter.doFilter(HotDeployFilter.java:68)
              at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
              at org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:158)
              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.j
      ava:235)
              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

              at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.j
      ava:235)
              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

              at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
              at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
              at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.ja
      va:179)
              at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:433)
              at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
              at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
              at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
              at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:
      157)
              at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
              at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:241)
              at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
              at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.ja
      va:580)
              at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
              at java.lang.Thread.run(Thread.java:619)
      17:58:03,319 ERROR [STDERR] 16.02.2008. 17.58.03 com.sun.facelets.compiler.TagLibraryConfig loadImpl
      icit
      INFO: Added Library from: jar:file:/G:/opt/jboss-4.2.1.GA/server/default/deploy/RoseProject.ear/Rose
      Project.war/WEB-INF/lib/jboss-seam-mail.jar!/META-INF/seam-mail.taglib.xml
      17:58:03,329 ERROR [STDERR] 16.02.2008. 17.58.03 com.sun.facelets.compiler.TagLibraryConfig loadImpl
      icit
      INFO: Added Library from: jar:file:/G:/opt/jboss-4.2.1.GA/server/default/deploy/RoseProject.ear/Rose
      Project.war/WEB-INF/lib/jboss-seam-pdf.jar!/META-INF/seam-pdf.taglib.xml
      17:58:03,370 ERROR [STDERR] 16.02.2008. 17.58.03 com.sun.facelets.compiler.TagLibraryConfig loadImpl
      icit
      INFO: Added Library from: jar:file:/G:/opt/jboss-4.2.1.GA/server/default/deploy/RoseProject.ear/Rose
      Project.war/WEB-INF/lib/jboss-seam-ui.jar!/META-INF/s.taglib.xml
      17:58:03,380 ERROR [STDERR] 16.02.2008. 17.58.03 com.sun.facelets.compiler.TagLibraryConfig loadImpl
      icit
      INFO: Added Library from: jar:file:/G:/opt/jboss-4.2.1.GA/server/default/deploy/RoseProject.ear/Rose
      Project.war/WEB-INF/lib/jsf-extensions-dynamic-faces-0.1.jar!/META-INF/jsf-ext-dynafaces.taglib.xml
      17:58:03,411 ERROR [STDERR] 16.02.2008. 17.58.03 com.sun.facelets.compiler.TagLibraryConfig loadImpl
      icit
      INFO: Added Library from: jar:file:/G:/opt/jboss-4.2.1.GA/server/default/deploy/RoseProject.ear/Rose
      Project.war/WEB-INF/lib/jsf-facelets.jar!/META-INF/jsf-core.taglib.xml
      17:58:03,432 ERROR [STDERR] 16.02.2008. 17.58.03 com.sun.facelets.compiler.TagLibraryConfig loadImpl
      icit
      INFO: Added Library from: jar:file:/G:/opt/jboss-4.2.1.GA/server/default/deploy/RoseProject.ear/Rose
      Project.war/WEB-INF/lib/jsf-facelets.jar!/META-INF/jsf-html.taglib.xml
      17:58:03,456 ERROR [STDERR] 16.02.2008. 17.58.03 com.sun.facelets.compiler.TagLibraryConfig loadImpl
      icit
      INFO: Added Library from: jar:file:/G:/opt/jboss-4.2.1.GA/server/default/deploy/RoseProject.ear/Rose
      Project.war/WEB-INF/lib/jsf-facelets.jar!/META-INF/jsf-ui.taglib.xml
      17:58:03,484 ERROR [STDERR] 16.02.2008. 17.58.03 com.sun.facelets.compiler.TagLibraryConfig loadImpl
      icit
      INFO: Added Library from: jar:file:/G:/opt/jboss-4.2.1.GA/server/default/deploy/RoseProject.ear/Rose
      Project.war/WEB-INF/lib/jsf-facelets.jar!/META-INF/jstl-core.taglib.xml
      17:58:03,498 ERROR [STDERR] 16.02.2008. 17.58.03 com.sun.facelets.compiler.TagLibraryConfig loadImpl
      icit
      INFO: Added Library from: jar:file:/G:/opt/jboss-4.2.1.GA/server/default/deploy/RoseProject.ear/Rose
      Project.war/WEB-INF/lib/jsf-facelets.jar!/META-INF/jstl-fn.taglib.xml
      17:58:03,535 ERROR [STDERR] 16.02.2008. 17.58.03 com.sun.facelets.compiler.TagLibraryConfig loadImpl
      icit
      INFO: Added Library from: jar:file:/G:/opt/jboss-4.2.1.GA/server/default/deploy/RoseProject.ear/Rose
      Project.war/WEB-INF/lib/richfaces-ui.jar!/META-INF/a4j.taglib.xml
      17:58:03,545 ERROR [STDERR] 16.02.2008. 17.58.03 com.sun.facelets.compiler.TagLibraryConfig loadImpl
      icit
      INFO: Added Library from: jar:file:/G:/opt/jboss-4.2.1.GA/server/default/deploy/RoseProject.ear/Rose
      Project.war/WEB-INF/lib/richfaces-ui.jar!/META-INF/ajax4jsf.taglib.xml
      17:58:03,588 ERROR [STDERR] 16.02.2008. 17.58.03 com.sun.facelets.compiler.TagLibraryConfig loadImpl
      icit
      INFO: Added Library from: jar:file:/G:/opt/jboss-4.2.1.GA/server/default/deploy/RoseProject.ear/Rose
      Project.war/WEB-INF/lib/richfaces-ui.jar!/META-INF/rich.taglib.xml
      17:58:03,599 ERROR [STDERR] 16.02.2008. 17.58.03 com.sun.facelets.compiler.TagLibraryConfig loadImpl
      icit
      INFO: Added Library from: jar:file:/G:/opt/jboss-4.2.1.GA/server/default/deploy/RoseProject.ear/Rose
      Project.war/WEB-INF/lib/richfaces-ui.jar!/META-INF/richfaces.taglib.xml
      17:58:03,613 ERROR [STDERR] 16.02.2008. 17.58.03 com.sun.facelets.compiler.TagLibraryConfig loadImpl
      icit
      INFO: Added Library from: jar:file:/G:/opt/jboss-4.2.1.GA/server/default/deploy/RoseProject.ear/Rose
      Project.war/WEB-INF/lib/webui-jsf.jar!/META-INF/woodstock.taglib.xml
      17:58:04,450 ERROR [STDERR] 16.02.2008. 17.58.04 com.sun.facelets.compiler.TagLibraryConfig loadImpl
      icit
      INFO: Added Library from: jar:file:/G:/opt/jboss-4.2.1.GA/server/default/deploy/RoseProject.ear/Rose
      Project.war/WEB-INF/lib/jboss-seam-mail.jar!/META-INF/seam-mail.taglib.xml
      17:58:04,460 ERROR [STDERR] 16.02.2008. 17.58.04 com.sun.facelets.compiler.TagLibraryConfig loadImpl
      icit
      INFO: Added Library from: jar:file:/G:/opt/jboss-4.2.1.GA/server/default/deploy/RoseProject.ear/Rose
      Project.war/WEB-INF/lib/jboss-seam-pdf.jar!/META-INF/seam-pdf.taglib.xml
      17:58:04,470 ERROR [STDERR] 16.02.2008. 17.58.04 com.sun.facelets.compiler.TagLibraryConfig loadImpl
      icit
      INFO: Added Library from: jar:file:/G:/opt/jboss-4.2.1.GA/server/default/deploy/RoseProject.ear/Rose
      Project.war/WEB-INF/lib/jboss-seam-ui.jar!/META-INF/s.taglib.xml
      17:58:04,481 ERROR [STDERR] 16.02.2008. 17.58.04 com.sun.facelets.compiler.TagLibraryConfig loadImpl
      icit
      INFO: Added Library from: jar:file:/G:/opt/jboss-4.2.1.GA/server/default/deploy/RoseProject.ear/Rose
      Project.war/WEB-INF/lib/jsf-extensions-dynamic-faces-0.1.jar!/META-INF/jsf-ext-dynafaces.taglib.xml
      17:58:04,490 ERROR [STDERR] 16.02.2008. 17.58.04 com.sun.facelets.compiler.TagLibraryConfig loadImpl
      icit
      INFO: Added Library from: jar:file:/G:/opt/jboss-4.2.1.GA/server/default/deploy/RoseProject.ear/Rose
      Project.war/WEB-INF/lib/jsf-facelets.jar!/META-INF/jsf-core.taglib.xml
      17:58:04,502 ERROR [STDERR] 16.02.2008. 17.58.04 com.sun.facelets.compiler.TagLibraryConfig loadImpl
      icit
      INFO: Added Library from: jar:file:/G:/opt/jboss-4.2.1.GA/server/default/deploy/RoseProject.ear/Rose
      Project.war/WEB-INF/lib/jsf-facelets.jar!/META-INF/jsf-html.taglib.xml
      17:58:04,511 ERROR [STDERR] 16.02.2008. 17.58.04 com.sun.facelets.compiler.TagLibraryConfig loadImpl
      icit
      INFO: Added Library from: jar:file:/G:/opt/jboss-4.2.1.GA/server/default/deploy/RoseProject.ear/Rose
      Project.war/WEB-INF/lib/jsf-facelets.jar!/META-INF/jsf-ui.taglib.xml
      17:58:04,520 ERROR [STDERR] 16.02.2008. 17.58.04 com.sun.facelets.compiler.TagLibraryConfig loadImpl
      icit
      INFO: Added Library from: jar:file:/G:/opt/jboss-4.2.1.GA/server/default/deploy/RoseProject.ear/Rose
      Project.war/WEB-INF/lib/jsf-facelets.jar!/META-INF/jstl-core.taglib.xml
      17:58:04,534 ERROR [STDERR] 16.02.2008. 17.58.04 com.sun.facelets.compiler.TagLibraryConfig loadImpl
      icit
      INFO: Added Library from: jar:file:/G:/opt/jboss-4.2.1.GA/server/default/deploy/RoseProject.ear/Rose
      Project.war/WEB-INF/lib/jsf-facelets.jar!/META-INF/jstl-fn.taglib.xml
      17:58:04,545 ERROR [STDERR] 16.02.2008. 17.58.04 com.sun.facelets.compiler.TagLibraryConfig loadImpl
      icit
      INFO: Added Library from: jar:file:/G:/opt/jboss-4.2.1.GA/server/default/deploy/RoseProject.ear/Rose
      Project.war/WEB-INF/lib/richfaces-ui.jar!/META-INF/a4j.taglib.xml
      17:58:04,555 ERROR [STDERR] 16.02.2008. 17.58.04 com.sun.facelets.compiler.TagLibraryConfig loadImpl
      icit
      INFO: Added Library from: jar:file:/G:/opt/jboss-4.2.1.GA/server/default/deploy/RoseProject.ear/Rose
      Project.war/WEB-INF/lib/richfaces-ui.jar!/META-INF/ajax4jsf.taglib.xml
      17:58:04,568 ERROR [STDERR] 16.02.2008. 17.58.04 com.sun.facelets.compiler.TagLibraryConfig loadImpl
      icit
      INFO: Added Library from: jar:file:/G:/opt/jboss-4.2.1.GA/server/default/deploy/RoseProject.ear/Rose
      Project.war/WEB-INF/lib/richfaces-ui.jar!/META-INF/rich.taglib.xml
      17:58:04,580 ERROR [STDERR] 16.02.2008. 17.58.04 com.sun.facelets.compiler.TagLibraryConfig loadImpl
      icit
      INFO: Added Library from: jar:file:/G:/opt/jboss-4.2.1.GA/server/default/deploy/RoseProject.ear/Rose
      Project.war/WEB-INF/lib/richfaces-ui.jar!/META-INF/richfaces.taglib.xml
      17:58:04,592 ERROR [STDERR] 16.02.2008. 17.58.04 com.sun.facelets.compiler.TagLibraryConfig loadImpl
      icit
      INFO: Added Library from: jar:file:/G:/opt/jboss-4.2.1.GA/server/default/deploy/RoseProject.ear/Rose
      Project.war/WEB-INF/lib/webui-jsf.jar!/META-INF/woodstock.taglib.xml
      17:58:04,952 ERROR [SeamPhaseListener] uncaught exception
      java.lang.IllegalStateException: No active application scope
              at org.jboss.seam.core.Init.instance(Init.java:75)
              at org.jboss.seam.jsf.SeamPhaseListener.handleTransactionsAfterPhase(SeamPhaseListener.java:
      319)
              at org.jboss.seam.jsf.SeamPhaseListener.afterServletPhase(SeamPhaseListener.java:231)
              at org.jboss.seam.jsf.SeamPhaseListener.afterPhase(SeamPhaseListener.java:182)
              at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:280)
              at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:144)
              at javax.faces.webapp.FacesServlet.service(FacesServlet.java:245)
              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.j
      ava:290)
              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

              at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:83)
              at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:85)
              at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
              at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:64)
              at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
              at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45)
              at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
              at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:141)
              at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:281)


           





      I notice that when I remove jsf-extensions-dynamic-faces-0.1.jar, I able to open page but I get other exception ClassNotFoundEx...



      What do i do wrong with installing woodstock components????



      Best regards,
      Mladen