On Nov 19, 2008, at 14:53 , Christopher Schultz wrote:

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Ambrose,

Ambrose Krapacs wrote:
           catch( Exception e )
           {
               retVal = e.toString();
           }

And this gives you "CommunicationLinkFailure" for every URL you are trying?

A few things about the URLs:

1. Don't bother testing 127.0.0.1 /and/ "localhost". If your machine
hasn't been misconfigured, "localhost" should point to 127.0.0.1.

2. You must specify the name of a database, so URLs like
  jdbc:mysql://localhost?foo=bar are malformed.

3. Consider picking a single username/password and sticking with it.
  If you can't open a connection, the use of multiple sets of
  credentials is just complicating your script and gathering excess
  (useless) data.

4. The default port is 3306, so you don't need to specify it in your
  URLs.

Are you running Tomcat under a security manager? That would certainly
prevent you from communicating. Can you use 'ps' to show us the command
line that is being used to start Tomcat? That would help.

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkkkbtMACgkQ9CaO5/Lv0PAYHgCePuPp3zaFS5DzTWPZkWztE0f5
sx8An3YE1nwEsX3Sadmq4qBwsSPFS2Q1
=EI1G
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Well I thought that I had tried turning off the security manager but I couldn't remember how I did it. I tried again by modifying /etc/init.d/ tomcat and set TOMCAT_SECURITY to "no". I executed the JSP again and EVERY TEST SUCCESSFULLY CONNECTED! Wow, finally!

So now I guess I need to determine the proper way to do this because I'm guessing that disabling the security mangager is not smart. I really do not know anything about the tomcat security manager so I'm not sure how to properly allow this in security manager without disabling it completely.

Thanks Christopher!

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to