summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlresende <lresende@13f79535-47bb-0310-9956-ffa450edef68>2008-07-22 23:52:53 +0000
committerlresende <lresende@13f79535-47bb-0310-9956-ffa450edef68>2008-07-22 23:52:53 +0000
commitd1d66353011726ea1ce6777843d514a5cb7ca0e8 (patch)
tree102346c2aca6134ec3bc47962c101668157de909
parentbf3384faf9e5368f2af65f549bf036249cbf0a94 (diff)
Widget references URI not properly initialized in a distributed environment
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@678948 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to '')
-rw-r--r--java/sca/modules/implementation-widget-runtime/src/main/java/org/apache/tuscany/sca/implementation/widget/provider/WidgetImplementationInvoker.java7
1 files changed, 2 insertions, 5 deletions
diff --git a/java/sca/modules/implementation-widget-runtime/src/main/java/org/apache/tuscany/sca/implementation/widget/provider/WidgetImplementationInvoker.java b/java/sca/modules/implementation-widget-runtime/src/main/java/org/apache/tuscany/sca/implementation/widget/provider/WidgetImplementationInvoker.java
index 81454162f7..18bf692401 100644
--- a/java/sca/modules/implementation-widget-runtime/src/main/java/org/apache/tuscany/sca/implementation/widget/provider/WidgetImplementationInvoker.java
+++ b/java/sca/modules/implementation-widget-runtime/src/main/java/org/apache/tuscany/sca/implementation/widget/provider/WidgetImplementationInvoker.java
@@ -222,14 +222,11 @@ class WidgetImplementationInvoker implements Invoker {
if (binding instanceof OptimizableBinding) {
Binding targetBinding = ((OptimizableBinding)binding).getTargetBinding();
if (targetBinding != null) {
- targetURI = URI.create(targetBinding.getURI()).getPath();
+ targetURI = targetBinding.getURI();
}
}
if (targetURI == null) {
- targetURI = URI.create(binding.getURI()).getPath();
- if (!targetURI.startsWith("/")) {
- targetURI = "/" + targetURI;
- }
+ targetURI = binding.getURI();
}
if(proxyClient.equals("JSONRpcClient")) {