Paul Ferraro - 2012-07-13

Do these HA-JDBC configurations refer to the same logical set of databases? Assuming yes, you'll need to move the HA-JDBC configuration to the server level (i.e. move the ha-jdbc jars from your jar into CATALINA_HOME/lib and the config from context.xml to server.xml). The problem is, the first application creates the necessary objects using the application's classloader, but then registers its mbeans with the platform mbean server. When the second application attempts to access the cluster, it reads the registered mbean, but cannot load its classes, since it was created with an inaccessible classloader.
I've already fixed this issue in HA-JDBC master.