Shared Library Using JDBC Driver Directly, gets AnnotatedNoClassDefFoundError
(Doc ID 414453.1)
Last updated on AUGUST 16, 2023
Applies to:Oracle Containers for J2EE - Version 10.1.3.0.0 to 10.1.3.5.0 [Release AS10gR3]
Information in this document applies to any platform.
On 10.1.3, a new application is trying to define a global jar file to be imported by multiple applications and for that it is defined as a shared library.
The jar file uses JDBC features and registers OracleDriver to get direct control of Datasources and JDBC connections
The jar file should be defined as a shared library, and imported by any application.
The shared lib should be able to load JDBC driver correctly
In application.log for the application
Steps To Reproduce:
The issue can be reproduced at will with the following steps:
- start the container
- un-deploy the application
- put the jar file in the ./applib
- deploy the application
- stop and start the container
- test again
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