3 Replies Latest reply on Apr 21, 2004 1:00 PM by essington

    *-service.xml files not being loaded when inside ear

    gmccreath

      Hi All,

      I have placed a number of -service.xml service files in the root directory of a ear file.

      I notice that the -service.xml files are not loaded when they are inside the ear.

      The services work fine when under the jboss deploy directory and not in the ear.

      The jboss documentation suggests (shows!) this is possible. Have I missed something?

      I am on Jboss 3.2.4RC1 Windows 2000. Jdk 1.4.2_01.

      Help appreciated.

      Greg.

        • 1. Re: *-service.xml files not being loaded when inside ear
          gmccreath

          Oh, I forgot to add, the ear is an expanded dir structure, not a single ear file.

          • 2. Re: *-service.xml files not being loaded when inside ear
            gmccreath

            I've figured it ...

            For public info:

            It looks like *-service.xml files are not supported in ear files. The MBean services must be a sar with a corresponding entry in the jboss-app.xml file.

            The sar can be a directory structure, but must have a META-INF dir with a jboss-service.xml file.

            These needs to be done for even those services that have no additional classes. Effectively the sar will be empty apart from the META-INF/jboss-service.xml file.

            myApp.ear
            |_META-INF
            | |_MANIFEST.MF
            | |_application.xml
            | |_jboss-app.xml
            |_myService.sar
            |_META-INF
            |_MANIFEST.MF
            |_jboss-service.xml

            The jboss-app.xml file is:

            <jboss-app>
             <module>
             <service>myService.sar</service>
             </module>
            </jboss-app>
            



            • 3. Re: *-service.xml files not being loaded when inside ear
              essington

              These are all legal to do in the jboss-app.xml as well

              <jboss-app>
               <module>
               <service>some-service.xml</service>
               </module>
               <module>
               <service>some-ds.xml</service>
               </module>
               <module>
               <service>some-service.bsh</service>
               </module>
              </jboss-app>
              


              the -service files belong at the root level of the ear.