diff options
Diffstat (limited to 'sca-java-2.x/trunk/modules/binding-jsonrpc-js-dojo/src/main')
-rw-r--r-- | sca-java-2.x/trunk/modules/binding-jsonrpc-js-dojo/src/main/java/org/apache/tuscany/sca/binding/jsonrpc/js/dojo/JSONRPCBindingJavascriptProxyFactoryImpl.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sca-java-2.x/trunk/modules/binding-jsonrpc-js-dojo/src/main/java/org/apache/tuscany/sca/binding/jsonrpc/js/dojo/JSONRPCBindingJavascriptProxyFactoryImpl.java b/sca-java-2.x/trunk/modules/binding-jsonrpc-js-dojo/src/main/java/org/apache/tuscany/sca/binding/jsonrpc/js/dojo/JSONRPCBindingJavascriptProxyFactoryImpl.java index 0388c8bd77..5c20fb3c4f 100644 --- a/sca-java-2.x/trunk/modules/binding-jsonrpc-js-dojo/src/main/java/org/apache/tuscany/sca/binding/jsonrpc/js/dojo/JSONRPCBindingJavascriptProxyFactoryImpl.java +++ b/sca-java-2.x/trunk/modules/binding-jsonrpc-js-dojo/src/main/java/org/apache/tuscany/sca/binding/jsonrpc/js/dojo/JSONRPCBindingJavascriptProxyFactoryImpl.java @@ -70,6 +70,9 @@ public class JSONRPCBindingJavascriptProxyFactoryImpl implements JavascriptProxy URI targetURI = URI.create(binding.getURI()); String targetPath = targetURI.getPath(); + if (targetPath.startsWith("/")) { + targetPath = targetPath.substring(1); + } return "dojo.rpc.JsonService(\"" + targetPath + "?smd\")"; } |