IC5Notice: We have upgraded developerWorks Community to the latest version of IBM Connections. For more information, read our upgrade FAQ.
Topic
  • 3 replies
  • Latest Post - ‏2011-06-20T17:22:40Z by SystemAdmin
hampe98
hampe98
1 Post

Pinned topic CDI spec compliance

‏2011-05-13T10:09:57Z |
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.

Does anyone have any pointers?

Regards,
Hampus Wingren
Updated on 2011-06-20T17:22:40Z at 2011-06-20T17:22:40Z by SystemAdmin
  • RohitK
    RohitK
    38 Posts

    Re: CDI spec compliance

    ‏2011-05-13T12:25:03Z  
    Dear Hampus,

    Can you please send us via attachment a test application that illustrates the issue.

    --Thanks,
    Rohit Kelapure
  • SystemAdmin
    SystemAdmin
    462 Posts

    Re: CDI spec compliance

    ‏2011-06-20T09:23:41Z  
    Hello,

    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.

    Has this been resolved in the release version of WAS 8?

    Regards,

    Marcus Portmann
  • SystemAdmin
    SystemAdmin
    462 Posts

    Re: CDI spec compliance

    ‏2011-06-20T17:22:40Z  
    Hello,

    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.

    Has this been resolved in the release version of WAS 8?

    Regards,

    Marcus Portmann
    Dear Hampus and Marcus,

    The issue will be fixed by APAR PM39457 http://www-01.ibm.com/support/docview.wss?uid=swg1PM39457&wv=1
    PM39457: 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/

    --Thanks,
    Rohit Kelapure,
    IBM Advisory Software Engineer