From 3790b5017081b14a676611d5e8bdb5213c062344 Mon Sep 17 00:00:00 2001 From: ramkumar Date: Tue, 29 Sep 2009 10:24:01 +0000 Subject: Fixes for TUSCANY-3285: Unique error message in getApplicationContextResource method git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@819874 13f79535-47bb-0310-9956-ffa450edef68 --- .../spring/introspect/SpringXMLComponentTypeLoader.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'branches/sca-java-1.5.1') diff --git a/branches/sca-java-1.5.1/modules/implementation-spring/src/main/java/org/apache/tuscany/sca/implementation/spring/introspect/SpringXMLComponentTypeLoader.java b/branches/sca-java-1.5.1/modules/implementation-spring/src/main/java/org/apache/tuscany/sca/implementation/spring/introspect/SpringXMLComponentTypeLoader.java index d87c99e2ca..c612edda3f 100644 --- a/branches/sca-java-1.5.1/modules/implementation-spring/src/main/java/org/apache/tuscany/sca/implementation/spring/introspect/SpringXMLComponentTypeLoader.java +++ b/branches/sca-java-1.5.1/modules/implementation-spring/src/main/java/org/apache/tuscany/sca/implementation/spring/introspect/SpringXMLComponentTypeLoader.java @@ -706,7 +706,7 @@ public class SpringXMLComponentTypeLoader { return appXmlFile.toURL(); } } catch (IOException e) { - throw new ContributionReadException("Error reading manifest " + manifestFile); + throw new ContributionReadException("Error reading manifest inside the folder: ", e); } } else { if (locationFile.isFile() && locationFile.getName().endsWith(".jar")) { @@ -769,14 +769,14 @@ public class SpringXMLComponentTypeLoader { } } } catch (IOException e) { - throw new ContributionReadException("Error reading manifest " + manifestFile); + throw new ContributionReadException("Error reading manifest inside the jar folder: ", e); } } } } throw new ContributionReadException("SpringXMLLoader getApplicationContextResource: " - + "META-INF/spring/" + SpringImplementationConstants.APPLICATION_CONTEXT + "not found"); + + "META-INF/spring/" + SpringImplementationConstants.APPLICATION_CONTEXT + " not found"); } // end method getApplicationContextResource /** -- cgit v1.2.3