AUTO {TOML#001-402-286}Enhancement: mod_jk-Logging

2004-11-09 Thread info
Dear Customer,
 
Thank you for your interest in the services offered by TimesofMoney.com.We have 
received your email. Our Customer Relations Officer will get in touch with you 
shortly.  In case you would like to speak to our representatives, you can reach 
us at these numbers :   2207 2072 (Bombay),5695 9581 
(Bangalore),2435 5588 (Chennai),  2335 2581 (Hyderabad)Assuring you of our best 
services always.
 
Warm Regards,
Customer Relations
TimesofMoney.com
A Times Group Company
-
This is an automated response. Please do not respond to this email.
-



cvs commit: jakarta-tomcat-connectors/jk/native/common jk_global.h

2004-11-09 Thread mturk
mturk   2004/11/09 00:17:03

  Modified:jk/native/common jk_global.h
  Log:
  Add missing includes for Netware.
  
  Revision  ChangesPath
  1.36  +3 -1  jakarta-tomcat-connectors/jk/native/common/jk_global.h
  
  Index: jk_global.h
  ===
  RCS file: /home/cvs/jakarta-tomcat-connectors/jk/native/common/jk_global.h,v
  retrieving revision 1.35
  retrieving revision 1.36
  diff -u -r1.35 -r1.36
  --- jk_global.h   8 Nov 2004 13:29:27 -   1.35
  +++ jk_global.h   9 Nov 2004 08:17:03 -   1.36
  @@ -65,6 +65,8 @@
   #include unistd.h
   #if defined(NETWARE)  defined(__NOVELL_LIBC__)
   #include novsock2.h
  +#include nks/fsio.h
  +#include nks/errno.h
   #define __sys_socket_h__
   #define __netdb_h__
   #define __netinet_in_h__
  
  
  

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



DO NOT REPLY [Bug 29521] - No destroy methods called on service shutdown

2004-11-09 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=29521.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=29521

No destroy methods called on service shutdown

[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|RESOLVED|VERIFIED



--- Additional Comments From [EMAIL PROTECTED]  2004-11-09 08:17 ---
Have verified the status with the original configuration and this problem is
indeed fixed when using 5.0.29 beta

Thanks

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



Re: Newest JK commits

2004-11-09 Thread Mladen Turk
NormW wrote:
Missed a patch perhaps?
A build on Apache 2.1 shows symbols F_GETFL, F_SETFL as undefined and a 
text search through the JTC source tree finds the only references in 
jk_connect.c
Norm

Seems that we are missing header on Netware.
IMO the F_GETFL/F_SETFL are defined inside nks/fsio.h, correct?
I have added the needed header to jk_global.h. Can you check that?
If it still doesn't compile can you figure out the needed header
files.
MT.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


AUTO {TOML#001-402-497}cvs commit: jakarta-tomcat-connectors/jk/native/common jk_global.h

2004-11-09 Thread info
Dear Customer,
 
Thank you for your interest in the services offered by TimesofMoney.com.We have 
received your email. Our Customer Relations Officer will get in touch with you 
shortly.  In case you would like to speak to our representatives, you can reach 
us at these numbers :   2207 2072 (Bombay),5695 9581 
(Bangalore),2435 5588 (Chennai),  2335 2581 (Hyderabad)Assuring you of our best 
services always.
 
Warm Regards,
Customer Relations
TimesofMoney.com
A Times Group Company
-
This is an automated response. Please do not respond to this email.
-



AUTO {TOML#001-402-498}DO NOT REPLY [Bug 29521] - No destroy methods called on service shutdown

2004-11-09 Thread info
Dear Customer,
 
Thank you for your interest in the services offered by TimesofMoney.com.We have 
received your email. Our Customer Relations Officer will get in touch with you 
shortly.  In case you would like to speak to our representatives, you can reach 
us at these numbers :   2207 2072 (Bombay),5695 9581 
(Bangalore),2435 5588 (Chennai),  2335 2581 (Hyderabad)Assuring you of our best 
services always.
 
Warm Regards,
Customer Relations
TimesofMoney.com
A Times Group Company
-
This is an automated response. Please do not respond to this email.
-



mod_jk enhancement discussion

2004-11-09 Thread Rainer Jung
Hi Mladen,
great! I don't know how hard the following is to achieve, but it is the 
most prominent problem around mod_jk-Logging I know of:

mod_jk does neither support Apaches rotatelogs nor does it have a log 
rotation capability on its own. If you or any other committer has an 
idea how to introduce rotating logfiles, that would be a major achievement.

I have 3 more features I would be willing to provide. Maybe you or the 
other committers can comment, if they think that would be useful. All of 
them are already implemented for mod_jk/apache 1.3 and in production 
under high load.

1) Limiting new application sessions if load is to high.
You can configure a start URL for your application (regexp based). If a 
request X matches this URL, then mod_jk checks the scoreboard how many 
apache requests are being processed simultaneously at that moment. There 
is a configurable limti, and if that limit is reached, the request X 
will not be sent to tomcat, but instead be answered by some configurable 
 local static response (containing the info, that the load is to high 
and the user should try again later). Alternatively one can configure X 
to be answered by some external redirect.

2) Multi-Cluster-Routing
Tomcat-Cluster does only allow session replication to all nodes in the 
cluster. Once you work with more than 3-4 nodes there is too much 
overhead and risk in replicating sessions to all nodes. We split all 
nodes into clustered groups. I introduced a new worker attribute 
domain to let get_most_suitable_worker know, to which other nodes the 
session gets replicated (the workers in the same domain).

This enhancement has another benefit: Once mod_jk connects an apache 
process to a tomcat instance, the tomcat jk connector will need one 
thread for this connection as long as the apache process is alive.

Now assume you have multiple Apaches and Tomcats. The Tomcats are 
clustered and mod_jk uses sticky sessions. Now you are going to shut 
down (maintenance) one tomcat. All Apache will start connections to all 
tomcats. You end up with all tomcats getting connections from all apache 
processes, so the number of threads needed inside the tomcats will explode.

If you group the tomcats the connections normally will stay inside the 
groups (combine 2) with a routing load balancer to the apaches).

3) Idle connection disconnect
This one also comes from the fact, that a mod_jk connection consumes one 
tomcat connector thread, even if its idle for a long time. The idle 
connection check in mod_jk only works, if the connection is going to be 
used. Then it is checked if it was idle for too long and probably is 
beeing closed and reconnected.

I implemented a feature, where in configurable intervals all workers of 
an lb worker are checked for idle connections, even the ones which are 
not returned by get_most_suitable_worker. The rationale behind it is the 
same as in the second part of 2).

4) Open Problem
I didn't check your new code, but at least before there was the problem, 
that a recovered worker that was offline a long time (in means of load) 
got all the work after recovery. Of course there was a fixed conatsnt of 
load added to it after recovery to compensate, but working with a 
constant was not really solving the problem.

It looks like one should virtually add load to a worker, even during 
it's error time, so that it will get normal load after recovering.

Thanks for any comments!
Rainer
Mladen Turk wrote:
Rainer Jung wrote:
Hi Mladen, hi everyone,
i have a proposal for a slight enhancement concerning the log format of
mod_jk. Maybe you could consider including it in your recently revised 
code. It contains only changes to jk_util.c and I attach a patch 
relativ to version 1.32 of the file.

Hi Rainer.
You are definitely on my track :).
I'm planning to add one additional log level, and clear all the log
messages.
1. ERROR - fatal operations
2. WARN  - problems but not fatal
3. INFO  - production logging
4. DEBUG - protocol tracing
5. TRACE - function call logging
1) Include the log level of a message in the log line.
2) Include the PID of the logging process in the log file.

I'd like to make a customizable log line, in the JkRequestLogFormat
fashion to be able to add PID/ThreadId, level, etc...
MT.
-
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]


AUTO {TOML#001-402-774}mod_jk enhancement discussion

2004-11-09 Thread info
Dear Customer,
 
Thank you for your interest in the services offered by TimesofMoney.com.We have 
received your email. Our Customer Relations Officer will get in touch with you 
shortly.  In case you would like to speak to our representatives, you can reach 
us at these numbers :   2207 2072 (Bombay),5695 9581 
(Bangalore),2435 5588 (Chennai),  2335 2581 (Hyderabad)Assuring you of our best 
services always.
 
Warm Regards,
Customer Relations
TimesofMoney.com
A Times Group Company
-
This is an automated response. Please do not respond to this email.
-



Re: Newest JK commits

2004-11-09 Thread NormW
Mladen Turk wrote:
NormW wrote:
Missed a patch perhaps?
A build on Apache 2.1 shows symbols F_GETFL, F_SETFL as undefined and 
a text search through the JTC source tree finds the only references in 
jk_connect.c
Norm

Seems that we are missing header on Netware.
IMO the F_GETFL/F_SETFL are defined inside nks/fsio.h, correct?
I have added the needed header to jk_global.h. Can you check that?
If it still doesn't compile can you figure out the needed header
files.
MT.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
.
Good evening,
From a 'quick' check, F_GETFL and F_SETFL are in fcntl.h, and can get 
passed the previous error by just adding fcntl.h on its own at the 
same place you did (seems errno.h isn't required at this point, but so 
far I'm just trying a build with 2.1).
However, I now get the following error:

Generating Release\mod_jk_link.opt
Linking Release/mod_jk.nlm
### mwldnlm Linker Error:
#   Undefined symbol: 'jk_map_free'
#   referenced from 'jk_apr_pool_cleanup' in mod_jk.o
#   referenced from 'jk_apr_pool_cleanup' in mod_jk.o
#   referenced from 'jk_apr_pool_cleanup' in mod_jk.o
A text search of the jtc source tree fails to find any reference to 
where this is definded, which from its prefix, I assume is supposed to 
be in there somewhere...
Norm

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


Re: [VOTE] Tomcat 5.5.4 Stability

2004-11-09 Thread Remy Maucherat
Shapira, Yoav wrote:
Hi,
Tomcat 5.5.4 has been available for about a week now, and tentatively
rated alpha for this time.  Now that people have hopefully had some time
to test it out, let's vote on its stability.
The release passes all our internal tests, and also passes the Servlet
and JSP TCKs.  There have been no serious issues filed against this
release in Bugzilla (I don't think
http://issues.apache.org/bugzilla/show_bug.cgi?id=32081 is a big deal).
 

More voting would be appreciated. Thanks :)
Rémy
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


cvs commit: jakarta-tomcat-connectors/jk/native/netscape jk_nsapi_plugin.c

2004-11-09 Thread mturk
mturk   2004/11/09 04:17:44

  Modified:jk/native/apache-1.3 mod_jk.c
   jk/native/apache-2.0 mod_jk.c
   jk/native/common jk_map.c jk_map.h jk_uri_worker_map.c
jk_util.c jk_worker.c
   jk/native/domino jk_dsapi_plugin.c
   jk/native/iis jk_isapi_plugin.c
   jk/native/isapi jk_isapi_plugin.c
   jk/native/netscape jk_nsapi_plugin.c
  Log:
  Prefix all map_xxx public functions with jk_.
  
  Revision  ChangesPath
  1.50  +15 -15jakarta-tomcat-connectors/jk/native/apache-1.3/mod_jk.c
  
  Index: mod_jk.c
  ===
  RCS file: /home/cvs/jakarta-tomcat-connectors/jk/native/apache-1.3/mod_jk.c,v
  retrieving revision 1.49
  retrieving revision 1.50
  diff -u -r1.49 -r1.50
  --- mod_jk.c  5 Nov 2004 15:28:39 -   1.49
  +++ mod_jk.c  9 Nov 2004 12:17:42 -   1.50
  @@ -678,7 +678,7 @@
   /*
* Add the new worker to the alias map.
*/
  -map_put(conf-uri_to_context, context, worker, (void **)old);
  +jk_map_put(conf-uri_to_context, context, worker, (void **)old);
   return NULL;
   }
   
  @@ -701,7 +701,7 @@
* Add the new automount to the auto map.
*/
   char *old;
  -map_put(conf-automount, worker, virtualhost, (void **)old);
  +jk_map_put(conf-automount, worker, virtualhost, (void **)old);
   return NULL;
   }
   
  @@ -1605,7 +1605,7 @@
   (jk_server_conf_t *) ap_pcalloc(p, sizeof(jk_server_conf_t));
   
   c-worker_properties = NULL;
  -map_alloc(c-worker_properties);
  +jk_map_alloc(c-worker_properties);
   c-worker_file = NULL;
   c-log_file = NULL;
   c-log_level = -1;
  @@ -1646,10 +1646,10 @@
   c-session_indicator = SSL_SESSION_ID;
   c-key_size_indicator = SSL_CIPHER_USEKEYSIZE;
   
  -if (!map_alloc((c-uri_to_context))) {
  +if (!jk_map_alloc((c-uri_to_context))) {
   jk_error_exit(APLOG_MARK, APLOG_EMERG, s, p, Memory error);
   }
  -if (!map_alloc((c-automount))) {
  +if (!jk_map_alloc((c-automount))) {
   jk_error_exit(APLOG_MARK, APLOG_EMERG, s, p, Memory error);
   }
   c-uw_map = NULL;
  @@ -1667,15 +1667,15 @@
   static void copy_jk_map(ap_pool * p, server_rec * s, jk_map_t *src,
   jk_map_t *dst)
   {
  -int sz = map_size(src);
  +int sz = jk_map_size(src);
   int i;
   for (i = 0; i  sz; i++) {
   void *old;
  -char *name = map_name_at(src, i);
  -if (map_get(src, name, NULL) == NULL) {
  -if (!map_put
  -(dst, name, ap_pstrdup(p, map_get_string(src, name, NULL)),
  - old)) {
  +char *name = jk_map_name_at(src, i);
  +if (jk_map_get(src, name, NULL) == NULL) {
  +if (!jk_map_put (dst, name,
  + ap_pstrdup(p, jk_map_get_string(src, name, NULL)),
  +old)) {
   jk_error_exit(APLOG_MARK, APLOG_EMERG, s, p, Memory error);
   }
   }
  @@ -1757,9 +1757,9 @@
   /*
   { int i;
   jk_log(conf-log, JK_LOG_DEBUG, default secret key = %s\n, 
conf-secret_key);
  -for (i = 0; i  map_size(conf-automount); i++)
  +for (i = 0; i  jk_map_size(conf-automount); i++)
   {
  -char *name = map_name_at(conf-automount, i);
  +char *name = jk_map_name_at(conf-automount, i);
jk_log(conf-log, JK_LOG_DEBUG, worker = %s and 
virtualhost = %s\n, name, map_get_string(conf-automount, name, NULL));
   }
   }
  @@ -1773,7 +1773,7 @@
   
   /*if(map_alloc(init_map)) { */
   
  -if (map_read_properties(init_map, conf-worker_file)) {
  +if (jk_map_read_properties(init_map, conf-worker_file)) {
   
   #if MODULE_MAGIC_NUMBER = 19980527
   /* Tell apache we're here */
  
  
  
  1.98  +17 -17jakarta-tomcat-connectors/jk/native/apache-2.0/mod_jk.c
  
  Index: mod_jk.c
  ===
  RCS file: /home/cvs/jakarta-tomcat-connectors/jk/native/apache-2.0/mod_jk.c,v
  retrieving revision 1.97
  retrieving revision 1.98
  diff -u -r1.97 -r1.98
  --- mod_jk.c  5 Nov 2004 15:28:39 -   1.97
  +++ mod_jk.c  9 Nov 2004 12:17:43 -   1.98
  @@ -716,7 +716,7 @@
   /*
* Add the new worker to the alias map.
*/
  -map_put(conf-uri_to_context, context, worker, (void **)old);
  +jk_map_put(conf-uri_to_context, context, worker, (void **)old);
   return NULL;
   }
   
  @@ -741,7 +741,7 @@
* Add the new automount to the auto map.
*/
   char *old;
  -map_put(conf-automount, worker, virtualhost, (void **)old);
  +jk_map_put(conf-automount, worker, virtualhost, (void **)old);
   return NULL;
   }
   
  @@ -790,9 +790,9 @@
   
   jk_map_t *m = conf-worker_properties;
   
  -value = 

Re: Newest JK commits

2004-11-09 Thread Mladen Turk
NormW wrote:
#   Undefined symbol: 'jk_map_free'
A text search of the jtc source tree fails ...
Yep, sorry, mea culpa.
I have broken the build reverting Jean-Frederic's latest patches
map_free - jk_map_free.
I have extended it's idea and prefixed all map_xxx function with
jk namespace.
Regards,
Mladen
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: [VOTE] Tomcat 5.5.4 Stability

2004-11-09 Thread David H. DeWolf

[ ] Alpha
[ ] Beta
[ X ] Stable
A non-binding vote.  I've done a bit of testing and haven't had any issues.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: FW: Building isapi_redirector2.dll Win32 Release

2004-11-09 Thread Derrick Koes

Yes, I get it, but many of us use it.  Any chance we'll get a dll more
recent than March 26th? 


Thanks,
Derrick

-Original Message-
From: Mladen Turk [mailto:[EMAIL PROTECTED] 
Sent: Monday, November 08, 2004 10:50 AM
To: Tomcat Developers List
Subject: Re: FW: Building isapi_redirector2.dll Win32 Release

Derrick Koes wrote:
  
 
 I *may* be able to fix some of the errors with jk_isapi_plugin.c 
 myself, but does anyone know where pcre.h exists?  Yes, I know about 
 M. Turk's dll http://jakarta.apache.org/~mturk/, but I'd like to be 
 able to build the fix myself.


Hi Derrick,

JK2 is officially unsupported.

Regarding your builds...
You will need MSSDK 2003, apr, apr-util, apr-iconv and pcre from
Apache2, as well as J2SDK.
The SDK includes should precede the one from MSVC6.

You see... Too much to maintain.


Regards,
MT.

-
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]



RE: [VOTE] Tomcat 5.5.4 Stability

2004-11-09 Thread Shapira, Yoav

Hi,
I'm also changing my vote to

[ X ] Stable

now that I've had more of a chance to test it over the weekend, including 
running some home-grown apps and their respective stress tests.

(BTW Peter if you're watching this thread, the JMeter monitor thing works 
great!)

Let's run this vote for 24 hours more, until tomorrow (Tuesday, 10 Nov 2004, 
around 1600h GMT), to give others a chance to vote.  I'll post the vote results 
at that time, and make the relevant announcements as needed.

Yoav Shapira http://www.yoavshapira.com


-Original Message-
From: Remy Maucherat [mailto:[EMAIL PROTECTED]
Sent: Tuesday, November 09, 2004 6:42 AM
To: Tomcat Developers List
Subject: Re: [VOTE] Tomcat 5.5.4 Stability

Shapira, Yoav wrote:

Hi,
Tomcat 5.5.4 has been available for about a week now, and tentatively
rated alpha for this time.  Now that people have hopefully had some time
to test it out, let's vote on its stability.

The release passes all our internal tests, and also passes the Servlet
and JSP TCKs.  There have been no serious issues filed against this
release in Bugzilla (I don't think
http://issues.apache.org/bugzilla/show_bug.cgi?id=32081 is a big deal).


More voting would be appreciated. Thanks :)

Rémy


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




This e-mail, including any attachments, is a confidential business 
communication, and may contain information that is confidential, proprietary 
and/or privileged.  This e-mail is intended only for the individual(s) to whom 
it is addressed, and may not be saved, copied, printed, disclosed or used by 
anyone else.  If you are not the(an) intended recipient, please immediately 
delete this e-mail from your computer system and notify the sender.  Thank you.


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



glad jmeter helped

2004-11-09 Thread Peter Lin
haha, glad it helped. I find myself using it quite a bit when I'm
working on my own stuff on tomcat. it's a nice quick way to make sure
the memory usage follows a regular pattern. It it doesn't I start up
OptimizeIt :)

peter


On Tue, 9 Nov 2004 08:46:25 -0500, Shapira, Yoav [EMAIL PROTECTED] wrote:
 
 Hi,
 I'm also changing my vote to
 
 [ X ] Stable
 
 now that I've had more of a chance to test it over the weekend, including 
 running some home-grown apps and their respective stress tests.
 
 (BTW Peter if you're watching this thread, the JMeter monitor thing works 
 great!)
 
 Let's run this vote for 24 hours more, until tomorrow (Tuesday, 10 Nov 2004, 
 around 1600h GMT), to give others a chance to vote.  I'll post the vote 
 results at that time, and make the relevant announcements as needed.
 
 Yoav Shapira http://www.yoavshapira.com


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



DO NOT REPLY [Bug 32130] New: - NullPointerException in FileStore (sessions)

2004-11-09 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=32130.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=32130

NullPointerException in FileStore (sessions)

   Summary: NullPointerException in FileStore (sessions)
   Product: Tomcat 5
   Version: 5.0.28
  Platform: PC
OS/Version: Windows XP
Status: NEW
  Severity: Normal
  Priority: Other
 Component: Catalina:Modules
AssignedTo: [EMAIL PROTECTED]
ReportedBy: [EMAIL PROTECTED]


I get a stacktrace now and then.
See below.

9-nov-2004 21:28:15 org.apache.catalina.core.StandardContext backgroundProcess
WARNING: Unable to perform background process on manager
java.lang.NullPointerException
at org.apache.catalina.session.FileStore.keys(FileStore.java:217)
at org.apache.catalina.session.StoreBase.processExpires(StoreBase.java:
207)
at org.apache.catalina.session.PersistentManagerBase.
backgroundProcess(PersistentManagerBase.java:227)
at org.apache.catalina.core.StandardContext.
backgroundProcess(StandardContext.java:4647)
at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.
processChildren(ContainerBase.java:1619)
at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.
processChildren(ContainerBase.java:1628)
at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.
processChildren(ContainerBase.java:1628)
at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.
run(ContainerBase.java:1608)
at java.lang.Thread.run(Thread.java:534)

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



DO NOT REPLY [Bug 32130] - NullPointerException in FileStore (sessions)

2004-11-09 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=32130.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=32130

NullPointerException in FileStore (sessions)





--- Additional Comments From [EMAIL PROTECTED]  2004-11-09 20:44 ---
I think the problem was, that I emptied my tomcat\work directory.
The method FileStore.directory() does not check if the directory still exists 
when returning a (cached) File object to it.

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



DO NOT REPLY [Bug 32130] - NullPointerException in FileStore (sessions)

2004-11-09 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=32130.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=32130

NullPointerException in FileStore (sessions)

[EMAIL PROTECTED] changed:

   What|Removed |Added

   Keywords||ErrorMessage

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



DO NOT REPLY [Bug 32135] New: - AccessLogValve directory attribute ignores leading slash

2004-11-09 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=32135.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=32135

AccessLogValve directory attribute ignores leading slash

   Summary: AccessLogValve directory attribute ignores leading slash
   Product: Tomcat 5
   Version: 5.0.27
  Platform: PC
OS/Version: Windows XP
Status: NEW
  Severity: Normal
  Priority: Other
 Component: Catalina
AssignedTo: [EMAIL PROTECTED]
ReportedBy: [EMAIL PROTECTED]


The configuration directive:
Valve className=org.apache.catalina.valves.AccessLogValve
directory=/var/www ...

Will log in '/var/www' on Unix but '$TOMCAT_HOME/var/www' on Win32. 

Im note sure what the ideal behaviour is but as now it seems 
inconsistent. My vote would be for the configuration files to use
Unix style path/seperator.

Thanks

Sam

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



Bernhard Kluschat/EZW/EN01 ist außer Haus.

2004-11-09 Thread Bernhard . Kluschat
Ich werde ab  10.11.2004 nicht im Büro sein. Ich kehre zurück am
15.11.2004.

Ich werde Ihre Nachricht nach meiner Rückkehr beantworten.

In dringenden Fällen wenden Sie sich bitte an meinen Kollegen Rolf-Dieter
Gross: Tel.: 02056 / 12-5440
oder erreichen mich unter
Mobil: 0172 745 81 45



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



DO NOT REPLY [Bug 32137] New: - Random 401 responses for Digest - DigestAuthenticator thread un-safe use of MessageDigest

2004-11-09 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=32137.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=32137

Random 401 responses for Digest - DigestAuthenticator thread un-safe use of 
MessageDigest

   Summary: Random 401 responses for Digest - DigestAuthenticator
thread un-safe use of MessageDigest
   Product: Tomcat 5
   Version: 5.0.29
  Platform: Macintosh
OS/Version: MacOS X
Status: NEW
  Severity: Major
  Priority: Other
 Component: Catalina
AssignedTo: [EMAIL PROTECTED]
ReportedBy: [EMAIL PROTECTED]


Static use of java.security.MessageDigest is not thread-safe. A symptom of this 
bug would be random 
401 responses to Digest Authentication challenges. The static declaration:
protected static MessageDigest md5Helper;

The  use of this idiom in the DigestAuthenticator (and RealmBase) class means 
that all threads are 
effectively using the same instance of the MessageDigest. Highly concurrent 
testing showed this defect. 
In reviewing the java docs for MessageDigest, there is nothing that indicates 
that it is thread-safe. 

There are two solutions, either create a wrapper class which synchronizes 
access, or create new 
instances when needed. For performance reasons it would probably be a good idea 
to create a wrapper 
class as creating new instances can be expensive.

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



DO NOT REPLY [Bug 32135] - AccessLogValve directory attribute ignores leading slash

2004-11-09 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=32135.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=32135

AccessLogValve directory attribute ignores leading slash

[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||INVALID



--- Additional Comments From [EMAIL PROTECTED]  2004-11-10 01:24 ---
AccessLogValve asks the JVM is the path provided is absolute. (via
File.isAbsolute()) 

For windows - to be absolute you need to also specify the drive name. So in 
windows:
/var is not absolute but c:/var is.

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



Re: Newest JK commits

2004-11-09 Thread NormW
NormW wrote:
Mladen Turk wrote:
NormW wrote:
Missed a patch perhaps?
A build on Apache 2.1 shows symbols F_GETFL, F_SETFL as undefined and 
a text search through the JTC source tree finds the only references 
in jk_connect.c
Norm

Seems that we are missing header on Netware.
IMO the F_GETFL/F_SETFL are defined inside nks/fsio.h, correct?
I have added the needed header to jk_global.h. Can you check that?
If it still doesn't compile can you figure out the needed header
files.
MT.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
.
Good evening,
 From a 'quick' check, F_GETFL and F_SETFL are in fcntl.h, and can get 
passed the previous error by just adding fcntl.h on its own at the 
same place you did (seems errno.h isn't required at this point, but so 
far I'm just trying a build with 2.1).
However, I now get the following error:

Generating Release\mod_jk_link.opt
Linking Release/mod_jk.nlm
### mwldnlm Linker Error:
#   Undefined symbol: 'jk_map_free'
#   referenced from 'jk_apr_pool_cleanup' in mod_jk.o
#   referenced from 'jk_apr_pool_cleanup' in mod_jk.o
#   referenced from 'jk_apr_pool_cleanup' in mod_jk.o
A text search of the jtc source tree fails to find any reference to 
where this is definded, which from its prefix, I assume is supposed to 
be in there somewhere...
Norm

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
.
So goes another day.
Greetings,
Attached are two diff's that, along with the jk_map_free{} updates now 
let mod_jk build for apache 1.3.33, 2.0.52 and 2.1.

1. The fcntl.h is needed for both apache 1.3 (using CLIB) and 2.x using 
LibC, and there is a fcntl.h accessible in both libraries. The error.h 
proved to be unrequired AFAICT and the patch removes it.

2. The uint32_t appears, AFAICT, only referenced within the Apache2 
build, where most references use apr_uint32_t... so patch 2 to jk_md5.h 
provides an alternate (same) definiton normally exported in the Apache2 
build but only makes this available when not using LIBC, ie when 
building Apache 1.3.

The built nlm's were 'trialed' on a NetWare platform and no problems 
access Tomcat were experienced during a brief test.

Prudence suggests a more experienced NetWare peron might want to check 
these patches over, but for the moment at least, these seem to work.

Norm
jk_global.h
--- jk_global.h.orig2004-11-09 20:17:04.0 +1100
+++ jk_global.h 2004-11-10 10:44:21.0 +1100
@@ -65,14 +65,13 @@
 #include unistd.h
 #if defined(NETWARE)  defined(__NOVELL_LIBC__)
 #include novsock2.h
-#include nks/fsio.h
-#include nks/errno.h
 #define __sys_socket_h__
 #define __netdb_h__
 #define __netinet_in_h__
 #define HAVE_VSNPRINTF
 #define HAVE_SNPRINTF
 #endif
+#include fcntl.h
 #include netdb.h
 #include netinet/in.h
 #include sys/socket.h
jk_md5.h
--- jk_md5.h.orig   2004-11-09 06:24:25.0 +1100
+++ jk_md5.h2004-11-10 10:28:52.0 +1100
@@ -60,8 +60,12 @@
 #ifdef WIN32
 typedef DWORD JK_UINT4;
 #else
+#if defined(NETWARE)  !defined(__NOVELL_LIBC__)
+typedef unsigned long int JK_UINT4;
+#else
 typedef uint32_t JK_UINT4;
 #endif
+#endif
 /* MD5 context. */
 typedef struct
--- jk_md5.h.orig   2004-11-09 06:24:25.0 +1100
+++ jk_md5.h2004-11-10 10:28:52.0 +1100
@@ -60,8 +60,12 @@
 #ifdef WIN32
 typedef DWORD JK_UINT4;
 #else
+#if defined(NETWARE)  !defined(__NOVELL_LIBC__)
+typedef unsigned long int JK_UINT4;
+#else
 typedef uint32_t JK_UINT4;
 #endif
+#endif
 
 /* MD5 context. */
 typedef struct
--- jk_global.h.orig2004-11-09 20:17:04.0 +1100
+++ jk_global.h 2004-11-10 10:44:21.0 +1100
@@ -65,14 +65,13 @@
 #include unistd.h
 #if defined(NETWARE)  defined(__NOVELL_LIBC__)
 #include novsock2.h
-#include nks/fsio.h
-#include nks/errno.h
 #define __sys_socket_h__
 #define __netdb_h__
 #define __netinet_in_h__
 #define HAVE_VSNPRINTF
 #define HAVE_SNPRINTF
 #endif
+#include fcntl.h
 #include netdb.h
 #include netinet/in.h
 #include sys/socket.h

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

Multiple Tomcat Instance Question

2004-11-09 Thread Jess Holle
I have been experimenting with embedding Tomcat except embedding the 
full normal distribution via Bootstrap rather than fiddling with the 
embedded distribution.  A few questions arise from this:

  1. When using multiple Tomcats, e.g. with CATALINA_BASE, etc, does
 one always need separate 'work' directories?
 * With a huge web app with 1000's of JSPs, it is a bit
   obnoxious to have 'n' copies of all of this.  Yes, I could
   pre-populate this via precompilation and copying, but this
   still consumes a lot of disk.
 * If I could share one 'work' directory across all instances,
   would I then have to disable all further JSP compilation to
   avoid multi-process race conditions, or is this all handled?
  2. Are there any guides out there on how to do this sort of embedding?
 * I'm pretty familiar with server.xml, web.xml, etc, etc, and
   the CATALINA_BASE approach with a full deployment seems
   simple enough -- but I'm unsure what I well known/documented
   alternatives I might be missing.
One note on CATALINA_BASE:
   Without a $CATALINA_BASEE/webapps directory any Context XML files
   defining web apps in conf/** seem to be silently ignored.  I don't
   have anything I want to place in the webapps directory, though. 
   This may be a side-effect of me continuing to use the out-of-the-box
   server.xml to this point, which references 'webapps', but it took me
   some time to discover.

Related note on 5.5.x and Context bearing .xml files:
   These now have to have the same name as the web app (at least in
   5.5.3), whereas one used to be able to name them anything at all and
   just change the web app name in the Context element.  Not a big
   deal, but a surprising change.  [I actually ended up using jconsole
   to visually diff between a working Tomcat instance of an older
   version and 5.5.3.]
--
Jess Holle


Questions on mod_jk, session affinity, etc

2004-11-09 Thread Jess Holle
For cases where the session data is too large and/or volatile to 
replicate without a performance penalty and where session affinity is 
thus required, is there any hope/possibility/interest of trying to 
balance the number of active sessions per Tomcat instance (i.e. sending 
new requests to the instance with the fewest active sessions)?

Or is there any possibility of transfering a session from one Tomcat 
instance to another when one gets overloaded -- rather than continually 
replicating every change to the session across all instances?  [This 
would seem to require changes to Tomcat and mod_jk/mod_proxy_ajp, right?]

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


DO NOT REPLY [Bug 32141] New: - memory leak in jk1.2 with tomcat-5.0.27,apache 1.3.31

2004-11-09 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=32141.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=32141

memory leak in jk1.2 with tomcat-5.0.27,apache 1.3.31

   Summary: memory leak in jk1.2 with tomcat-5.0.27,apache 1.3.31
   Product: Tomcat 5
   Version: 5.0.27
  Platform: PC
OS/Version: Windows NT/2K
Status: NEW
  Severity: Normal
  Priority: Other
 Component: Native:JK
AssignedTo: [EMAIL PROTECTED]
ReportedBy: [EMAIL PROTECTED]


env:
OS: Win2k Server SP2
WEB SERVER: Apache 1.3.31
SERVLET CONTAINER: Jakarta-tomcat 5.0.27, JK1.2, OPENSSL 0.9.7
VM: J2sdk1.4.2, startup parameter
= -Xmx256M -Xms256M -XX:NewSize=64M -XX:MaxNewSize=64M

Test case:
- Optimizeit Profiler 6.0
- serve only 1 jsp with no content (no html code / script)
- step: Startup apache and tomcat - make 500 requests - force GC - mark # of 
instance in optimizeit client and take snapshot- make 5000 requests - force 
GC - compare heap content with saved Snapshot(see screen capture)
- no memory leak for same test with JMX Request-Registration disabled

screen shot:

news://news.3home.net/[EMAIL PROTECTED]
news://news.3home.net/[EMAIL PROTECTED]
news://news.3home.net/[EMAIL PROTECTED]

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



Clustering and Load balancing

2004-11-09 Thread Vinayagam
Hi All!

Can any one help me abt clustering and Loadbalancing using Tomcat 5.0/later.

We have an application, Which is run on Tomcat 4.0.

Now we are going to run this application in Tomcat 5.0.

Also we are going to implements the clustering technology to our appl.

So that i need som help, How to do this.

Thanx  Regards
Vinayagam

Re: Clustering and Load balancing

2004-11-09 Thread aly chin


Vinayagam [EMAIL PROTECTED] wrote:Hi All!

Can any one help me abt clustering and Loadbalancing using Tomcat 5.0/later.

We have an application, Which is run on Tomcat 4.0.

Now we are going to run this application in Tomcat 5.0.

Also we are going to implements the clustering technology to our appl.

So that i need som help, How to do this.

Thanx  Regards
Vinayagam




  13823139100   

 

   

 






































-
Do You Yahoo!?
150MP3

1G1000

Re: agradou

2004-11-09 Thread aly chin




[EMAIL PROTECTED] wrote:me diz o queacha?


 ATTACHMENT part 2 application/x-zip-compressed name=:(.zip
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




  13823139100   

 

   

 






































-
Do You Yahoo!?
150MP3

1G1000

Re: Clustering and Load balancing

2004-11-09 Thread Vinayagam
Hi!,
I didn't get understand this language. Can u pls send it as English!
Regards
Vinayagam
- Original Message - 
From: aly chin [EMAIL PROTECTED]
To: Tomcat Developers List [EMAIL PROTECTED]
Sent: Wednesday, November 10, 2004 10:25 AM
Subject: Re: Clustering and Load balancing



Vinayagam [EMAIL PROTECTED] wrote:Hi All!
Can any one help me abt clustering and Loadbalancing using Tomcat 
5.0/later.

We have an application, Which is run on Tomcat 4.0.
Now we are going to run this application in Tomcat 5.0.
Also we are going to implements the clustering technology to our appl.
So that i need som help, How to do this.
Thanx  Regards
Vinayagam

 13823139100





















-
Do You Yahoo!?
150MP3

1G1000 

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


Re: Questions on mod_jk, session affinity, etc

2004-11-09 Thread Sandy McArthur
On Nov 9, 2004, at 10:00 PM, Jess Holle wrote:
is there any hope/possibility/interest of trying to balance the number 
of active sessions per Tomcat instance (i.e. sending new requests to 
the instance with the fewest active sessions)?
We (UF, I cannot claim to represent the tomcat devs) are happy with a 
simple round robin distribution for new requests. We have 8 tomcat 
clones for simple load balancing and given enough users it all evens 
out. We've gutted the existing balancing code in mod_jk because it was 
broken and put in our own more simple algorithm that doesn't do load 
factors. Hopefully the balancing code back ported from the mod_proxy 
efforts will do the trick and we can ditch our own stuff.

Anyway, trying to be too smart in sending new requests to clones with 
the fewest number of sessions would probably create this weird flow 
where new users gravitate to the same clone as a batch of users 
sessions expire.

Even if that isn't the case, it's in our interests to separate new 
sessions between clones. Typically for us the first request a user 
makes after login is the most cpu/time intensive because we need lookup 
extended info about the user and generally setup their session.

--
Sandy McArthur
He who dares not offend cannot be honest.
- Thomas Paine


smime.p7s
Description: S/MIME cryptographic signature


Re: [VOTE] Tomcat 5.5.4 Stability

2004-11-09 Thread Mladen Turk
Shapira, Yoav wrote:
So following the usual criteria, Tomcat 5.5.4 is:
[ ] Alpha
[ ] Beta
[X] Stable
Sorry for the delay.
I just got a new computer, so needed to set everything up and
running.
MT.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]