Mule 3.3.0 - global property not allowed from properties file

The global property is not resolved from the properties file, and therefore mmc is not deployed. Can anyone understand what might be wrong?

<context:property-placeholder location="airports.properties" />
<global-property name="airportslist" value="${airportslist}" />

Getting the following exception -

com.mulesoft.mmc.agent.v3.dto.DeploymentException: Unexpected exception parsing XML document from URL [file: /arprt/mule-esb-ee/mule-enterprise-standalone-3.3.0/apps/myapp-1.0.0 -SNAPSHOT / myapp-config.xml]; nested exception is java.lang.IllegalArgumentException: Could not resolve placeholder 'airportslist' (org.mule.api.lifecycle.InitialisationException) (org.mule.api.config.ConfigurationException)
        at com.mulesoft.mmc.agent.service.impl.ApplicationServiceImpl.deploy (ApplicationServiceImpl.java:245)
        at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)

airport.properties contains the above property:

  airportslist={'SFO', 'YYZ', 'DFW'}
+5
source share
1 answer

You do not need to declare global-propertyif the property is defined in the properties file and loaded with context:property-placeholder.

Just remove:

<global-property name="airportslist" value="${airportslist}" />

and use it ${airportslist}anywhere you need it in your configuration.

+4
source

All Articles