May be allways related to apr pool used.

I tried with plog and pconf, same problem.

When adding some logging, I could see that jk_post_config() is called
2 times and as such 2 open_jklog.

init plog=SPP:0000 :0000 :0:0:2 pconf=SPP:0000 :0000 :0:1:2
init plog=SPP:0000 :0000 :0:0:2 pconf=SPP:0000 :0000 :0:1:2

BTW, it seems the plog/pconf are the same but, is it the standard behaviour ?

2007/3/30, Henri Gomez <[EMAIL PROTECTED]>:
More diggins the problem is not with the fputs but before ;(

May be something weird in l or p in :

static int JK_METHOD log_to_file(jk_logger_t *l, int level, const char *what)
{
    if (l &&
        (l->level <= level || level == JK_LOG_REQUEST_LEVEL) &&
        l->logger_private && what) {
        jk_file_logger_t *p = l->logger_private;
        if (p->logfile) {
            fputs(what, p->logfile);
            /* [V] Flush the dam' thing! */
            fflush(p->logfile);
        }
        return JK_TRUE;
    }
    return JK_FALSE;
}


2007/3/30, Henri Gomez <[EMAIL PROTECTED]>:
> 2007/3/30, Mladen Turk <[EMAIL PROTECTED]>:
> > Henri Gomez wrote:
> > >
> > > I allready told you that you didn't have to delay the release for i5
> > > problems and you could go on with it.
> > >
> >
> > Sounds fair.
> > If you came up with the patches, we can bump a next release
> > that'll fix them. However, since we got that far I wonder why
> > the logging is faulty. Can it be because of fputs instead fwrite,
> > and EBCDIC? If you can, try replacing fputs with fwrite and see
> > if it works.
>
> Well I'm working on locating the problems :
>
> Two problems for now :
>
> - The l->log() problem
>
> - Something related to HTTP 500 error and the following part of code
> in mod_jk.c :
>
> if (!r->sent_bodyct && r->status >= HTTP_BAD_REQUEST) {
>            jk_log(xconf->log, JK_LOG_INFO, "No body with status=%d"
>                   " for worker=%s",
>                   r->status, worker_name);
>            JK_TRACE_EXIT(xconf->log);
>            return r->status;
>
> On i5 the r->sent_bodyct  is allways set to 0.
>
> As such when we get an HTTP 500 error (ie a SOAP Fault), jk think
> there is no body to send back to client (which is not true) and let
> Apache handle the 500 error instead of relaying the XML fault content
> sent by Tomcat
>
> If I discard the r->sent_bodyct check, I get the correct SOAP replies
> in my client.
>
> if (0 && r->status >= HTTP_BAD_REQUEST) {
>            jk_log(xconf->log, JK_LOG_INFO, "No body with status=%d"
>                   " for worker=%s",
>                   r->status, worker_name);
>            JK_TRACE_EXIT(xconf->log);
>            return r->status;
>
> There is something weird in mod_jk on i5, and I'm looking for all the
> various #ifdef AS400 to check what's is going on.
>
> I didn't understand why the sent_bodyct is not set since I see the
> content in jk log ;(
>


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to