Re: Servlets / JSP can't connect to MySQL in Ubuntu Server

2008-11-21 Thread Ambrose Krapacs
On Nov 20, 2008, at 10:15 , Christopher Schultz wrote: SecurityManagers are such a pain in the ass IMO. If you're writing your own applications and deploying them yourself, I say give up on the SecurityManager because you're not protecting yourself from anyone but yourself. SecurityManagers

Re: Servlets / JSP can't connect to MySQL in Ubuntu Server

2008-11-21 Thread Ambrose Krapacs
On Nov 20, 2008, at 10:30 , Christopher Schultz wrote: Len is absolutely right: the exception is being thrown by MySQL, so it's their error message. Was there a "root cause" printed with this stack trace? That certainly would have helped. I checked the source for Connector/J 5.1.6 and that e

Re: Servlets / JSP can't connect to MySQL in Ubuntu Server

2008-11-19 Thread Ambrose Krapacs
On Nov 19, 2008, at 11:13 , David Smith wrote: If you have command line access on the system, can you test your MySQL connectivity by connecting this way?: mysql -u inventory -h localhost -p The -h option forces mysql command to connect via TCP/IP instead of unix sockets. --David Yes I

Re: Servlets / JSP can't connect to MySQL in Ubuntu Server

2008-11-19 Thread Ambrose Krapacs
On Nov 18, 2008, at 7:36 , Antonio Vidal Ferrer wrote: Hi, It's your mysql listening on Localhost? Have you tried to use the ip address instead of Localhost? Best, Toni -Original Message- From: Krapacs Ambrose [mailto:[EMAIL PROTECTED] Sent: martes, 18 de noviembre de 2008 13:22 To

Re: Servlets / JSP can't connect to MySQL in Ubuntu Server

2008-11-19 Thread Ambrose Krapacs
On Nov 18, 2008, at 7:37 , André Warnier wrote: Krapacs Ambrose wrote: I have tried many different configurations and I have been unable to get my Servlets / JSP to connect to MySQL server running. I am trying to get this set up on my main server which is running Ubuntu 8.10 Server with My

Re: Servlets / JSP can't connect to MySQL in Ubuntu Server

2008-11-19 Thread Ambrose Krapacs
On Nov 18, 2008, at 7:58 , David Smith wrote: Can you post your database config and code snippet for accessing the db? Obfuscate the username/password info. One immediate observation is the JDBC url should have the name of the database you are trying to access like this: jdbc:mysql://localho