I also had the same problem when using struts Datasource.
I noticed this depends of the struts version, tomcat version or even the jdk but was unable to really find out what the problem was.

I solved it by not using the struts datasource description in the struts-config.xml anymore. I instead connect to my databases directly using jdbc. I put my jdbc driver (jar) into my applications WEB-INF/lib directory.

Laurence

Indudhar Devanath a écrit :
Will,

The tomcat isn't able to find the database jdbc driver class. Make sure you put database-jdbc.jar file inside tomcat/common/endorsed/ folder. Lets say you were using MySql database. MySql provides a jdbc jar file to connect to the database. Get that jar file and put it in /endorsed/ folder.

The reason sometimes it works with Netbeans could be that the ide was providing this jar, instead of tomcat. So when you moved to Websphere IDE, that jar might not be available from Websphere.

Indu

Will Holmes wrote:
Barry,

I had no problems with the project when I was using Netbeans 5.5 as my IDE but I had to convert my project to work with Websphere development studio
and that is when I encountered the error below.  I believe the error is
somewhere with my Tomcat setup. I thought maybe there might be some bugs with Tomcat 5.5.9. Thanks
Wil

-----Original Message-----
From: Propes, Barry L [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 07, 2007 11:53 AM
To: Tomcat Users List
Subject: RE: Datasource Error

we might could stand to see more of the code...or I could at least.



-----Original Message-----
From: Will Holmes [mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 07, 2007 10:33 AM
To: users@tomcat.apache.org
Cc: [EMAIL PROTECTED]
Subject: Datasource Error


I am using Tomcat 5.5.9 on Windows XP
I have created a resouce in the Tomcat server.xml file.
I have configured the resource ref in the web.xml file.
When my application access the datasource I get the following error: org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create JDBC driver of class '' for connect URL 'null' Anyone have any ideas? Thanks in advance!! Will Holmes
Programmer Analyst
Fremont Insurance Company
Ph: 231-924-0302 Ext. 145
E-Mail: [EMAIL PROTECTED]

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



--

---------------------------------------------
Laurence Mastrorillo

Medias-France CNES - BPi 2102
18, avenue Edouard Belin
31401 Toulouse cedex 9

Tel : 05.61.27.35.09 - Fax : 05.61.28.29.05
--------------------------------------------


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to