Stephen More wrote:
Is there a war file available for download that will do nothing more than:
   select 'HelloWorld from MySQL'; using JNDI ?


I have tried following many examples on the web and I keep ending up with:
   Cannot create JDBC driver of class '' for connect URL 'null'

At this point I am pulling out my hair and thinking their must be a
bug in tomcat 5.5.17 !

Can anyone provide me with a simple working war using MySQL ?

I had exactly this error. I do not know if it is of use to you, but my war is at http://www.geocities.com/hughmorgan72/minimal.zip. It requires a database called smsserver, with a table called unit, with a column called name.

I would strongly recomend the one at http://tomcat.apache.org/tomcat-5.5-doc/jndi-datasource-examples-howto.html, MySQL DBCP Example.

The problems I had;

Make sure the Resource tag in server.xml is corect.
Make sure the Resource tags name parameter in server.xml not matching the res-ref-name tag in the applications WEB-INF/web.xml file.

HTH,

Hugh

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to