Thanks, I found the problem.  Probably shoulda posted this on the MySQL 
group, sorry.  Using the host ip in the connection url for the db generates 
the error.  Using 'localhost' or any host name that the database considers 
valid works just fine.  

- Richard



On Wednesday 15 August 2001 11:04 am, you wrote:
> This is odd and I'm stumped.  I have a simple db connection class in a jar
> under ~app/WEB-INF/lib.  I have a servlet under ~app/WEB-INF/classes that
> imports this connection class.  The mm.mysql driver jar also resides in
> this WEB-INF/lib.
> The servlet accesses the connection class just fine.  But, when the
> connection class attempts a connection to the database I get the error:
>
> java.sql.SQLException: Server configuration denies access to data source
>
> However, if I cut 'n paste the code from the connection class into the
> servlet I have no problem with the connection or data retrieval.
>
> FYI:
> RH7.1 new installation
> jdk 1.3.1
> Tomcat 3.2.1
> MySQL 3.2.2

-- 
Richard Draucker [EMAIL PROTECTED]
Protected-Data.Com www.protected-data.com
Remote Data Support For Web Developers

Reply via email to