tomact5.5数据库连接池配置问题
系统在tomact5.0.28+oracle9i连接池以下代码配置没有问题,可是一转到tomact5.5下就不行,报这个错误:
org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create JDBC driver of class ' ' for connect URL 'null '
请高手指教,急,在线等!
server.xml文件内容如下:
<Server port= "8005 " shutdown= "SHUTDOWN ">
<Listener className= "org.apache.catalina.core.AprLifecycleListener " />
<Listener className= "org.apache.catalina.mbeans.ServerLifecycleListener " />
<Listener className= "org.apache.catalina.mbeans.GlobalResourcesLifecycleListener " />
<Listener className= "org.apache.catalina.storeconfig.StoreConfigLifecycleListener "/>
<!-- Global JNDI resources -->
<GlobalNamingResources>
<!-- Test entry for demonstration purposes -->
<Environment name= "simpleValue " type= "java.lang.Integer " value= "30 "/>
<Resource name= "UserDatabase " auth= "Container "
type= "org.apache.catalina.UserDatabase "
description= "User database that can be updated and saved "
factory= "org.apache.catalina.users.MemoryUserDatabaseFactory "
pathname= "conf/tomcat-users.xml " />
</GlobalNamingResources>
<Service name= "Catalina ">
<Connector
port= "8080 " maxHttpHeaderSize= "8192 "
maxThreads= "150 " minSpareThreads= "25 " maxSpareThreads= "75 "
enableLookups= "false " redirectPort= "8443 " acceptCount= "100 "
connectionTimeout= "20000 " disableUploadTimeout= "true " />
<Connector port= "8009 "
enableLookups= "false " redirectPort= "8443 " protocol= "AJP/1.3 " />
<Host name= "localhost " appBase= "webapps "
unpackWARs= "true " autoDeploy= "true "
xmlValidation= "false " xmlNamespaceAware= "false ">
<Context docBase= "G:\MyDss\dss_hq\dss " path= "/boncdss " reloadable= "fals ">
<Resource name= "default " auth= "Container " type= "javax.sql.DataSource "/>
<ResourceParams name= "default ">
<parameter>
<name> factory </name>
<value> org.apache.commons.dbcp.BasicDataSourceFactory </value>
</parameter>
<parameter>
<name> driverClassName </name>
<value> oracle.jdbc.driver.OracleDriver </value>
</parameter>
<parameter>
<name> url </name>
<value> jdbc:oracle:thin:@192.168.0.3:1521:CTTEBAPV </value>
</parameter>
<parameter>
<name> username </name>
<value> dss </value>
</parameter>
<parameter>
<name> password </name>
<value> dss </value>
</parameter>
<parameter>
<name> maxActive </name>
<value> 100 </value>
</parameter>
<parameter>
<name> maxIdle </name>
<value> 100 </value>
</parameter>
<parameter>
<name> maxWait </name>
<value> 300 </value>
</parameter>
</ResourceParams>
</Context>
</Host>
</Engine>
</Service>
</Server>
[解决办法]
老兄,我也是遇到你一样的问题啊~~
帮顶了
[解决办法]
是server.xml的问题吗?
[解决办法]
有兴趣加我QQ一起讨论下。39980128
[解决办法]
我试过5.5.20,和你一样的错误。
然后看到5.0.28好象比较容易成功就换0.28了,但是还是一样的错误
他们说要把JDBC的驱动放到的地方我都放了,改的文件也按他们的改了,还是没效果,郁闷死了