【发布时间】:2013-03-09 02:17:06
【问题描述】:
我使用 struts 和 hibernate 创建了应用程序。在 Eclipse IDE 中运行应用程序时出现以下错误:
org.hibernate.SessionException: Error! Please, check your JDBC/JDNI Configurations and Database Server avaliability.
Could not open or put a Hibernate Session in ValueStack: Cannot open connection
com.googlecode.s2hibernate.struts2.plugin.interceptors.SessionTransactionInjectorInterceptor.intercept(SessionTransactionInjectorInterceptor.java:134)
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)
org.apache.struts2.impl.StrutsActionProxy.execute(StrutsActionProxy.java:52)
org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:468)
org.apache.struts2.dispatcher.ng.ExecuteOperations.executeAction(ExecuteOperations.java:77)
org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.doFilter(StrutsPrepareAndExecuteFilter.java:76)
有什么线索吗?
问候,
【问题讨论】:
-
有什么线索可以克服这个错误吗?
-
org.hibernate.SessionException:错误!请检查您的 JDBC/JDNI 配置和数据库服务器的可用性。无法打开连接
-
这是自定义错误信息吗?
标签: java mysql eclipse hibernate struts2