简体   繁体   English

JBoss 3.2.2和JDBC升级

[英]JBoss 3.2.2 and JDBC upgrade

Moved a bunch of databases from sql server 2000 to 2008. One of the applications is on JBoss 3.2.2 and is now failing to connect to the database. 将一堆数据库从sql server 2000移到了2008。一个应用程序在JBoss 3.2.2上,现在无法连接到数据库。 The particular error is "The incoming tabular data stream (TDS) remote procedure call (RPC) protocol stream is incorect. Parameter 1 (""): Data type 0x38 is unknown." 特定的错误是“传入的表格格式数据流(TDS)远程过程调用(RPC)协议流不正确。参数1(“”):数据类型0x38未知。” I looked around google for a while have determined this is because I'm using MS SQL Server 2000 Driver for JDBC and this driver will not work with MSSql server 2008. It will connect but will not work. 我在Google周围转了一圈,已经确定这是因为我使用的是JDBC的MS SQL Server 2000驱动程序,并且该驱动程序无法与MSSql Server 2008一起使用。它将连接但无法使用。

So my question is how do I get Jboss to use the new MSSql server JDBC driver version 2. 所以我的问题是如何让Jboss使用新的MSSql服务器JDBC驱动程序版本2。

I'm not familiar with JBoss at all. 我一点都不熟悉JBoss。 The new driver comes with a JAR file but I'm not sure how to tell JBoss to use that instead of the old driver. 新的驱动程序带有一个JAR文件,但是我不确定如何告诉JBoss使用该文件而不是旧的驱动程序。

Thank you in advance for all your help. 预先感谢您的所有帮助。

Most often , to make the JDBC driver class available to JBoss, the driver's jar is copied to the lib directory of the default server configuration (assuming that is the configuration you are running, of course). 通常,为了使JDBC驱动程序类可用于JBoss,将驱动程序的jar复制到默认服务器配置的lib目录(当然,假设您正在运行的配置)。

So, in order to make JBoss use the new driver, remove the old jar from the lib directory (if it's not there look at the startup script and find from where it's added to the $CLASSPATH), replace it with the new driver, update your mssql-ds.xml if required (especially the <connection-url> and <driver-class> , check the driver documentation), restart Jboss. 因此,为了使JBoss使用新的驱动程序,请从lib目录中删除旧的jar(如果不存在,请查看启动脚本并从添加到$ CLASSPATH的位置查找),将其替换为新的驱动程序,并进行更新。如果需要,请输入mssql-ds.xml(尤其是<connection-url><driver-class> ,请参阅驱动程序文档),重新启动Jboss。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM