3 Replies Latest reply on Jun 1, 2012 8:19 AM by mkozeny

    Create custom RichFaces component using Practical RichFaces 2nd edition

    mkozeny

      Hi to all,

       

      I am following Ilya Shaikovsky's book Practical RichFaces 2nd edition and trying to build new one. I am not very familiar with maven, but this part of dependency

       

      <dependency>
      <groupId>javax</groupId>
      <artifactId>javaee-web-api</artifactId>
      <version>6.0</version>
      <scope>provided</scope>
      </dependency>
      

       

       

      during processing command

      mvn install

      cause me following error

      [FATAL ERROR] Container realm = plexus.core

      urls[0] = file:/C:/Program Files/apache-maven-2.2.1/lib/maven-2.2.1-uber.jar

      [INFO] ------------------------------------------------------------------------

      [ERROR] FATAL ERROR

      [INFO] ------------------------------------------------------------------------

      [INFO] Absent Code attribute in method that is not native or abstract in class file javax/faces/component/UIComponent

      [INFO] ------------------------------------------------------------------------

      [INFO] Trace

      java.lang.ClassFormatError: Absent Code attribute in method that is not native or abstract in class file javax/faces/component/UIComponent

      when I remove this dependency from pom.xml file, then compiling is OK, but I did not get required UISpinner.java class in generated target.

       

      Can anyone help? Thanks.