You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@servicemix.apache.org by fo...@apache.org on 2006/08/13 19:36:40 UTC

svn commit: r431197 - /incubator/servicemix/trunk/servicemix-common/src/main/java/org/apache/servicemix/common/xbean/AbstractXBeanServiceUnitAnalyzer.java

Author: foconer
Date: Sun Aug 13 10:36:40 2006
New Revision: 431197

URL: http://svn.apache.org/viewvc?rev=431197&view=rev
Log:
https://issues.apache.org/activemq/browse/SM-538:

Issue: Unable to initialize FileSystemXmlApplicationContext when running in Fedora.
Resolution: Include the string "file:///" to the path of xbean.xml. (e.g. "file:////home/.../resource/xbean.xml").

Modified:
    incubator/servicemix/trunk/servicemix-common/src/main/java/org/apache/servicemix/common/xbean/AbstractXBeanServiceUnitAnalyzer.java

Modified: incubator/servicemix/trunk/servicemix-common/src/main/java/org/apache/servicemix/common/xbean/AbstractXBeanServiceUnitAnalyzer.java
URL: http://svn.apache.org/viewvc/incubator/servicemix/trunk/servicemix-common/src/main/java/org/apache/servicemix/common/xbean/AbstractXBeanServiceUnitAnalyzer.java?rev=431197&r1=431196&r2=431197&view=diff
==============================================================================
--- incubator/servicemix/trunk/servicemix-common/src/main/java/org/apache/servicemix/common/xbean/AbstractXBeanServiceUnitAnalyzer.java (original)
+++ incubator/servicemix/trunk/servicemix-common/src/main/java/org/apache/servicemix/common/xbean/AbstractXBeanServiceUnitAnalyzer.java Sun Aug 13 10:36:40 2006
@@ -75,10 +75,11 @@
 	 * @see org.apache.servicemix.common.packaging.ServiceUnitAnalyzer#init(java.io.File)
 	 */
 	public void init(File explodedServiceUnitRoot) {
+		
 		FileSystemXmlApplicationContext context = new FileSystemXmlApplicationContext(
-				explodedServiceUnitRoot.getAbsolutePath() + "/"
+		   "file:///" + explodedServiceUnitRoot.getAbsolutePath() + "/"
 						+ getXBeanFile());
-
+                
 		for (int i = 0; i < context.getBeanDefinitionNames().length; i++) {
 			Object bean = context.getBean(context.getBeanDefinitionNames()[i]);
 			if (isValidEndpoint(bean)) {