各位大侠:
最近在JBuilder2005环境下,编写了一个选课系统,使用的是struts+hibernate,数据库是SqlServer2000.
把它部署到Tomcat5.0下,在该选课系统的用户界面中输入用户名和密码,结果显示是HTTP Status 500 错误.
在JBuilder2005中显示的错误是:
严重: Failed Logon:com.jnetdirect.jsql.m: TCP/IP connection failed to host:java.net.ConnectException: Connection refused: connect url:jdbc:JSQLConnect://127.0.0.1:1433/database=student
2007-4-24 14:08:50 net.sf.hibernate.cfg.SettingsFactory buildSettings
警告: Could not obtain connection metadata
com.jnetdirect.jsql.m: Failed Logon:com.jnetdirect.jsql.m: TCP/IP connection failed to host:java.net.ConnectException: Connection refused: connect url:jdbc:JSQLConnect://127.0.0.1:1433/database=student
at com.jnetdirect.jsql.JSQLDriver.connect(Unknown Source)
我的hibernate的properties的配制如下:
hibernate.dialect net.sf.hibernate.dialect.SybaseDialect
hibernate.connection.driver_class=com.jnetdirect.jsql.JSQLDriver
hibernate.connection.url=jdbc:JSQLConnect://127.0.0.1:1433/database=student
hibernate.connection.username=sa
hibernate.connection.password=sa
hibernate.connection.pool_size=10
还望个位大侠能指点迷津! 万分感谢!!
[求助]JBuilder2005+struts+hibernate+SqlServer2000