0 Replies Latest reply on Jun 26, 2013 11:24 AM by Epi Salamanca

    Can annotation flag be used with modules deployed in standalone/deployment folder ?

    Epi Salamanca Newbie

      Hi,


      I have an "my.ear" wich contains a subdeployment "my-ejb.jar" which has a dependency on a library

      "my-api.jar" which contains interfaces which are annotated.

       

      The way how a declare such a dependency is inside the manifest file "my-ejb.jar:META-INF/MANIFEST.MF"

       

      Dependencies: deployment.my-api.jar annotations export

       

      So, I deploy "my-api.jar" ( inside standalone/deployments)

      And when I deploy "my.ear", JBoss generates an error, indicating that the module "deployment.my-api.jar" cannot be found inside "JBOSS_HOME:/modules/..."

       

      Any ideas of why it tries to resolves the module "deployment.my-api.jar" from "JBOSS_HOME:/modules/...",

      rather than from the modules deployed from "JBOSS_HOME/standalone/deployments/...." folder ?

       

      I'm currently using JBoss EAP 6.0.1.

       

      Note: If I remove "annotation export" then the ear is successfully deployed, but then the application fails because the annotations used in the interface are not taking into account.

       

      Thanks,

      Epi