cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Berin Loritsch <blorit...@apache.org>
Subject Re: [C2]: Bug in HttpEnvironment fixed
Date Tue, 23 Jan 2001 16:50:38 GMT
Carsten Ziegeler wrote:

> Hi,
> 
> 
> 
> attached is a patch for the HttpEnvironment. The logger was not set which caused NPEs.

Oops.  I modified to this method to allow for an automatic method of setting the correct
Logger in each class.  This will facilitate me moving the DataSources to Avalon, and
allow the sending of messages to Cocoon's log file.  Also, it will allow me to componentize
the Loggers.  That way, we can have application specific loggers automatically spread
accross several pages if need be.

> 
> 
> 
> Carsten
> 
> 
> 
> ------------------------------------------------------------------------
> 
> Index: CocoonServlet.java
> 
> ===================================================================
> 
> RCS file: /home/cvspublic/xml-cocoon/src/org/apache/cocoon/servlet/Attic/CocoonServlet.java,v
> 
> retrieving revision 1.1.4.44
> 
> diff -u -r1.1.4.44 CocoonServlet.java
> 
> --- CocoonServlet.java	2001/01/22 21:56:47	1.1.4.44
> 
> +++ CocoonServlet.java	2001/01/23 16:13:11
> 
> @@ -53,7 +53,7 @@
> 
>   * @author <a href="mailto:stefano@apache.org">Stefano Mazzocchi</a>
>   * @author <a href="mailto:nicolaken@supereva.it">Nicola Ken Barozzi</a>
Aisa
> 
>   * @author <a href="mailto:bloritsch@apache.org">Berin Loritsch</a>
> - * @version CVS $Revision: 1.1.4.44 $ $Date: 2001/01/22 21:56:47 $
> 
> + * @version CVS $Revision: 1.39 $ $Date: 2001/01/23 12:44:47 $
> 
>   */
> 
>  
> 
>  public class CocoonServlet extends HttpServlet {
> 
> @@ -340,6 +340,7 @@
> 
>              }
> 
>  
> 
>              HttpEnvironment env = new HttpEnvironment(uri, req, res, this.context);
> 
> +            env.setLogger(this.log);
> 
>  
> 
>              if (!this.cocoon.process(env)) {
> 
>  
> 
> 
> 
> 
> 
> ------------------------------------------------------------------------
> 
> ---------------------------------------------------------------------
> 
> To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
> 
> For additional commands, email: cocoon-dev-help@xml.apache.org
> diff.txt
> 
> Content-Type:
> 
> text/plain
> Content-Encoding:
> 
> quoted-printable
> 
> 
> ------------------------------------------------------------------------
> attachment.txt
> 
> Content-Type:
> 
> text/plain



Mime
View raw message