cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Donald <dona...@apache.org>
Subject Re: [Fwd: [C2] [Bug] ComponentNotAccessibleException]
Date Mon, 26 Feb 2001 06:52:32 GMT
Oh and also add the import 

import org.apache.avalon.util.log.AvalonLogFormatter;

;)

At 05:49  26/2/01 +1100, Peter Donald wrote:
>Hi,
>
>It is a bit hard to track this down directly although there was a bugfix a
>while back regarding a similar exception. SO could you change
>CocoonServlet.java about Line 214 from:
>
>            this.log = LogKit.createLogger(cocoonCategory, new LogTarget[] {
>                       new FileOutputLogTarget(path),
>                       new ServletLogTarget(context, Priority.ERROR)
>                });
>
>to:
>        final AvalonLogFormatter formatter = new AvalonLogFormatter();
>        final LogTarget fileLogTarget = new FileOutputLogTarget(path);
>        final LogTarget servletLogTarget = 
>                  new ServletLogTarget(context, Priority.ERROR);
>
>        //set up some formatter - as long as it includes throwable
>        formatter.setFormat( "%{time} [%7.7{priority}] <<%{category}>> " +
>                             "(%{context}): %{message}\\n%{throwable}" );
>
>        fileLogTarget.setFormatter( formatter );
>        servletLogTarget.setFormatter( formatter );
>
>        this.log = LogKit.createLogger(cocoonCategory, new LogTarget[] {
>                       fileLogTarget,
>                       servletLogTarget
>                });
>
>The above will just print out exactly where the error is by recursing the
>Cascading Exceptions and printing out the whole exception hierarchy.
>
>And could you also tell me the date of Avalon this was compiled against?
>Given that I think it should be easier to fix the error.
>
>
>Cheers,
>
>Pete
>
>*-----------------------------------------------------*
>| "Faced with the choice between changing one's mind, |
>| and proving that there is no need to do so - almost |
>| everyone gets busy on the proof."                   |
>|              - John Kenneth Galbraith               |
>*-----------------------------------------------------*
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: avalon-dev-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: avalon-dev-help@jakarta.apache.org
>
>
Cheers,

Pete

*------------------------------------------------------*
| "Computers are useless. They can only give you       |
|            answers." - Pablo Picasso                 |
*------------------------------------------------------*

Mime
View raw message