0 Replies Latest reply on Nov 27, 2014 7:03 PM by Matteo Inserrato

    Hibernate and jsf setting up with jboss 7

    Matteo Inserrato Newbie

      Hi

       

      In the last week i had different problems about the configurations of hibernate... I created a  maven project in eclipse, this is my pom.xml

       

       

      <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

        xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">

        <modelVersion>4.0.0</modelVersion>

        <groupId>com.mastertheboss</groupId>

        <artifactId>HibernateExample</artifactId>

        <packaging>jar</packaging>

        <version>1.0.0</version>

        <name>HibernateExample</name>

        <url>http://maven.apache.org</url>

        

             <dependencies>

              <dependency>

                  <groupId>org.hibernate</groupId>

                  <artifactId>hibernate-core</artifactId>

                  <version>4.0.1.Final</version>

              </dependency>

              <dependency>

                  <groupId>org.hibernate</groupId>

                  <artifactId>hibernate-validator</artifactId>

                  <version>4.2.0.Final</version>

              </dependency>

              <dependency>

                  <groupId>org.hibernate.common</groupId>

                  <artifactId>hibernate-commons-annotations</artifactId>

                  <version>4.0.1.Final</version>

                  <classifier>tests</classifier>

              </dependency>

              <dependency>

                  <groupId>org.hibernate.javax.persistence</groupId>

                  <artifactId>hibernate-jpa-2.0-api</artifactId>

                  <version>1.0.1.Final</version>

              </dependency>

              <dependency>

                  <groupId>org.hibernate</groupId>

                  <artifactId>hibernate-entitymanager</artifactId>

                  <version>4.0.1.Final</version>

              </dependency>

              <dependency>

                  <groupId>javax.validation</groupId>

                  <artifactId>validation-api</artifactId>

                  <version>1.0.0.GA</version>

                  <scope>provided</scope>

              </dependency>

              <dependency>

                  <groupId>org.slf4j</groupId>

                  <artifactId>slf4j-api</artifactId>

                  <version>1.6.4</version>

              </dependency>

              <dependency>

                  <groupId>org.jboss.logging</groupId>

                  <artifactId>jboss-logging</artifactId>

                  <version>3.1.0.CR2</version>

              </dependency>

              <dependency>

                  <groupId>org.slf4j</groupId>

                  <artifactId>slf4j-log4j12</artifactId>

                  <version>1.6.4</version>

              </dependency>

       

              <dependency>

                  <groupId>mysql</groupId>

                  <artifactId>mysql-connector-java</artifactId>

                  <version>5.1.10</version>

              </dependency>

           <dependency>

                  <groupId>javax.servlet</groupId>

                  <artifactId>servlet-api</artifactId>

                       <version>2.5</version>

           </dependency>

          </dependencies>

      </project>

       

       

      when I deployed the project every time that a servlet tried to get information from a mysql database. I got different class not found exceptions.... I think that miss some library or there are some conflicts...
      By the way have you got any advise about the configuration and wich dependency I need to download. I need to add also jsf dependencies.

       

      thank you very much...any Idea will be appreciate.