Tomcat connecting to MySQL - Ubuntu 8.10 Server

Ambrose Krapacs akrapacs at gmail.com
Tue Nov 18 04:39:31 UTC 2008


On Nov 17, 2008, at 9:43 , Derek Broughton wrote:

> Carlos A. Carnero Delgado wrote:
>
>> just a shot in the dark. Can you try and disable Tomcat's security
>> manager @ /etc/defaults/tomcat?
>
> It's not really a shot in the dark - it's my first guess, but having
> actually had to do this for a postgres/tomcat connection yesterday,  
> the
> messages he's getting from tomcat don't look right.  But just in case,
> the quick and dirty option is to just turn TOMCAT_SECURITY, and if  
> that
> works, the cleaner option is to modify the java policy files (I don't
> currently have access to that machine, but locate "catalina.policy",  
> and
> look in there to see where the local policy files are.  Edit the
> "50user*" file, there, and copy one of the JDBC examples.
> -- 
> derek
>
>
> -- 
> ubuntu-users mailing list
> ubuntu-users at lists.ubuntu.com
> Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users

I disabled Tomcat's security manager and I still see the same results.  
The same exception is being thrown (CommunicationException) with the  
link failure message. I also tried different locations for the MySQL  
connector .jar library to see if I could get any further. I had been  
packaging it within my application .war files so I tried placing it in  
the libarary directories for the JRE and for Tomcat and neither  
produced a different result. 




More information about the ubuntu-users mailing list