tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jan Behrens" <>
Subject RE: Tomcat -> MySQL = No suitable driver ERROR
Date Fri, 02 Jul 2004 17:10:23 GMT
Good to hear that it is finally working. I am sorry, but I have never used
any sql tag-lib so I can't really help you with this problem. I would
suggest though, to google for a simple example - if that doesn't help open a
new thread here in the list and ask specifically for help with your new
problem. I am sure that someone will know...


-----Original Message-----
From: Briggs, Patrick [] 
Sent: Friday, July 02, 2004 6:36 PM
To: 'Tomcat Users List'
Subject: RE: Tomcat -> MySQL = No suitable driver ERROR

David had me do this following proceedure and that seemed to work, but my
JSP does not return any data so far.  The database finally connected though.

When I view this JSP page, all it prints is:

${} ${}

instead of the data that should be contained inside those variables.


<%@ taglib uri="" prefix="sql" %> <%@ taglib
uri="" prefix="c" %>

<sql:query var="rs" dataSource="jdbc/DBTest">
select * from testdata

    <title>DB Test</title>

<c:forEach var="row" items="${rs.rows}">
	<c:out value="${}"/>
	<c:out value="${}"/>


>From David:

Here's first what should be in 

<Context path="/DBTest" docBase="DBTest"
        debug="0" privileged="false">

  <!-- Loggers, valves, other stuff here -->

  <Resource name="jdbc/DbTest"

    <ResourceParams name="jdbc/DbTest">




    <!-- Customize with your database username -->

    <!-- Customize with your database password here -->


    <!-- Customize with your mysql url -->


Ok, now what should be in {TOMCAT_HOME}/webapps/DBTest/WEB-INF/web.xml:

<?xml version="1.0" encoding="ISO-8859-1"?>

<!DOCTYPE web-app
  PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"

  <display-name>DbTest Application</display-name>

  <!-- All your servlet definitions, mappings, welcome file specs, 
taglibs, etc, ...
         are placed here. -->

  <!--+ resource-ref here to make the database pool available in this 
    <description>DBTest Database</description>


This exact formula has worked for me in I can't even count how many apps 
I've setup.


-----Original Message-----
From: Jan Behrens []
Sent: Friday, July 02, 2004 1:50 AM
To: 'Tomcat Users List'
Subject: RE: Tomcat -> MySQL = No suitable driver ERROR

yes patrick,

i guess that is what david and i want so your dbtest works. allthough the
posted contents of web.xml lack a doctype or schema definition (see hassans
post). now, have you tried this?

cheers, jan

This e-mail message, including any attachments, is for the sole use of the
intended recipient(s) and may contain confidential or privileged
information.  Any unauthorized review, use, disclosure or distribution is
prohibited.  If you are not the intended recipient, please contact the
sender by reply e-mail and destroy the message.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message