My Oracle Support Banner

JNDI lookup failure in static code when annotation is used (Doc ID 986282.1)

Last updated on MAY 11, 2021

Applies to:

Oracle WebLogic Server - Version 10.0 and later
Information in this document applies to any platform.

Symptoms

WLS 10 MP1

- Servlet A has a static variable of Class A: private static ClassA a = new ClassA();
- Class A has a contraction method, which looks up local JNDI tree
- Everything works fine if no annotations used
- It throws the following exception if annotation is used:


....

Changes

 

Cause

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
Symptoms
Changes
Cause
Solution
References


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