webtier@glassfish.java.net

Re: [webtier] socket permission rejected

From: Jim Driscoll <Jim.Driscoll_at_Sun.COM>
Date: Fri, 15 Jan 2010 11:12:21 -0800

Well, this isn't a forum for asking questions about the competition's
product, but this is an easy one: You have a security profile enabled
that isn't giving privileges to open sockets. Change the security in
Java, and you'll be fine.

http://java.sun.com/j2se/1.4.2/docs/guide/security/permissions.html

Other than that, you should ask questions of the tomcat users list.

Jim

On 1/14/10 3:41 PM, webtier_at_javadesktop.org wrote:
> Hi. Could someone give me a clue to address this error? It is from trying to connect to a MySQL
> database from tomcat 5.5.
>
>>>> "java.security.AccessControlException: access denied (java.net.SocketPermission 127.0.0.1:3306 connect,resolve)"
>
> We are on Ubuntu: 9.10, 2.6.24-26-server, java: version "1.6.0_17", MySQL: 5.0.51a-3ubuntu5.4 (Ubuntu).
>
> I can telnet to port 3306 alright, as well as log in to MySQL from the console with my app user.
>
> Thanks for any help!
> [Message sent by forum member 'chuckroast' (chuckroast00_at_gmail.com)]
>
> http://forums.java.net/jive/thread.jspa?messageID=381041
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: webtier-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: webtier-help_at_glassfish.dev.java.net
>