载入com.microsoft.util.transliteration.properties错误,请教!

05-11-18 jacer
环境:
sql server 2000
hibernate 3
eclipse 3.1
在用hibernate sychronizer生成映射xml文件窗口,刷新数据库表的时候出现如下问题:
java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC]Error opening/loading

同时,如果手工编写mapping文件后,连接数据库时会出现如下错误:

22:04:32,443  INFO DriverManagerConnectionProvider:41 - Using Hibernate built-in connection pool (not for production use!)
22:04:32,443  INFO DriverManagerConnectionProvider:42 - Hibernate connection pool size: 20
22:04:32,463  INFO DriverManagerConnectionProvider:45 - autocommit mode: false
22:04:32,473  INFO DriverManagerConnectionProvider:80 - using driver: com.microsoft.jdbc.sqlserver.SQLServerDriver at URL: jdbc:microsoft:sqlserver://localhost:1433;databasename=db
22:04:32,473  INFO DriverManagerConnectionProvider:86 - connection properties: {user=sa, password=****}
22:04:32,834  WARN SettingsFactory:103 - Could not obtain connection metadata
java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC]Error opening/loading com.microsoft.util.transliteration.properties.
	at com.microsoft.jdbc.base.BaseExceptions.createException(Unknown Source)
	at com.microsoft.jdbc.base.BaseExceptions.getException(Unknown Source)
	at com.microsoft.jdbc.sqlserver.tds.TDSConnection.setNonUnicodeTransliterator(Unknown Source)
	at com.microsoft.jdbc.sqlserver.tds.TDSConnection.setSQLCollation(Unknown Source)
	at com.microsoft.jdbc.sqlserver.tds.TDSRequest.processEnvChange(Unknown Source)
	at com.microsoft.jdbc.sqlserver.tds.TDSRequest.processReplyToken(Unknown Source)
	at com.microsoft.jdbc.sqlserver.tds.TDSLoginRequest.processReplyToken(Unknown Source)
	at com.microsoft.jdbc.sqlserver.tds.TDSRequest.processReply(Unknown Source)
	at com.microsoft.jdbc.sqlserver.SQLServerImplConnection.open(Unknown Source)
	at com.microsoft.jdbc.base.BaseConnection.getNewImplConnection(Unknown Source)
	at com.microsoft.jdbc.base.BaseConnection.open(Unknown Source)
	at com.microsoft.jdbc.base.BaseDriver.connect(Unknown Source)


第一句不知道是不是和这个错误相关。
而且怪就怪在有时它又不出问题,但是每次出这个问题都搞得我非常难受。请教这是什么原因啊?困扰我很久啦!谢谢!

猜你喜欢