Could not open JDBC Connection for transaction; nested exception is java.sql.SQLException: socket creation error

来源:互联网 发布:财务费用的算法 编辑:程序博客网 时间:2024/05/21 21:44

A:多数是因为数据库没有打开的缘故!

若使用的HSQLDB的话,应首先打开HSQLDB的server,如server.bat
附server.bat内容:
java -classpath ../WebContent/WEB-INF/lib/hsqldb.jar org.hsqldb.Server -database test