My Oracle Support Banner

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 to [Release AS10gR3]
Information in this document applies to any platform.


Problem Statement:

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

Expected Behaviour
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

Errors observed

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
- test
- 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

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