那就放到你的Web Application的WEB_INF/lib下去。
这样至少在这个web application中是可用的。

解决方案 »

  1.   

    在你的CONF文件夹下打开SERVER.XML找到:
    <Realm  className="org.apache.catalina.realm.JDBCRealm" debug="99"
              driverName="oracle.jdbc.driver.OracleDriver"
              connectionURL="jdbc:oracle:thin:@ntserver:1521:ORCL?user=scott;password=tiger"
                  userTable="users" userNameCol="user_name" userCredCol="user_pass"
              userRoleTable="user_roles" roleNameCol="role_name" />
    -->
    这里只有ORACLE和JDBCODBC的DRIVER,在下面加入你的新的DRIVER就可以了.
      

  2.   

    也就是:
    <Realm  className="org.apache.catalina.realm.JDBCRealm" debug="99"
              driverName="com.microsoft.jdbc.sqlserver.SQLServerDriver"//这里是你的新的DRIVER.
              connectionURL="jdbc:oracle:thin:@ntserver:1521:ORCL?user=scott;password=tiger"
                  userTable="users" userNameCol="user_name" userCredCol="user_pass"
              userRoleTable="user_roles" roleNameCol="role_name" />
    -->
      

  3.   

    c:\tomcat\webapps\YOURWEB\web-inf\lib\mssql1.jar;
    c:\tomcat\webapps\YOURWEB\web-inf\lib\mssql2.jar;
    c:\tomcat\webapps\YOURWEB\web-inf\lib\mssql3.jar;
    环境变量可以这么设啊。我不知道你那3个文件明是什么,自己改一下就ok了。