Hibernate错误(Cant build session factory)

时间:2016-06-13 10:22:29

标签: hibernate

我正在

  

org.hibernate.exception.JDBCConnectionException:调用时出错   我的导航器应用程序中的驱动程序#connect已升级到WAS 8.5.5.5

在WAS 8.0中它可以工作,但在升级到WAS 8.5.5后,我收到了上述错误。

Configuration configuration = new Configuration().configure(HibernateUtil.class.getResource("/hibernate.cfg.xml"));
StandardServiceRegistryBuilder serviceRegistryBuilder = new StandardServiceRegistryBuilder();
ServiceRegistryBuilder.applySettings(configuration.getProperties());
ServiceRegistry serviceRegistry = serviceRegistryBuilder.build();

仅供参考,我在这里收到错误

sessionFactory = configuration.buildSessionFactory(serviceRegistry);

0 个答案:

没有答案