Getting activation error on GridLink data source in WebLogic 12.2.1.3

Problem:

When creating a GridLink data source in Oracle WebLogic Server 12.2.1.3, you may receive an activation error.

An error occurred during activation of changes, please see the log for details.

[Deployer:149189]An attempt was made to execute the "activate" operation on an application named "mydatasource" that is not currently available. The application may have been created after non-dynamic configuration changes were activated. If so, the operation cannot be performed until the server is restarted so that the application will be available.

Solution:

  1. Create the data source normally, but do not target it to a managed server or clustered (keep it untargeted).
  2. Save and activate changes.
  3. Go back and target the data source to a managed server or cluster.
  4. Save and activate changes.