IBM Support

For Java EE 5 applications that use shared libraries and annotations, do not set the metadata-complete attribute to true

Troubleshooting


Problem

A problem occurs with Java™ Platform, Enterprise Edition (Java EE) 5 applications that use annotations and a shared library. When a Java EE 5 class contains annotations and that class depends on classes that reside in a shared library, setting the []metadata-complete attribute[] to []true[] causes an []@EJB[] annotation to be incorrectly represented in the deployment descriptor as [][] rather than [][]. For Web modules, this situation results in an injection failure.

Symptom

An error, such as the InjectionException exception, might occur if you set the metadata-complete attribute to true for a Java EE 5 application under the following conditions:

  • The application contains an EJB 3.0 or Web 2.5 module.
  • The application uses annotations and a shared library.

[{"Product":{"code":"SSEQTP","label":"WebSphere Application Server"},"Business Unit":{"code":"BU048","label":"IBM Software"},"Component":"Deploy (for example: AAT or ANT or EAR\/WAR\/JAR)","Platform":[{"code":"PF002","label":"AIX"},{"code":"PF010","label":"HP-UX"},{"code":"PF012","label":"IBM i"},{"code":"PF016","label":"Linux"},{"code":"PF027","label":"Solaris"},{"code":"PF033","label":"Windows"}],"Version":"7.0","Edition":"Base;Express;Network Deployment","Line of Business":{"code":"LOB77","label":"Automation Platform"}},{"Product":{"code":"SS7K4U","label":"WebSphere Application Server for z\/OS"},"Business Unit":{"code":"BU048","label":"IBM Software"},"Component":"Deploy (for example: AAT or ANT or EAR\/WAR\/JAR)","Platform":[{"code":"PF035","label":"z\/OS"}],"Version":"7.0","Edition":"","Line of Business":{"code":"LOB77","label":"Automation Platform"}}]

Log InLog in to view more of this document

This document has the abstract of a technical article that is available to authorized users once you have logged on. Please use Log in button above to access the full document. After log in, if you do not have the right authorization for this document, there will be instructions on what to do next.

Document Information

Modified date:
03 March 2025

UID

swg21318507