Christopher Schultz wrote:
> Paul,
> 
> On 3/3/2009 11:49 AM, Paul Maxted wrote:
>> Good call P! I tried connecting to the database from the command line
>> and was not able to.
> 
> I'm surprised that this was the error. Usually, you'll get a message
> like "SQLException: Cannot connect to database using password: NO" or
> something like that. Perhaps you fixed two problems at once.

my money's on a stale context.xml.

>> Another difference between Windows and Linux it
>> seems as the user was defined the same in both cases. Now I have
>> copied the user to use host 'localhost' as well as '@' and it works.
> 
> AFAIK, MySQL doesn't use "@" to mean anything. "%" is used to mean "any
> host", but localhost should also be defined.
> 
> When in doubt, use the GRANT command.
> 
>> I have to say that the exception thrown is just a little misleading
>> (typical British understatement there!)
> 
> This exception message is so irritating because it provides absolutely
> no information at all. It suggests that the driver class name is null,
> but that's not the case. This issue comes up again and again on the
> list, and nobody is ever really sure what the ultimate "fix" is. In my
> case, simply re-entering the configuration from scratch seems to be the
> best thing to do (and check those JARs).

maybe the DBCP replacement (o.a.tomcat.jdbc.pool) Filip is working on
will improve on this...

p



> -chris

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org




---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to