1 Reply Latest reply on May 8, 2014 11:39 AM by ctomc

    Import Apache Commons Lang,Codec for EJB Application

    paata

      hello team,

       

      I want to import Commons Lang and Commons Codec Library Into My EJB Application. I did it by changing MANIFEST.MF like that :

       

      Manifest-Version: 1.0
      Class-Path:
      Dependencies: com.tibco,org.apache.commons.lang,org.jboss.as.controller-client,org.jboss.dmr,org.apache.commons.codec
      
      

       

      Everything works fine,library is available into my EJB project but I see warning into log file :

       

      11:43:56,042 WARN  [org.jboss.as.dependency.private] (MSC service thread 1-4) JBAS018567: Deployment "deployment.CCareEJB.jar" is using a private module ("org.apache.commons.lang:m
      ain") which may be changed or removed in future versions without notice.                                                                                                           
      11:43:56,042 WARN  [org.jboss.as.dependency.private] (MSC service thread 1-4) JBAS018567: Deployment "deployment.CCareEJB.jar" is using a private module ("org.apache.commons.codec:
      main") which may be changed or removed in future versions without notice.
      
      

       

      Is there any other way to import this libraries ?

      This way which I choose I found it into JBoss Documentation Page.

       

       

      Regards,

      Paata Lominadze

      Magticom LTD.

        • 1. Re: Import Apache Commons Lang,Codec for EJB Application
          ctomc

          This is proper way to import them.

           

          server is just warning you that that modules are marked as "private" which means that they can be removed / changed in future versions.

          everything should work fine otherwise.

           

          if it is warning that bothers you, you can edit module.xml of those modules and remove

          <property name="jboss.api" value="private"/>

          line from it.