karaf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Krishnan (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (KARAF-2964) The rank element in <jaas:config> can't use the value from property-placeholder
Date Wed, 21 May 2014 08:32:40 GMT

    [ https://issues.apache.org/jira/browse/KARAF-2964?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14004481#comment-14004481
] 

Krishnan commented on KARAF-2964:
---------------------------------

Hi Team,
The workaround has indeed resolved the issue/problem.

Thanks for all the efforts!!!

Regards

> 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)

Mime
View raw message