WildFly 27.0.0.Final and Oracle driver classes are inaccessible

287 Views Asked by At

After migrating an application from WildFly 21 to WildFly 27, I am encountering the following error when deploying the application:

Oracle JDBC driver classes are inaccessible and thus, certain DDL types like ARRAY can not be used!

It's indeed strange because the driver is located in modules\system\layers\base, and when I access the WildFly administrative interface and perform a connection test for the datasource, it succeeds. The error only occurs when I deploy the application.

Has anyone encountered this issue before and could help?

1

There are 1 best solutions below

0
On

You need to change the manifest of your deployment artifact to expose that module to your applications classpath