diff options
author | antelder <antelder@13f79535-47bb-0310-9956-ffa450edef68> | 2010-01-20 11:07:19 +0000 |
---|---|---|
committer | antelder <antelder@13f79535-47bb-0310-9956-ffa450edef68> | 2010-01-20 11:07:19 +0000 |
commit | b3a22d7cc3d29af33d290ef12538d62e463016ab (patch) | |
tree | 0930aa696fb0ccd2bf57288f936fd9fc56162ab9 /sca-java-2.x/trunk/modules/sca-client-javascript/src/main/java/org/apache/tuscany/sca | |
parent | ab749d1d8d4e7757295f63963ab1175dd54d102d (diff) |
Update for the latest oasis API code
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@901129 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sca-java-2.x/trunk/modules/sca-client-javascript/src/main/java/org/apache/tuscany/sca')
-rw-r--r-- | sca-java-2.x/trunk/modules/sca-client-javascript/src/main/java/org/apache/tuscany/sca/client/javascript/ScriptEngine.java | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/sca-java-2.x/trunk/modules/sca-client-javascript/src/main/java/org/apache/tuscany/sca/client/javascript/ScriptEngine.java b/sca-java-2.x/trunk/modules/sca-client-javascript/src/main/java/org/apache/tuscany/sca/client/javascript/ScriptEngine.java index 345229e8d1..56796de699 100644 --- a/sca-java-2.x/trunk/modules/sca-client-javascript/src/main/java/org/apache/tuscany/sca/client/javascript/ScriptEngine.java +++ b/sca-java-2.x/trunk/modules/sca-client-javascript/src/main/java/org/apache/tuscany/sca/client/javascript/ScriptEngine.java @@ -40,6 +40,7 @@ import org.apache.tuscany.sca.core.ExtensionPointRegistry; import org.apache.tuscany.sca.core.FactoryExtensionPoint;
import org.apache.tuscany.sca.interfacedef.java.JavaInterface;
import org.apache.tuscany.sca.runtime.EndpointRegistry;
+import org.oasisopen.sca.NoSuchDomainException;
import sun.org.mozilla.javascript.internal.Context;
import sun.org.mozilla.javascript.internal.Function;
@@ -493,7 +494,11 @@ public class ScriptEngine extends ScriptableObject implements Runnable{ oldClassLoader = Thread.currentThread().getContextClassLoader();
// Thread.currentThread().setContextClassLoader(getClass().getClassLoader());
- tuscany = new SCAClientFactoryImpl(URI.create("tuscany:foo"));
+ try {
+ tuscany = new SCAClientFactoryImpl(URI.create("tuscany:foo"));
+ } catch (NoSuchDomainException e) {
+ throw new RuntimeException(e);
+ }
// // Obtain and start the Tuscany runtime
// try {
|