3、 修改web.xml和%TOMCAT_HOME%\conf\Catalina\localhost下对应你的引用的配置文件
打开%TOMCAT_HOME%\conf\web.xml,在</web-app>的前面添加以下内容:
<resource-ref>
<description>sqlserverDB Connection</description>
<res-ref-name>jdbc/sqlserver</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
</resource-ref>
注意res-ref-name填写的内容要与在上文提到的JNDI Name名称一致。 4. 下载sqlserver2000 jdbc 驱动 http://download.microsoft.com/download/SQLSVR2000/Install/2.2.0022/UNIX/EN-
US/mssqlserver.tar 解压后找到如下jar包 msbase.jar , mssqlserver.jar, msutil.jar 把这3个jar包copy 到 %tomcat_home% \common\lib 下。 sqlserver 配置完毕
sql/Index.html'>mysql5 beta 数据源配置
上一页 [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12] [13] [14] [15] [16] [17] 下一页
|