You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by raghu ram srinivas <ra...@gmail.com> on 2009/05/22 19:34:25 UTC
Cannot establish a database connection. Cannot create JDBC driver of
class '' for connect URL
Hi All
I am getting the following error can any one help me regarding
this.............please...........
this is my context.xml------which is under my web application ie..,
tomcat--
webapp
---
*PVS----my web applicaiton*
---
WEBINF
META-INF
*pvs.xml (contxt.xml)*
*pvs.xml (contxt.xml)*
<Resource name="jdbc/pvs" auth="Container"
type="javax.sql.DataSource"
driverClassName="oracle.jdbc.OracleDriver"
url="my url......"
username=" " password="" maxActive="20" maxIdle="10"
maxWait="-1"/>
web.xml:
<resource-ref>
<description>PVS Oracle DataBase </description>
<res-ref-name>jdbc/pvs</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
</resource-ref>
and I also got jojdbc drivers: ojdbc14.jar,ojdbc5.jar,ojdbc6.jar in lib
folder.
Tomcat version-->tomcat 6.0,
the JDK -->jdk1.6.0_13
os--> windows server 2003
oracle database
Can anyone help me whats worng in my configurations?
Please....................
--
Raghu
Re: Cannot establish a database connection. Cannot create JDBC driver
of class '' for connect URL
Posted by Hassan Schroeder <ha...@gmail.com>.
On Fri, May 22, 2009 at 10:34 AM, raghu ram srinivas
<ra...@gmail.com> wrote:
> *PVS----my web applicaiton*
> ---
> WEBINF
s/b WEB-INF
> META-INF
> *pvs.xml (contxt.xml)*
>
> *pvs.xml (contxt.xml)*
No idea what you're trying to say there, but the file should be
named "context.xml" and should contain a Context element
with all this in it
> <Resource name="jdbc/pvs" auth="Container"
> type="javax.sql.DataSource"
> driverClassName="oracle.jdbc.OracleDriver"
Shouldn't that be "oracle.jdbc.driver.OracleDriver" ??
> and I also got jojdbc drivers: ojdbc14.jar,ojdbc5.jar,ojdbc6.jar in lib
> folder.
And having multiple versions of the same class in your app is most
certainly not a good idea -- pick one :-)
HTH,
--
Hassan Schroeder ------------------------ hassan.schroeder@gmail.com
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org