RE: Connecting to MySQL on GoDaddy.com

"Mark Matthews" <[email protected]> Fri, 18 May 2007 13:58:55 -0500
Newsgroups gmane.comp.db.mysql.java
Message-ID <015401c7997e$96d8ad20$9c1da8c0@marksworkbox>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1




> -----Original Message-----
> From: Flint Gatrell [mailto:[email protected]] 
> Sent: Thursday, May 17, 2007 4:17 PM
> To: [email protected]
> Subject: Connecting to MySQL on GoDaddy.com
> 
> Hello,
> 
> I have a Linux hosting account with Java enabled, and I am 
> trying to make a connection to my MySQL database from one of 
> my servlets.  I have been successful in connecting to MySQL 
> from this servlet on my local machine, but I have been unable 
> to figure it out in my "live" environment.
> 
> The error I receive is included below.
> 
> Has anyone else solved a similar problem before with their 
> own servlets? Or has anyone got any ideas of where I can look 
> for someone that has?
> GoDaddy's tech support seems unwilling to assist.
> 
> I can post code snippets upon request.
> 
> Thanks,
> Flint
> 
> Exception report:
> 
> com.mysql.jdbc.CommunicationsException: Communications link 
> failure due to underlying exception: ** BEGIN NESTED 
> EXCEPTION ** java.security.AccessControlException MESSAGE: 
> access denied (java.net.SocketPermission mysql 
> p41mysql3.secureserver.net resolve)
> STACKTRACE: java.security.AccessControlException: access 
> denied (java.net.SocketPermission mysql 
> p41mysql3.secureserver.net resolve) at
> java.security.AccessControlContext.checkPermission(AccessContr
> olContext.java:264)

Flint,

This is due to a security policy that's installed on your application server that doesn't allow connections to p41mysql3.secureserver.net.

Do you have control over the security policy of your application server, or is this a shared hosting account?

	-Mark


- -- 
Mark Matthews, Architect (Client Connectivity)
MySQL, Inc. Chicago, USA - www.mysql.com 
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (MingW32)

iD8DBQFGTfdvtvXNTca6JD8RAl0JAKCf+bWswoGYKI58m2Re8LwbB5qpmwCgjZ1n
atq7a/vgOb3Jc4JD4fOH5R0=
=UHnK
-----END PGP SIGNATURE-----


-- 
MySQL Java Mailing List
For list archives: http://lists.mysql.com/java
To unsubscribe:    http://lists.mysql.com/[email protected]