6 Replies Latest reply on Nov 22, 2011 9:10 AM by Dennis Buttery

    Deployment Exception for properties-service.xml

    Dennis Buttery Newbie

      Hi All,

       

         Working with custom properties using properties-service.xml.  I placed the following mbean in that file:

       

      <mbean code="org.jboss.varia.property.SystemPropertiesService"  

           name="jboss:type=Service,name=SystemProperties"> 

          <attribute name="URLList"> 

             ${jboss.server.config.url}custom.properties 

          </attribute> 

      </mbean>

       

         and then placed my custom properties in the referenced custom.properties file.

       

         All seems to be well and my properties are being found and used as expected.

       

         The problem is that I am seeing the following error in the log ...

       

         .../jboss-as/server/default/deploy/properties-service.xml" is in error due to the following reason(s): java.lang.IllegalStateException: jboss:name=SystemProperties,type=Service is already installed.

       

          I have confirmed that the mbean that I added is the only occurance of the SystemProperties service in the properties-service.xml file.

       

         So...     Where is the duplicate definition coming from?

       

      Thank you.

      -Dennis