RE: jk2 .. uncomfortably silent ?

2003-12-18 Thread NAIK,ROSHAN (HP-Cupertino,ex1)
 Tomcat is a child process (ProcessID=0) to HTTP Server
 What is your specific concern?
 -Martin


My specific concern is mentioned in the message below.. i have pasted
the relevant sections of code there. 
--Roshan


   -Original Message-
   From: NAIK,ROSHAN (HP-Cupertino,ex1) [mailto:[EMAIL PROTECTED]
   Sent: Monday, December 15, 2003 3:48 PM
   To: 'Tomcat Developers List'
   Cc: '[EMAIL PROTECTED]'; '[EMAIL PROTECTED]'
   Subject: mod_jk2 .. is 0 a valid child_id ?
   
   
   mod_jk2 creates this error long entry each time apache 
 starts up...
   
   
   [Mon Dec 15 15:20:17 2003] [error] mod_jk child init 1 0
   
   
   The relevant code printing the error is in function 
   jk2_child_init() in
   mod_jk2.c
   
   static void jk2_child_init(apr_pool_t *pconf, server_rec *s)
   {
//...
   
   if( workerEnv-childId = 0 ) 
   env-l-jkLog(env, env-l, JK_LOG_ERROR, mod_jk 
   child init %d
   %d\n,
 workerEnv-was_initialized, 
   workerEnv-childId );
   }
//...
   }
   
   
   Here 0 is assumed to be invalud childID. But other parts of 
   the code (in the
   
   same function) seem to find the childID=0 to be fine 
   
   if (workerEnv-childId = 0) {
   workerEnv-childGeneration =
   ap_scoreboard_image-parent[workerEnv-childId].generation;
   
 ++ap_scoreboard_image-parent[workerEnv-childId].generation;
   }
   
   ...
   
   /* Restore the process generation */
   if (workerEnv-childId = 0) {
   
 ap_scoreboard_image-parent[workerEnv-childId].generation =
   workerEnv-childGeneration;
   }
   
   
   I am not too clear about the logic ...however it seems like 
   something is 
   not right if thar error is being printed each time apache 
 comes up.
   
   -- Roshan 
   
   
 -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: 
 [EMAIL PROTECTED]
   
  
  
 -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  
  
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 

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



jk2 .. uncomfortably silent ?

2003-12-17 Thread NAIK,ROSHAN (HP-Cupertino,ex1)
Wonder why questions on jk2 often never get a response. 
Are the relevant developers not active on this list ? 

Even cc-ing the developers who are credited in the relevant source code
doesnt help !!

--Roshan

 -Original Message-
 From: NAIK,ROSHAN (HP-Cupertino,ex1) [mailto:[EMAIL PROTECTED]
 Sent: Monday, December 15, 2003 3:48 PM
 To: 'Tomcat Developers List'
 Cc: '[EMAIL PROTECTED]'; '[EMAIL PROTECTED]'
 Subject: mod_jk2 .. is 0 a valid child_id ?
 
 
 mod_jk2 creates this error long entry each time apache starts up...
 
 
 [Mon Dec 15 15:20:17 2003] [error] mod_jk child init 1 0
 
 
 The relevant code printing the error is in function 
 jk2_child_init() in
 mod_jk2.c
 
 static void jk2_child_init(apr_pool_t *pconf, server_rec *s)
 {
  //...
 
 if( workerEnv-childId = 0 ) 
 env-l-jkLog(env, env-l, JK_LOG_ERROR, mod_jk 
 child init %d
 %d\n,
   workerEnv-was_initialized, 
 workerEnv-childId );
 }
  //...
 }
 
 
 Here 0 is assumed to be invalud childID. But other parts of 
 the code (in the
 
 same function) seem to find the childID=0 to be fine 
 
 if (workerEnv-childId = 0) {
 workerEnv-childGeneration =
 ap_scoreboard_image-parent[workerEnv-childId].generation;
 ++ap_scoreboard_image-parent[workerEnv-childId].generation;
 }
 
 ...
 
 /* Restore the process generation */
 if (workerEnv-childId = 0) {
 ap_scoreboard_image-parent[workerEnv-childId].generation =
 workerEnv-childGeneration;
 }
 
 
 I am not too clear about the logic ...however it seems like 
 something is 
 not right if thar error is being printed each time apache comes up.
 
 -- Roshan 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 

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



mod_jk2 .. is 0 a valid child_id ?

2003-12-15 Thread NAIK,ROSHAN (HP-Cupertino,ex1)
mod_jk2 creates this error long entry each time apache starts up...


[Mon Dec 15 15:20:17 2003] [error] mod_jk child init 1 0


The relevant code printing the error is in function jk2_child_init() in
mod_jk2.c

static void jk2_child_init(apr_pool_t *pconf, server_rec *s)
{
 //...

if( workerEnv-childId = 0 ) 
env-l-jkLog(env, env-l, JK_LOG_ERROR, mod_jk child init %d
%d\n,
  workerEnv-was_initialized, workerEnv-childId );
}
 //...
}


Here 0 is assumed to be invalud childID. But other parts of the code (in the

same function) seem to find the childID=0 to be fine 

if (workerEnv-childId = 0) {
workerEnv-childGeneration =
ap_scoreboard_image-parent[workerEnv-childId].generation;
++ap_scoreboard_image-parent[workerEnv-childId].generation;
}

...

/* Restore the process generation */
if (workerEnv-childId = 0) {
ap_scoreboard_image-parent[workerEnv-childId].generation =
workerEnv-childGeneration;
}


I am not too clear about the logic ...however it seems like something is 
not right if thar error is being printed each time apache comes up.

-- Roshan 

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



RE: [ANN] Apache Tomcat 4.1.27 Stable released

2003-08-14 Thread NAIK,ROSHAN (HP-Cupertino,ex1)
Hi Remy,
Are these security bugs existing in all versions of Tomcat 4
prior to 4.1.27 ? Or was there a version of Tomcat where these 
were introduced ? I couldnt find the reference to these security
issues on the tomcat web site section mentioning the 4.1.27 release. 
This information will be very much useful since we may need to
redeploy our free HPUX Tomcat distribution to customers.

Thanks,
--Roshan

 -Original Message-
 From: Remy Maucherat [mailto:[EMAIL PROTECTED]
 Sent: Thursday, July 31, 2003 10:59 PM
 To: [EMAIL PROTECTED]; Tomcat Developers List;
 [EMAIL PROTECTED]
 Subject: [ANN] Apache Tomcat 4.1.27 Stable released
 
 
 The Tomcat Team announces the immediate availability of Apache Tomcat 
 4.1.27 Stable. Among other bugfixes and improvements, Tomcat 4.1.27 
 includes security fixes for:
 
 - Improper recycling of SSL client certificates with Coyote JK 2
 - Improper handling of invalid content lengths in requests, 
 causing HTTP 
 processors to be left in an invalid state in Coyote HTTP/1.1, 
 causing a 
 DoS condition
 - URI normalization bug in Coyote
 - Improper handling of certain URLs in Coyote JK 2, causing a 
 DoS condition
 
 Downloads: http://jakarta.apache.org/site/binindex.cgi
 
 Remy
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 

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



Tomcat shutdown port and security

2003-08-04 Thread NAIK,ROSHAN (HP-Cupertino,ex1)

Given that _anybody_ on the local machine could simply telnet to the 
port and issue a SHUTDOWN command. Isnt the current shutdown mechanism in 
Tomcat 4 a security issue ? 

-- Roshan 

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



Tomcat Listener and file sockets

2003-07-28 Thread NAIK,ROSHAN (HP-Cupertino,ex1)

I have tried asking for this before (in vain)..but anyway ...

Can Tomcat listen (for AJP13 requests) on a file socket (AF_UNIX)
instead of the regular AF_INET socket ?

mod_jk2 allows configuration to specify the socket file. 
However no documentation (or anything in the Tomcat source code)
seems to support such configuration.

I hope that atleast somebody (whoever implemented AF_UNIX in mod_jk2)
must have tried out atleast once to get mod_jk2 talking to Tomcat via
AF_UNIX sockets.

Also there is a bug report #19917 on someone complaining about this not
working
in Tomcat 4.1.24. Woder if he had it working on an earlier version of
Tomcat.

No docs on mod_jk2 side or Tomcat side talk about the Tomcat side
configuration
required. Looking some Java/Tomcat source code it didnt seem like there is
support
for AF_UNIX sockets in Java.

I am using tomcat 4.
-- Roshan 

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



Tomcat4 , mod_jk2 AF_UNIX connections

2003-07-23 Thread NAIK,ROSHAN (HP-Cupertino,ex1)

mod_jk2 allows for AF_UNIX connections to talk to Tomcat4.
(http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk2/doc/jk2/conf
igwebex.html)

So lets say we specify /tmp/jk2.socket as the AF_UNIX file socket for
communication
between mod_jk2 and Tomcat4. We can tell mod_jk2 in the workers2.properties
about this.
I assume that Tomcat4 would also have to be told to listen on this file
rather than
on Port 8009. But the Tomcat docs dont seem to say a thing about how to go
about doing this.

So I looked into the CoyoteConnetor.java to see if i could find something.
But i dont see any support for that in it either. Where is the support for
this functionality implemented in 
tomcat and how do you configure Tomcat to take requests from this AF_UNIX
socket file ?

anyone knows about it?
--Roshan

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