Issues Related to MySQL

Issues Related to MySQL

Issues Related to MySQL

Exception When Creating MySQL Connection Pool

Description

On Windows, you get an exception when creating a MySQL connection pool using the

Administration Console.

Solution

See “Attempt to Use Administration Console to Create a Connection Pool Fails Even if the Driver Is Present (Issue 6671)” in Sun GlassFish Enterprise Server v3 Prelude Release Notes.

Issues Related to Security

java.security.AccessControlException: Access

Denied Error

Description

The following error occurs from an application client, or appears in the server.log file:

java.security.AccessControlException: access denied

(java.util.PropertyPermission name write...)

There is a permissions issue in the policy files. Either theclient.policy file for the application client or the server.policy file for server side components does not have permission to set the property.

Solution

Add the permission in client.policy (for the application client), or in server.policy (for web modules) for the application that needs to set the property. By default, applications only have “read” permission for properties.

For example, to grant read/write permission for all files in the codebase directory, add or append the following to client.policy or server.policy:

36

Sun GlassFish Enterprise Server v3 Prelude Troubleshooting Guide • November 2008

Page 36
Image 36
Sun Microsystems 820682310 manual Issues Related to MySQL, Issues Related to Security, Denied Error, Description, Solution