Effective October 27, 2012, online and email support for FuseSource products will move to Red Hat support channels. For more information, please see the JIRA Migration to Red Hat FAQ.
As of October 27th, please open all new issues in the Red Hat Customer Portal .
Issue Details (XML | Word | Printable)

Key: ESB-1503
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Freeman Fang
Reporter: Freeman Fang
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
FUSE ESB

variable substitution doesn't work for system.properties

Created: 05/Jul/11 01:57 AM   Updated: 05/Jul/11 02:01 AM
Component/s: None
Affects Version/s: None
Fix Version/s: 4.4.0-fuse-xx-00

External Issue URL: https://issues.apache.org/jira/browse/KARAF-706


 Description  « Hide
for example in system.properties we have
karaf.name=root
and
jmx.url=service:jmx:rmi:///jndi/rmi://localhost:1099/karaf-${karaf.name}
if jmx.url was loaded before karaf.name then the variable substitution doesn't work
we get the
jmx.url=service:jmx:rmi:///jndi/rmi://localhost:1099/karaf-
after variable substitution.

The error comes from that in
Main.loadSystemProperties() method we have
System.setProperty(name, substVars(value, name, null, null));
which is incorrect, we should use
System.setProperty(name, substVars(value, name, null, props));
instead



 All   Comments   Change History      Sort Order: Ascending order - Click to sort in descending order
Freeman Fang added a comment - 05/Jul/11 02:01 AM
cherry-pick fix
commit 66247b1a2ee3ec6fe8d7edde3c6514b72ff69fdb
Author: Freeman Yue Fang <ffang@apache.org>
Date:   Mon Jul 4 09:23:28 2011 +0000

    [KARAF-706]variable substitution doesn't work for system.properties
    
    git-svn-id: https://svn.apache.org/repos/asf/karaf/trunk@1142594 13f79535-47bb-0310-9956-ffa450edef68
    (cherry picked from commit ff2de0b2f5bf69f19e412e29a684f9a0fc2e28e3)