当前位置: 代码迷 >> Java Web开发 >> [求助]JBuilder2005+struts+hibernate+SqlServer2000
  详细解决方案

[求助]JBuilder2005+struts+hibernate+SqlServer2000

热度:787   发布时间:2007-04-24 22:36:31.0
[求助]JBuilder2005+struts+hibernate+SqlServer2000

各位大侠:
最近在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

还望个位大侠能指点迷津! 万分感谢!!

搜索更多相关主题的帖子: hibernate  struts  数据库  

----------------解决方案--------------------------------------------------------
jdbc:JSQLConnect://127.0.0.1:1433/database=student
URL写的有问题
----------------解决方案--------------------------------------------------------
加上<![CDATA[jdbc:JSQLConnect://127.0.0.1:1433/database=student]]>试试

----------------解决方案--------------------------------------------------------
谢谢,问题已经解决了.我改用mysql了.
----------------解决方案--------------------------------------------------------
  相关解决方案