Guest User

Untitled

a guest
Jun 28th, 2016
151
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.43 KB | None | 0 0
  1. HTTP Status 500 - javax.persistence.PersistenceException: org.hibernate.exception.JDBCConnectionException: Cannot open connection
  2.  
  3. type Exception report
  4.  
  5. message javax.persistence.PersistenceException: org.hibernate.exception.JDBCConnectionException: Cannot open connection
  6.  
  7. description The server encountered an internal error that prevented it from fulfilling this request.
  8.  
  9. exception
  10.  
  11. javax.servlet.ServletException: javax.persistence.PersistenceException: org.hibernate.exception.JDBCConnectionException: Cannot open connection
  12. javax.faces.webapp.FacesServlet.service(FacesServlet.java:659)
  13. org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
  14. root cause
  15.  
  16. javax.faces.el.EvaluationException: javax.persistence.PersistenceException: org.hibernate.exception.JDBCConnectionException: Cannot open connection
  17. javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:101)
  18. com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:102)
  19. javax.faces.component.UICommand.broadcast(UICommand.java:315)
  20. javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:790)
  21. javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:1282)
  22. com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:81)
  23. com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)
  24. com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)
  25. javax.faces.webapp.FacesServlet.service(FacesServlet.java:646)
  26. org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
  27. root cause
  28.  
  29. javax.persistence.PersistenceException: org.hibernate.exception.JDBCConnectionException: Cannot open connection
  30. org.hibernate.ejb.AbstractEntityManagerImpl.throwPersistenceException(AbstractEntityManagerImpl.java:614)
  31. org.hibernate.ejb.TransactionImpl.begin(TransactionImpl.java:41)
  32. br.com.arena.dao.PessoaDAO.cadastrar(PessoaDAO.java:21)
  33. br.com.arena.controller.PessoaBean.cadastrar(PessoaBean.java:15)
  34. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  35. sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
  36. sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
  37. java.lang.reflect.Method.invoke(Unknown Source)
  38. org.apache.el.parser.AstValue.invoke(AstValue.java:247)
  39. org.apache.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:267)
  40. com.sun.faces.facelets.el.TagMethodExpression.invoke(TagMethodExpression.java:105)
  41. javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:87)
  42. com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:102)
  43. javax.faces.component.UICommand.broadcast(UICommand.java:315)
  44. javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:790)
  45. javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:1282)
  46. com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:81)
  47. com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)
  48. com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)
  49. javax.faces.webapp.FacesServlet.service(FacesServlet.java:646)
  50. org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
  51. root cause
  52.  
  53. org.hibernate.exception.JDBCConnectionException: Cannot open connection
  54. org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:97)
  55. org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:66)
  56. org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:52)
  57. org.hibernate.jdbc.ConnectionManager.openConnection(ConnectionManager.java:449)
  58. org.hibernate.jdbc.ConnectionManager.getConnection(ConnectionManager.java:167)
  59. org.hibernate.jdbc.JDBCContext.connection(JDBCContext.java:142)
  60. org.hibernate.transaction.JDBCTransaction.begin(JDBCTransaction.java:85)
  61. org.hibernate.impl.SessionImpl.beginTransaction(SessionImpl.java:1353)
  62. org.hibernate.ejb.TransactionImpl.begin(TransactionImpl.java:38)
  63. br.com.arena.dao.PessoaDAO.cadastrar(PessoaDAO.java:21)
  64. br.com.arena.controller.PessoaBean.cadastrar(PessoaBean.java:15)
  65. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  66. sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
  67. sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
  68. java.lang.reflect.Method.invoke(Unknown Source)
  69. org.apache.el.parser.AstValue.invoke(AstValue.java:247)
  70. org.apache.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:267)
  71. com.sun.faces.facelets.el.TagMethodExpression.invoke(TagMethodExpression.java:105)
  72. javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:87)
  73. com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:102)
  74. javax.faces.component.UICommand.broadcast(UICommand.java:315)
  75. javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:790)
  76. javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:1282)
  77. com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:81)
  78. com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)
  79. com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)
  80. javax.faces.webapp.FacesServlet.service(FacesServlet.java:646)
  81. org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
  82. root cause
  83.  
  84. java.sql.SQLException: No suitable driver found for jdbc:mysql://localhost/arena
  85. java.sql.DriverManager.getConnection(Unknown Source)
  86. java.sql.DriverManager.getConnection(Unknown Source)
  87. org.hibernate.connection.DriverManagerConnectionProvider.getConnection(DriverManagerConnectionProvider.java:133)
  88. org.hibernate.jdbc.ConnectionManager.openConnection(ConnectionManager.java:446)
  89. org.hibernate.jdbc.ConnectionManager.getConnection(ConnectionManager.java:167)
  90. org.hibernate.jdbc.JDBCContext.connection(JDBCContext.java:142)
  91. org.hibernate.transaction.JDBCTransaction.begin(JDBCTransaction.java:85)
  92. org.hibernate.impl.SessionImpl.beginTransaction(SessionImpl.java:1353)
  93. org.hibernate.ejb.TransactionImpl.begin(TransactionImpl.java:38)
  94. br.com.arena.dao.PessoaDAO.cadastrar(PessoaDAO.java:21)
  95. br.com.arena.controller.PessoaBean.cadastrar(PessoaBean.java:15)
  96. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  97. sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
  98. sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
  99. java.lang.reflect.Method.invoke(Unknown Source)
  100. org.apache.el.parser.AstValue.invoke(AstValue.java:247)
  101. org.apache.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:267)
  102. com.sun.faces.facelets.el.TagMethodExpression.invoke(TagMethodExpression.java:105)
  103. javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:87)
  104. com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:102)
  105. javax.faces.component.UICommand.broadcast(UICommand.java:315)
  106. javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:790)
  107. javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:1282)
  108. com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:81)
  109. com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)
  110. com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)
  111. javax.faces.webapp.FacesServlet.service(FacesServlet.java:646)
  112. org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
  113. note The full stack trace of the root cause is available in the Apache Tomcat/8.0.36 logs.
Advertisement
Add Comment
Please, Sign In to add comment