Web Service Application Fails On GlassFish 2.1.1 Patch 20 When @Resource Annotation Is Used (Doc ID 1571405.1)

Last updated on APRIL 04, 2017

Applies to:

Oracle GlassFish Server - Version 2.1.1 and later
Information in this document applies to any platform.

Symptoms

@Resource annotation does not work in Oracle GlassFish Server 2.1.1 Patch 20. It does work on previous patch levels.

For example, consider the following web service code:

 

Cause

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