Quantcast
Channel: The Middleware Shop
Viewing all articles
Browse latest Browse all 156

The test connection operation failed for data source – exception: java.sql.SQLException: java.lang.IllegalAccessError: Class com/mysql/jdbc/NonRegisteringDriver

$
0
0

When testing a MySQL datasource configured at Cell scope for WAS ND 8.5.5.x, I get the following error:

The test connection operation failed for data source EStore_Datasource on server dmgr at node HA01_dmgrNode with the following exception: java.sql.SQLException: java.lang.IllegalAccessError: Class com/mysql/jdbc/NonRegisteringDriver illegally accessing "protected" member of class com/mysql/jdbc/ConnectionImpl. View JVM logs for further details.

The Cell is called HA01Cell, and the Deployment Manager profile  is called HA01_dmgrNode, the datasource in question is EStore_datasource.

The scenario is that I am writing another module for my latest course October 2015 called WAS ND High Availability course, and as part of the course, I demonstrate deploying an application using Jython. As part of this configuration, we need a JDBC Provider, Datasource and JAAS. Because we are using a provider which is unknown to WAS ie USer-defined (MySQL), it requires some properties. The WAS wizards ie that the console presents when configuring Providers/Datasources uses templates. The MySQL template does not exist, so we need to add these custom properties ourselves. Also, when we use Cell Scope, we will need to bounce the Deployment Manager for this to take effect.

In the course we discuss Scope ie Cell, Node, Cluster and Server, and this example above, is one of may as we build our highly available WebSphere Application Server Network Deployment reference environment.

facebooktwittergoogle_plusredditpinterestlinkedinmail

Viewing all articles
Browse latest Browse all 156

Trending Articles