Caused by: java.lang.ClassNotFoundException: org.hibernate.cfg.Configuration ошибка после запуска Jar файла.Сборка MAven

227
26 ноября 2016, 19:10

Решил попробовать Hibernet ,при сборке проекта Maven -ом выдает такую ошибку как на скриншоте. Все что в pom файле

<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.mkyong.common</groupId> 
    <artifactId>SpringExample</artifactId> 
    <packaging>jar</packaging> 
    <version>1.0-SNAPSHOT</version> 
    <name>SpringExample</name> 
    <url>http://maven.apache.org</url> 
    <build> 
        <plugins> 
            <plugin> 
                <groupId>org.apache.maven.plugins</groupId> 
                <artifactId>maven-compiler-plugin</artifactId> 
                <version>2.3.2</version> 
                <configuration> 
                    <source>${jdk.version}</source> 
                    <target>${jdk.version}</target> 
                </configuration> 
            </plugin> 
            <plugin> 
                <groupId>org.apache.maven.plugins</groupId> 
                <artifactId>maven-jar-plugin</artifactId> 
                <version>2.4</version> 
                <configuration> 
                    <archive> 
                        <manifest> 
                            <mainClass>general.GeneralForm</mainClass> 
                        </manifest> 
                    </archive> 
                </configuration> 
            </plugin> 
        </plugins> 
    </build> 
    <dependencies> 
 
        <!-- JUnit testing framework --> 
        <dependency> 
            <groupId>junit</groupId> 
            <artifactId>junit</artifactId> 
            <version>3.8.1</version> 
            <scope>test</scope> 
        </dependency> 
 
 
 
 
        <!-- Spring AOP dependency --> 
        <dependency> 
            <groupId>cglib</groupId> 
            <artifactId>cglib</artifactId> 
            <version>2.2</version> 
        </dependency> 
 
        <!-- MySQL database driver --> 
        <dependency> 
            <groupId>mysql</groupId> 
            <artifactId>mysql-connector-java</artifactId> 
            <version>5.1.9</version> 
        </dependency> 
 
        <!-- Hibernate framework --> 
        <dependency> 
            <groupId>org.hibernate</groupId> 
            <artifactId>ejb3-persistence</artifactId> 
            <version>1.0.2.GA</version> 
        </dependency> 
 
        <dependency> 
            <groupId>org.hibernate</groupId> 
            <artifactId>hibernate-annotations</artifactId> 
            <version>3.5.6-Final</version> 
        </dependency> 
        <dependency> 
            <groupId>org.hibernate</groupId> 
            <artifactId>hibernate-commons-annotations</artifactId> 
            <version>3.2.0.Final</version> 
        </dependency> 
        <dependency> 
            <groupId>org.hibernate</groupId> 
            <artifactId>hibernate-entitymanager</artifactId> 
            <version>5.1.0.Final</version> 
        </dependency> 
 
 
        <!-- Hibernate library dependecy start --> 
        <dependency> 
            <groupId>dom4j</groupId> 
            <artifactId>dom4j</artifactId> 
            <version>1.6.1</version> 
        </dependency> 
 
        <dependency> 
            <groupId>commons-logging</groupId> 
            <artifactId>commons-logging</artifactId> 
            <version>1.1.1</version> 
        </dependency> 
 
        <dependency> 
            <groupId>commons-collections</groupId> 
            <artifactId>commons-collections</artifactId> 
            <version>3.2.1</version> 
        </dependency> 
 
        <dependency> 
            <groupId>antlr</groupId> 
            <artifactId>antlr</artifactId> 
            <version>2.7.7</version> 
        </dependency> 
        <!-- Hibernate library dependecy end --> 
 
    </dependencies> 
</project>

READ ALSO
Можно ли передать ArrayList через Socket (OutputStreamWriter)

Можно ли передать ArrayList через Socket (OutputStreamWriter)

Можно ли передать ArrayList через Socket (OutputStreamWriter), если да, то как?

319
связь между java EE и java SE

связь между java EE и java SE

Решил попробовать java EE и столкнулся с типичной проблемой "много инфы"

203
Как заблокировать вызов метода paintComponent()?

Как заблокировать вызов метода paintComponent()?

Я хочу заблокировать панель, в которой происходит рисованиеsetIgnoreRepaint(true) - не работает, я его вызываю в конструкторе фрейма; во фрейме упакована...

317
многопоточность, ошибка thread 2: exc_bad_access

многопоточность, ошибка thread 2: exc_bad_access

Изучаю многопоточность в С++Сделал простую программку на создание и вывод двумерного массива

210