Return-Path: Delivered-To: apmail-cocoon-cvs-archive@www.apache.org Received: (qmail 14677 invoked from network); 26 Oct 2004 18:11:42 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 26 Oct 2004 18:11:42 -0000 Received: (qmail 39442 invoked by uid 500); 26 Oct 2004 18:11:42 -0000 Delivered-To: apmail-cocoon-cvs-archive@cocoon.apache.org Received: (qmail 39272 invoked by uid 500); 26 Oct 2004 18:11:40 -0000 Mailing-List: contact cvs-help@cocoon.apache.org; run by ezmlm Precedence: bulk Reply-To: dev@cocoon.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list cvs@cocoon.apache.org Received: (qmail 39244 invoked by uid 99); 26 Oct 2004 18:11:40 -0000 X-ASF-Spam-Status: No, hits=-10.0 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME X-Spam-Check-By: apache.org Received: from [209.237.227.194] (HELO minotaur.apache.org) (209.237.227.194) by apache.org (qpsmtpd/0.28) with SMTP; Tue, 26 Oct 2004 11:11:40 -0700 Received: (qmail 14639 invoked by uid 65534); 26 Oct 2004 18:11:38 -0000 Date: 26 Oct 2004 18:11:38 -0000 Message-ID: <20041026181138.14631.qmail@minotaur.apache.org> From: cziegeler@apache.org To: cvs@cocoon.apache.org Subject: svn commit: rev 55628 - in cocoon/trunk: src/confpatch src/java/org/apache/cocoon/servlet src/webapp/WEB-INF tools/targets X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Author: cziegeler Date: Tue Oct 26 11:11:37 2004 New Revision: 55628 Removed: cocoon/trunk/src/confpatch/enable-instrumentation.xweb cocoon/trunk/src/webapp/WEB-INF/instrumentation.xconf cocoon/trunk/tools/targets/instrumentation-build.xml Modified: cocoon/trunk/src/java/org/apache/cocoon/servlet/CocoonServlet.java cocoon/trunk/src/webapp/WEB-INF/web.xml Log: Remove instrumentation support Modified: cocoon/trunk/src/java/org/apache/cocoon/servlet/CocoonServlet.java ============================================================================== --- cocoon/trunk/src/java/org/apache/cocoon/servlet/CocoonServlet.java (original) +++ cocoon/trunk/src/java/org/apache/cocoon/servlet/CocoonServlet.java Tue Oct 26 11:11:37 2004 @@ -48,8 +48,6 @@ import org.apache.commons.lang.BooleanUtils; import org.apache.commons.lang.SystemUtils; -import org.apache.excalibur.instrument.InstrumentManager; -import org.apache.excalibur.instrument.manager.DefaultInstrumentManager; import org.apache.log.ContextMap; import org.apache.log.ErrorHandler; import org.apache.log.Hierarchy; @@ -203,16 +201,6 @@ private boolean manageExceptions; /** - * Flag to enable avalon excalibur instrumentation of Cocoon. - */ - private boolean enableInstrumentation; - - /** - * The InstrumentManager instance - */ - private DefaultInstrumentManager instrumentManager; - - /** * This is the path to the servlet context (or the result * of calling getRealPath('/') on the ServletContext. * Note, that this can be null. @@ -468,8 +456,6 @@ this.manageExceptions = getInitParameterAsBoolean("manage-exceptions", true); - this.enableInstrumentation = getInitParameterAsBoolean("enable-instrumentation", false); - this.requestFactory = new RequestFactory(this.autoSaveUploads, this.uploadDir, this.allowOverwrite, @@ -499,10 +485,6 @@ this.disposeCocoon(); } - if (this.enableInstrumentation) { - this.instrumentManager.dispose(); - } - ContainerUtil.dispose( this.parentServiceManager ); } @@ -1399,40 +1381,6 @@ protected void updateEnvironment() throws ServletException { this.appContext.put(Constants.CONTEXT_CLASS_LOADER, classLoader); this.appContext.put(Constants.CONTEXT_CLASSPATH, getClassPath()); - } - - /** - * Helper method to obtain an InstrumentManager instance - * - * @return an InstrumentManager instance - */ - private InstrumentManager getInstrumentManager() - throws Exception { - String imConfig = getInitParameter("instrumentation-config"); - if (imConfig == null) { - throw new ServletException("Please define the init-param 'instrumentation-config' in your web.xml"); - } - - final InputStream is = this.servletContext.getResourceAsStream(imConfig); - final DefaultConfigurationBuilder builder = new DefaultConfigurationBuilder(); - final Configuration conf = builder.build(is); - - // Get the logger for the instrument manager - final String imLoggerCategory = conf.getAttribute("logger", "core.instrument"); - Logger imLogger = this.loggerManager.getLoggerForCategory(imLoggerCategory); - - // Set up the Instrument Manager - DefaultInstrumentManager instrumentManager = new DefaultInstrumentManager(); - instrumentManager.enableLogging(imLogger); - instrumentManager.configure(conf); - instrumentManager.initialize(); - - if (getLogger().isDebugEnabled()) { - getLogger().debug("Instrument manager created " + instrumentManager); - } - - this.instrumentManager = instrumentManager; - return instrumentManager; } private String processTime(long time) { Modified: cocoon/trunk/src/webapp/WEB-INF/web.xml ============================================================================== --- cocoon/trunk/src/webapp/WEB-INF/web.xml (original) +++ cocoon/trunk/src/webapp/WEB-INF/web.xml Tue Oct 26 11:11:37 2004 @@ -321,24 +321,6 @@ - - enable-instrumentation - false - - - - - instrumentation-config - /WEB-INF/instrumentation.xconf - - -