Guest User

Untitled

a guest
Oct 21st, 2017
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.65 KB | None | 0 0
  1. private static SessionFactory buildSessionFactory (Class paramClass) {
  2. return new Configuration()
  3. .configure("hibernate.cfg.xml")
  4. .addAnnotatedClass(paramClass)
  5. .buildSessionFactory();
  6. }
  7.  
  8. ##URL for connection to DB
  9. hibernate.connection.url = jdbc:h2:tcp://localhost:8080/~/public
  10.  
  11. org.hibernate.service.spi.ServiceException: Unable to create requested
  12. service [org.hibernate.engine.jdbc.env.spi.JdbcEnvironment]
  13. ...
  14.  
  15. Caused by: org.hibernate.exception.JDBCConnectionException: Error calling
  16. DriverManager#getConnection
  17. ...
  18.  
  19. Caused by: java.sql.SQLException: No suitable driver found for
  20. jdbc:h2:tcp://localhost:8080/~/public
Add Comment
Please, Sign In to add comment