Update of /var/cvs/src/org/mmbase/util
In directory james.mmbase.org:/tmp/cvs-serv7046
Modified Files:
Tag: MMBase-1_8
ResourceLoader.java
Log Message:
Log less warning if happend to run outside application context (e.g. test-cases)
See also: http://cvs.mmbase.org/viewcvs/src/org/mmbase/util
Index: ResourceLoader.java
===================================================================
RCS file: /var/cvs/src/org/mmbase/util/ResourceLoader.java,v
retrieving revision 1.39.2.7
retrieving revision 1.39.2.8
diff -u -b -r1.39.2.7 -r1.39.2.8
--- ResourceLoader.java 14 Jul 2008 15:22:32 -0000 1.39.2.7
+++ ResourceLoader.java 15 Jul 2008 11:25:07 -0000 1.39.2.8
@@ -97,7 +97,7 @@
* <p>For property-files, the java-unicode-escaping is undone on loading, and
applied on saving, so there is no need to think of that.</p>
* @author Michiel Meeuwissen
* @since MMBase-1.8
- * @version $Id: ResourceLoader.java,v 1.39.2.7 2008/07/14 15:22:32 michiel
Exp $
+ * @version $Id: ResourceLoader.java,v 1.39.2.8 2008/07/15 11:25:07 michiel
Exp $
*/
public class ResourceLoader extends ClassLoader {
@@ -1315,6 +1315,10 @@
// never mind
log.debug(nnfe);
FILES = new HashMap();
+ } catch (javax.naming.NoInitialContextException nice) {
+ // never mind
+ log.debug(nice);
+ FILES = new HashMap();
} catch (javax.naming.NamingException ne) {
log.error(ne);
FILES = new HashMap();
_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs