Hi there Michael, Ok, I removed the mysql jar from my app and left it in tomcat/lib
I also undeployed and then redeployed the war file via the manager app but the problem persists. -- Kind Regards Schalk Neethling -----Original Message----- From: Michael Ludwig [mailto:mil...@gmx.de] Sent: 31 August 2009 11:28 PM To: users@tomcat.apache.org Subject: Re: Strange problem with data source Tomcat 6.0.18 sch...@afrigis.co.za schrieb am 31.08.2009 um 23:16:48 (+0200): > I have set-up a data source using the context.xml file located inside > my META-INF and added the relevant entry in the web apps web.xml. I > also have the MySQL connector/j driver inside my own apps lib as well > as inside the server's lib(same version). That's wrong. The driver must not be in both locations. It must be made available to the common classloader, which provides classes to both the server and the applications. Discard the driver from your application. > Now when I deploy the .war to the server in which the db is running, > the archive is deployed but when I now try to get a connection to the > same db and same server as from my local machine I get: > > Cannot create JDBC driver of class '' for connect URL 'null' Are you doing a proper deploy using the manager application? Or removing the WAR and properly waiting for Tomcat to discover this? Or are you improperly clobbering the WAR? That would leave a stale context.xml for your application in place. -- Michael Ludwig --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org AfriGIS e-mail facility may not be used for the distribution of chain letters or offensive email. AfriGIS hereby distances itself from and accepts no liability for the unauthorized use of its e-mail facility or the sending of e-mail communications for other than strictly business purposes. AfriGIS furthermore disclaims liability for any unauthorized instruction for which permission was not granted. Required as per Sec 50 Companies Act 61 of 1973 Afrigis Pty LTD Reg No 1997/0067/1607. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org