diff options
Diffstat (limited to 'java/sca/modules')
2 files changed, 5 insertions, 3 deletions
diff --git a/java/sca/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/builder/impl/BaseConfigurationBuilderImpl.java b/java/sca/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/builder/impl/BaseConfigurationBuilderImpl.java index d7334467a7..925ca9dc67 100644 --- a/java/sca/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/builder/impl/BaseConfigurationBuilderImpl.java +++ b/java/sca/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/builder/impl/BaseConfigurationBuilderImpl.java @@ -441,7 +441,7 @@ public abstract class BaseConfigurationBuilderImpl { componentReference.setReference(reference); } else { if (!componentReference.getName().startsWith("$self$.")) { - warning("ReferenceNotFound", component, component.getName(), componentReference.getName()); + error("ReferenceNotFound", component, component.getName(), componentReference.getName()); } } } diff --git a/java/sca/modules/implementation-widget/src/main/java/org/apache/tuscany/sca/implementation/widget/WidgetImplementationIntrospector.java b/java/sca/modules/implementation-widget/src/main/java/org/apache/tuscany/sca/implementation/widget/WidgetImplementationIntrospector.java index eed0d6871b..abe00bac5b 100644 --- a/java/sca/modules/implementation-widget/src/main/java/org/apache/tuscany/sca/implementation/widget/WidgetImplementationIntrospector.java +++ b/java/sca/modules/implementation-widget/src/main/java/org/apache/tuscany/sca/implementation/widget/WidgetImplementationIntrospector.java @@ -130,8 +130,10 @@ class WidgetImplementationIntrospector { String referenceName = null; String tokens[] = scriptContent.split("="); - tokens = tokens[0].split(" "); - referenceName = tokens[tokens.length -1]; + + // find the string between the quotes + tokens = tokens[1].split("\""); + referenceName = tokens[1]; if(referenceName != null) { reference = assemblyFactory.createReference(); |