You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@karaf.apache.org by "Krishnan (JIRA)" <ji...@apache.org> on 2014/05/14 20:13:15 UTC
[jira] [Commented] (KARAF-2964) The rank element in
can't use the value from property-placeholder
[ https://issues.apache.org/jira/browse/KARAF-2964?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13997841#comment-13997841 ]
Krishnan commented on KARAF-2964:
---------------------------------
Hi Team,
This looks like a similar issue. Discussed some workaround.
https://issues.apache.org/jira/browse/CXF-1647
Thanks
> The rank element in <jaas:config> can't use the value from property-placeholder
> -------------------------------------------------------------------------------
>
> Key: KARAF-2964
> URL: https://issues.apache.org/jira/browse/KARAF-2964
> Project: Karaf
> Issue Type: Bug
> Components: karaf-osgi
> Affects Versions: 2.3.5
> Reporter: Xilai Dai
> Assignee: Jean-Baptiste Onofré
>
> Given an example blueprint.xml looks like:
> {code}
> <cm:property-placeholder persistent-id="org.abc" update-strategy="reload">
> <cm:default-properties>
> <cm:property name="jaas_name" value="myjaas"/>
> <cm:property name="jaas_rank" value="1"/>
> </cm:default-properties>
> </cm:property-placeholder>
> <jaas:config name="${jaas_name}" rank="${jaas_rank}">
> ......
> </jaas:config>
> {code}
> when deploy this blueprint into karaf, then an exception:
> {code}
> org.xml.sax.SAXParseException: cvc-datatype-valid.1.2.1: '${jaas_rank}' is not a valid value for 'integer'.
> {code}
> will be thrown.
> Found this definition in karaf-jaas-1.0.0.xsd:
> {code}
> <xs:attribute name="rank" use="optional" default="0" type="xs:int"/>
> {code}
> Maybe the type for rank should be defined as xs:string than xs:int, then will give user opportunity to use the value from property-placeholder.
--
This message was sent by Atlassian JIRA
(v6.2#6252)