1 2 3 Previous Next 68 Replies Latest reply on Dec 11, 2011 3:43 AM by clausthaler

    Seam Compatibility with JSF 2

    Neil C Novice

      I am using Maven, Seam 2.2.0.GA, and JSF 2 to build my first Seam application. Here is the setup in Maven:


             <dependency>
                  <groupId>com.sun.faces</groupId>
                  <artifactId>jsf-api</artifactId>
                  <version>2.0.0</version>
              </dependency>
              <dependency>
                  <groupId>com.sun.faces</groupId>
                  <artifactId>jsf-impl</artifactId>
                  <version>2.0.0</version>
              </dependency>
              <dependency>
                  <groupId>javax.el</groupId>
                  <artifactId>el-api</artifactId>
                  <version>2.2</version>
              </dependency>
              <dependency>
                  <groupId>org.glassfish.web</groupId>
                  <artifactId>el-impl</artifactId>
                  <version>2.2</version>
                  <scope>runtime</scope>
              </dependency>
              <dependency>
                  <groupId>javax.el</groupId>
                  <artifactId>el-api</artifactId>
                  <version>2.2</version>
              </dependency>
              <dependency>
                  <groupId>jstl</groupId>
                  <artifactId>jstl</artifactId>
                  <version>1.2</version>   
              </dependency>
              <dependency>
                  <groupId>javax.servlet</groupId>
                  <artifactId>servlet-api</artifactId>
                  <version>2.5</version>
                  <scope>provided</scope>
              </dependency>
              <dependency>
                  <groupId>javax.servlet.jsp</groupId>
                  <artifactId>jsp-api</artifactId>
                  <version>2.1</version>
                  <scope>provided</scope>
              </dependency>
              <dependency>
                  <groupId>org.jboss.seam</groupId>
                  <artifactId>jboss-seam-ui</artifactId>
                  <version>${seam.framework.version}</version>
              </dependency>



      When I deploy a trivial Facelet to Tomcat 6, I get the following:



      java.lang.NoSuchMethodException: org.jboss.seam.ui.handler.CommandButtonParameterComponentHandler.<init>(javax.faces.view.facelets.ComponentConfig)
           at java.lang.Class.getConstructor0(Class.java:2706)
           at java.lang.Class.getConstructor(Class.java:1657)
           at com.sun.faces.facelets.tag.AbstractTagLibrary$UserComponentHandlerFactory.<init>(AbstractTagLibrary.java:287)
           at com.sun.faces.facelets.tag.AbstractTagLibrary.addComponent(AbstractTagLibrary.java:519)
           at com.sun.faces.facelets.tag.TagLibraryImpl.putComponent(TagLibraryImpl.java:111)
           at com.sun.faces.config.processor.FaceletTaglibConfigProcessor.processComponent(FaceletTaglibConfigProcessor.java:565)
           at com.sun.faces.config.processor.FaceletTaglibConfigProcessor.processTags(FaceletTaglibConfigProcessor.java:360)
           at com.sun.faces.config.processor.FaceletTaglibConfigProcessor.processTagLibrary(FaceletTaglibConfigProcessor.java:313)
           at com.sun.faces.config.processor.FaceletTaglibConfigProcessor.process(FaceletTaglibConfigProcessor.java:262)
           at com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:337)




      This to me looks like Facelets has issues with the fact that CommandButtonParameterComponentHandler has no empty constructor. Could this be a configuration error on my part? Or am I simply unable to use Seam 2.2.0 with JSF 2?


      Any insight is appreciated.


      Thanks.



        1 2 3 Previous Next