You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Joe Latty <jo...@tias.com.au> on 2004/06/10 03:15:44 UTC

Could not set up Cocoon Logger

Ever since upgrading to Cocoon 2.1.5 I have been getting this error in 
my Tomcat logs.

Logging Error: Could not set up Cocoon Logger, will use screen instead
java.lang.NullPointerException: logTargets[ 0 ]
    at org.apache.log.Logger.setLogTargets(Logger.java:435)
    at 
org.apache.avalon.excalibur.logger.LogKitLoggerManager.setupLoggers(LogKitLoggerManager.java:517)
    at 
org.apache.avalon.excalibur.logger.LogKitLoggerManager.configure(LogKitLoggerManager.java:407)
    at 
org.apache.avalon.framework.container.ContainerUtil.configure(ContainerUtil.java:240)
    at 
org.apache.cocoon.servlet.CocoonServlet.initLogger(CocoonServlet.java:824)
    at org.apache.cocoon.servlet.CocoonServlet.init(CocoonServlet.java:306)

    etc, etc,

This is using Tomcat 5.

I have seen from searches that this has been an error in Excalibur 
Logger in previous releases.

Any suggestions?

Joe

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Re: Could not set up Cocoon Logger

Posted by Ralph Goers <Ra...@dslextreme.com>.
Darn. It is excalibur-logger-1.1 that has no source in the archive.  I was 
able to view it in CVS though.  The NullPointerException is being 
explicitly thrown because a log target has been misconfigured.  This looks 
like it would be caused when a category tries to reference a log-target 
with an id-ref that doesn't match any defined log targets.

Ralph

At 6/10/2004  12:06 AM, Ralph Goers wrote:
>You know, I really wanted to debug this for you, but once again I am 
>foiled by Excalibur.  It turns out the source archives of 
>excalibur-logger-1.2.2 (the version used by Cocoon 2.1.5) have no java 
>source in them.
>
>Ralph
>
>At 6/9/2004  06:15 PM, you wrote:
>>Ever since upgrading to Cocoon 2.1.5 I have been getting this error in my 
>>Tomcat logs.
>>
>>Logging Error: Could not set up Cocoon Logger, will use screen instead
>>java.lang.NullPointerException: logTargets[ 0 ]
>>    at org.apache.log.Logger.setLogTargets(Logger.java:435)
>>    at 
>> org.apache.avalon.excalibur.logger.LogKitLoggerManager.setupLoggers(LogKitLoggerManager.java:517)
>>    at 
>> org.apache.avalon.excalibur.logger.LogKitLoggerManager.configure(LogKitLoggerManager.java:407)
>>    at 
>> org.apache.avalon.framework.container.ContainerUtil.configure(ContainerUtil.java:240)
>>    at 
>> org.apache.cocoon.servlet.CocoonServlet.initLogger(CocoonServlet.java:824)
>>    at org.apache.cocoon.servlet.CocoonServlet.init(CocoonServlet.java:306)
>>
>>    etc, etc,
>>
>>This is using Tomcat 5.
>>
>>I have seen from searches that this has been an error in Excalibur Logger 
>>in previous releases.
>>
>>Any suggestions?
>>
>>Joe
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
>>For additional commands, e-mail: users-help@cocoon.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Re: Could not set up Cocoon Logger

Posted by Joerg Heinicke <jo...@gmx.de>.
On 10.06.2004 09:23, Antonio Gallardo wrote:
> Hi:
> 
> Compare your /WEB-INF/logkit.xconf with the relased one and check if you
> are not missing something like that:
> 
> <category log-level="INFO" name="">
>   <log-target id-ref="core"/>
>   <log-target id-ref="error"/>
> </category>

Just to sum the whole thread up:
http://cocoon.apache.org/2.1/installing/updating.html#Logging+Configuration

Sometimes it's good to have a look into the official docu ;-)

Joerg


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Re: Could not set up Cocoon Logger

Posted by Antonio Gallardo <ag...@agssa.net>.
Hi:

Compare your /WEB-INF/logkit.xconf with the relased one and check if you
are not missing something like that:

<category log-level="INFO" name="">
  <log-target id-ref="core"/>
  <log-target id-ref="error"/>
</category>

Best Regards,

Antonio Gallardo.

Ralph Goers dijo:
> You know, I really wanted to debug this for you, but once again I am
> foiled
> by Excalibur.  It turns out the source archives of excalibur-logger-1.2.2
> (the version used by Cocoon 2.1.5) have no java source in them.
>
> Ralph
>
> At 6/9/2004  06:15 PM, you wrote:
>>Ever since upgrading to Cocoon 2.1.5 I have been getting this error in my
>>Tomcat logs.
>>
>>Logging Error: Could not set up Cocoon Logger, will use screen instead
>>java.lang.NullPointerException: logTargets[ 0 ]
>>    at org.apache.log.Logger.setLogTargets(Logger.java:435)
>>    at
>> org.apache.avalon.excalibur.logger.LogKitLoggerManager.setupLoggers(LogKitLoggerManager.java:517)
>>    at
>> org.apache.avalon.excalibur.logger.LogKitLoggerManager.configure(LogKitLoggerManager.java:407)
>>    at
>> org.apache.avalon.framework.container.ContainerUtil.configure(ContainerUtil.java:240)
>>    at
>> org.apache.cocoon.servlet.CocoonServlet.initLogger(CocoonServlet.java:824)
>>    at
>> org.apache.cocoon.servlet.CocoonServlet.init(CocoonServlet.java:306)
>>
>>    etc, etc,
>>
>>This is using Tomcat 5.
>>
>>I have seen from searches that this has been an error in Excalibur Logger
>>in previous releases.
>>
>>Any suggestions?
>>
>>Joe
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
>>For additional commands, e-mail: users-help@cocoon.apache.org
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Re: Could not set up Cocoon Logger

Posted by Ralph Goers <Ra...@dslextreme.com>.
It was my typo. It is excalibur-logger-1.1 and logkit-1.2.2.

Antonio Gallardo said:
> Hi:
>
> Reading below I found you are talking about excalinur-logger-1.2.2 shipped
> with Cocoon 2.1.5. I think it is a typo, because the shipped version is
> 1.1.
>
> But if this is not a typo, then maybe this is the source of the problem.
>
> Best Regards,
>
> Antonio Gallardo.
>
> Joe Latty dijo:
>>            Thanks once again for your interest. I had a look at the
>> logkit.xconf in our app and the one in Cocoon 2.1.5 and did a
>> file compare. They are very similar, the only difference being
>> some additional stuff in ours.
>>
>>  I even tried using the logkit.xconf from the cocoon build. Still no
>> good.
>>
>>  Joe
>>
>>  Antonio Gallardo wrote:    Joe Latty dijo:           Thanks for the
>> effort, but I came upon the same thing. Tried downloading the source
>> myself, to no avail, got into a bit of a black box situation with the
>> logging stuff.  Is no one else experiencing this problem. Wasn't
>> happening in Cocoon 2.1.4 for us.            Please check my previous
>> mail. Also please check the names of the factory classes in
>> logkit.xconf.
>>  Best Regards,  Antonio Gallardo.            Joe  Ralph Goers wrote:
>>             You know, I really wanted to debug this for you, but once
>> again I am foiled by Excalibur.  It turns out the source archives of
>> excalibur-logger-1.2.2 (the version used by Cocoon 2.1.5) have no java
>> source in them.  Ralph  At 6/9/2004  06:15 PM, you wrote:
>>        Ever since upgrading to Cocoon 2.1.5 I have been getting this
>> error in my Tomcat logs.  Logging Error: Could not set up Cocoon Logger,
>> will use screen instead java.lang.NullPointerException: logTargets[ 0 ]
>>  at org.apache.log.Logger.setLogTargets(Logger.java:435)    at
>> org.apache.avalon.excalibur.logger.LogKitLoggerManager.setupLoggers(LogKitLoggerManager.java:517)
>>     at
>> org.apache.avalon.excalibur.logger.LogKitLoggerManager.configure(LogKitLoggerManager.java:407)
>>     at
>> org.apache.avalon.framework.container.ContainerUtil.configure(ContainerUtil.java:240)
>>     at
>> org.apache.cocoon.servlet.CocoonServlet.initLogger(CocoonServlet.java:824)
>>     at
>> org.apache.cocoon.servlet.CocoonServlet.init(CocoonServlet.java:306)
>> etc, etc,  This is using Tomcat 5.  I have seen from searches that this
>> has been an error in Excalibur Logger in previous releases.  Any
>> suggestions?  Joe
>> --------------------------------------------------------------------- To
>> unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org For additional
>> commands, e-mail: users-help@cocoon.apache.org
>> --------------------------------------------------------------------- To
>> unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org For additional
>> commands, e-mail: users-help@cocoon.apache.org
>> --------------------------------------------------------------------- To
>> unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org For additional
>> commands, e-mail: users-help@cocoon.apache.org
>> --------------------------------------------------------------------- To
>> unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org For additional
>> commands, e-mail: users-help@cocoon.apache.org
>>     ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org For
>> additional commands, e-mail: users-help@cocoon.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Re: Could not set up Cocoon Logger

Posted by Antonio Gallardo <ag...@agssa.net>.
Hi:

Reading below I found you are talking about excalinur-logger-1.2.2 shipped
with Cocoon 2.1.5. I think it is a typo, because the shipped version is
1.1.

But if this is not a typo, then maybe this is the source of the problem.

Best Regards,

Antonio Gallardo.

Joe Latty dijo:
>            Thanks once again for your interest. I had a look at the
> logkit.xconf in our app and the one in Cocoon 2.1.5 and did a
> file compare. They are very similar, the only difference being
> some additional stuff in ours.
>
>  I even tried using the logkit.xconf from the cocoon build. Still no good.
>
>  Joe
>
>  Antonio Gallardo wrote:    Joe Latty dijo:           Thanks for the
> effort, but I came upon the same thing. Tried downloading the source
> myself, to no avail, got into a bit of a black box situation with the
> logging stuff.  Is no one else experiencing this problem. Wasn't
> happening in Cocoon 2.1.4 for us.            Please check my previous
> mail. Also please check the names of the factory classes in logkit.xconf.
>  Best Regards,  Antonio Gallardo.            Joe  Ralph Goers wrote:
>             You know, I really wanted to debug this for you, but once
> again I am foiled by Excalibur.  It turns out the source archives of
> excalibur-logger-1.2.2 (the version used by Cocoon 2.1.5) have no java
> source in them.  Ralph  At 6/9/2004  06:15 PM, you wrote:
>        Ever since upgrading to Cocoon 2.1.5 I have been getting this
> error in my Tomcat logs.  Logging Error: Could not set up Cocoon Logger,
> will use screen instead java.lang.NullPointerException: logTargets[ 0 ]
>  at org.apache.log.Logger.setLogTargets(Logger.java:435)    at
> org.apache.avalon.excalibur.logger.LogKitLoggerManager.setupLoggers(LogKitLoggerManager.java:517)
>     at
> org.apache.avalon.excalibur.logger.LogKitLoggerManager.configure(LogKitLoggerManager.java:407)
>     at
> org.apache.avalon.framework.container.ContainerUtil.configure(ContainerUtil.java:240)
>     at
> org.apache.cocoon.servlet.CocoonServlet.initLogger(CocoonServlet.java:824)
>     at
> org.apache.cocoon.servlet.CocoonServlet.init(CocoonServlet.java:306)
> etc, etc,  This is using Tomcat 5.  I have seen from searches that this
> has been an error in Excalibur Logger in previous releases.  Any
> suggestions?  Joe
> --------------------------------------------------------------------- To
> unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org For additional
> commands, e-mail: users-help@cocoon.apache.org
> --------------------------------------------------------------------- To
> unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org For additional
> commands, e-mail: users-help@cocoon.apache.org
> --------------------------------------------------------------------- To
> unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org For additional
> commands, e-mail: users-help@cocoon.apache.org
> --------------------------------------------------------------------- To
> unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org For additional
> commands, e-mail: users-help@cocoon.apache.org
>     ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org For
> additional commands, e-mail: users-help@cocoon.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Re: Could not set up Cocoon Logger

Posted by Antonio Gallardo <ag...@agssa.net>.
Joe Latty dijo:
> Thanks for the effort, but I came upon the same thing. Tried downloading
> the source myself, to no avail, got into a bit of a black box situation
> with the logging stuff.
>
> Is no one else experiencing this problem. Wasn't happening in Cocoon
> 2.1.4 for us.

Please check my previous mail. Also please check the names of the factory
classes in logkit.xconf.

Best Regards,

Antonio Gallardo.

>
> Joe
>
> Ralph Goers wrote:
>
>> You know, I really wanted to debug this for you, but once again I am
>> foiled by Excalibur.  It turns out the source archives of
>> excalibur-logger-1.2.2 (the version used by Cocoon 2.1.5) have no java
>> source in them.
>>
>> Ralph
>>
>> At 6/9/2004  06:15 PM, you wrote:
>>
>>> Ever since upgrading to Cocoon 2.1.5 I have been getting this error
>>> in my Tomcat logs.
>>>
>>> Logging Error: Could not set up Cocoon Logger, will use screen instead
>>> java.lang.NullPointerException: logTargets[ 0 ]
>>>    at org.apache.log.Logger.setLogTargets(Logger.java:435)
>>>    at
>>> org.apache.avalon.excalibur.logger.LogKitLoggerManager.setupLoggers(LogKitLoggerManager.java:517)
>>>
>>>    at
>>> org.apache.avalon.excalibur.logger.LogKitLoggerManager.configure(LogKitLoggerManager.java:407)
>>>
>>>    at
>>> org.apache.avalon.framework.container.ContainerUtil.configure(ContainerUtil.java:240)
>>>
>>>    at
>>> org.apache.cocoon.servlet.CocoonServlet.initLogger(CocoonServlet.java:824)
>>>
>>>    at
>>> org.apache.cocoon.servlet.CocoonServlet.init(CocoonServlet.java:306)
>>>
>>>    etc, etc,
>>>
>>> This is using Tomcat 5.
>>>
>>> I have seen from searches that this has been an error in Excalibur
>>> Logger in previous releases.
>>>
>>> Any suggestions?
>>>
>>> Joe
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
>>> For additional commands, e-mail: users-help@cocoon.apache.org
>>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
>> For additional commands, e-mail: users-help@cocoon.apache.org
>>
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Re: Could not set up Cocoon Logger

Posted by Joe Latty <jo...@tias.com.au>.
Thanks for the effort, but I came upon the same thing. Tried downloading 
the source myself, to no avail, got into a bit of a black box situation 
with the logging stuff.

Is no one else experiencing this problem. Wasn't happening in Cocoon 
2.1.4 for us.

Joe

Ralph Goers wrote:

> You know, I really wanted to debug this for you, but once again I am 
> foiled by Excalibur.  It turns out the source archives of 
> excalibur-logger-1.2.2 (the version used by Cocoon 2.1.5) have no java 
> source in them.
>
> Ralph
>
> At 6/9/2004  06:15 PM, you wrote:
>
>> Ever since upgrading to Cocoon 2.1.5 I have been getting this error 
>> in my Tomcat logs.
>>
>> Logging Error: Could not set up Cocoon Logger, will use screen instead
>> java.lang.NullPointerException: logTargets[ 0 ]
>>    at org.apache.log.Logger.setLogTargets(Logger.java:435)
>>    at 
>> org.apache.avalon.excalibur.logger.LogKitLoggerManager.setupLoggers(LogKitLoggerManager.java:517) 
>>
>>    at 
>> org.apache.avalon.excalibur.logger.LogKitLoggerManager.configure(LogKitLoggerManager.java:407) 
>>
>>    at 
>> org.apache.avalon.framework.container.ContainerUtil.configure(ContainerUtil.java:240) 
>>
>>    at 
>> org.apache.cocoon.servlet.CocoonServlet.initLogger(CocoonServlet.java:824) 
>>
>>    at 
>> org.apache.cocoon.servlet.CocoonServlet.init(CocoonServlet.java:306)
>>
>>    etc, etc,
>>
>> This is using Tomcat 5.
>>
>> I have seen from searches that this has been an error in Excalibur 
>> Logger in previous releases.
>>
>> Any suggestions?
>>
>> Joe
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
>> For additional commands, e-mail: users-help@cocoon.apache.org
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Re: Could not set up Cocoon Logger

Posted by Ralph Goers <Ra...@dslextreme.com>.
You know, I really wanted to debug this for you, but once again I am foiled 
by Excalibur.  It turns out the source archives of excalibur-logger-1.2.2 
(the version used by Cocoon 2.1.5) have no java source in them.

Ralph

At 6/9/2004  06:15 PM, you wrote:
>Ever since upgrading to Cocoon 2.1.5 I have been getting this error in my 
>Tomcat logs.
>
>Logging Error: Could not set up Cocoon Logger, will use screen instead
>java.lang.NullPointerException: logTargets[ 0 ]
>    at org.apache.log.Logger.setLogTargets(Logger.java:435)
>    at 
> org.apache.avalon.excalibur.logger.LogKitLoggerManager.setupLoggers(LogKitLoggerManager.java:517)
>    at 
> org.apache.avalon.excalibur.logger.LogKitLoggerManager.configure(LogKitLoggerManager.java:407)
>    at 
> org.apache.avalon.framework.container.ContainerUtil.configure(ContainerUtil.java:240)
>    at 
> org.apache.cocoon.servlet.CocoonServlet.initLogger(CocoonServlet.java:824)
>    at org.apache.cocoon.servlet.CocoonServlet.init(CocoonServlet.java:306)
>
>    etc, etc,
>
>This is using Tomcat 5.
>
>I have seen from searches that this has been an error in Excalibur Logger 
>in previous releases.
>
>Any suggestions?
>
>Joe
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
>For additional commands, e-mail: users-help@cocoon.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org