forrest-svn mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From twilli...@apache.org
Subject svn commit: r882398 - /forrest/trunk/main/java/org/apache/forrest/locationmap/lm/MountNode.java
Date Fri, 20 Nov 2009 03:25:16 GMT
Author: twilliams
Date: Fri Nov 20 03:25:14 2009
New Revision: 882398

URL: http://svn.apache.org/viewvc?rev=882398&view=rev
Log:
Fix for FOR-993 add warn message instead of dumping the scary stacktrace.

Modified:
    forrest/trunk/main/java/org/apache/forrest/locationmap/lm/MountNode.java

Modified: forrest/trunk/main/java/org/apache/forrest/locationmap/lm/MountNode.java
URL: http://svn.apache.org/viewvc/forrest/trunk/main/java/org/apache/forrest/locationmap/lm/MountNode.java?rev=882398&r1=882397&r2=882398&view=diff
==============================================================================
--- forrest/trunk/main/java/org/apache/forrest/locationmap/lm/MountNode.java (original)
+++ forrest/trunk/main/java/org/apache/forrest/locationmap/lm/MountNode.java Fri Nov 20 03:25:14
2009
@@ -28,6 +28,7 @@
 import org.apache.cocoon.components.treeprocessor.variables.VariableResolver;
 import org.apache.cocoon.components.treeprocessor.variables.VariableResolverFactory;
 import org.apache.cocoon.sitemap.PatternException;
+import org.apache.excalibur.source.SourceNotFoundException;
 import org.apache.excalibur.source.SourceValidity;
 import org.apache.excalibur.source.SourceResolver;
 import org.apache.excalibur.source.Source;
@@ -89,7 +90,12 @@
                         m_srcVal = source.getValidity();
                         m_lm = new LocationMap(m_manager);
                         m_lm.enableLogging(getLogger());
-                        m_lm.build(loadConfiguration(source));
+                        try {
+                        	Configuration c = loadConfiguration(source);
+                        	m_lm.build(c);
+                        } catch(ConfigurationException e) {
+                        	getLogger().warn("Failed to mount locationmap at: " + m_src);
+                        }
                     }
                 }
             }
@@ -105,7 +111,12 @@
                             m_lm.dispose();
                             m_lm = new LocationMap(m_manager);
                             m_lm.enableLogging(getLogger());
-                            m_lm.build(loadConfiguration(source));
+                            try {
+                            	Configuration c = loadConfiguration(source);
+                            	m_lm.build(c);
+                            } catch(ConfigurationException e) {
+                            	getLogger().warn("Failed to mount locationmap at: " + m_src);
+                            }
                         }
                     }
                 }



Mime
View raw message