Hi Colm,
When I try to inject a util:properties bean, I can get an error:
Caused by: java.lang.IllegalStateException: Cannot convert value of type
[java.util.Properties] to required type [java.lang.String] for property
'signaturePropertiesFile': no matching editors or conversion strategy found
The signaturePropertiesFile is declared as a String not an object:
private String signaturePropertiesFile;
My Spring config looks like this:
<property name="signaturePropertiesFile" ref="keystoreProperties" />
<util:properties id="keystoreProperties">
<prop
key="org.apache.ws.security.crypto.provider">org.apache.ws.security.components.crypto.Merlin</prop>
<prop
key="org.apache.ws.security.crypto.merlin.keystore.type">jks</prop>
<prop
key="org.apache.ws.security.crypto.merlin.keystore.password">stsspass</prop>
<prop
key="org.apache.ws.security.crypto.merlin.keystore.alias">mystskey</prop>
<prop
key="org.apache.ws.security.crypto.merlin.keystore.file">stsstore.jks</prop>
</util:properties>
Is there a different way to declare this in the Spring config file to do the
type conversion? When I update the StaticSTSProperties and change
signaturePropertiesFile to Object it works fine with either a properties
file or a util properties bean.
Thanks,
Yogesh
--
View this message in context:
http://cxf.547215.n5.nabble.com/CXF-STS-StaticSTSProperties-flexible-configuration-tp5720224p5720293.html
Sent from the cxf-user mailing list archive at Nabble.com.