Author: michiel Date: 2010-05-10 15:54:28 +0200 (Mon, 10 May 2010) New Revision: 42126
Modified: speeltuin/mihxil/forms/src/main/java/org/mmbase/bridge/forms/FormsCloudContext.java Log: Modified: speeltuin/mihxil/forms/src/main/java/org/mmbase/bridge/forms/FormsCloudContext.java =================================================================== --- speeltuin/mihxil/forms/src/main/java/org/mmbase/bridge/forms/FormsCloudContext.java 2010-05-10 13:44:40 UTC (rev 42125) +++ speeltuin/mihxil/forms/src/main/java/org/mmbase/bridge/forms/FormsCloudContext.java 2010-05-10 13:54:28 UTC (rev 42126) @@ -46,8 +46,9 @@ private static final Pattern NORMAL_DIRS = Pattern.compile("[a-zA-Z0-9]+"); static { ResourceLoader forms = ResourceLoader.getConfigurationRoot().getChildResourceLoader("forms"); - + LOG.debug("Reading " + forms); for (String formName : forms.getChildContexts(NORMAL_DIRS, false)) { + LOG.debug("Reading " + formName); ResourceLoader form = forms.getChildResourceLoader(formName); final Map<String, NodeManagerDescription> context = new HashMap<String, NodeManagerDescription>(); context.put("typedef", @@ -57,6 +58,7 @@ for(String nodeManager : form.getResourcePaths(ResourceLoader.XML_PATTERN, true)) { try { InputSource is = form.getInputSource(nodeManager); + LOG.debug("Reading " + nodeManager + " " + is); ParentBuilderReader reader = new ParentBuilderReader(is) { @Override protected NodeManagerDescription getNodeManagerDescription(String parentBuilder) { @@ -66,6 +68,8 @@ context.put(reader.getName(), new NodeManagerDescription(reader, -1)); } catch (IOException ioe) { LOG.error(ioe); + } catch (Exception e) { + LOG.error(e.getMessage(), e); } } @@ -91,7 +95,7 @@ public Cloud getCloud(String name, org.mmbase.security.UserContext user) throws NotFoundException { if (!getNodeManagerDescriptions().containsKey(name)) { - throw new NotFoundException("No such cloud '" + name + "'"); + throw new NotFoundException("No such cloud '" + name + "' (Available are " + getNodeManagerDescriptions().keySet() + ")"); } return new FormsCloud(name, this, user); } _______________________________________________ Cvs mailing list Cvs@lists.mmbase.org http://lists.mmbase.org/mailman/listinfo/cvs