I created the Jira:

https://issues.apache.org/jira/browse/KARAF-3494

I'm working on it.

Regards
JB

On 01/29/2015 11:43 AM, Michael Täschner wrote:
Hi,

recently we upgraded ServiceMix from 5.1.3 to 5.3.0 based on Karaf 2.3.x
and 2.4.x respectively. We manage our own customized container where we
centralize configurations in a custom.properties via property replacements.

Example: etc/org.apache.karaf.shell.cfg
sshPort = ${isb.sshPort}

with etc/custom.properties
isb.sshPort=8101

This worked correctly in karaf 2.3.x (ServiceMix 5.1.x). Unfortunately
after upgrading to karaf 2.4.x (ServiceMix 5.3.0/1) we get following
error on commandline when trying to connect to karaf shell:

D:\work\servicemix\isb-smx-5.3.0\bin>client.bat -a 8101 -u smx -p smx
Exception in thread "main" java.lang.NumberFormatException: For input
string: "${isb.sshPort}"
         at
java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
         at java.lang.Integer.parseInt(Integer.java:481)
         at java.lang.Integer.parseInt(Integer.java:527)
         at org.apache.karaf.client.Main.main(Main.java:58)

The port is bound by the process (checked via netstat) but the "client"
does not seem to be able to resolve the property replacement. This has
been tested with both ServiceMix 5.3.0 /5.3.1 and the underlying karaf
2.4.0 /2.4.1

My question is now: Is this regression in release upgrade Karaf 2.3.x to
2.4.x or a result of the security mechanisms introduced with 2.4.0? If
the latter, can I work around this?

Thanks and Best Regards,
Michael

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

Reply via email to