2 Replies Latest reply on Jan 26, 2012 12:15 PM by ryan4x4

    Issues Building RichFaces 4.1.0 Showcase in Eclipse

    ryan4x4

      Hi All,

       

      I have done lots of trolling to find the solution to my issue with no luck so I decided it was time to post my question.  Hope you can help!

       

      I am trying to build and run the RichFaces 4.1.0 Final 'richfaces-showcase' application and I am running into numerous errors.

       

      Here is my system config:

      Eclipse Indigo

      JBoss Tools 3.3.0

      m2e 1.0.1 (Maven plugin for Eclipse)

      RichFaces 4.1.0 Final

      JBoss 6.1.0

       

      eclipse_plugins_installed.png

       

      I added the following repositories to my pom.xml.  I found it on a jboss support site and it seemed to fix some errors:

       

      <repositories>

                          <repository>

                                    <id>jboss-public-repository-group</id>

                                    <url>https://repository.jboss.org/nexus/content/groups/public-jboss/</url>

                                    <layout>default</layout>

                                    <releases>

                                              <enabled>true</enabled>

                                              <updatePolicy>never</updatePolicy>

                                    </releases>

                          </repository>

      </repositories>

       

      This was listed as a workaround since at the time the richfaces repositories were not in maven.

       

      Here is the current error I am getting:

       

      richfaces_build_err.png

       

      Any help getting this project built would be much appreciated!

       

      Ryan

        • 1. Re: Issues Building RichFaces 4.1.0 Showcase in Eclipse
          lfryc

          How have you imported your project?

           

          The right way is "File > Import > Existing Maven Projects".

           

          This seems like a class-path issue, check whether you have JPA API (hibernate-jpa-2.0-api) listed in your dependencies

          ("Package Explorer > Maven Dependencies").

          1 of 1 people found this helpful
          • 2. Re: Issues Building RichFaces 4.1.0 Showcase in Eclipse
            ryan4x4

            Lukáš,

             

            Thanks for getting back to me.

             

            This issue was indeed a dependency issue.  I used the m2e tool Maven -> Add Dependency and added the highlighted 'hibernate' and 'hornetq' dependencies.

             

            MavenDependencies.png

             

            The project will now build without errors.

             

            Next step is I need to figure out the Maven build/deploy process.  I haven't been able to successfully to run the app on the JBoss 5 server yet.

             

            Ryan