Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/hibernate/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
org.jboss.resteasy.spi.UnhandledException:java.lang.NoSuchMethodError:org.hibernate.SessionFactory.openSession()Lorg/hibernate/Session;_Java_Hibernate_Maven_Jboss - Fatal编程技术网

org.jboss.resteasy.spi.UnhandledException:java.lang.NoSuchMethodError:org.hibernate.SessionFactory.openSession()Lorg/hibernate/Session;

org.jboss.resteasy.spi.UnhandledException:java.lang.NoSuchMethodError:org.hibernate.SessionFactory.openSession()Lorg/hibernate/Session;,java,hibernate,maven,jboss,Java,Hibernate,Maven,Jboss,我正在尝试将hibernate 4.1.10与第三方连接集成 池C3P0使用maven,但我无法打开会话 下面是我的pom.xml . . . org.hibernate hibernate-c3p0 4.1.10.最终版本 org.hibernate 冬眠核心 4.1.10.最终版本 . . . 下面是我的hibernate.cfg.xml文件 . . . 5. 20 300 50 3000 ... 但我越来越不例外了。请帮忙。 完成后错误堆栈和配置可能重复 following is my p

我正在尝试将hibernate 4.1.10与第三方连接集成 池C3P0使用maven,但我无法打开会话

下面是我的pom.xml
. . .
org.hibernate
hibernate-c3p0
4.1.10.最终版本
org.hibernate
冬眠核心
4.1.10.最终版本
. . .
下面是我的hibernate.cfg.xml文件
. . .
5.
20
300
50
3000
...
但我越来越不例外了。请帮忙。

完成后错误堆栈和配置可能重复
following is my pom.xml
 . . .
  <dependency>
    <groupId>org.hibernate</groupId>
    <artifactId>hibernate-c3p0</artifactId>
    <version>4.1.10.Final</version>
   </dependency>
   <dependency>
     <groupId>org.hibernate</groupId>
     <artifactId>hibernate-core</artifactId>
     <version>4.1.10.Final</version>
   </dependency>
   . . .
    and  following is my hibernate.cfg.xml file

    . . .
    <property name="hibernate.c3p0.min_size">5</property>
    <property name="hibernate.c3p0.max_size">20</property>
    <property name="hibernate.c3p0.timeout">300</property>
    <property name="hibernate.c3p0.max_statements">50</property>
    <property name="hibernate.c3p0.idle_test_period">3000</property>
    ...
But I am getting above exception. Please help.