Pinned topicCDI spec compliance

‏2011-05-13T10:09:57Z
|Tags:

Answered question
This question has been answered.

Unanswered question
This question has not been answered yet.

Hi,

I´ve been testing the CDI implementation in WAS 8 and I can´t get CDI to work with utility jars deployed in an EAR. Everything works fine when I deploy the jar within a war-application (WEB-INF/lib) but according to the CDI spec any utility jar referenced by a war-application will be scanned for CDI annotations.

Re: CDI spec compliance

I am experiencing the same problem. If my bean implementation is located in a utility JAR deployed in the EAR it is not resolved. I have also tried explicitly declaring the bean using the <alternatives> section of the beans.xml file in both the utility JAR and web project with no success.

Re: CDI spec compliance

The issue will be fixed by APAR PM39457 http://www-01.ibm.com/support/docview.wss?uid=swg1PM39457&wv=1PM39457: FAILURES INJECTING EJBS WITH @INJECT AND BEANS FROM THE EAR's LIB DIRECTORY

The fix for this APAR PM39457 was released concurrently at eGA and will be available in the list of recommended fixes.

You can download the interim fix: 8.0.0.0-WS-WAS-IFPM39457-FC individually from
http://www-933.ibm.com/support/fixcentral/swg/selectFixes?parent=ibm~WebSphere&product=ibm/WebSphere/WebSphere+Application+Server&release=8.0.0.0&platform=All&function=all
Please note this can only be applied on the 8.0GM version of the product not on any of the beta versions.

Please note that WAS 8 Beta has ended and WAS 8.0 is now generally available for production and support.
See http://webspherecommunity.blogspot.com/
For production and support please see http://www-01.ibm.com/software/webservers/appserv/was/features/
For a free developer version please see http://www.ibm.com/developerworks/downloads/ws/wasdevelopers/index.html
For a trial version please see http://www.ibm.com/developerworks/downloads/ws/was/