Previously I was using hibernate 3
as my project framework and I upgraded it to the hibernate 4.3.5
.
I followed these steps:
.jar
files & also the dependent .jars
After this build my project successfully & then try to connect with the database. Connection is successful but when i am trying to save, It gives me following error:
Unknown service requested
[org.hibernate.engine.jdbc.spi.JdbcServices]
Is there something that I missed out ? Please Help.
Thanks
Find the Solution for My problem:
Session object in Hibernate is not thread safe, you should not use the same session in different threads, unless you synchornize access to Session object.
Reference : Hibernate Upgrade : Unknown service requested
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.