org.jboss.resteasy.spi.UnhandledException:java.lang.NoSuchMethodError:org.hibernate.SessionFactory.openSession()Lorg/hibernate/Session;
我正在尝试将hibernate 4.1.10与第三方连接集成 池C3P0使用maven,但我无法打开会话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
下面是我的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.