From cebf6560cb5bd119036182c453fa8263d5f90046 Mon Sep 17 00:00:00 2001 From: antelder Date: Mon, 11 Aug 2008 08:51:03 +0000 Subject: Add test dependency and fix testcase git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@684676 13f79535-47bb-0310-9956-ffa450edef68 --- java/sca/modules/implementation-web/pom.xml | 7 +++++++ .../tuscany/sca/implementation/web/impl/WebImplementationImpl.java | 3 +++ 2 files changed, 10 insertions(+) (limited to 'java/sca') diff --git a/java/sca/modules/implementation-web/pom.xml b/java/sca/modules/implementation-web/pom.xml index dcd67b8dcb..8bb8546f26 100644 --- a/java/sca/modules/implementation-web/pom.xml +++ b/java/sca/modules/implementation-web/pom.xml @@ -43,6 +43,13 @@ 1.4-SNAPSHOT + + org.apache.tuscany.sca + tuscany-contribution-xml + 1.4-SNAPSHOT + test + + org.apache.tuscany.sca tuscany-host-embedded diff --git a/java/sca/modules/implementation-web/src/main/java/org/apache/tuscany/sca/implementation/web/impl/WebImplementationImpl.java b/java/sca/modules/implementation-web/src/main/java/org/apache/tuscany/sca/implementation/web/impl/WebImplementationImpl.java index f069e9788a..e64069cec1 100644 --- a/java/sca/modules/implementation-web/src/main/java/org/apache/tuscany/sca/implementation/web/impl/WebImplementationImpl.java +++ b/java/sca/modules/implementation-web/src/main/java/org/apache/tuscany/sca/implementation/web/impl/WebImplementationImpl.java @@ -101,6 +101,9 @@ class WebImplementationImpl implements WebImplementation, ComponentPreProcessor * TODO: also support introspection and handle WEB-INF/web.componentType (spec line 503) */ public void preProcess(Component component) { + if (!(component instanceof RuntimeComponent)) { + return; + } RuntimeComponent rtc = (RuntimeComponent) component; for (Reference reference : rtc.getReferences()) { -- cgit v1.2.3