My Oracle Support Banner

How to Use the OC4J Class Loading Framework to Avoid the Toplink/Jlib/Antlr.Jar to be Loaded in an OC4J Instance? (Doc ID 414761.1)

Last updated on FEBRUARY 13, 2024

Applies to:

Oracle Containers for J2EE - Version to [Release AS10gR3]
Information in this document applies to any platform.
Information in this document applies to any platform.


The toplink/jlib/antlr.jar has conflicts with some of the classes in hibernate jar,
and removing the antlr.jar file in the OC4J standalone solved the problem,
but now when deploying the application to Enterprise Edition, there are the same conflicts.
The Toplink libraries are part of the OC4J system shared library and cannot be omited in the classload process by default.

In order to avoid conflicts with the hibernate.jar file, it is needed to avoid the antlr.jar file.
How to avoid the loading of the antlr.jar file by the OC4J instance where the application is deployed?


To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!

In this Document

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.