tuscany-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jmar...@apache.org
Subject svn commit: r368421 - in /incubator/tuscany/contrib/java/trunk/runtime: core/src/main/java/org/apache/tuscany/core/system/context/SystemComponentContext.java tomcat/.classpath
Date Thu, 12 Jan 2006 17:51:11 GMT
Author: jmarino
Date: Thu Jan 12 09:51:01 2006
New Revision: 368421

URL: http://svn.apache.org/viewcvs?rev=368421&view=rev
Log:
Tomcat project classpath fix; minor error handling refactor

Modified:
    incubator/tuscany/contrib/java/trunk/runtime/core/src/main/java/org/apache/tuscany/core/system/context/SystemComponentContext.java
    incubator/tuscany/contrib/java/trunk/runtime/tomcat/.classpath

Modified: incubator/tuscany/contrib/java/trunk/runtime/core/src/main/java/org/apache/tuscany/core/system/context/SystemComponentContext.java
URL: http://svn.apache.org/viewcvs/incubator/tuscany/contrib/java/trunk/runtime/core/src/main/java/org/apache/tuscany/core/system/context/SystemComponentContext.java?rev=368421&r1=368420&r2=368421&view=diff
==============================================================================
--- incubator/tuscany/contrib/java/trunk/runtime/core/src/main/java/org/apache/tuscany/core/system/context/SystemComponentContext.java
(original)
+++ incubator/tuscany/contrib/java/trunk/runtime/core/src/main/java/org/apache/tuscany/core/system/context/SystemComponentContext.java
Thu Jan 12 09:51:01 2006
@@ -154,7 +154,9 @@
         }
         if (objectFactory == null) {
             setLifecycleState(ERROR);
-            throw new ContextInitException("Object factory not found [" + getName() + "]");
+            ContextInitException e = new ContextInitException("Object factory not found ");
+            e.setIdentifier(getName());
+            throw e;
         }
         setLifecycleState(INITIALIZED);
     }
@@ -182,7 +184,9 @@
                 initInvoker.invokeEvent(instance);
             }
         } catch (ObjectCallbackException e) {
-            throw new TargetException("Error initializing instance [" + getName() + "]",
e);
+            TargetException te = new TargetException("Error initializing instance", e);
+            te.setIdentifier(getName());
+            throw te;
         }
     }
 

Modified: incubator/tuscany/contrib/java/trunk/runtime/tomcat/.classpath
URL: http://svn.apache.org/viewcvs/incubator/tuscany/contrib/java/trunk/runtime/tomcat/.classpath?rev=368421&r1=368420&r2=368421&view=diff
==============================================================================
--- incubator/tuscany/contrib/java/trunk/runtime/tomcat/.classpath (original)
+++ incubator/tuscany/contrib/java/trunk/runtime/tomcat/.classpath Thu Jan 12 09:51:01 2006
@@ -9,10 +9,10 @@
 	<classpathentry kind="var" path="MAVEN_REPO/eclipse/jars/emf-ecore-sdo-2.1.1.jar"/>
 	<classpathentry kind="var" path="MAVEN_REPO/tomcat/jars/catalina-5.5.9.jar"/>
 	<classpathentry kind="var" path="MAVEN_REPO/tomcat/jars/servlet-api-5.0.18.jar"/>
-	<classpathentry combineaccessrules="false" kind="src" path="/apache.tuscany.common"/>
-	<classpathentry combineaccessrules="false" kind="src" path="/apache.tuscany.container.java"/>
-	<classpathentry combineaccessrules="false" kind="src" path="/apache.tuscany.core"/>
-	<classpathentry combineaccessrules="false" kind="src" path="/apache.tuscany.model"/>
-	<classpathentry combineaccessrules="false" kind="src" path="/apache.tuscany.spec"/>
+	<classpathentry combineaccessrules="false" kind="src" path="/sca.api"/>
+	<classpathentry combineaccessrules="false" kind="src" path="/tuscany.runtime.common"/>
+	<classpathentry combineaccessrules="false" kind="src" path="/tuscany.runtime.container.java"/>
+	<classpathentry combineaccessrules="false" kind="src" path="/tuscany.runtime.core"/>
+	<classpathentry combineaccessrules="false" kind="src" path="/tuscany.runtime.model"/>
 	<classpathentry kind="output" path="bin"/>
 </classpath>



Mime
View raw message