1 Reply Latest reply on Sep 20, 2012 2:06 PM by jaysensharma

    Getting Warning message when porting application from JBoss AS 7.0.1 to AS 7.1.1

    joydevsingha

      While deploying the application from 7.0.1 to 7.1.1, I am getting the below warning messages.

       

      18:29:04,699 WARN  [org.jboss.as.dependency.private] (MSC service thread 1-7) JBAS018567: Deployment "deployment.AppEar.AppEjb.jar" is using a private module ("org.apache.neethi:main") which may be changed or removed in future versions without notice.

       

      In modules/org/apache/log4j/main/, modules/org/apache/neethi/main/ module.xml file I can see the tag <property name="jboss.api" value="private"/>.

      I think this is showing the warning message. If I comment out this tag, then the warn messages are not shown.

       

      Is this correct to comment or please advise me correct approach.

       

      I have the below line in META-INF/MANIFEST.MF

       

      Dependencies: org.apache.log4j, org.hibernate, org.apache.neethi export, javax.wsdl4j.api export, org.apache.httpcomponents.

       

      Please help.

        • 1. Re: Getting Warning message when porting application from JBoss AS 7.0.1 to AS 7.1.1
          jaysensharma

          Hi,

           

               If any Module which is provided by JBoss is marked as "private" like following then you should not be using it because It's private and in next releases of JBoss it might be changed or removed or new version of these jars might be introduced (which might or might not be suitable for your application which is referring to it).   So rather than using "private" modules you should create your own custom module and use it in your application.

           

          <module xmlns="urn:jboss:module:1.1" name="org.apache.neethi">

              <properties>

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

              </properties>

            .

            .

          </module>