Resource injection with handler causes java.lang.ClassNotFoundException

(Doc ID 1436045.1)

Last updated on JUNE 09, 2016

Applies to:

Oracle WebLogic Server - Version 10.3.3 to
Information in this document applies to any platform.
***Checked for relevance on 12-May-2013***


On WebLogic Server, injecting a required resource in handler i.e Annotate a handler with @Resource(mappedName="<smth from JNDI>") causes 'java.lang.ClassNotFoundException' during deployment

Here's the sample code snippet for a handler with @Resource annotation


Sign In with your My Oracle Support account

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

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms