Hi Javier,

Not sure that you can define multiple placeholders with different prefix.
Let me check.

Regards
JB

On 06/06/2014 12:55 AM, Javier Delgadillo wrote:
Hi,

I’m running Karaf 2.3.4 with:

Apache Aries Blueprint Core (1.4.0)

Apache Aries Blueprint CM (1.0.3)

Apache Aries Blueprint API (1.0.0)

I’ve got the following XML file in one of my bundles:

<blueprintxmlns=/"http://www.osgi.org/xmlns/blueprint/v1.0.0"/

xmlns:cm=/"http://aries.apache.org/blueprint/xmlns/blueprint-cm/v1.2.0"/

xmlns:xsi=/"http://www.w3.org/2001/XMLSchema-instance"/

default-activation=/"eager"/>

<cm:property-placeholderpersistent-id=/"httpclient"/
update-strategy=/"reload"/ placeholder-prefix=/"$["/
placeholder-suffix=/"]"/>

<cm:default-properties>

<cm:propertyname=/"httpclient.proxy.hostAndPort"/ value=/""/ />

</cm:default-properties>

</cm:property-placeholder>

<beanid=/"geoEventHttpClientService"/ class=/"HttpClientServiceImpl"/
init-method=/"init"/>

<propertyname=/"proxyAndHost"/ value=/"$[httpclient.proxy.hostAndPort]"/ />

<propertyname=/"bundleContext"/ ref=/"blueprintBundleContext"//>

</bean>

<cm:property-placeholderpersistent-id=/" local"/
update-strategy=/"reload"/ placeholder-prefix=/"${"/
placeholder-suffix=/"}"/>

<cm:default-properties>

<cm:propertyname=/"http.port"/ value=/"6080"/ />

<cm:propertyname=/"https.port"/ value=/"6443"/ />

<cm:propertyname=/"arcgis.host"/ value=/""/ />

</cm:default-properties>

</cm:property-placeholder>

<beanid=/"localArcgisInfo"/ class=/"LocalServerImpl"/ init-method=/"init"/ >

<propertyname=/"HttpClientService"/ ref=/"geoEventHttpClientService"/ />

<propertyname=/"httpPort"/ value=/"${http.port)"/ />

<propertyname=/"httpsPort"/ value=/"${https.port}"/ />

<propertyname=/"host"/ value=/"${arcgis.host}"/ />

</bean>

<serviceref=/"geoEventHttpClientService"/ interface=/"HttpClientService"//>

<serviceref=/"localArcgisInfo"/ interface=/"LocalServer"/ />

</blueprint>

Every time I deploy my bundle, I get the message:

2014-06-05 15:48:42,006 | ERROR | l Console Thread |
BlueprintContainerImpl           | container.BlueprintContainerImpl  402
| 10 - org.apache.aries.blueprint.core - 1.4.0 | Unable to start
blueprint container for bundle

org.osgi.service.blueprint.container.ComponentDefinitionException:
Multiple placeholders with the same prefix and suffix are not allowed

What am I doing wrong?  The placholder-prefix and placeholder-suffix
attributes are set, so not sure what else is left.

Any help would be appreciated.

-Javier


--
Jean-Baptiste Onofré
[email protected]
http://blog.nanthrax.net
Talend - http://www.talend.com

Reply via email to