DO NOT REPLY [Bug 37822] - WebappClassLoader interfering with Catalina core classes

2006-08-27 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
.
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=37822





--- Additional Comments From [EMAIL PROTECTED]  2006-08-27 13:03 ---
Here's another one: http://issues.apache.org/bugzilla/show_bug.cgi?id=39975
(through jasper.runtime.PageContextImpl)

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.

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



DO NOT REPLY [Bug 37356] - Tomcat does not invalidate sessions after session-timeout period has passed.

2006-08-27 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
.
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=37356





--- Additional Comments From [EMAIL PROTECTED]  2006-08-27 13:29 ---
To Remy:

Please, don't do this, or provide an option to switch it on! Long running 
requests are common, like:

1) Downloading large files or items
2) Uploading large files

The session MUST be synchronized, please think about multiple processor 
systems, where parallel requests will be executed within different threads!

I can't see, why you are so ignorant, and why you are insisting on a 
real "stupid" (using our words) insynchronzed solution!

Peter

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.

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



DO NOT REPLY [Bug 39146] - Display JSP code !!!

2006-08-27 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
.
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=39146


[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|REOPENED|RESOLVED
 Resolution||WORKSFORME




--- Additional Comments From [EMAIL PROTECTED]  2006-08-27 14:30 ---
You need to explain how to "see" this then. Of course, you cannot ;)

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.

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



DO NOT REPLY [Bug 40305] - The getSession() method returns invalid session.

2006-08-27 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
.
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=40305


[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||DUPLICATE




--- Additional Comments From [EMAIL PROTECTED]  2006-08-27 14:34 ---
Note that if it gets too convoluted, we really don't care.

*** This bug has been marked as a duplicate of 37356 ***

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.

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



DO NOT REPLY [Bug 37356] - Tomcat does not invalidate sessions after session-timeout period has passed.

2006-08-27 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
.
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=37356


[EMAIL PROTECTED] changed:

   What|Removed |Added

 CC||[EMAIL PROTECTED]
   ||om




--- Additional Comments From [EMAIL PROTECTED]  2006-08-27 14:34 ---
*** Bug 40305 has been marked as a duplicate of this bug. ***

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.

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



svn commit: r437379 - in /tomcat/connectors/trunk/jk/native: apache-1.3/ apache-2.0/ common/ domino/ iis/ isapi/ netscape/ nt_service/

2006-08-27 Thread rjung
Author: rjung
Date: Sun Aug 27 08:06:49 2006
New Revision: 437379

URL: http://svn.apache.org/viewvc?rev=437379&view=rev
Log:
Log deprecated properties.

Modified:
tomcat/connectors/trunk/jk/native/apache-1.3/mod_jk.c
tomcat/connectors/trunk/jk/native/apache-2.0/mod_jk.c
tomcat/connectors/trunk/jk/native/common/jk_map.c
tomcat/connectors/trunk/jk/native/common/jk_map.h
tomcat/connectors/trunk/jk/native/common/jk_uri_worker_map.c
tomcat/connectors/trunk/jk/native/common/jk_util.h
tomcat/connectors/trunk/jk/native/domino/jk_dsapi_plugin.c
tomcat/connectors/trunk/jk/native/iis/jk_isapi_plugin.c
tomcat/connectors/trunk/jk/native/isapi/jk_isapi_plugin.c
tomcat/connectors/trunk/jk/native/netscape/jk_nsapi_plugin.c
tomcat/connectors/trunk/jk/native/nt_service/jk_nt_service.c

Modified: tomcat/connectors/trunk/jk/native/apache-1.3/mod_jk.c
URL: 
http://svn.apache.org/viewvc/tomcat/connectors/trunk/jk/native/apache-1.3/mod_jk.c?rev=437379&r1=437378&r2=437379&view=diff
==
--- tomcat/connectors/trunk/jk/native/apache-1.3/mod_jk.c (original)
+++ tomcat/connectors/trunk/jk/native/apache-1.3/mod_jk.c Sun Aug 27 08:06:49 
2006
@@ -1604,7 +1604,8 @@
 (jk_server_conf_t *) ap_get_module_config(s->module_config,
   &jk_module);
 
-if (jk_map_read_property(conf->worker_properties, line) == JK_FALSE)
+jk_logger_t *l = conf->log ? conf->log : main_log;
+if (jk_map_read_property(conf->worker_properties, line, l) == JK_FALSE)
 return ap_pstrcat(cmd->temp_pool, "Invalid JkWorkerProperty ", line);
 
 return NULL;
@@ -2164,7 +2165,7 @@
 
 /*if(map_alloc(&init_map)) { */
 
-if (!jk_map_read_properties(init_map, conf->worker_file, NULL)) {
+if (!jk_map_read_properties(init_map, conf->worker_file, NULL, conf->log)) 
{
 
 if (jk_map_size(init_map) == 0) {
 ap_log_error(APLOG_MARK, APLOG_EMERG, NULL,

Modified: tomcat/connectors/trunk/jk/native/apache-2.0/mod_jk.c
URL: 
http://svn.apache.org/viewvc/tomcat/connectors/trunk/jk/native/apache-2.0/mod_jk.c?rev=437379&r1=437378&r2=437379&view=diff
==
--- tomcat/connectors/trunk/jk/native/apache-2.0/mod_jk.c (original)
+++ tomcat/connectors/trunk/jk/native/apache-2.0/mod_jk.c Sun Aug 27 08:06:49 
2006
@@ -1635,7 +1635,7 @@
 (jk_server_conf_t *) ap_get_module_config(s->module_config,
   &jk_module);
 
-if (jk_map_read_property(conf->worker_properties, line) == JK_FALSE)
+if (jk_map_read_property(conf->worker_properties, line, conf->log) == 
JK_FALSE)
 return apr_pstrcat(cmd->temp_pool, "Invalid JkWorkerProperty ", line);
 
 return NULL;
@@ -2420,7 +2420,7 @@
 }
 
 /* if(map_alloc(&init_map)) { */
-if (!jk_map_read_properties(init_map, conf->worker_file, NULL)) {
+if (!jk_map_read_properties(init_map, conf->worker_file, NULL, conf->log)) 
{
 if (jk_map_size(init_map) == 0) {
 ap_log_error(APLOG_MARK, APLOG_STARTUP | APLOG_CRIT,
  0, NULL,

Modified: tomcat/connectors/trunk/jk/native/common/jk_map.c
URL: 
http://svn.apache.org/viewvc/tomcat/connectors/trunk/jk/native/common/jk_map.c?rev=437379&r1=437378&r2=437379&view=diff
==
--- tomcat/connectors/trunk/jk/native/common/jk_map.c (original)
+++ tomcat/connectors/trunk/jk/native/common/jk_map.c Sun Aug 27 08:06:49 2006
@@ -25,10 +25,9 @@
 #endif
 
 #include "jk_global.h"
-#include "jk_map.h"
 #include "jk_pool.h"
-#include "jk_map.h"
 #include "jk_util.h"
+#include "jk_map.h"
 
 #define CAPACITY_INC_SIZE (50)
 #define LENGTH_OF_LINE(8192)
@@ -346,7 +345,7 @@
 return rc;
 }
 
-int jk_map_read_property(jk_map_t *m, const char *str)
+int jk_map_read_property(jk_map_t *m, const char *str, jk_logger_t *l)
 {
 int rc = JK_TRUE;
 char buf[LENGTH_OF_LINE + 1];
@@ -365,7 +364,7 @@
 trim(v);
 if (strlen(v) && strlen(prp)) {
 const char *oldv = jk_map_get_string(m, prp, NULL);
-v = jk_map_replace_properties(v, m);
+v = jk_map_replace_properties(m, v);
 if (oldv && jk_is_unique_property(prp) == JK_FALSE) {
 char *tmpv = jk_pool_alloc(&m->p,
strlen(v) + strlen(oldv) + 3);
@@ -383,10 +382,10 @@
 }
 else {
 if (jk_is_deprecated_property(prp)) {
-/* TODO: Log deprecated directive.
- * It would require to pass the jk_log_t
- * to jk_map_ functions.
- */
+jk_log(l, JK_LOG_WARNING,
+   "The at

svn commit: r437381 - in /tomcat/connectors/trunk/jk/native: apache-1.3/mod_jk.c apache-2.0/mod_jk.c common/jk_map.c common/jk_map.h

2006-08-27 Thread rjung
Author: rjung
Date: Sun Aug 27 08:13:11 2006
New Revision: 437381

URL: http://svn.apache.org/viewvc?rev=437381&view=rev
Log:
Implement hierarchical worker configuration via attribute "reference".
Documentation still needed.

Modified:
tomcat/connectors/trunk/jk/native/apache-1.3/mod_jk.c
tomcat/connectors/trunk/jk/native/apache-2.0/mod_jk.c
tomcat/connectors/trunk/jk/native/common/jk_map.c
tomcat/connectors/trunk/jk/native/common/jk_map.h

Modified: tomcat/connectors/trunk/jk/native/apache-1.3/mod_jk.c
URL: 
http://svn.apache.org/viewvc/tomcat/connectors/trunk/jk/native/apache-1.3/mod_jk.c?rev=437381&r1=437380&r2=437381&view=diff
==
--- tomcat/connectors/trunk/jk/native/apache-1.3/mod_jk.c (original)
+++ tomcat/connectors/trunk/jk/native/apache-1.3/mod_jk.c Sun Aug 27 08:13:11 
2006
@@ -2180,6 +2180,10 @@
 ap_add_version_component(JK_EXPOSED_VERSION);
 #endif
 
+if (jk_map_resolve_references(JK_WORKER_NAME_TAG ".", 1, 1) == JK_FALSE) {
+jk_error_exit(APLOG_MARK, APLOG_EMERG, s, p, "Error in resolving 
configuration references");
+}
+
 /* we add the URI->WORKER MAP since workers using AJP14 will feed it */
 worker_env.uri_to_worker = conf->uw_map;
 worker_env.virtual = "*";   /* for now */

Modified: tomcat/connectors/trunk/jk/native/apache-2.0/mod_jk.c
URL: 
http://svn.apache.org/viewvc/tomcat/connectors/trunk/jk/native/apache-2.0/mod_jk.c?rev=437381&r1=437380&r2=437381&view=diff
==
--- tomcat/connectors/trunk/jk/native/apache-2.0/mod_jk.c (original)
+++ tomcat/connectors/trunk/jk/native/apache-2.0/mod_jk.c Sun Aug 27 08:13:11 
2006
@@ -2430,6 +2430,10 @@
 }
 }
 
+if (jk_map_resolve_references(init_map, "worker.", 1, 1, conf->log) == 
JK_FALSE) {
+jk_error_exit(APLOG_MARK, APLOG_EMERG, s, pconf, "Error in resolving 
configuration references");
+}
+
 /* we add the URI->WORKER MAP since workers using AJP14
will feed it */
 worker_env.uri_to_worker = conf->uw_map;

Modified: tomcat/connectors/trunk/jk/native/common/jk_map.c
URL: 
http://svn.apache.org/viewvc/tomcat/connectors/trunk/jk/native/common/jk_map.c?rev=437381&r1=437380&r2=437381&view=diff
==
--- tomcat/connectors/trunk/jk/native/common/jk_map.c (original)
+++ tomcat/connectors/trunk/jk/native/common/jk_map.c Sun Aug 27 08:13:11 2006
@@ -29,8 +29,11 @@
 #include "jk_util.h"
 #include "jk_map.h"
 
-#define CAPACITY_INC_SIZE (50)
-#define LENGTH_OF_LINE(8192)
+#define CAPACITY_INC_SIZE   (50)
+#define LENGTH_OF_LINE  (8192)
+#define JK_MAP_RECURSION(20)
+#define JK_MAP_REFERENCE(".reference")
+#define JK_MAP_REFERENCE_SZ (strlen(JK_MAP_REFERENCE))
 
 #ifdef AS400
 #define CASE_MASK 0xbfbfbfbf
@@ -309,6 +312,27 @@
 return ar;
 }
 
+int jk_map_add(jk_map_t *m, const char *name, const void *value)
+{
+int rc = JK_FALSE;
+
+if (m && name) {
+unsigned int key;
+COMPUTE_KEY_CHECKSUM(name, key)
+map_realloc(m);
+
+if (m->size < m->capacity) {
+m->values[m->size] = value;
+m->names[m->size] = jk_pool_strdup(&m->p, name);
+m->keys[m->size] = key;
+m->size++;
+rc = JK_TRUE;
+}
+}
+
+return rc;
+}
+
 int jk_map_put(jk_map_t *m, const char *name, const void *value, void **old)
 {
 int rc = JK_FALSE;
@@ -330,15 +354,7 @@
 rc = JK_TRUE;
 }
 else {
-map_realloc(m);
-
-if (m->size < m->capacity) {
-m->values[m->size] = value;
-m->names[m->size] = jk_pool_strdup(&m->p, name);
-m->keys[m->size] = key;
-m->size++;
-rc = JK_TRUE;
-}
+rc = jk_map_add(m, name, value);
 }
 }
 
@@ -600,5 +616,104 @@
 }
 }
 
+return rc;
+}
+
+/**
+ *  Resolve references
+ *
+ */
+int jk_map_resolve_references(jk_map_t *m, const char *prefix,
+  int wildcard, int depth, jk_logger_t *l)
+{
+int rc = JK_FALSE;
+
+JK_TRACE_ENTER(l);
+
+if (m && prefix && depth <= JK_MAP_RECURSION) {
+size_t prelen = strlen(prefix);
+unsigned int i;
+rc = JK_TRUE;
+if (JK_IS_DEBUG_LEVEL(l))
+jk_log(l, JK_LOG_DEBUG,
+   "Checking for references with prefix %s with%s wildcard 
(recursion %d)",
+   prefix, wildcard? "" : "out", depth);
+for (i = 0; i < m->size; i++) {
+if (m->values[i] && !strncmp(m->names[i], prefix, prelen)) {
+size_t remain = strlen(m->names[i]) - prelen;
+if ((remain == JK_MAP_REFERENCE_SZ ) || (wildcard && remain > 
JK_MAP_REFERENCE_SZ)) {
+remain = strlen(m->names[i]) - JK_MA

svn commit: r437390 - in /tomcat/connectors/trunk/jk/xdocs: changelog.xml config/workers.xml howto/workers.xml

2006-08-27 Thread rjung
Author: rjung
Date: Sun Aug 27 09:03:01 2006
New Revision: 437390

URL: http://svn.apache.org/viewvc?rev=437390&view=rev
Log:
Add docs for worker atribute "reference".
Update changelog.

Modified:
tomcat/connectors/trunk/jk/xdocs/changelog.xml
tomcat/connectors/trunk/jk/xdocs/config/workers.xml
tomcat/connectors/trunk/jk/xdocs/howto/workers.xml

Modified: tomcat/connectors/trunk/jk/xdocs/changelog.xml
URL: 
http://svn.apache.org/viewvc/tomcat/connectors/trunk/jk/xdocs/changelog.xml?rev=437390&r1=437389&r2=437390&view=diff
==
--- tomcat/connectors/trunk/jk/xdocs/changelog.xml (original)
+++ tomcat/connectors/trunk/jk/xdocs/changelog.xml Sun Aug 27 09:03:01 2006
@@ -25,6 +25,12 @@
   
   
 
+  
+  Implement hierarchical worker configuration via attribute "reference". 
(rjung)
+  
+  
+  Log deprecated properties. (rjung)
+  
   
   IIS: Fix simple_rewrite for the cases where the
   rewritten url is larger then the original one. (mturk)
@@ -65,6 +71,10 @@
   
   Allow building with VS2005 without too many warnings. (mturk)
   
+  
+  Decide by MMN, which piped log API we should use.
+  mod_jk 1.2.18 broke compilation with Apache 1.3 pre 1.3.28. (rjung)
+  
 
   
 

Modified: tomcat/connectors/trunk/jk/xdocs/config/workers.xml
URL: 
http://svn.apache.org/viewvc/tomcat/connectors/trunk/jk/xdocs/config/workers.xml?rev=437390&r1=437389&r2=437390&view=diff
==
--- tomcat/connectors/trunk/jk/xdocs/config/workers.xml (original)
+++ tomcat/connectors/trunk/jk/xdocs/config/workers.xml Sun Aug 27 09:03:01 2006
@@ -521,6 +521,26 @@
 
 
 
+
+This directive allows to copy configurations between workers
+in a hierarchical way. If worker castor sets 
worker.castor.reference=worker.pollux
+then it inherits all properties of pollux, except for the ones that
+are explicitely set for castor.
+
+Please note, that the value of the directive is not only the name of the 
referred worker,
+but the complete prefix including "worker.".
+
+
+This directive is especially useful, if one has a lot of balanced workers in a 
load balancer
+and these workers share most of their properties. You can set all of these 
properties
+in a phantom worker, e.g. using the prefix "worker.template1", and then simply
+reference those common properties in all balanced workers.
+
+
+This feature has been added in jk 1.2.19.
+
+
+
 
 If set to AJP Connector secret keyword, only request with this keyword are 
successfull responding.
 Use request.useSecret="true" and request.secret="secret key 
word" at your tomcat ajp

Modified: tomcat/connectors/trunk/jk/xdocs/howto/workers.xml
URL: 
http://svn.apache.org/viewvc/tomcat/connectors/trunk/jk/xdocs/howto/workers.xml?rev=437390&r1=437389&r2=437390&view=diff
==
--- tomcat/connectors/trunk/jk/xdocs/howto/workers.xml (original)
+++ tomcat/connectors/trunk/jk/xdocs/howto/workers.xml Sun Aug 27 09:03:01 2006
@@ -376,6 +376,70 @@
 
 
 
+
+
+Workers can reference configurations of other workers.
+If worker "x" references worker "y", then it inherits all
+configuration parameters from "y", except for the ones
+that have explicitely been set for "x".
+
+
+
+  # worker toe defines some default settings
+  worker.toe.type=ajp13
+  worker.toe.socket_keepalive=true
+  worker.toe.connect_timeout=1
+  worker.toe.recovery_options=7
+  # workers tic and tac inherit those values
+  worker.tic.reference=worker.toe
+  worker.tac.reference=worker.toe
+
+
+
+Please note, that the reference contains
+the full prefix to the referenced configuration attributes,
+not only the name of the referenced worker.
+
+
+
+References can be nested. Be careful to avoid loops!
+
+References are especially useful, when configuring load balancers.
+Try to understand the following two stage references:
+
+
+
+  # We only use one load balancer
+  worker.list=lb
+  # Let's define some defaults
+  worker.basic.port=8009
+  worker.basic.type=ajp13
+  worker.basic.socket_keepalive=true
+  worker.basic.connect_timeout=1
+  worker.basic.recovery_options=7
+  # And we use them in two groups
+  worker.lb1.domain=dom1
+  worker.lb1.distance=0
+  worker.lb1.reference=worker.basic
+  worker.lb2.domain=dom2
+  worker.lb2.distance=1
+  worker.lb2.reference=worker.basic
+  # Now we configure the load balancer
+  worker.lb.type=lb
+  worker.lb.method=B
+  worker.lb.balanced_workers=w11,w12,w21,w22
+  worker.w11.host=myhost11
+  worker.w11.reference=worker.lb1
+  worker.w12.host=myhost12
+  worker.w12.reference=worker.lb1
+  worker.w21.host=myhost21
+  worker.w21.reference=worker.lb2
+  worker.w22.host=myhost22
+  worker.w22.reference=worker.lb2
+
+
+
+
 
 
 



-
To unsubscribe, e-mail: [

svn commit: r437391 - /tomcat/connectors/trunk/jk/xdocs/config/apache.xml

2006-08-27 Thread rjung
Author: rjung
Date: Sun Aug 27 09:16:10 2006
New Revision: 437391

URL: http://svn.apache.org/viewvc?rev=437391&view=rev
Log:
Add documentaion for JkOptions DisableReuse.

Modified:
tomcat/connectors/trunk/jk/xdocs/config/apache.xml

Modified: tomcat/connectors/trunk/jk/xdocs/config/apache.xml
URL: 
http://svn.apache.org/viewvc/tomcat/connectors/trunk/jk/xdocs/config/apache.xml?rev=437391&r1=437390&r2=437391&view=diff
==
--- tomcat/connectors/trunk/jk/xdocs/config/apache.xml (original)
+++ tomcat/connectors/trunk/jk/xdocs/config/apache.xml Sun Aug 27 09:16:10 2006
@@ -234,7 +234,7 @@
 
 
 
-JkOptions ForwardURICompat, you told mod_jk to send the URI to Tomcat 
normally, 
+JkOptions ForwardURICompat, you ask mod_jk to send the URI to Tomcat 
normally, 
 which is less spec compliant but mod_rewrite compatible, 
 use it for compatibility with Tomcat 3.2.x engines (on by default).
 
@@ -312,7 +312,7 @@
 
 
 
-JkOptions ForwardLocalAddress, you told mod_jk to send the local 
address,
+JkOptions ForwardLocalAddress, you ask mod_jk to send the local address,
 of the Apache web server instead remote client address. This can be used by
 Tomcat remote address valve for allowing connections only from registered 
Apache
 web servers.
@@ -326,11 +326,32 @@
 
 
 
-JkOptions FlushPackets, you told mod_jk to make a flush after each AJP
+JkOptions FlushPackets, you ask mod_jk to make a flush after each AJP
 packet received from Tomcat.
 
   
   JkOptions +FlushPackets
+
+
+
+
+
+
+
+JkOptions DisableReuse, you ask mod_jk to close connections immediately
+after their use. Normally mod_jk uses persistent connections and pools idle
+connections to reuse them, when new requests have to be sent to Tomcat.
+
+
+
+Using this option will have a strong performance penalty for Apache and Tomcat.
+Use this only as a last resort in case of unfixable network problems.
+If a firewall between Apache and Tomcat silently kills idle connections,
+try to use the worker attribute socket_keepalive in combination with an 
appropriate
+TCP keepalive value in your OS.
+
+  
+  JkOptions +DisableReuse
 
 
 



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



svn commit: r437450 - in /tomcat/connectors/trunk/jk/native/common: jk_ajp_common.c jk_connect.h jk_lb_worker.c jk_util.c jk_util.h

2006-08-27 Thread rjung
Author: rjung
Date: Sun Aug 27 13:20:32 2006
New Revision: 437450

URL: http://svn.apache.org/viewvc?rev=437450&view=rev
Log:
Make jk_sleep_def() more useful, needed in the next step.

Modified:
tomcat/connectors/trunk/jk/native/common/jk_ajp_common.c
tomcat/connectors/trunk/jk/native/common/jk_connect.h
tomcat/connectors/trunk/jk/native/common/jk_lb_worker.c
tomcat/connectors/trunk/jk/native/common/jk_util.c
tomcat/connectors/trunk/jk/native/common/jk_util.h

Modified: tomcat/connectors/trunk/jk/native/common/jk_ajp_common.c
URL: 
http://svn.apache.org/viewvc/tomcat/connectors/trunk/jk/native/common/jk_ajp_common.c?rev=437450&r1=437449&r2=437450&view=diff
==
--- tomcat/connectors/trunk/jk/native/common/jk_ajp_common.c (original)
+++ tomcat/connectors/trunk/jk/native/common/jk_ajp_common.c Sun Aug 27 
13:20:32 2006
@@ -35,25 +35,6 @@
 #include "novsock2.h"
 #endif
 
-/* Sleep for 100ms */
-void jk_sleep_def(void)
-{
-#ifdef OS2
-DosSleep(100);
-#elif defined(BEOS)
-snooze(100 * 1000);
-#elif defined(NETWARE)
-delay(100);
-#elif defined(WIN32)
-Sleep(100);
-#else
-struct timeval tv;
-tv.tv_usec = 100 * 1000;
-tv.tv_sec = 0;
-select(0, NULL, NULL, NULL, &tv);
-#endif
-}
-
 const char *response_trans_headers[] = {
 "Content-Type",
 "Content-Language",
@@ -1763,7 +1744,7 @@
"recoverable operation attempt=%d", i);
 /* Check for custom retries */
 if (i >= JK_RETRIES) {
-jk_sleep_def();
+jk_sleep(JK_SLEEP_DEF);
 }
 }
 else {

Modified: tomcat/connectors/trunk/jk/native/common/jk_connect.h
URL: 
http://svn.apache.org/viewvc/tomcat/connectors/trunk/jk/native/common/jk_connect.h?rev=437450&r1=437449&r2=437450&view=diff
==
--- tomcat/connectors/trunk/jk/native/common/jk_connect.h (original)
+++ tomcat/connectors/trunk/jk/native/common/jk_connect.h Sun Aug 27 13:20:32 
2006
@@ -55,8 +55,6 @@
 
 int jk_is_socket_connected(jk_sock_t sd);
 
-void jk_sleep_def(void);
-
 #ifdef __cplusplus
 }
 #endif  /* __cplusplus */

Modified: tomcat/connectors/trunk/jk/native/common/jk_lb_worker.c
URL: 
http://svn.apache.org/viewvc/tomcat/connectors/trunk/jk/native/common/jk_lb_worker.c?rev=437450&r1=437449&r2=437450&view=diff
==
--- tomcat/connectors/trunk/jk/native/common/jk_lb_worker.c (original)
+++ tomcat/connectors/trunk/jk/native/common/jk_lb_worker.c Sun Aug 27 13:20:32 
2006
@@ -756,7 +756,7 @@
  * on each consecutive attempt.
  */
 if (attempt > (int)p->worker->num_of_workers)
-jk_sleep_def();
+jk_sleep(JK_SLEEP_DEF);
 continue;
 }
 if (service_stat == JK_FALSE) {

Modified: tomcat/connectors/trunk/jk/native/common/jk_util.c
URL: 
http://svn.apache.org/viewvc/tomcat/connectors/trunk/jk/native/common/jk_util.c?rev=437450&r1=437449&r2=437450&view=diff
==
--- tomcat/connectors/trunk/jk/native/common/jk_util.c (original)
+++ tomcat/connectors/trunk/jk/native/common/jk_util.c Sun Aug 27 13:20:32 2006
@@ -133,6 +133,25 @@
 
 const char *jk_log_fmt = JK_TIME_FORMAT;
 
+/* Sleep for 100ms */
+void jk_sleep(int ms)
+{
+#ifdef OS2
+DosSleep(ms);
+#elif defined(BEOS)
+snooze(ms * 1000);
+#elif defined(NETWARE)
+delay(ms);
+#elif defined(WIN32)
+Sleep(ms);
+#else
+struct timeval tv;
+tv.tv_usec = ms * 1000;
+tv.tv_sec = 0;
+select(0, NULL, NULL, NULL, &tv);
+#endif
+}
+
 static int set_time_str(char *str, int len)
 {
 time_t t = time(NULL);

Modified: tomcat/connectors/trunk/jk/native/common/jk_util.h
URL: 
http://svn.apache.org/viewvc/tomcat/connectors/trunk/jk/native/common/jk_util.h?rev=437450&r1=437449&r2=437450&view=diff
==
--- tomcat/connectors/trunk/jk/native/common/jk_util.h (original)
+++ tomcat/connectors/trunk/jk/native/common/jk_util.h Sun Aug 27 13:20:32 2006
@@ -30,6 +30,10 @@
 #include "jk_pool.h"
 #include "jk_service.h"
 
+#define JK_SLEEP_DEF (100)
+
+void jk_sleep(int ms);
+
 int jk_parse_log_level(const char *level);
 
 int jk_open_file_logger(jk_logger_t **l, const char *file, int level);



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



svn commit: r437455 - in /tomcat/connectors/trunk/jk/native/common: jk_lb_worker.c jk_lb_worker.h

2006-08-27 Thread rjung
Author: rjung
Date: Sun Aug 27 13:29:08 2006
New Revision: 437455

URL: http://svn.apache.org/viewvc?rev=437455&view=rev
Log:
Reorg lb service method:
- return from method at only one point, so that passing back
  results gets easier
- retry handling was at least strange, should be clearer now
- abort once get_most_suitable_worker only returns NULL

Modified:
tomcat/connectors/trunk/jk/native/common/jk_lb_worker.c
tomcat/connectors/trunk/jk/native/common/jk_lb_worker.h

Modified: tomcat/connectors/trunk/jk/native/common/jk_lb_worker.c
URL: 
http://svn.apache.org/viewvc/tomcat/connectors/trunk/jk/native/common/jk_lb_worker.c?rev=437455&r1=437454&r2=437455&view=diff
==
--- tomcat/connectors/trunk/jk/native/common/jk_lb_worker.c (original)
+++ tomcat/connectors/trunk/jk/native/common/jk_lb_worker.c Sun Aug 27 13:29:08 
2006
@@ -598,9 +598,9 @@
  jk_logger_t *l, int *is_error)
 {
 lb_endpoint_t *p;
-int attempt = 0;
+int attempt = 1;
 int num_of_workers;
-worker_record_t *prec = NULL;
+int rc = -1;
 char *sessionid = NULL;
 
 JK_TRACE_ENTER(l);
@@ -635,26 +635,49 @@
"service sticky_session=%d id='%s'",
p->worker->s->sticky_session, sessionid ? sessionid : "empty");
 
-while (num_of_workers) {
+while (attempt <= num_of_workers && rc == -1) {
 worker_record_t *rec =
 get_most_suitable_worker(p->worker, sessionid, s, l);
-int rc;
 /* Do not reuse previous worker, because
  * that worker already failed.
  */
-if (rec && rec != prec) {
+if (rec) {
+int r;
 int is_service_error = JK_HTTP_OK;
-int service_stat = JK_FALSE;
 jk_endpoint_t *end = NULL;
-
+int retry = 0;
+int retry_wait = JK_LB_MIN_RETRY_WAIT;
 s->jvm_route = rec->r;
-rc = rec->w->get_endpoint(rec->w, &end, l);
 
 if (JK_IS_DEBUG_LEVEL(l))
 jk_log(l, JK_LOG_DEBUG,
"service worker=%s jvm_route=%s",
rec->s->name, s->jvm_route);
-if (rc && end) {
+while ((!(r=rec->w->get_endpoint(rec->w, &end, l)) || !end) && 
(retry < p->worker->s->retries)) {
+retry++;
+retry_wait *=2;
+if (retry_wait > JK_LB_MAX_RETRY_WAIT)
+retry_wait = JK_LB_MAX_RETRY_WAIT;
+if (JK_IS_DEBUG_LEVEL(l))
+jk_log(l, JK_LOG_DEBUG,
+   "could not get free endpoint for worker"
+   " (retry %d, sleeping for %d ms)",
+   retry, retry_wait);
+jk_sleep(retry_wait);
+}
+if (!r || !end) {
+/* If we can not get the endpoint
+ * mark the worker as busy rather then
+ * as in error if the retry number is
+ * greater then the number of retries.
+ */
+rec->s->is_busy = JK_TRUE;
+jk_log(l, JK_LOG_INFO,
+   "could not get free endpoint for worker %s (%d 
retries)",
+   rec->s->name, retry);
+}
+else {
+int service_stat = -1;
 size_t rd = 0;
 size_t wr = 0;
 /* Reset endpoint read and write sizes for
@@ -732,116 +755,92 @@
 rec->s->error_time = 0;
 if (p->worker->lblock == JK_LB_LOCK_PESSIMISTIC)
 jk_shm_unlock();
-JK_TRACE_EXIT(l);
-return JK_TRUE;
-}
-if (p->worker->lblock == JK_LB_LOCK_PESSIMISTIC)
-jk_shm_unlock();
-}
-else {
-/* If we can not get the endpoint
- * mark the worker as busy rather then
- * as in error if the attempt number is
- * greater then the number of retries.
- */
-attempt++;
-if (attempt > p->worker->s->retries) {
-rec->s->is_busy = JK_TRUE;
-num_of_workers = 0;
+rc = JK_TRUE;
 }
-jk_log(l, JK_LOG_INFO,
-   "could not get free endpoint for worker %s (attempt 
%d)",
-   rec->s->name, attempt);
-/* In case of attempt > num of workers sleep for 100 ms
- * on each consecutive attempt.
- */
-if (attempt > (int)p->worker->num_of_workers)
-jk_sleep(JK_SLEEP_DEF);
-continue;
-}
-if (service_stat == JK_FALSE) {
-/*
-* Service failed !!!

DO NOT REPLY [Bug 40306] - mod_jk, POST request bodies are not restored on successful login when using mod_jk

2006-08-27 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
.
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=40306





--- Additional Comments From [EMAIL PROTECTED]  2006-08-27 21:30 ---
Created an attachment (id=18755)
 --> (http://issues.apache.org/bugzilla/attachment.cgi?id=18755&action=view)
ajp/jk patch

Resets the contentLength to -1 on the request so that future calls to
Request.getContentLengthLong() will examine the 'content-length' header and
return the actual content length. 

This occurs when a SavedRequest is restored
(ActionCode.ACTION_REQ_SET_BODY_REPLAY). 

Without resetting this value, the current contentLength equals 0 and POST
parameters are never parsed on the restored SavedRequest.

connectors/jk/java/org/apache/jk/core/MsgContext.java
connectors/jk/java/org/apache/coyote/ajp/AjpAprProcessor.java


-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.

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



DO NOT REPLY [Bug 40306] - mod_jk, POST request bodies are not restored on successful login when using mod_jk

2006-08-27 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
.
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=40306


[EMAIL PROTECTED] changed:

   What|Removed |Added

  Attachment #18755|ajp/jk patch|ajp/jk connector patch
description||




-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.

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



DO NOT REPLY [Bug 40306] - mod_jk, POST request bodies are not restored on successful login when using mod_jk

2006-08-27 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
.
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=40306





--- Additional Comments From [EMAIL PROTECTED]  2006-08-27 21:32 ---
(From update of attachment 18755)
the patch was created using the SVN trunk.


-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.

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



svn commit: r437464 - in /tomcat/connectors/trunk/jk/native/common: jk_lb_worker.c jk_lb_worker.h

2006-08-27 Thread rjung
Author: rjung
Date: Sun Aug 27 14:47:48 2006
New Revision: 437464

URL: http://svn.apache.org/viewvc?rev=437464&view=rev
Log:
Add Apache notes with load balancer results.

Modified:
tomcat/connectors/trunk/jk/native/common/jk_lb_worker.c
tomcat/connectors/trunk/jk/native/common/jk_lb_worker.h

Modified: tomcat/connectors/trunk/jk/native/common/jk_lb_worker.c
URL: 
http://svn.apache.org/viewvc/tomcat/connectors/trunk/jk/native/common/jk_lb_worker.c?rev=437464&r1=437463&r2=437464&view=diff
==
--- tomcat/connectors/trunk/jk/native/common/jk_lb_worker.c (original)
+++ tomcat/connectors/trunk/jk/native/common/jk_lb_worker.c Sun Aug 27 14:47:48 
2006
@@ -599,7 +599,9 @@
 {
 lb_endpoint_t *p;
 int attempt = 1;
+worker_record_t *prec = NULL;
 int num_of_workers;
+int first = 1;
 int rc = -1;
 char *sessionid = NULL;
 
@@ -648,6 +650,7 @@
 int retry = 0;
 int retry_wait = JK_LB_MIN_RETRY_WAIT;
 s->jvm_route = rec->r;
+prec = rec;
 
 if (JK_IS_DEBUG_LEVEL(l))
 jk_log(l, JK_LOG_DEBUG,
@@ -821,6 +824,40 @@
 jk_log(l, JK_LOG_DEBUG,
"recoverable error... will try to recover on other 
worker");
 }
+if (first == 1 && s->add_log_items) {
+first = 0;
+const char **log_names = jk_pool_alloc(s->pool, sizeof(char *) 
* JK_LB_NOTES_COUNT);
+const char **log_values = jk_pool_alloc(s->pool, sizeof(char 
*) * JK_LB_NOTES_COUNT);
+char *buf = jk_pool_alloc(s->pool, sizeof(char *) * 
JK_LB_NOTES_COUNT * JK_LB_MAX_SZ);;
+if (log_names && log_values && buf) {
+log_names[0] = JK_NOTE_LB_FIRST_NAME;
+log_values[0] = prec->s->name;
+snprintf(buf, JK_LB_MAX_SZ, "%" JK_UINT64_T_FMT, 
prec->s->lb_value);
+log_names[1] = JK_NOTE_LB_FIRST_VALUE;
+log_values[1] = buf;
+buf += JK_LB_MAX_SZ;
+snprintf(buf, JK_LB_MAX_SZ, "%" JK_UINT64_T_FMT, 
prec->s->elected);
+log_names[2] = JK_NOTE_LB_FIRST_ACCESSED;
+log_values[2] = buf;
+buf += JK_LB_MAX_SZ;
+snprintf(buf, JK_LB_MAX_SZ, "%" JK_UINT64_T_FMT, 
prec->s->readed);
+log_names[3] = JK_NOTE_LB_FIRST_READ;
+log_values[3] = buf;
+buf += JK_LB_MAX_SZ;
+snprintf(buf, JK_LB_MAX_SZ, "%" JK_UINT64_T_FMT, 
prec->s->transferred);
+log_names[4] = JK_NOTE_LB_FIRST_TRANSFERRED;
+log_values[4] = buf;
+buf += JK_LB_MAX_SZ;
+snprintf(buf, JK_LB_MAX_SZ, "%" JK_UINT32_T_FMT, 
prec->s->errors);
+log_names[5] = JK_NOTE_LB_FIRST_ERRORS;
+log_values[5] = buf;
+buf += JK_LB_MAX_SZ;
+snprintf(buf, JK_LB_MAX_SZ, "%d", prec->s->busy);
+log_names[6] = JK_NOTE_LB_FIRST_BUSY;
+log_values[6] = buf;
+s->add_log_items(s, log_names, log_values, 
JK_LB_NOTES_COUNT);
+}
+}
 }
 else {
 /* NULL record, no more workers left ... */
@@ -837,6 +874,39 @@
 /* Set error to Timeout */
 *is_error = JK_HTTP_SERVER_BUSY;
 rc = JK_FALSE;
+}
+if (prec && s->add_log_items) {
+const char **log_names = jk_pool_alloc(s->pool, sizeof(char *) * 
JK_LB_NOTES_COUNT);
+const char **log_values = jk_pool_alloc(s->pool, sizeof(char *) * 
JK_LB_NOTES_COUNT);
+char *buf = jk_pool_alloc(s->pool, sizeof(char *) * JK_LB_NOTES_COUNT 
* JK_LB_MAX_SZ);;
+if (log_names && log_values && buf) {
+log_names[0] = JK_NOTE_LB_LAST_NAME;
+log_values[0] = prec->s->name;
+snprintf(buf, JK_LB_MAX_SZ, "%" JK_UINT64_T_FMT, 
prec->s->lb_value);
+log_names[1] = JK_NOTE_LB_LAST_VALUE;
+log_values[1] = buf;
+buf += JK_LB_MAX_SZ;
+snprintf(buf, JK_LB_MAX_SZ, "%" JK_UINT64_T_FMT, prec->s->elected);
+log_names[2] = JK_NOTE_LB_LAST_ACCESSED;
+log_values[2] = buf;
+buf += JK_LB_MAX_SZ;
+snprintf(buf, JK_LB_MAX_SZ, "%" JK_UINT64_T_FMT, prec->s->readed);
+log_names[3] = JK_NOTE_LB_LAST_READ;
+log_values[3] = buf;
+buf += JK_LB_MAX_SZ;
+snprintf(buf, JK_LB_MAX_SZ, "%" JK_UINT64_T_FMT, 
prec->s->transferred);
+log_names[4] = JK_NOTE_LB_LAST_TRANSFERRED;
+log_values[4] = buf;
+buf += JK_LB_MAX_SZ;
+snprintf(buf, JK_LB_MAX_SZ, "%" JK_UINT32_T_FMT, prec->s->errors);
+log_names[5] = JK_NOTE_LB_LAST_E

svn commit: r437470 - /tomcat/connectors/trunk/jk/xdocs/config/apache.xml

2006-08-27 Thread rjung
Author: rjung
Date: Sun Aug 27 15:07:42 2006
New Revision: 437470

URL: http://svn.apache.org/viewvc?rev=437470&view=rev
Log:
Add documentation for new Apache notes table entries.

Modified:
tomcat/connectors/trunk/jk/xdocs/config/apache.xml

Modified: tomcat/connectors/trunk/jk/xdocs/config/apache.xml
URL: 
http://svn.apache.org/viewvc/tomcat/connectors/trunk/jk/xdocs/config/apache.xml?rev=437470&r1=437469&r2=437470&view=diff
==
--- tomcat/connectors/trunk/jk/xdocs/config/apache.xml (original)
+++ tomcat/connectors/trunk/jk/xdocs/config/apache.xml Sun Aug 27 15:07:42 2006
@@ -210,6 +210,43 @@
 
 
 
+
+You can also log mod_jk information using the Apache standard module 
mod_log_config.
+The module sets several notes in the Apache httpd notes table.
+Most of them are are only useful in combination with a load balancer worker.
+
+   
+
+
+  Name of the worker 
selected by the URI mapping
+  Type of the worker 
selected by the URI mapping
+  Request duration in 
seconds and microseconds.
+ At the moment only 
available if JkRequestLogFormat is set.
+  Load-Balancer: Name of 
the first worker tried
+  Load-Balancer: Type of 
the first worker tried
+  Load-Balancer: 
Access count for the first worker tried
+  Load-Balancer: Bytes 
read for the first worker tried
+  Load-Balancer: 
Bytes transferred for the first worker tried
+  Load-Balancer: Error 
count for the first worker tried
+  Load-Balancer: Busy 
count for the first worker tried
+  Load-Balancer: Name of 
the last worker tried
+  Load-Balancer: Type of 
the last worker tried
+  Load-Balancer: Access 
count for the last worker tried
+  Load-Balancer: Bytes read 
for the last worker tried
+  Load-Balancer: 
Bytes transferred for the last worker tried
+  Load-Balancer: Error 
count for the last worker tried
+  Load-Balancer: Busy count 
for the last worker tried
+
+
+
+  LogFormat "%h %l %u %t \"%r\" %>s %b %{JK_WORKER_NAME}n 
%{JK_LB_FIRST_NAME}n %{JK_LB_FIRST_BUSY}n %{JK_LB_LAST_NAME}n 
%{JK_LB_LAST_BUSY}n" mod_jk_log
+  CustomLog logs/access_log mod_jk_log
+
+
+
+
+
+
 
 
 



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



svn commit: r437478 - in /tomcat/connectors/trunk/jk/native/common: jk_lb_worker.c jk_lb_worker.h jk_shm.h jk_status.c jk_util.c jk_util.h

2006-08-27 Thread rjung
Author: rjung
Date: Sun Aug 27 16:59:37 2006
New Revision: 437478

URL: http://svn.apache.org/viewvc?rev=437478&view=rev
Log:
Change independant runtime state flags error/recovering/busy to
single scalar with values ok/error/recovering/busy.
Change independant config state flags stopped/disabled to+
single scalar with values active/disabled/stopped.

Modified:
tomcat/connectors/trunk/jk/native/common/jk_lb_worker.c
tomcat/connectors/trunk/jk/native/common/jk_lb_worker.h
tomcat/connectors/trunk/jk/native/common/jk_shm.h
tomcat/connectors/trunk/jk/native/common/jk_status.c
tomcat/connectors/trunk/jk/native/common/jk_util.c
tomcat/connectors/trunk/jk/native/common/jk_util.h

Modified: tomcat/connectors/trunk/jk/native/common/jk_lb_worker.c
URL: 
http://svn.apache.org/viewvc/tomcat/connectors/trunk/jk/native/common/jk_lb_worker.c?rev=437478&r1=437477&r2=437478&view=diff
==
--- tomcat/connectors/trunk/jk/native/common/jk_lb_worker.c (original)
+++ tomcat/connectors/trunk/jk/native/common/jk_lb_worker.c Sun Aug 27 16:59:37 
2006
@@ -39,8 +39,8 @@
  * The load balancing code in this
  */
 
-#define JK_WORKER_IN_ERROR(w) ((w)->in_error_state  && !(w)->is_busy)
-#define JK_WORKER_USABLE(w)   (!(w)->in_error_state && !(w)->is_stopped && 
!(w)->is_disabled && !(w)->is_busy)
+#define JK_WORKER_USABLE(w)   ((w)->state != JK_LB_STATE_ERROR && (w)->state 
!= JK_LB_STATE_BUSY && (w)->activation != JK_LB_ACTIVATION_STOPPED && 
(w)->activation != JK_LB_ACTIVATION_DISABLED)
+#define JK_WORKER_USABLE_STICKY(w)   ((w)->state != JK_LB_STATE_ERROR && 
(w)->activation != JK_LB_ACTIVATION_STOPPED)
 
 struct lb_endpoint
 {
@@ -236,7 +236,7 @@
 
 for (i = 0; i < p->num_of_workers; i++) {
 w = &p->lb_workers[i];
-if (JK_WORKER_IN_ERROR(w->s)) {
+if (w->s->state == JK_LB_STATE_ERROR) {
 elapsed = (int)difftime(now, w->s->error_time);
 if (elapsed <= p->s->recover_wait_time) {
 if (JK_IS_DEBUG_LEVEL(l))
@@ -250,9 +250,7 @@
"worker %s is marked for recovery",
w->s->name);
 w->s->lb_value = curmax;
-w->s->in_recovering = JK_TRUE;
-w->s->in_error_state = JK_FALSE;
-w->s->is_busy = JK_FALSE;
+w->s->state = JK_LB_STATE_RECOVER;
 }
 }
 }
@@ -436,7 +434,7 @@
 candidate = find_best_bydomain(p, name, l);
 }
 if (candidate) {
-if (candidate->s->in_error_state || candidate->s->is_stopped ) {
+if (!JK_WORKER_USABLE_STICKY(candidate->s)) {
 /* We have a worker that is error state or stopped.
  * If it has a redirection set use that redirection worker.
  * This enables to safely remove the member from the
@@ -451,7 +449,7 @@
 uses_domain = 1;
 candidate = find_best_bydomain(p, candidate->s->domain, l);
 }
-if (candidate && (candidate->s->in_error_state || 
candidate->s->is_stopped))
+if (candidate && !JK_WORKER_USABLE_STICKY(candidate->s))
 candidate = NULL;
 }
 }
@@ -503,7 +501,7 @@
 /* No need to find the best worker
  * if there is a single one
  */
-if(!p->lb_workers[0].s->in_error_state && 
!p->lb_workers[0].s->is_stopped) {
+if (JK_WORKER_USABLE_STICKY(p->lb_workers[0].s)) {
 p->lb_workers[0].r = &(p->lb_workers[0].s->jvm_route[0]);
 JK_TRACE_EXIT(l);
 return &p->lb_workers[0];
@@ -674,7 +672,8 @@
  * as in error if the retry number is
  * greater then the number of retries.
  */
-rec->s->is_busy = JK_TRUE;
+if (rec->s->state != JK_LB_STATE_ERROR)
+rec->s->state = JK_LB_STATE_BUSY;
 jk_log(l, JK_LOG_INFO,
"could not get free endpoint for worker %s (%d 
retries)",
rec->s->name, retry);
@@ -743,7 +742,8 @@
 /* When returning the endpoint mark the worker as not busy.
  * We have at least one endpoint free
  */
-rec->s->is_busy = JK_FALSE;
+if (rec->s->state == JK_LB_STATE_BUSY)
+rec->s->state = JK_LB_STATE_OK;
 /* Decrement the busy worker count.
  * Check if the busy was reset to zero by graceful
  * restart of the server.
@@ -753,8 +753,7 @@
 if (p->worker->s->busy)
 p->worker->s->busy--;
 if (service_stat == JK_TRUE) {
-rec->s->in_error_state = JK_FALSE;
-rec->s->in_recovering = JK_FALSE;
+rec->s->state = JK_LB_STATE_OK;
 rec->s->error_time = 0;
 

svn commit: r437480 - in /tomcat/connectors/trunk/jk/xdocs: config/workers.xml howto/workers.xml

2006-08-27 Thread rjung
Author: rjung
Date: Sun Aug 27 17:12:28 2006
New Revision: 437480

URL: http://svn.apache.org/viewvc?rev=437480&view=rev
Log:
Add documentation for the activation directive
(as a replacement of disabled and stopped).

Modified:
tomcat/connectors/trunk/jk/xdocs/config/workers.xml
tomcat/connectors/trunk/jk/xdocs/howto/workers.xml

Modified: tomcat/connectors/trunk/jk/xdocs/config/workers.xml
URL: 
http://svn.apache.org/viewvc/tomcat/connectors/trunk/jk/xdocs/config/workers.xml?rev=437480&r1=437479&r2=437480&view=diff
==
--- tomcat/connectors/trunk/jk/xdocs/config/workers.xml (original)
+++ tomcat/connectors/trunk/jk/xdocs/config/workers.xml Sun Aug 27 17:12:28 2006
@@ -486,7 +486,27 @@
 
 
 
+
+Using this directive, a balanced worker of a load balancer
+can be configured as disabled or stopped. A disabled worker only gets
+requests, which belong to sessions for that worker. A stopped
+worker does not get any requests. Users will loose their sessions,
+unless session replication via clustering is used.
+
+Use d or D to disable and s or S to stop.
+If this directive is not present the deprecated directives
+"disabled" or "stopped" are used.
+
+
+This flag can be changed at runtime using status worker.
+
+
+This feature has been added in jk 1.2.19.
+
+
+
 
+This directive has been deprecated since 1.2.19. See activation 
instead.
 If set to True or 1 the worker will be disabled if member
 of load balancer. This flag can be changed at runtime using status worker.
 
@@ -495,6 +515,7 @@
 
 
 
+This directive has been deprecated since 1.2.19. See activation 
instead.
 If set to True or 1 the worker will be stopped if member
 of load balancer. The flag is needed for stop complete traffic of a sticky 
session
 worker. It is only usefull, when you have a cluster that replicated the 
sessions.

Modified: tomcat/connectors/trunk/jk/xdocs/howto/workers.xml
URL: 
http://svn.apache.org/viewvc/tomcat/connectors/trunk/jk/xdocs/howto/workers.xml?rev=437480&r1=437479&r2=437480&view=diff
==
--- tomcat/connectors/trunk/jk/xdocs/howto/workers.xml (original)
+++ tomcat/connectors/trunk/jk/xdocs/howto/workers.xml Sun Aug 27 17:12:28 2006
@@ -279,7 +279,7 @@
 
 
 With JK 1.2.x, new load-balancing and fault-tolerant support has been added via
-2 new properties, redirect and disabled.
+2 new properties, redirect and activation.
 
 
 
@@ -309,7 +309,7 @@
   worker.worker2.type=ajp13
   worker.worker2.lbfactor=1
   # Disable worker2 for all requests except failover
-  worker.worker2.disabled=True
+  worker.worker2.activation=disabled
   
   # Define the LB worker
   worker.router.type=lb



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



svn commit: r437481 - /tomcat/connectors/trunk/jk/xdocs/changelog.xml

2006-08-27 Thread rjung
Author: rjung
Date: Sun Aug 27 17:18:26 2006
New Revision: 437481

URL: http://svn.apache.org/viewvc?rev=437481&view=rev
Log:
Update changelog.

Modified:
tomcat/connectors/trunk/jk/xdocs/changelog.xml

Modified: tomcat/connectors/trunk/jk/xdocs/changelog.xml
URL: 
http://svn.apache.org/viewvc/tomcat/connectors/trunk/jk/xdocs/changelog.xml?rev=437481&r1=437480&r2=437481&view=diff
==
--- tomcat/connectors/trunk/jk/xdocs/changelog.xml (original)
+++ tomcat/connectors/trunk/jk/xdocs/changelog.xml Sun Aug 27 17:18:26 2006
@@ -26,6 +26,16 @@
   
 
   
+  LB: Combine ok/error/recovering/busy runtime states into a single scalar.
+  LB: Combine active/disabled/stopped configuration states into a single 
scalar.
+  
+  
+  LB: Add several Apache notes to enable standard logging for load 
balancer results.
+  
+  
+  LB: Reorganisation of the main load balancer service loop. (rjung)
+  
+  
   Implement hierarchical worker configuration via attribute "reference". 
(rjung)
   
   



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



DO NOT REPLY [Bug 40306] - mod_jk, POST request bodies are not restored on successful login when using mod_jk

2006-08-27 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
.
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=40306





--- Additional Comments From [EMAIL PROTECTED]  2006-08-28 00:32 ---
Actually, the HTTP connector sets the content length of the request to the saved
body length (which is the right thing to do), although it is a bit hidden.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.

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



svn commit: r437488 - /tomcat/connectors/trunk/jk/xdocs/howto/workers.xml

2006-08-27 Thread rjung
Author: rjung
Date: Sun Aug 27 17:36:21 2006
New Revision: 437488

URL: http://svn.apache.org/viewvc?rev=437488&view=rev
Log:
Correct xml format error.

Modified:
tomcat/connectors/trunk/jk/xdocs/howto/workers.xml

Modified: tomcat/connectors/trunk/jk/xdocs/howto/workers.xml
URL: 
http://svn.apache.org/viewvc/tomcat/connectors/trunk/jk/xdocs/howto/workers.xml?rev=437488&r1=437487&r2=437488&view=diff
==
--- tomcat/connectors/trunk/jk/xdocs/howto/workers.xml (original)
+++ tomcat/connectors/trunk/jk/xdocs/howto/workers.xml Sun Aug 27 17:36:21 2006
@@ -404,6 +404,8 @@
 
 References can be nested. Be careful to avoid loops!
 
+
+
 References are especially useful, when configuring load balancers.
 Try to understand the following two stage references:
 



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



svn commit: r437491 - /tomcat/container/tags/tc4.1.x/TOMCAT_4_1_34/

2006-08-27 Thread markt
Author: markt
Date: Sun Aug 27 18:06:03 2006
New Revision: 437491

URL: http://svn.apache.org/viewvc?rev=437491&view=rev
Log:
Tag 4.1.34

Added:
tomcat/container/tags/tc4.1.x/TOMCAT_4_1_34/
  - copied from r437490, tomcat/container/branches/tc4.1.x/


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



Quality check mod_jk 1.2.19-dev

2006-08-27 Thread Rainer Jung

Hi all,

I applied some bigger changes to mod_jk. The result is available from 
trunk, but also from


http://people.apache.org/~rjung/mod_jk-1.2.19-437488/

Under this URL you can also find the updated docs.

Since we need to decide, if we release Mladens Windows fixes from a 
branch (not including most of my changes), or if we simply release from 
trunk, I would appreciate any tests against trunk.


Feel free to send any observations.

The most important new features:

- Implement hierarchical worker configuration via attribute "reference".
- Load-Balancer: Combine different runtime states and configuration 
states into one runtime state and one configuration state.
- Logging: pass interesting result info as Apache notes, especially for 
load balancer

- Log use of deprecated properties
- All servers use same default log level INFO
- 40107: Rewrite is_socket_connected function. Non blocking socket is 
not used any more.

- Connection no-reuse patch
- Make rewrite_rule_map and log_level as non mandatory directives for 
isapi_redirect.

- Update GUI-handling for jk status worker forms; include auto-update.

Thanks for your valuable time!

Regards,

Rainer


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



svn commit: r437492 - /tomcat/connectors/tags/tc4.1.x/TOMCAT_4_1_34/

2006-08-27 Thread markt
Author: markt
Date: Sun Aug 27 18:06:10 2006
New Revision: 437492

URL: http://svn.apache.org/viewvc?rev=437492&view=rev
Log:
Tag 4.1.34

Added:
tomcat/connectors/tags/tc4.1.x/TOMCAT_4_1_34/
  - copied from r437491, tomcat/connectors/trunk/


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



svn commit: r437493 - /tomcat/jasper/tags/tc4.1.x/TOMCAT_4_1_34/

2006-08-27 Thread markt
Author: markt
Date: Sun Aug 27 18:06:16 2006
New Revision: 437493

URL: http://svn.apache.org/viewvc?rev=437493&view=rev
Log:
Tag 4.1.34

Added:
tomcat/jasper/tags/tc4.1.x/TOMCAT_4_1_34/
  - copied from r437492, tomcat/jasper/branches/tc4.1.x/


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



svn commit: r437494 - /tomcat/servletapi/tags/servlet2.3-jsp1.2-tc4.x/TOMCAT_4_1_34/

2006-08-27 Thread markt
Author: markt
Date: Sun Aug 27 18:06:23 2006
New Revision: 437494

URL: http://svn.apache.org/viewvc?rev=437494&view=rev
Log:
Tag 4.1.34

Added:
tomcat/servletapi/tags/servlet2.3-jsp1.2-tc4.x/TOMCAT_4_1_34/
  - copied from r437493, tomcat/servletapi/branches/servlet2.3-jsp1.2-tc4.x/


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



svn commit: r437495 - /tomcat/container/tags/tc4.1.x/TOMCAT_4_1_34/build.properties.default

2006-08-27 Thread markt
Author: markt
Date: Sun Aug 27 18:10:51 2006
New Revision: 437495

URL: http://svn.apache.org/viewvc?rev=437495&view=rev
Log:
Set the version number

Modified:
tomcat/container/tags/tc4.1.x/TOMCAT_4_1_34/build.properties.default

Modified: tomcat/container/tags/tc4.1.x/TOMCAT_4_1_34/build.properties.default
URL: 
http://svn.apache.org/viewvc/tomcat/container/tags/tc4.1.x/TOMCAT_4_1_34/build.properties.default?rev=437495&r1=437494&r2=437495&view=diff
==
--- tomcat/container/tags/tc4.1.x/TOMCAT_4_1_34/build.properties.default 
(original)
+++ tomcat/container/tags/tc4.1.x/TOMCAT_4_1_34/build.properties.default Sun 
Aug 27 18:10:51 2006
@@ -28,7 +28,7 @@
 #flags.hide=on
 
 #Version number
-version=4.1
+version=4.1.34
 
 #Proxy to download subproject
 #proxy.host=proxy.domain



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



[VOTE] Release Tomcat 4.1.34 as beta

2006-08-27 Thread Mark Thomas
All,

Please vote on releasing Apache Tomcat 4.1.34 as beta.

Download from:
http://tomcat.apache.org/dev/dist/

MD5s:
apache-tomcat-4.1.34-src.tar.gz  3c6aaa47279a33d8e256af620ddaac9b

The vote will run for approximately 72 hours.

If this VOTE passes, a stability vote will be held a suitable period
(at least 2 weeks) after the beta release.

Mark

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



Re: [VOTE] Release Tomcat 4.1.34 as beta

2006-08-27 Thread Mark Thomas
For the record, +1

Mark

Mark Thomas wrote:
> All,
> 
> Please vote on releasing Apache Tomcat 4.1.34 as beta.


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



svn commit: r437521 - in /tomcat/connectors/trunk/jk/java/org/apache: coyote/ajp/AjpAprProcessor.java jk/core/MsgContext.java

2006-08-27 Thread billbarker
Author: billbarker
Date: Sun Aug 27 20:47:52 2006
New Revision: 437521

URL: http://svn.apache.org/viewvc?rev=437521&view=rev
Log:
Fix login replay problem with the AJP/1.3 Connector

Fix for Bug: #40306
Submitted by: Aaron Loucks 

Modified:
tomcat/connectors/trunk/jk/java/org/apache/coyote/ajp/AjpAprProcessor.java
tomcat/connectors/trunk/jk/java/org/apache/jk/core/MsgContext.java

Modified: 
tomcat/connectors/trunk/jk/java/org/apache/coyote/ajp/AjpAprProcessor.java
URL: 
http://svn.apache.org/viewvc/tomcat/connectors/trunk/jk/java/org/apache/coyote/ajp/AjpAprProcessor.java?rev=437521&r1=437520&r2=437521&view=diff
==
--- tomcat/connectors/trunk/jk/java/org/apache/coyote/ajp/AjpAprProcessor.java 
(original)
+++ tomcat/connectors/trunk/jk/java/org/apache/coyote/ajp/AjpAprProcessor.java 
Sun Aug 27 20:47:52 2006
@@ -578,6 +578,7 @@
 
 } else if (actionCode == ActionCode.ACTION_REQ_SET_BODY_REPLAY) {
 
+request.setContentLength(-1); // reset content length
 // Set the given bytes as the content
 ByteChunk bc = (ByteChunk) param;
 bodyBytes.setBytes(bc.getBytes(), bc.getStart(), bc.getLength());

Modified: tomcat/connectors/trunk/jk/java/org/apache/jk/core/MsgContext.java
URL: 
http://svn.apache.org/viewvc/tomcat/connectors/trunk/jk/java/org/apache/jk/core/MsgContext.java?rev=437521&r1=437520&r2=437521&view=diff
==
--- tomcat/connectors/trunk/jk/java/org/apache/jk/core/MsgContext.java 
(original)
+++ tomcat/connectors/trunk/jk/java/org/apache/jk/core/MsgContext.java Sun Aug 
27 20:47:52 2006
@@ -351,6 +351,7 @@
 } else if ( actionCode == ActionCode.ACTION_REQ_SET_BODY_REPLAY ) {
 if( log.isTraceEnabled() )
 log.trace("Replay ");
+req.setContentLength(-1); // reset so re-read
 ByteChunk bc = (ByteChunk)param;
 jkIS.setReplay(bc);
 }



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



DO NOT REPLY [Bug 40306] - mod_jk, POST request bodies are not restored on successful login when using mod_jk

2006-08-27 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
.
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=40306


[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||FIXED




--- Additional Comments From [EMAIL PROTECTED]  2006-08-28 03:47 ---
Patch applied to SVN trunk.  

Thanks much!

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.

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



svn commit: r437530 - in /tomcat/tc6.0.x/trunk/java/org/apache: coyote/ajp/AjpAprProcessor.java jk/core/MsgContext.java

2006-08-27 Thread billbarker
Author: billbarker
Date: Sun Aug 27 21:49:31 2006
New Revision: 437530

URL: http://svn.apache.org/viewvc?rev=437530&view=rev
Log:
Porting fix for BZ #40306

Modified:
tomcat/tc6.0.x/trunk/java/org/apache/coyote/ajp/AjpAprProcessor.java
tomcat/tc6.0.x/trunk/java/org/apache/jk/core/MsgContext.java

Modified: tomcat/tc6.0.x/trunk/java/org/apache/coyote/ajp/AjpAprProcessor.java
URL: 
http://svn.apache.org/viewvc/tomcat/tc6.0.x/trunk/java/org/apache/coyote/ajp/AjpAprProcessor.java?rev=437530&r1=437529&r2=437530&view=diff
==
--- tomcat/tc6.0.x/trunk/java/org/apache/coyote/ajp/AjpAprProcessor.java 
(original)
+++ tomcat/tc6.0.x/trunk/java/org/apache/coyote/ajp/AjpAprProcessor.java Sun 
Aug 27 21:49:31 2006
@@ -571,6 +571,7 @@
 } else if (actionCode == ActionCode.ACTION_REQ_SET_BODY_REPLAY) {
 
 // Set the given bytes as the content
+request.setContentLength(-1); // reset content length
 ByteChunk bc = (ByteChunk) param;
 bodyBytes.setBytes(bc.getBytes(), bc.getStart(), bc.getLength());
 first = false;

Modified: tomcat/tc6.0.x/trunk/java/org/apache/jk/core/MsgContext.java
URL: 
http://svn.apache.org/viewvc/tomcat/tc6.0.x/trunk/java/org/apache/jk/core/MsgContext.java?rev=437530&r1=437529&r2=437530&view=diff
==
--- tomcat/tc6.0.x/trunk/java/org/apache/jk/core/MsgContext.java (original)
+++ tomcat/tc6.0.x/trunk/java/org/apache/jk/core/MsgContext.java Sun Aug 27 
21:49:31 2006
@@ -351,6 +351,7 @@
 } else if ( actionCode == ActionCode.ACTION_REQ_SET_BODY_REPLAY ) {
 if( log.isTraceEnabled() )
 log.trace("Replay ");
+req.setContentLength(-1); // reset content length
 ByteChunk bc = (ByteChunk)param;
 jkIS.setReplay(bc);
 }



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



Bug report for Tomcat 4 [2006/08/27]

2006-08-27 Thread bugzilla
+---+
| Bugzilla Bug ID   |
| +-+
| | Status: UNC=Unconfirmed NEW=New ASS=Assigned|
| | OPN=ReopenedVER=Verified(Skipped Closed/Resolved)   |
| |   +-+
| |   | Severity: BLK=Blocker CRI=CriticalMAJ=Major |
| |   |   MIN=Minor   NOR=Normal  ENH=Enhancement   |
| |   |   +-+
| |   |   | Date Posted |
| |   |   |  +--+
| |   |   |  | Description  |
| |   |   |  |  |
| 3839|Opn|Enh|2001-09-26|Problem bookmarking login page|
| 4227|Opn|Enh|2001-10-17|Invalid CGI path  |
| 5329|New|Enh|2001-12-08|NT Service exits startup before Tomcat is finished|
| 5795|New|Enh|2002-01-10|Catalina Shutdown relies on localhost causing prob|
| 5829|New|Enh|2002-01-13|StandardManager needs to cope with sessions throwi|
| 5985|New|Enh|2002-01-23|Tomcat should perform a more restrictive validatio|
| 6600|Opn|Enh|2002-02-20|enodeURL adds 'jsession' when 'isRequestedSessionI|
| 6614|New|Enh|2002-02-21|Have Bootstrap and StandardClassLoader use the sam|
| 6671|New|Enh|2002-02-25|Simple custom tag example uses old declaration sty|
| 7043|New|Enh|2002-03-12|database user and password for JDBC Based Store   |
| 7374|New|Enh|2002-03-22|Apache Tomcat/4.0.1 message on standard output|
| 7676|New|Enh|2002-04-02|Allow name property to use match experssions in  without className in server.xml produces N|
|11069|Opn|Enh|2002-07-23|Tomcat not flag error if tld is outside of /WEB-IN|
|11129|New|Enh|2002-07-24|New valve for putting the sessionIDs in the reques|
|11248|New|Enh|2002-07-29|DefaultServlet doesn't send expires header|
|11754|Opn|Enh|2002-08-15|Synchronous shutdown script - shutdown.sh should w|
|12069|New|Enh|2002-08-27|Creation of more HttpSession objects for one previ|
|12658|New|Enh|2002-09-15|a proxy host and port at the  element level |
|12766|New|Enh|2002-09-18|Tomcat should use tld files in /WEB-INF/ over vers|
|13309|Opn|Enh|2002-10-04|Catalina calls System.exit()  |
|13634|New|Enh|2002-10-15|Allowing system properties to be substituted in co|
|13689|Opn|Enh|2002-10-16|Classloader paths for 'Common' classes and librari|
|13731|New|Enh|2002-10-17|Final request, response, session and other variabl|
|13941|New|Enh|2002-10-24|reload is VERY slow   |
|13965|New|Enh|2002-10-25|Catalina.sh correction request for Tru64 Unix |
|14097|New|Enh|2002-10-30|hardcoded registry value for vm lets tomcat servic|
|14416|New|Enh|2002-11-10|blank tag name in TLD cause NullPointerException  |
|14635|New|Enh|2002-11-18|Should be possible not to have -MM-DD in log f|
|14766|New|Enh|2002-11-22|Redirect Vavle|
|14993|New|Enh|2002-12-02|Possible obselete synchronized declaration|
|15115|New|Enh|2002-12-05|correct docs... XML parser *cannot* be overridden |
|15417|Opn|Enh|2002-12-16|Add port for forced compilation of JSP pages  |
|15688|New|Enh|2002-12-27|full-qualified names instead of imports   |
|15941|New|Enh|2003-01-10|Expose rootCause exceptions at deeper levels  |
|16294|New|Enh|2003-01-21|Configurable URL Decoding.|
|16357|New|Enh|2003-01-23|"connection timeout reached"  |
|16531|New|Enh|2003-01-29|Updating already deployed ".war" files in a single|
|16579|New|Enh|2003-01-30|documentation page layout/style breaks wrapping to|
|16596|New|Enh|2003-01-30|option for disabling log rotation |
|17070|New|Enh|2003-02-14|The Catalina Ant tasks do not allow for 'reusable'|
|17146|New|Enh|2003-02-18|Simplify build.xml using 

Bug report for Tomcat 3 [2006/08/27]

2006-08-27 Thread bugzilla
+---+
| Bugzilla Bug ID   |
| +-+
| | Status: UNC=Unconfirmed NEW=New ASS=Assigned|
| | OPN=ReopenedVER=Verified(Skipped Closed/Resolved)   |
| |   +-+
| |   | Severity: BLK=Blocker CRI=CriticalMAJ=Major |
| |   |   MIN=Minor   NOR=Normal  ENH=Enhancement   |
| |   |   +-+
| |   |   | Date Posted |
| |   |   |  +--+
| |   |   |  | Description  |
| |   |   |  |  |
| 2350|Ver|Nor|2001-06-27|ServletConfig.getInitParameter() requires url-patt|
| 2478|Opn|Cri|2001-07-06|Passing Session variables between JSP's and Servle|
| 4551|Opn|Nor|2001-10-31|Ctx( /tt01 ): IOException in: R( /tt01 + /com/abc/|
| 4980|New|Min|2001-11-20|Startup message indicates incorrect log file  |
| 4994|New|Nor|2001-11-21|Tomcat needs a mechanism for clean and certain shu|
| 5064|New|Cri|2001-11-25|Socket write error when include files is more than|
| 5108|New|Maj|2001-11-26|Docs for Tomcat 3.2.x appear to be for Tomcat 3.3 |
| 5137|New|Nor|2001-11-27|Null pointer in class loader after attempting to r|
| 5160|Unc|Maj|2001-11-28|'IllegalStateException'   |
| 5331|New|Nor|2001-12-09|getPathInfo vs URL normalization  |
| 5510|New|Blk|2001-12-19|How to call ejb deployed in JBoss from Tomcat serv|
| 5756|New|Nor|2002-01-08|jspc.bat exits with wrong ERRORLEVEL  |
| 5797|New|Nor|2002-01-10|UnCatched ? StringIndexOutOfBoundsException: Strin|
| 6027|New|Maj|2002-01-25|Tomcat  Automatically shuts down as service   |
| 6168|New|Blk|2002-02-01|IllegalStateException |
| 6451|New|Cri|2002-02-14|Stackoverflow |
| 6478|New|Enh|2002-02-14|Default Tomcat Encoding   |
| 6488|Ver|Maj|2002-02-15|Error: 304. Apparent bug in default ErrorHandler c|
| 6648|New|Nor|2002-02-25|jakarta-servletapi build with java 1.4 javadoc err|
| 6989|New|Maj|2002-03-08|Unable to read tld file during parallel JSP compil|
| 7013|New|Cri|2002-03-10|Entering a servlet path with non-ISO8859-1 charact|
| 7227|New|Nor|2002-03-19| directive don't work |
| 7626|New|Nor|2002-03-29|classloader not working properly  |
| 7652|New|Cri|2002-04-01|Tomcat stalls periodically|
| 7785|New|Blk|2002-04-06|tomcat bug in context reloading   |
| 7863|New|Maj|2002-04-09|I have a problem when running Tomcat with IIS |
| 8187|New|Cri|2002-04-17|Errors when Tomcat used with MS Access database   |
| 8239|New|Cri|2002-04-18|Resource temporary unavailable|
| 8263|New|Cri|2002-04-18|url-pattern easy to circumvent|
| 9250|New|Maj|2002-05-20|outOfMemoryError  |
| 9367|New|Maj|2002-05-23|HttpSessionBindingEvent not thrown for HttpSession|
| 9390|New|Nor|2002-05-24|jasper compilation error in tomcat|
| 9480|New|Nor|2002-05-29|Data connection pooling   |
| 9607|New|Maj|2002-06-04|precompile JSP|
| 9737|Ver|Nor|2002-06-10|ArrayIndexOutOfBoundsException when sending just p|
|10047|New|Cri|2002-06-20|IllegalStateException |
|10202|New|Maj|2002-06-25|Tomcat is not responding in time  |
|10357|Unc|Blk|2002-06-30|java.lang.IllegalArgumentException: Short Read|
|10406|New|Cri|2002-07-02|IllegalStateException |
|11087|New|Blk|2002-07-23|IllegalStateException |
|11286|New|Maj|2002-07-30|Tomcat threads not respond if increase JVM size   |
|11466|New|Nor|2002-08-05|ContextManager: SocketException reading request   |
|12156|New|Cri|2002-08-29|Apache and Tomcat 3.3.1 Interworking problem  |
|12194|New|Maj|2002-08-30|Tomcat does not send WWW-Authenticate header  |
|12852|New|Nor|2002-09-20|May be error in _jspService() -> out.flushBuffers(|
|14386|New|Maj|2002-11-08|Date headers corrupted using setDateHeader|
|15632|New|Nor|2002-12-23|Problem with the Tomcat Sessions Parameter on URL |
|16363|New|Cri|2003-01-23|Stack Overflow accessing compiled JSP - Tomcat 3.2|
|17915|New|Maj|2003-03-12|Jasper ignores manifest classpath |
|19114|New|Nor|2003-04-17|RequestDispatcherImpl does not set root cause exce|
|19143|New|Nor|2003-04-18|if TOMCAT_INSTALL differs from TOMCAT_HOME -sequri|
|20238|New|Maj|2003

Bug report for Watchdog [2006/08/27]

2006-08-27 Thread bugzilla
+---+
| Bugzilla Bug ID   |
| +-+
| | Status: UNC=Unconfirmed NEW=New ASS=Assigned|
| | OPN=ReopenedVER=Verified(Skipped Closed/Resolved)   |
| |   +-+
| |   | Severity: BLK=Blocker CRI=CriticalMAJ=Major |
| |   |   MIN=Minor   NOR=Normal  ENH=Enhancement   |
| |   |   +-+
| |   |   | Date Posted |
| |   |   |  +--+
| |   |   |  | Description  |
| |   |   |  |  |
|  278|Unc|Nor|2000-12-04|Bug in GetParameterValuesTestServlet.java file Bug|
|  279|Unc|Nor|2000-12-04|Logical Error in GetParameterValuesTestServlet Bug|
|  469|Unc|Nor|2001-01-17|in example-taglib.tld "urn" should be "uri" BugRat|
|  470|Unc|Nor|2001-01-17|FAIL positiveForward.jsp and positiveInclude.jsp B|
| 9634|New|Enh|2002-06-05|No tests exist for ServletContext.getResourcePaths|
|10703|New|Enh|2002-07-11|Need to test getRequestURI after RequestDispatcher|
|11336|New|Enh|2002-07-31|Test wrapped path methods with RD.foward()|
|11663|New|Maj|2002-08-13|JSP precompile tests rely on Jasper specific behav|
|11664|New|Maj|2002-08-13|A sweep is needed of all Watchdog 4.0 tag librarie|
|11665|New|Maj|2002-08-13|ServletToJSPErrorPageTest and ServletToServletErro|
|11666|New|Maj|2002-08-13|SetBufferSize_1TestServlet is invalid.|
|14004|New|Maj|2002-10-28|Incorrent behaviour of all attribute-related lifec|
|15504|New|Nor|2002-12-18|JSP positiveGetValues test relies on order preserv|
|24649|New|Nor|2003-11-12|getRemoteHost fails when agent has uppercase chara|
|29398|New|Nor|2004-06-04|Update site and note current status   |
+-+---+---+--+--+
| Total   15 bugs   |
+---+

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



Bug report for Tomcat 5 [2006/08/27]

2006-08-27 Thread bugzilla
+---+
| Bugzilla Bug ID   |
| +-+
| | Status: UNC=Unconfirmed NEW=New ASS=Assigned|
| | OPN=ReopenedVER=Verified(Skipped Closed/Resolved)   |
| |   +-+
| |   | Severity: BLK=Blocker CRI=CriticalMAJ=Major |
| |   |   MIN=Minor   NOR=Normal  ENH=Enhancement   |
| |   |   +-+
| |   |   | Date Posted |
| |   |   |  +--+
| |   |   |  | Description  |
| |   |   |  |  |
|20268|Inf|Min|2003-05-27|Tomcat 5.0.2 takes 100% CPU   |
|22679|Ver|Enh|2003-08-24|how to access ssl session ID out of tomcat to prev|
|28039|New|Enh|2004-03-30|Cluster Support for SingleSignOn  |
|28634|Ass|Enh|2004-04-27|Extend StandardManager/StandardSession for DeltaMa|
|29091|Opn|Nor|2004-05-19|Non-ascii characters are not handled correctly... |
|29160|Ver|Enh|2004-05-23|precompile problem: _jspx_meth_* (javax.servlet.js|
|29494|Inf|Enh|2004-06-10|No way to set PATH when running as a service on Wi|
|30241|Ver|Enh|2004-07-21|Enhance build script to use branch argument when c|
|30489|Opn|Cri|2004-08-05|removeAttribute: Session already invalidated  |
|30762|Opn|Nor|2004-08-19|destroy method in servlet called before contextDes|
|31339|Inf|Maj|2004-09-21|admin app throwing struts exceptions  |
|32180|New|Nor|2004-11-11|EL functions are executed in privileged context   |
|32569|Ass|Nor|2004-12-07|ServletContextListener will not die   |
|32593|Inf|Maj|2004-12-09|Server (Apache 2.0.48) reached MaxClients setting |
|32754|Inf|Nor|2004-12-17|Can't modify thread configuration attributes of AJ|
|33262|Inf|Nor|2005-01-27|Service Manager autostart should check for adminis|
|33356|Inf|Maj|2005-02-02|Incorrect parsing of tag attributes   |
|33407|Inf|Nor|2005-02-05|\$ is quoted even with el-ignored=true|
|33453|Opn|Enh|2005-02-08|Jasper should recompile JSP files whose datestamps|
|33650|Inf|Enh|2005-02-19|Jasper performance for multiple files processing  |
|33671|Opn|Enh|2005-02-21|Manual Windows service installation with custom na|
|33806|Opn|Min|2005-03-02|Session tracking using URL rewriting fails, if cli|
|34076|Inf|Nor|2005-03-18|overriding content.xml docBase with manager webapp|
|34319|New|Nor|2005-04-06|StoreBase.processExpires() is very inefficient|
|34396|Inf|   |2005-04-11|security exception using datasource in|
|35635|New|Nor|2005-07-06|Tomcat service does not log startup error messages|
|35746|Inf|Nor|2005-07-14|session manager should be immune to system clock t|
|35765|New|Enh|2005-07-16|make the SSL cipher config in server.xml fail safe|
|35827|Inf|Blk|2005-07-22|Problem with POST forms with jk connector/IIS/Wind|
|35835|Inf|Nor|2005-07-23|Submitting changes through admin app corrupts the |
|35869|New|Enh|2005-07-26|Can't run as a service on Windows Server 2003 64-B|
|35914|Unc|Nor|2005-07-28|Problem to create and delete Access Log Valve many|
|35943|New|Maj|2005-07-30|request.getRemoteUser() is not getting populated o|
|35968|New|Nor|2005-08-02|Please make  Environment Entry Properties Value in|
|36121|Inf|Maj|2005-08-10|Including JSP's changes working directory |
|36133|Inf|Enh|2005-08-10|Support JSS SSL implementation|
|36153|Inf|Nor|2005-08-12|html:form action is blank |
|36169|New|Enh|2005-08-12|[PATCH] Enable chunked encoding for IIS JK connect|
|36179|Inf|Nor|2005-08-14|Error getting setter for Tag Attribute|
|36204|Inf|Nor|2005-08-16|Webapp unable to pick the Class by the shared clas|
|36247|Ass|Nor|2005-08-18|Jasper  throws Illega|
|36362|New|Enh|2005-08-25|missing check for Java reserved keywords in tag fi|
|36365|New|Blk|2005-08-26|IIS5.1-isapi_redirector.dll (1.2.14) plugin issue |
|36470|Inf|Nor|2005-09-02|Connections not release on encountering exception.|
|36540|Inf|Nor|2005-09-07|pooled cluster replication does not seem ensure sy|
|36549|Inf|Nor|2005-09-07|Tomcat Stopped with HotSpot libjvm error  |
|36569|Inf|Nor|2005-09-09|Redirects produce illegal URL's   |
|36663|Inf|Nor|2005-09-15|setclasspath.bat requires that JAVA_HOME points to|
|36837|Inf|Enh|2005-09-28|Looking for ProxyHandler implementation of Http re|
|36853|Inf|Nor|2005-09-29|https |
|36922|Inf|Min|2005-10-04|setup.sh file mis-advertised and missing  |
|36923|New|Nor|2005-10-05|De