javax.persistence.PersistenceException: org.hibernate.exception.GenericJDBCException: Cannot open connection

openxava | jcjava | 4 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Problema al ejecutar http://localhost:8181/MagussWeb/modules/Abogado

    openxava | 4 years ago | jcjava
    javax.persistence.PersistenceException: org.hibernate.exception.GenericJDBCException: Cannot open connection
  2. 0

    Re: Seeking the right solution to java.lang.ClassNotFoundException: com.mysql.jdbc.Driver

    apache.org | 2 years ago
    org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot load JDBC driver class 'com.mysql.jdbc.Driver'
  3. 0

    ClassNotFoundException: com.mysql.jdbc.Driver- But it's there!

    Oracle Community | 1 decade ago | 843841
    org.hibernate.exception.GenericJDBCException: Cannot open connection
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Tomcat6 ignores web-inf/lib

    Stack Overflow | 6 years ago | stackoverflower
    org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot load JDBC driver class 'oracle.jdbc.OracleDriver'
  6. 0

    how to print the full stacktrace in java

    Stack Overflow | 7 years ago | Enrique San Martín
    org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot load JDBC driver class 'com.ibm.db2.jcc.DB2Driver'

  1. tzrlk 1 times, last 4 weeks ago
  2. alto 1 times, last 4 weeks ago
  3. gamebusterz 1 times, last 4 weeks ago
  4. jokester 2 times, last 1 month ago
  5. Andreas Häber 1 times, last 1 month ago
62 more registered users
33 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.ClassNotFoundException

    org.postgresql.Driver

    at java.net.URLClassLoader$1.run()
  2. Java RT
    Class.forName
    1. java.net.URLClassLoader$1.run(URLClassLoader.java:202)
    2. java.security.AccessController.doPrivileged(Native Method)
    3. java.net.URLClassLoader.findClass(URLClassLoader.java:190)
    4. java.lang.ClassLoader.loadClass(ClassLoader.java:306)
    5. java.lang.ClassLoader.loadClass(ClassLoader.java:247)
    6. java.lang.Class.forName0(Native Method)
    7. java.lang.Class.forName(Class.java:169)
    7 frames
  3. org.apache.tomcat
    BasicDataSource.getConnection
    1. org.apache.tomcat.dbcp.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:1130)
    2. org.apache.tomcat.dbcp.dbcp.BasicDataSource.getConnection(BasicDataSource.java:880)
    2 frames
  4. Hibernate
    DatasourceConnectionProvider.getConnection
    1. org.hibernate.connection.DatasourceConnectionProvider.getConnection(DatasourceConnectionProvider.java:92)
    1 frame
  5. Hibernate
    JDBCTransaction.begin
    1. org.hibernate.jdbc.ConnectionManager.openConnection(ConnectionManager.java:446)
    2. org.hibernate.jdbc.ConnectionManager.getConnection(ConnectionManager.java:167)
    3. org.hibernate.jdbc.JDBCContext.connection(JDBCContext.java:160)
    4. org.hibernate.transaction.JDBCTransaction.begin(JDBCTransaction.java:81)
    4 frames
  6. Hibernate
    SessionImpl.beginTransaction
    1. org.hibernate.impl.SessionImpl.beginTransaction(SessionImpl.java:1473)
    1 frame
  7. Hibernate EJB
    TransactionImpl.begin
    1. org.hibernate.ejb.TransactionImpl.begin(TransactionImpl.java:60)
    1 frame
  8. org.openxava.jpa
    XPersistence.getManager
    1. org.openxava.jpa.XPersistence.openManager(XPersistence.java:114)
    2. org.openxava.jpa.XPersistence.getManager(XPersistence.java:94)
    2 frames
  9. org.openxava.tab
    Tab.getTotalSize
    1. org.openxava.tab.impl.JPATabProvider.executeNumberSelect(JPATabProvider.java:176)
    2. org.openxava.tab.impl.TabProviderBase.getResultSize(TabProviderBase.java:106)
    3. org.openxava.tab.impl.EntityTabDataProvider.getResultSize(EntityTabDataProvider.java:205)
    4. org.openxava.tab.impl.EntityTab.getResultSize(EntityTab.java:453)
    5. org.openxava.tab.impl.TableModelBean.getTotalSize(TableModelBean.java:277)
    6. org.openxava.tab.impl.XTableModelDecoratorBase.getTotalSize(XTableModelDecoratorBase.java:87)
    7. org.openxava.tab.Tab.getTotalSize(Tab.java:1005)
    7 frames
  10. org.apache.jsp
    listEditor_jsp._jspService
    1. org.apache.jsp.xava.editors.listEditor_jsp._jspService(listEditor_jsp.java:932)
    1 frame
  11. GWT dev
    HttpJspBase.service
    1. org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
    1 frame
  12. JavaServlet
    HttpServlet.service
    1. javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
    1 frame
  13. GWT dev
    JspServlet.service
    1. org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)
    2. org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)
    3. org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
    3 frames
  14. JavaServlet
    HttpServlet.service
    1. javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
    1 frame
  15. Glassfish Core
    ApplicationDispatcher.include
    1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
    2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    3. org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:646)
    4. org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:551)
    5. org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:488)
    5 frames
  16. GWT dev
    JspRuntimeLibrary.include
    1. org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:968)
    1 frame
  17. org.apache.jsp
    list_jsp._jspService
    1. org.apache.jsp.xava.list_jsp._jspService(list_jsp.java:72)
    1 frame
  18. GWT dev
    HttpJspBase.service
    1. org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
    1 frame
  19. JavaServlet
    HttpServlet.service
    1. javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
    1 frame
  20. GWT dev
    JspServlet.service
    1. org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)
    2. org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)
    3. org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
    3 frames
  21. JavaServlet
    HttpServlet.service
    1. javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
    1 frame
  22. Glassfish Core
    ApplicationDispatcher.include
    1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
    2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    3. org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:646)
    4. org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:551)
    5. org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:488)
    5 frames
  23. GWT dev
    JspRuntimeLibrary.include
    1. org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:968)
    1 frame
  24. org.apache.jsp
    core_jsp._jspService
    1. org.apache.jsp.xava.core_jsp._jspService(core_jsp.java:297)
    1 frame
  25. GWT dev
    HttpJspBase.service
    1. org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
    1 frame
  26. JavaServlet
    HttpServlet.service
    1. javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
    1 frame
  27. GWT dev
    JspServlet.service
    1. org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)
    2. org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)
    3. org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
    3 frames
  28. JavaServlet
    HttpServlet.service
    1. javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
    1 frame
  29. Glassfish Core
    ApplicationDispatcher.include
    1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
    2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    3. org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:646)
    4. org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:551)
    5. org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:488)
    5 frames
  30. GWT dev
    JspRuntimeLibrary.include
    1. org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:968)
    1 frame
  31. org.apache.jsp
    module_jsp._jspService
    1. org.apache.jsp.xava.module_jsp._jspService(module_jsp.java:477)
    1 frame
  32. GWT dev
    HttpJspBase.service
    1. org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
    1 frame
  33. JavaServlet
    HttpServlet.service
    1. javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
    1 frame
  34. GWT dev
    JspServlet.service
    1. org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)
    2. org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)
    3. org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
    3 frames
  35. JavaServlet
    HttpServlet.service
    1. javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
    1 frame
  36. Glassfish Core
    ApplicationDispatcher.forward
    1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
    2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    3. org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:646)
    4. org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:436)
    5. org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:374)
    6. org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:302)
    6 frames
  37. org.openxava.web
    ModuleServlet.doGet
    1. org.openxava.web.servlets.ModuleServlet.doGet(ModuleServlet.java:24)
    1 frame
  38. JavaServlet
    HttpServlet.service
    1. javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
    2. javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
    2 frames
  39. Glassfish Core
    CoyoteAdapter.service
    1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
    2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    3. org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
    4. org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
    5. org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
    6. org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
    7. org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
    8. org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
    8 frames
  40. Grizzly HTTP
    JIoEndpoint$Worker.run
    1. org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:849)
    2. org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
    3. org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:454)
    3 frames
  41. Java RT
    Thread.run
    1. java.lang.Thread.run(Thread.java:662)
    1 frame