I found it - stupid, I'd not put init-classloader = true in the web.inf. I've added a few more checks into the C2 servlet, these should warn if a config setting hasn't been set. Also, it might be worth making all the tests conform to the same method of testing, there's three or four different ways in there which all basically do; if not set default to... operations. J. ======================================================================= Information in this email and any attachments are confidential, and may not be copied or used by anyone other than the addressee, nor disclosed to any third party without our permission. There is no intention to create any legally binding contract or other commitment through the use of this email. Experian Limited (registration number 653331). Registered office: Talbot House, Talbot Street, Nottingham NG1 5HF
Index: CocoonServlet.java =================================================================== RCS file: /home/cvspublic/xml-cocoon2/src/org/apache/cocoon/servlet/CocoonServlet.java,v retrieving revision 1.26 diff -u -r1.26 CocoonServlet.java --- CocoonServlet.java 2001/08/09 12:25:35 1.26 +++ CocoonServlet.java 2001/08/10 10:39:49 @@ -129,7 +129,14 @@ this.initLogger(); this.forceLoadParameter = conf.getInitParameter("load-class"); + if(conf.getInitParameter("load-class") == null) { + log.debug("load-class was not set - defaulting to false?"); + } + this.addClassDirs = "true".equals(conf.getInitParameter("init-classloader")); + if(conf.getInitParameter("init-classloader") == null) { + log.debug("init-classloader was not set - defaulting to false"); + } String workDirParam = conf.getInitParameter("work-directory"); if ((workDirParam != null) && (workDirParam.trim().equals("") == false)) { @@ -163,14 +170,25 @@ this.appContext.put(Constants.CONTEXT_CONFIG_URL, this.getConfigFile(conf.getInitParameter("configurations"))); + if(conf.getInitParameter("configurations") == null) { + log.debug("configurations was not set - defaulting to... ?"); + } // get allow reload parameter, default is true String value = conf.getInitParameter("allow-reload"); this.allowReload = (value == null || value.equals("yes") || value.equals("true")); + if(conf.getInitParameter("allow-reload") == null) { + log.debug("allow-reload was not set - defaulting to true"); + } value = conf.getInitParameter("show-time"); this.showTime = "yes".equals(value) || "true".equals(value) || (this.hiddenShowTime = "hide".equals(value)); + + if(conf.getInitParameter("show-time") == null) { + log.debug("show-time was not set - defaulting to false"); + } + this.createCocoon(); }
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]