DO NOT REPLY [Bug 41684] - Some URIs need to be adapted to the changed layout of the stock webapps, some files are missing

2007-03-11 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=41684


[EMAIL PROTECTED] changed:

   What|Removed |Added

 CC||[EMAIL PROTECTED]




--- Additional Comments From [EMAIL PROTECTED]  2007-03-11 03:32 ---
*** Bug 41809 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]



DO NOT REPLY [Bug 41809] - some jsp-examples are broken

2007-03-11 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=41809


[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||DUPLICATE




--- Additional Comments From [EMAIL PROTECTED]  2007-03-11 03:32 ---


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

-- 
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: r516900 - /tomcat/connectors/trunk/jk/xdocs/miscellaneous/changelog.xml

2007-03-11 Thread rjung
Author: rjung
Date: Sun Mar 11 06:28:47 2007
New Revision: 516900

URL: http://svn.apache.org/viewvc?view=rev&rev=516900
Log:
Add changelog entries for r516561 and r516564 (both concerning changes to log 
messages).

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

Modified: tomcat/connectors/trunk/jk/xdocs/miscellaneous/changelog.xml
URL: 
http://svn.apache.org/viewvc/tomcat/connectors/trunk/jk/xdocs/miscellaneous/changelog.xml?view=diff&rev=516900&r1=516899&r2=516900
==
--- tomcat/connectors/trunk/jk/xdocs/miscellaneous/changelog.xml (original)
+++ tomcat/connectors/trunk/jk/xdocs/miscellaneous/changelog.xml Sun Mar 11 
06:28:47 2007
@@ -26,6 +26,13 @@
   
   
 
+  
+  Enhance log messages for failures when parsing attribute maps. (rjung)
+  
+  
+Correct log message during worker initialization, in case remote host 
could not be
+resolved. We logged the default host name "localhost" instead of the 
configured one. (rjung)
+  
   
 41770: Fix the second part of the bug: local_worker and 
local_worker_only
 is missing from the list of deprecated attributes (and not supported 
either), so prevents



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



Draft Board report for March 2007

2007-03-11 Thread Yoav Shapira

Hola,
We have to submit a report to the Board this month.  Here's a draft,
please comment if you've got changes or additions.  I'd like to send
it in around mid-week.

Thanks,

Yoav

--- Begin Draft ---
Apache Tomcat Board Report, March 2007

Summary: Tomcat is chugging along, with significant development
milestones achieved this quarter, and no issues requiring Board
attention.

Community:
- We've voted in one new committer, Fabien Carrion, whose iCLA will
hopefully be recorded this week.

- We've voted in one new PMC member, Rainer Jung, as ACKed by the
Board a couple of days ago.

- We've restored one committer, Guenter Knauf, from inactive/emeritus
status, back to active status, after re-verifying his iCLA and PGP
key, and running an informal vote on the issue.

Development:
- We released the first stable version of Tomcat 6, version 6.0.10,
after much testing and iteration.  We feel very good about the
quality, scalability, and performance of the release.  Apparently it's
pretty popular, too, judging by the various traffic spikes starting
with the release announcement:
http://people.apache.org/~vgritsenko/stats/days-trend.html

- We released a couple of versions of Tomcat 5.5, including a stable 5.5.23.

- We released a couple of versions of the Tomcat Connectors, including
mod_jk, 1.2.19, 1.2.20, 1.2.21.  1.2.21 is currently the latest stable
and best release.

- I personally am very happy with the distributed nature of our
release management, in terms of how different people are cutting
releases and can back the designated RM for each branch if need be.

- We've worked hard to improve Tomcat-related security information on
the web site, creating a new set of summary pages using a similar
model to httpd's: http://tomcat.apache.org/security.html is a work in
progress, but a great improvement over the previous (lack of) data, we
think.

- We've also worked to improve integration and co-operation with the
Apache Security Team, triaging and communicating jointly on issues,
and educating some of the newer Tomcat PMC members about the process.

- We've also been working more closely with downstream packagers of
Tomcat for Linux, specifically Gentoo, and getting their early
feedback on each release as tested in their environment.  I think
that's a cool process improvement, just worth noting that it's been
working well.

--- End Draft ---

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



DO NOT REPLY [Bug 41757] - JK Apache HowTo documentation doesn't explain the --enable-prefork option of the configure script

2007-03-11 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=41757


[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||FIXED




--- Additional Comments From [EMAIL PROTECTED]  2007-03-11 07:04 ---
Fixed for the next version (1.2.22.1 or 1.2.23). It will be contained in the
documentation page webserver_howto/apache.html.

Thanks for pointing this out.

-- 
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 41757] - JK Apache HowTo documentation doesn't explain the --enable-prefork option of the configure script

2007-03-11 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=41757





--- Additional Comments From [EMAIL PROTECTED]  2007-03-11 07:05 ---
Sorry, I meant 1.2.21.1 or 1.2.22.

-- 
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: r516903 - in /tomcat/connectors/trunk/jk/xdocs: miscellaneous/changelog.xml webserver_howto/apache.xml

2007-03-11 Thread rjung
Author: rjung
Date: Sun Mar 11 07:07:27 2007
New Revision: 516903

URL: http://svn.apache.org/viewvc?view=rev&rev=516903
Log:
Fix Bugzilla 41757: Document the "--enable-prefork" flag of configure. 

Modified:
tomcat/connectors/trunk/jk/xdocs/miscellaneous/changelog.xml
tomcat/connectors/trunk/jk/xdocs/webserver_howto/apache.xml

Modified: tomcat/connectors/trunk/jk/xdocs/miscellaneous/changelog.xml
URL: 
http://svn.apache.org/viewvc/tomcat/connectors/trunk/jk/xdocs/miscellaneous/changelog.xml?view=diff&rev=516903&r1=516902&r2=516903
==
--- tomcat/connectors/trunk/jk/xdocs/miscellaneous/changelog.xml (original)
+++ tomcat/connectors/trunk/jk/xdocs/miscellaneous/changelog.xml Sun Mar 11 
07:07:27 2007
@@ -26,6 +26,9 @@
   
   
 
+  
+41757: Document the "--enable-prefork" flag of configure. 
(rjung)
+  
   
   Enhance log messages for failures when parsing attribute maps. (rjung)
   

Modified: tomcat/connectors/trunk/jk/xdocs/webserver_howto/apache.xml
URL: 
http://svn.apache.org/viewvc/tomcat/connectors/trunk/jk/xdocs/webserver_howto/apache.xml?view=diff&rev=516903&r1=516902&r2=516903
==
--- tomcat/connectors/trunk/jk/xdocs/webserver_howto/apache.xml (original)
+++ tomcat/connectors/trunk/jk/xdocs/webserver_howto/apache.xml Sun Mar 11 
07:07:27 2007
@@ -837,42 +837,56 @@
 
 
 
-  Apache related parameters
-  
+  Apache related parameters
+  
   --with-apxs[=FILE]
   FILE is the location of the apxs tool. Default is finding apxs in PATH.
 It builds a shared Apache module. It detects automaticly the Apache version.
 (2.0/2.2 and 1.3)
   
-  --with-apache=DIR
+  --with-apache=DIR
   DIR is the path where apache sources are located.
 The apache sources should have been configured before configuring mod_jk.
 DIR is something like: /home/apache/apache_1.3.19
 It builds a static Apache module.
   
-  --enable-EAPI
+  --enable-EAPI
   This parameter is needed when using Apache-1.3 and mod_ssl, otherwise 
you will get the error message:
 "this module might crash under EAPI!" when loading mod_jk.so in httpd.
 Not needed when --with-apxs has been used
 
+  --enable-prefork
+  
+In case you build mod_jk for a multi-threaded Apache 2.0/2.2 MPM 
(Multi-Processing Module),
+some areas of mod_jk code need to be synchronized to make it thread-safe.
+Configure autodetects, whether your are using a multi-threaded MPM.
+For instance, the worker MPM is multi-threaded, the prefork MPM is not.
+Depending on how you build your Apache httpd, in some cases configure
+detects that it needs to build thread safe, although actually it would not be 
necessary.
+One such case is, if you build against Apache httpd with prefork MPM,
+and your APR (Apache Portable Runtime) libraries have been build with thread 
support
+( the output of "apxs -q EXTRA_CPPFLAGS" will contain "-D_REENTRANT").
+If you are sure, that your MPM is not multi-threaded, you can use 
"--enable-prefork"
+to force the removal of the synchronization code (thus increasing performance 
a bit).
+
 
 
 
-  JNI related parameters
-  --enable-jni
+  JNI related parameters
+  --enable-jni
   Build the JNI worker and so the build process will require
 some informations about your Java Environment
   
-  --with-java-home=DIR
+  --with-java-home=DIR
   DIR is the  patch to the JDK root directory. Something like: 
/opt/java/jdk12
   
-  --with-os-type=SUBDIRSUBDIR is the os-type subdirectory,
+  --with-os-type=SUBDIRSUBDIR is the os-type 
subdirectory,
   configure should guess it correctly.
   
-  --with-arch-type=SUBDIRSUBDIR is the arch subdirectory,
+  --with-arch-type=SUBDIRSUBDIR is the arch 
subdirectory,
   configure should guess it correctly.
   
-  --with-java-platform=VALVAL is the Java platform 1 is 1.1.x 
and 2 is for 1.2 anf higher,
+  --with-java-platform=VALVAL is the Java 
platform 1 is 1.1.x and 2 is for 1.2 anf higher,
   configure should guess it correctly.
   
 



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



svn commit: r516904 - in /tomcat/connectors/trunk/jk: native/apache-2.0/mod_jk.c xdocs/miscellaneous/changelog.xml

2007-03-11 Thread rjung
Author: rjung
Date: Sun Mar 11 07:17:00 2007
New Revision: 516904

URL: http://svn.apache.org/viewvc?view=rev&rev=516904
Log:
- Use the full description string ap_get_server_description() instead of
the truncated info from ap_get_server_banner(), because this info gets used 
internally
(status worker display and ajp14 backend communication) and is not send back to 
the
normal user.
- Make MMN check easier to understand and a little more precise (using 
AP_MODULE_MAGIC_AT_LEAST()).

Modified:
tomcat/connectors/trunk/jk/native/apache-2.0/mod_jk.c
tomcat/connectors/trunk/jk/xdocs/miscellaneous/changelog.xml

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?view=diff&rev=516904&r1=516903&r2=516904
==
--- tomcat/connectors/trunk/jk/native/apache-2.0/mod_jk.c (original)
+++ tomcat/connectors/trunk/jk/native/apache-2.0/mod_jk.c Sun Mar 11 07:17:00 
2007
@@ -581,8 +581,8 @@
  */
 s->server_port  = ap_get_server_port(r);
 
-#if (MODULE_MAGIC_NUMBER_MAJOR > 20060110)
-s->server_software = (char *)ap_get_server_banner();
+#if (AP_MODULE_MAGIC_AT_LEAST(20060905,0))
+s->server_software = (char *)ap_get_server_description();
 #else
 s->server_software = (char *)ap_get_server_version();
 #endif
@@ -2678,8 +2678,8 @@
will feed it */
 worker_env.uri_to_worker = conf->uw_map;
 worker_env.virtual = "*";   /* for now */
-#if (MODULE_MAGIC_NUMBER_MAJOR > 20060110)
-worker_env.server_name = (char *)ap_get_server_banner();
+#if (AP_MODULE_MAGIC_AT_LEAST(20060905,0))
+worker_env.server_name = (char *)ap_get_server_description();
 #else
 worker_env.server_name = (char *)ap_get_server_version();
 #endif

Modified: tomcat/connectors/trunk/jk/xdocs/miscellaneous/changelog.xml
URL: 
http://svn.apache.org/viewvc/tomcat/connectors/trunk/jk/xdocs/miscellaneous/changelog.xml?view=diff&rev=516904&r1=516903&r2=516904
==
--- tomcat/connectors/trunk/jk/xdocs/miscellaneous/changelog.xml (original)
+++ tomcat/connectors/trunk/jk/xdocs/miscellaneous/changelog.xml Sun Mar 11 
07:17:00 2007
@@ -27,6 +27,19 @@
   
 
   
+Make MMN check easier to understand and a little more precise
+(for new ap_get_server_banner()/ap_get_server_description()).
+We use the new API only for Apache httpd 2.3. This way our binaries 
are not
+tightly coupled to a minor 2.0 version, and we don't use 
ap_get_server_banner()
+any way. (rjung)
+  
+  
+Use the full description string ap_get_server_description() instead of
+the truncated info from ap_get_server_banner(), because this info gets 
used internally
+(status worker display and ajp14 backend communication) and is not 
send back to the
+normal user. (rjung)
+  
+  
 41757: Document the "--enable-prefork" flag of configure. 
(rjung)
   
   



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



svn commit: r516907 - in /tomcat/connectors/trunk/jk: native/apache-2.0/mod_jk.c xdocs/miscellaneous/changelog.xml

2007-03-11 Thread rjung
Author: rjung
Date: Sun Mar 11 07:24:01 2007
New Revision: 516907

URL: http://svn.apache.org/viewvc?view=rev&rev=516907
Log:
Replace APR precompiler directive by httpd mpm_query to detect MPM threading.
Add an info log message about auto-detected pool size.

Modified:
tomcat/connectors/trunk/jk/native/apache-2.0/mod_jk.c
tomcat/connectors/trunk/jk/xdocs/miscellaneous/changelog.xml

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?view=diff&rev=516907&r1=516906&r2=516907
==
--- tomcat/connectors/trunk/jk/native/apache-2.0/mod_jk.c (original)
+++ tomcat/connectors/trunk/jk/native/apache-2.0/mod_jk.c Sun Mar 11 07:24:01 
2007
@@ -2612,6 +2612,7 @@
 server_rec * s)
 {
 int rc;
+int is_threaded;
 int mpm_threads = 1;
 
 /* jk_map_t *init_map = NULL; */
@@ -2650,11 +2651,14 @@
 }
 #endif
 
-/* Set default connection cache size for worker mpm */
-#if APR_HAS_THREADS
-if (ap_mpm_query(AP_MPMQ_MAX_THREADS, &mpm_threads) != APR_SUCCESS)
-mpm_threads = 1;
-#endif
+/* Set default connection cache size for multi-threaded MPMs */
+if (ap_mpm_query(AP_MPMQ_IS_THREADED, &is_threaded) == APR_SUCCESS &&
+is_threaded != AP_MPMQ_NOT_SUPPORTED) {
+if (ap_mpm_query(AP_MPMQ_MAX_THREADS, &mpm_threads) != APR_SUCCESS)
+mpm_threads = 1;
+}
+jk_log(conf->log, JK_LOG_INFO,
+   "Setting default connection pool max size to %d", mpm_threads);
 jk_set_worker_def_cache_size(mpm_threads);
 
 /* if(map_alloc(&init_map)) { */

Modified: tomcat/connectors/trunk/jk/xdocs/miscellaneous/changelog.xml
URL: 
http://svn.apache.org/viewvc/tomcat/connectors/trunk/jk/xdocs/miscellaneous/changelog.xml?view=diff&rev=516907&r1=516906&r2=516907
==
--- tomcat/connectors/trunk/jk/xdocs/miscellaneous/changelog.xml (original)
+++ tomcat/connectors/trunk/jk/xdocs/miscellaneous/changelog.xml Sun Mar 11 
07:24:01 2007
@@ -26,6 +26,10 @@
   
   
 
+  
+  Replace APR precompiler directive by httpd mpm_query to detect MPM 
threading.
+  Add an info log message about auto-detected pool size. (rjung)
+  
   
 Make MMN check easier to understand and a little more precise
 (for new ap_get_server_banner()/ap_get_server_description()).



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



svn commit: r516910 - in /tomcat/connectors/trunk/jk/native: apache-1.3/mod_jk.c apache-2.0/mod_jk.c

2007-03-11 Thread rjung
Author: rjung
Date: Sun Mar 11 07:34:51 2007
New Revision: 516910

URL: http://svn.apache.org/viewvc?view=rev&rev=516910
Log:
Make source format for apr_log_* args more consistent,
to make consistency checks of argument usage easier.

Modified:
tomcat/connectors/trunk/jk/native/apache-1.3/mod_jk.c
tomcat/connectors/trunk/jk/native/apache-2.0/mod_jk.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?view=diff&rev=516910&r1=516909&r2=516910
==
--- tomcat/connectors/trunk/jk/native/apache-1.3/mod_jk.c (original)
+++ tomcat/connectors/trunk/jk/native/apache-1.3/mod_jk.c Sun Mar 11 07:34:51 
2007
@@ -2308,8 +2308,7 @@
 if (log_fd >= 0 && sz) {
 if ( write(log_fd, what, sz) < 0 )
 {
-ap_log_error(APLOG_MARK, APLOG_ERR | APLOG_NOERRNO,
- NULL,
+ap_log_error(APLOG_MARK, APLOG_ERR | APLOG_NOERRNO, NULL,
  "mod_jk: jk_log_to_file %s failed",
  what);
 }

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?view=diff&rev=516910&r1=516909&r2=516910
==
--- tomcat/connectors/trunk/jk/native/apache-2.0/mod_jk.c (original)
+++ tomcat/connectors/trunk/jk/native/apache-2.0/mod_jk.c Sun Mar 11 07:34:51 
2007
@@ -349,8 +349,7 @@
 #ifdef AS400
 int long rv = OK;
 if (rv = ap_change_request_body_xlate(p->r, 65535, 65535)) {   
 /* turn off request body translation */
-ap_log_error(APLOG_MARK, APLOG_STARTUP | APLOG_CRIT, 0,
- NULL,
+ap_log_error(APLOG_MARK, APLOG_STARTUP | APLOG_CRIT, 0, NULL,
  "mod_jk: Error on ap_change_request_body_xlate, 
rc=%d",
  rv);
 return JK_FALSE;
@@ -430,8 +429,7 @@
 /* turn off response body translation */
 rc = ap_change_response_body_xlate(p->r, 65535, 65535);
 if (rc) {
-ap_log_error(APLOG_MARK, APLOG_STARTUP | APLOG_CRIT, 0,
- NULL,
+ap_log_error(APLOG_MARK, APLOG_STARTUP | APLOG_CRIT, 0, NULL,
  "mod_jk: Error on ap_change_response_body_xlate, 
rc=%d",
  rc);
 return JK_FALSE;
@@ -2451,8 +2449,7 @@
 status = apr_file_write(p->jklogfp, what, &wrote);
 if (status != APR_SUCCESS) {
 apr_strerror(status, error, 254);
-ap_log_error(APLOG_MARK, APLOG_ERR | APLOG_NOERRNO, 0,
- NULL,
+ap_log_error(APLOG_MARK, APLOG_ERR | APLOG_NOERRNO, 0, 
NULL,
  "mod_jk: jk_log_to_file %s failed: %s",
  what, error);
 }
@@ -2504,8 +2501,7 @@
 if (conf->log_file == NULL) {
 conf->log_file = ap_server_root_relative(p, JK_LOG_DEF_FILE);
 if (conf->log_file)
-ap_log_error(APLOG_MARK, APLOG_INFO | APLOG_NOERRNO,
- 0, s,
+ap_log_error(APLOG_MARK, APLOG_INFO | APLOG_NOERRNO, 0, s,
  "No JkLogFile defined in httpd.conf. "
  "Using default %s", conf->log_file);
 }
@@ -2622,8 +2618,7 @@
 if (!jk_shm_file) {
 jk_shm_file = ap_server_root_relative(pconf, JK_SHM_DEF_FILE);
 if (jk_shm_file)
-ap_log_error(APLOG_MARK, APLOG_INFO | APLOG_NOERRNO,
- 0, NULL,
+ap_log_error(APLOG_MARK, APLOG_INFO | APLOG_NOERRNO, 0, NULL,
  "No JkShmFile defined in httpd.conf. "
  "Using default %s", jk_shm_file);
 }
@@ -2640,12 +2635,10 @@
jk_shm_name(), rc);
 #if !defined(WIN32) && !defined(NETWARE)
 if (!jk_shm_file) {
-ap_log_error(APLOG_MARK, APLOG_STARTUP | APLOG_CRIT,
- 0, NULL,
+ap_log_error(APLOG_MARK, APLOG_STARTUP | APLOG_CRIT, 0, NULL,
  "No JkShmFile defined in httpd.conf. "
  "LoadBalancer will not function properly!");
-ap_log_error(APLOG_MARK, APLOG_EMERG | APLOG_NOERRNO,
- 0, NULL,
+ap_log_error(APLOG_MARK, APLOG_EMERG | APLOG_NOERRNO, 0, NULL,
  "No JkShmFile defined in httpd.conf. "
  "LoadBalancer will not function properly!");
 }
@@ -2664,17 +2657,18 @@
 /* if(map_alloc(&init_map)) { */
 if (!jk_map_read_properties(init_map, conf->worker_file, NULL, 1, 
conf->log)) {
   

svn commit: r516911 - in /tomcat/connectors/trunk/jk/native: apache-1.3/mod_jk.c apache-2.0/mod_jk.c

2007-03-11 Thread rjung
Author: rjung
Date: Sun Mar 11 07:49:18 2007
New Revision: 516911

URL: http://svn.apache.org/viewvc?view=rev&rev=516911
Log:
- Add STDERR logging to jk_error_exit()
- Increase log level for message about using default shm file and log file to 
warning
- remove deprecated APLOG_NOERRNO for 2.0/2.2
- add virtual server instead of NULL to ap_log_error() where appropriate

Modified:
tomcat/connectors/trunk/jk/native/apache-1.3/mod_jk.c
tomcat/connectors/trunk/jk/native/apache-2.0/mod_jk.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?view=diff&rev=516911&r1=516910&r2=516911
==
--- tomcat/connectors/trunk/jk/native/apache-1.3/mod_jk.c (original)
+++ tomcat/connectors/trunk/jk/native/apache-1.3/mod_jk.c Sun Mar 11 07:49:18 
2007
@@ -461,6 +461,9 @@
 va_end(ap);
 
 ap_log_error(file, line, level, s, res);
+if ( s ) {
+ap_log_error(file, line, level, NULL, res);
+}
 
 /* Exit process */
 exit(1);
@@ -1744,7 +1747,7 @@
 jk_server_conf_t *conf =
 (jk_server_conf_t *) ap_get_module_config(s->module_config,
   &jk_module);
- 
+
 if (jk_map_read_property(conf->worker_properties, line, 1, conf->log) == 
JK_FALSE)
 return ap_pstrcat(cmd->temp_pool, "Invalid JkWorkerProperty ", line, 
NULL);
 
@@ -2349,7 +2352,7 @@
 if (!s->is_virtual && !conf->log_file) {
 conf->log_file = ap_server_root_relative(p, JK_LOG_DEF_FILE);
 if (conf->log_file)
-ap_log_error(APLOG_MARK, APLOG_INFO | APLOG_NOERRNO, s,
+ap_log_error(APLOG_MARK, APLOG_WARNING | APLOG_NOERRNO, s,
  "No JkLogFile defined in httpd.conf. "
  "Using default %s", conf->log_file);
 }
@@ -2498,7 +2501,7 @@
 #endif
 
 if (jk_shm_file)
-ap_log_error(APLOG_MARK, APLOG_INFO | APLOG_NOERRNO, s,
+ap_log_error(APLOG_MARK, APLOG_WARNING | APLOG_NOERRNO, s,
  "No JkShmFile defined in httpd.conf. "
  "Using default %s", jk_shm_file);
 }

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?view=diff&rev=516911&r1=516910&r2=516911
==
--- tomcat/connectors/trunk/jk/native/apache-2.0/mod_jk.c (original)
+++ tomcat/connectors/trunk/jk/native/apache-2.0/mod_jk.c Sun Mar 11 07:49:18 
2007
@@ -500,6 +500,9 @@
 va_end(ap);
 
 ap_log_error(file, line, level, 0, s, res);
+if ( s ) {
+ap_log_error(file, line, level, 0, NULL, res);
+}
 
 /* Exit process */
 exit(1);
@@ -2449,7 +2452,7 @@
 status = apr_file_write(p->jklogfp, what, &wrote);
 if (status != APR_SUCCESS) {
 apr_strerror(status, error, 254);
-ap_log_error(APLOG_MARK, APLOG_ERR | APLOG_NOERRNO, 0, 
NULL,
+ap_log_error(APLOG_MARK, APLOG_ERR, 0, NULL,
  "mod_jk: jk_log_to_file %s failed: %s",
  what, error);
 }
@@ -2501,7 +2504,7 @@
 if (conf->log_file == NULL) {
 conf->log_file = ap_server_root_relative(p, JK_LOG_DEF_FILE);
 if (conf->log_file)
-ap_log_error(APLOG_MARK, APLOG_INFO | APLOG_NOERRNO, 0, s,
+ap_log_error(APLOG_MARK, APLOG_WARNING, 0, s,
  "No JkLogFile defined in httpd.conf. "
  "Using default %s", conf->log_file);
 }
@@ -2618,7 +2621,7 @@
 if (!jk_shm_file) {
 jk_shm_file = ap_server_root_relative(pconf, JK_SHM_DEF_FILE);
 if (jk_shm_file)
-ap_log_error(APLOG_MARK, APLOG_INFO | APLOG_NOERRNO, 0, NULL,
+ap_log_error(APLOG_MARK, APLOG_WARNING, 0, s,
  "No JkShmFile defined in httpd.conf. "
  "Using default %s", jk_shm_file);
 }
@@ -2638,7 +2641,7 @@
 ap_log_error(APLOG_MARK, APLOG_STARTUP | APLOG_CRIT, 0, NULL,
  "No JkShmFile defined in httpd.conf. "
  "LoadBalancer will not function properly!");
-ap_log_error(APLOG_MARK, APLOG_EMERG | APLOG_NOERRNO, 0, NULL,
+ap_log_error(APLOG_MARK, APLOG_EMERG, 0, NULL,
  "No JkShmFile defined in httpd.conf. "
  "LoadBalancer will not function properly!");
 }
@@ -2657,17 +2660,17 @@
 /* if(map_alloc(&init_map)) { */
 if (!jk_map_read_properties(init_map, conf->worker_file, NULL, 1, 
conf->log)) {
 if (jk_map_size(init_map) == 0) {
-ap_log_error(APLOG_MARK, APLOG_STARTUP | APLOG_CRIT, 0, NULL,
+ap_log_error(A

svn commit: r516916 - in /tomcat/connectors/trunk/jk/native: apache-1.3/mod_jk.c apache-2.0/mod_jk.c

2007-03-11 Thread rjung
Author: rjung
Date: Sun Mar 11 08:03:10 2007
New Revision: 516916

URL: http://svn.apache.org/viewvc?view=rev&rev=516916
Log:
- simplify logic for shm open error log message
- make code betwenn apache 1.3 and 2.0 more consistent around wc_open()
- add a better log message, in case wc_open() fails

Modified:
tomcat/connectors/trunk/jk/native/apache-1.3/mod_jk.c
tomcat/connectors/trunk/jk/native/apache-2.0/mod_jk.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?view=diff&rev=516916&r1=516915&r2=516916
==
--- tomcat/connectors/trunk/jk/native/apache-1.3/mod_jk.c (original)
+++ tomcat/connectors/trunk/jk/native/apache-1.3/mod_jk.c Sun Mar 11 08:03:10 
2007
@@ -2513,14 +2513,9 @@
jk_shm_name(), rc);
 }
 else
-jk_log(conf->log, JK_LOG_ERROR, "Initializing shm:%s errno=%d",
+jk_log(conf->log, JK_LOG_ERROR,
+   "Initializing shm:%s errno=%d. Load balancing workers will not 
function properly.",
jk_shm_name(), rc);
-#if !defined(WIN32) && !defined(NETWARE)
-if (!jk_shm_file)
-ap_log_error(APLOG_MARK, APLOG_EMERG | APLOG_NOERRNO, s,
- "No JkShmFile defined in httpd.conf. "
- "LoadBalancer will not function properly!");
-#endif
 
 /* SREVILAK -- register cleanup handler to clear resources on restart,
  * to make sure log file gets closed in the parent process  */
@@ -2549,24 +2544,30 @@
 jk_error_exit(APLOG_MARK, APLOG_EMERG | APLOG_NOERRNO, s, p, "Error in 
reading worker properties");
 
 }
-#if MODULE_MAGIC_NUMBER >= 19980527
-/* Tell apache we're here */
-ap_add_version_component(JK_EXPOSED_VERSION);
-#endif
 
 if (jk_map_resolve_references(init_map, "worker.", 1, 1, conf->log) == 
JK_FALSE) {
-jk_error_exit(APLOG_MARK, APLOG_EMERG, s, p, "Error in resolving 
configuration references");
+jk_error_exit(APLOG_MARK, APLOG_EMERG | APLOG_NOERRNO, 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 */
 worker_env.server_name = (char *)ap_get_server_version();
-if (wc_open(init_map, &worker_env, conf->log))
+
+if (wc_open(init_map, &worker_env, conf->log)) {
+#if MODULE_MAGIC_NUMBER >= 19980527
+/* Tell apache we're here */
+ap_add_version_component(JK_EXPOSED_VERSION);
+#endif
 return;
+}
+else {
+ap_log_error(APLOG_MARK, APLOG_ERR, s,
+ "Error in creating the workers."
+ " Please consult your mod_jk log file '%s'.", 
conf->log_file);
+}
 
-ap_log_error(APLOG_MARK, APLOG_ERR, s,
- "Error while opening the workers, jk will not work");
 }
 
 /*

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?view=diff&rev=516916&r1=516915&r2=516916
==
--- tomcat/connectors/trunk/jk/native/apache-2.0/mod_jk.c (original)
+++ tomcat/connectors/trunk/jk/native/apache-2.0/mod_jk.c Sun Mar 11 08:03:10 
2007
@@ -2634,18 +2634,9 @@
   jk_cleanup_shmem);
 }
 else
-jk_log(conf->log, JK_LOG_ERROR, "Initializing shm:%s errno=%d",
+jk_log(conf->log, JK_LOG_ERROR,
+   "Initializing shm:%s errno=%d. Load balancing workers will not 
function properly.",
jk_shm_name(), rc);
-#if !defined(WIN32) && !defined(NETWARE)
-if (!jk_shm_file) {
-ap_log_error(APLOG_MARK, APLOG_STARTUP | APLOG_CRIT, 0, NULL,
- "No JkShmFile defined in httpd.conf. "
- "LoadBalancer will not function properly!");
-ap_log_error(APLOG_MARK, APLOG_EMERG, 0, NULL,
- "No JkShmFile defined in httpd.conf. "
- "LoadBalancer will not function properly!");
-}
-#endif
 
 /* Set default connection cache size for multi-threaded MPMs */
 if (ap_mpm_query(AP_MPMQ_IS_THREADED, &is_threaded) == APR_SUCCESS &&
@@ -2684,8 +2675,15 @@
 #else
 worker_env.server_name = (char *)ap_get_server_version();
 #endif
+
 if (wc_open(init_map, &worker_env, conf->log)) {
 ap_add_version_component(pconf, JK_EXPOSED_VERSION);
+}
+else {
+ap_log_error(APLOG_MARK, APLOG_EMERG, 0, s,
+ "Error in creating the workers."
+ " Please consult your mod_jk log file '%s'.", 
conf->log_file);
+return !OK;
 }
 return OK;
 }



-
T

svn commit: r516917 - /tomcat/connectors/trunk/jk/native/apache-2.0/mod_jk.c

2007-03-11 Thread rjung
Author: rjung
Date: Sun Mar 11 08:06:24 2007
New Revision: 516917

URL: http://svn.apache.org/viewvc?view=rev&rev=516917
Log:
Use jk return values for init_jk(), because it's not part of httpd API.

Modified:
tomcat/connectors/trunk/jk/native/apache-2.0/mod_jk.c

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?view=diff&rev=516917&r1=516916&r2=516917
==
--- tomcat/connectors/trunk/jk/native/apache-2.0/mod_jk.c (original)
+++ tomcat/connectors/trunk/jk/native/apache-2.0/mod_jk.c Sun Mar 11 08:06:24 
2007
@@ -2657,13 +2657,13 @@
 }
 ap_log_error(APLOG_MARK, APLOG_EMERG, 0, s,
  "Error in reading worker properties");
-return !OK;
+return JK_FALSE;
 }
 
 if (jk_map_resolve_references(init_map, "worker.", 1, 1, conf->log) == 
JK_FALSE) {
 ap_log_error(APLOG_MARK, APLOG_EMERG, 0, s,
  "Error in resolving configuration references");
-return !OK;
+return JK_FALSE;
 }
 
 /* we add the URI->WORKER MAP since workers using AJP14
@@ -2683,9 +2683,9 @@
 ap_log_error(APLOG_MARK, APLOG_EMERG, 0, s,
  "Error in creating the workers."
  " Please consult your mod_jk log file '%s'.", 
conf->log_file);
-return !OK;
+return JK_FALSE;
 }
-return OK;
+return JK_TRUE;
 }
 
 static int jk_post_config(apr_pool_t * pconf,
@@ -2778,7 +2778,7 @@
 }
 }
 }
-if (init_jk(pconf, conf, s))
+if (init_jk(pconf, conf, s) == JK_FALSE)
 return HTTP_INTERNAL_SERVER_ERROR;
 }
 }



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



svn commit: r516922 - in /tomcat/connectors/trunk/jk: native/apache-1.3/mod_jk.c native/apache-2.0/mod_jk.c xdocs/miscellaneous/changelog.xml

2007-03-11 Thread rjung
Author: rjung
Date: Sun Mar 11 08:17:44 2007
New Revision: 516922

URL: http://svn.apache.org/viewvc?view=rev&rev=516922
Log:
- Delete unused check for empty init_map during startup.
- Bugzilla 41770: Fix startup error if no JkWorkersFile is used.

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/xdocs/miscellaneous/changelog.xml

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?view=diff&rev=516922&r1=516921&r2=516922
==
--- tomcat/connectors/trunk/jk/native/apache-1.3/mod_jk.c (original)
+++ tomcat/connectors/trunk/jk/native/apache-1.3/mod_jk.c Sun Mar 11 08:17:44 
2007
@@ -2534,15 +2534,11 @@
 }
 */
 
-if (!jk_map_read_properties(init_map, conf->worker_file, NULL, 1, 
conf->log)) {
-
-if (jk_map_size(init_map) == 0) {
-ap_log_error(APLOG_MARK, APLOG_EMERG, s,
- "No worker file and no worker options in httpd.conf "
- "use JkWorkerFile to set workers");
-}
-jk_error_exit(APLOG_MARK, APLOG_EMERG | APLOG_NOERRNO, s, p, "Error in 
reading worker properties");
-
+if ((conf->worker_file != NULL) &&
+!jk_map_read_properties(init_map, conf->worker_file, NULL, 1, 
conf->log)) {
+jk_error_exit(APLOG_MARK, APLOG_EMERG | APLOG_NOERRNO, s, p,
+  "Error in reading worker properties from '%s'",
+  conf->worker_file);
 }
 
 if (jk_map_resolve_references(init_map, "worker.", 1, 1, conf->log) == 
JK_FALSE) {

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?view=diff&rev=516922&r1=516921&r2=516922
==
--- tomcat/connectors/trunk/jk/native/apache-2.0/mod_jk.c (original)
+++ tomcat/connectors/trunk/jk/native/apache-2.0/mod_jk.c Sun Mar 11 08:17:44 
2007
@@ -2648,15 +2648,11 @@
"Setting default connection pool max size to %d", mpm_threads);
 jk_set_worker_def_cache_size(mpm_threads);
 
-/* if(map_alloc(&init_map)) { */
-if (!jk_map_read_properties(init_map, conf->worker_file, NULL, 1, 
conf->log)) {
-if (jk_map_size(init_map) == 0) {
-ap_log_error(APLOG_MARK, APLOG_STARTUP | APLOG_CRIT, 0, s,
- "No worker file and no worker options in httpd.conf"
- "use JkWorkerFile to set workers");
-}
+if ((conf->worker_file != NULL) &&
+!jk_map_read_properties(init_map, conf->worker_file, NULL, 1, 
conf->log)) {
 ap_log_error(APLOG_MARK, APLOG_EMERG, 0, s,
- "Error in reading worker properties");
+ "Error in reading worker properties from '%s'",
+ conf->worker_file);
 return JK_FALSE;
 }
 

Modified: tomcat/connectors/trunk/jk/xdocs/miscellaneous/changelog.xml
URL: 
http://svn.apache.org/viewvc/tomcat/connectors/trunk/jk/xdocs/miscellaneous/changelog.xml?view=diff&rev=516922&r1=516921&r2=516922
==
--- tomcat/connectors/trunk/jk/xdocs/miscellaneous/changelog.xml (original)
+++ tomcat/connectors/trunk/jk/xdocs/miscellaneous/changelog.xml Sun Mar 11 
08:17:44 2007
@@ -27,6 +27,19 @@
   
 
   
+  Delete unused check for empty init_map during startup. (rjung)
+  
+  
+41770: Fix startup error if no JkWorkersFile is used. 
(rjung)
+  
+  
+  Use JK_TRUE/JK_FALSE instead of OK/!OK as return values in init_jk(). 
(rjung)
+  
+  
+  Minor adjustments to apache startup log messages (when to use STDERR, 
remove
+  deprecated NOERRNO flag, shm warning and warnings for usage of default 
files). (rjung)
+  
+  
   Replace APR precompiler directive by httpd mpm_query to detect MPM 
threading.
   Add an info log message about auto-detected pool size. (rjung)
   



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



DO NOT REPLY [Bug 41770] - JkWorkerProperties broken in mod_jk 1.2.21

2007-03-11 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=41770


[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|ASSIGNED|RESOLVED
 Resolution||FIXED




--- Additional Comments From [EMAIL PROTECTED]  2007-03-11 08:20 ---
The startup error when no JkWorkersFile is given is fixed now.
I also deleted the check for an empty init_map, because it is never empty (we
add at least one entry inside mod_jk: "ServerRoot").

The most important check is during wc_open(), where we try to create the 
workers.

The other startup error because of the old local_worker attribute is also fixed 
now.

Both fixes will be part of 1.2.21.1 or 1.2.22.



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



Should we release mod_jk 1.2.21.1 or 1.2.22?

2007-03-11 Thread Rainer Jung

Hi,

since the security release has been bundled with a feature release we 
ran into an unfortunate small bug in the newly implemented nice check 
for allowed attributes in the property files.


BZ 41770 describes the problem.

I fixed it and I'm thinking about releasing this as either 1.2.21.1 or 
1.2.22 (after testing).


Somehow 1.2.21.1 would express the right thing, but our versioning 
header files don't (yet) have the structure to easily make a 1.2.21.1. 
So there is a chance to break it.


What's the preferred solution?

[ ] Try to improve the header files for a 1.2.21.1
[ ] Simply release 1.2.22
[ ] Don't release at all, wait for more fixes or features before releasing.

Regards,

Rainer

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



Re: Should we release mod_jk 1.2.21.1 or 1.2.22?

2007-03-11 Thread Mladen Turk

Rainer Jung wrote:



What's the preferred solution?

[ ] Try to improve the header files for a 1.2.21.1
[X] Simply release 1.2.22
[ ] Don't release at all, wait for more fixes or features before releasing.



Regards,
Mladen.

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



Re: Should we release mod_jk 1.2.21.1 or 1.2.22?

2007-03-11 Thread Guenter Knauf
> [ ] Try to improve the header files for a 1.2.21.1
> [x] Simply release 1.2.22
> [ ] Don't release at all, wait for more fixes or features before
> releasing.

Guenter.


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



Re: Should we release mod_jk 1.2.21.1 or 1.2.22?

2007-03-11 Thread Henri Gomez

1.2.22

2007/3/11, Guenter Knauf <[EMAIL PROTECTED]>:

> [ ] Try to improve the header files for a 1.2.21.1
> [x] Simply release 1.2.22
> [ ] Don't release at all, wait for more fixes or features before
> releasing.

Guenter.


-
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: Tomcat 6 Scales

2007-03-11 Thread Henri Gomez

2007/3/11, Costin Manolache <[EMAIL PROTECTED]>:

Great work - but I'm curious, wouldn't be better to explore the alternative
direction - i.e. detect when the server is too loaded and send a quick 502 ?

Maybe with some extra logic - like serve existing sessions first,
provide some notifications that can be used by a load balancer ( or pager
:-)
to up more servers, or some notification to be used to disable some
expensive
functionality ?


Something very welcome. Currently the HTTP/AJP couple is great for may
of us but we still need better dynamic load switching. It's the same
old question, how a load-balancer, ie mod_jk in lb, could know when to
use a less loaded worker ?

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



Re: Should we release mod_jk 1.2.21.1 or 1.2.22?

2007-03-11 Thread Mark Thomas
Rainer Jung wrote:
> [ ] Try to improve the header files for a 1.2.21.1
> [X] Simply release 1.2.22
> [ ] Don't release at all, wait for more fixes or features before releasing.

Mark

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



May Chun Chew/FEA/PEC is out of the office.

2007-03-11 Thread May Chun Chew

I will be out of the office starting  03/12/2007 and will not return until
03/19/2007.

For urgent matters, pls contact [EMAIL PROTECTED] Tel:
(65)63629408. I am also Contactable at (65)97876648.


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



Re: Tomcat 6 Scales

2007-03-11 Thread Costin Manolache

Yes, 100 concurent requests is a sign you need lb - serving 1000 on
one server is a false problem in most cases. I would rather have a
server smartly reject requests and notify a lb rather then degrading
all requests by accepting more than it can handle properly.

Try adding a database access or some realistic operation in the test
servlet, and set the goal as 'no request above 1 second'. That would
be a nice problem.

Costin


On 3/11/07, Henri Gomez <[EMAIL PROTECTED]> wrote:

2007/3/11, Costin Manolache <[EMAIL PROTECTED]>:
> Great work - but I'm curious, wouldn't be better to explore the
alternative
> direction - i.e. detect when the server is too loaded and send a quick 502
?
>
> Maybe with some extra logic - like serve existing sessions first,
> provide some notifications that can be used by a load balancer ( or pager
> :-)
> to up more servers, or some notification to be used to disable some
> expensive
> functionality ?

Something very welcome. Currently the HTTP/AJP couple is great for may
of us but we still need better dynamic load switching. It's the same
old question, how a load-balancer, ie mod_jk in lb, could know when to
use a less loaded worker ?

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



svn commit: r517094 - in /tomcat/site/trunk: docs/index.html xdocs/index.xml

2007-03-11 Thread markt
Author: markt
Date: Sun Mar 11 21:29:30 2007
New Revision: 517094

URL: http://svn.apache.org/viewvc?view=rev&rev=517094
Log:
Update front page to latest 5.5.x version

Modified:
tomcat/site/trunk/docs/index.html
tomcat/site/trunk/xdocs/index.xml

Modified: tomcat/site/trunk/docs/index.html
URL: 
http://svn.apache.org/viewvc/tomcat/site/trunk/docs/index.html?view=diff&rev=517094&r1=517093&r2=517094
==
--- tomcat/site/trunk/docs/index.html (original)
+++ tomcat/site/trunk/docs/index.html Sun Mar 11 21:29:30 2007
@@ -262,7 +262,7 @@
 2.4/2.0
 
   
-5.5.20
+5.5.23
 
 
 

Modified: tomcat/site/trunk/xdocs/index.xml
URL: 
http://svn.apache.org/viewvc/tomcat/site/trunk/xdocs/index.xml?view=diff&rev=517094&r1=517093&r2=517094
==
--- tomcat/site/trunk/xdocs/index.xml (original)
+++ tomcat/site/trunk/xdocs/index.xml Sun Mar 11 21:29:30 2007
@@ -51,7 +51,7 @@
 
 
   2.4/2.0
-  5.5.20
+  5.5.23
 
 
 



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



Re: [ANN] Apache Tomcat 5.5.23 released

2007-03-11 Thread Wendy Smoak

On 3/9/07, Filip Hanik - Dev Lists <[EMAIL PROTECTED]> wrote:

The Apache Tomcat team announces the immediate availability of Apache
Tomcat 5.5.23 stable. This release has numerous bug fixes and
maintenance updates.
It also includes the corrected source code for the JK CVE-2007-0774 issue.


Filip, did you see that the missing MailSessionFactory bug popped back
up in this one?

I ran into it this morning, but by that time 40668 had already been reopened.

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

--
Wendy

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



DO NOT REPLY [Bug 41817] New: - tomcat 6.1.10 can't found the native be installed .

2007-03-11 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=41817

   Summary: tomcat 6.1.10  can't found the native be installed .
   Product: Tomcat 6
   Version: 6.0.7
  Platform: PC
   URL: http://www.apache.com
OS/Version: Linux
Status: NEW
  Severity: normal
  Priority: P4
 Component: Catalina
AssignedTo: tomcat-dev@jakarta.apache.org
ReportedBy: [EMAIL PROTECTED]
 BugsThisDependsOn: 100
OtherBugsDependingO 99
 nThis:


On tomcat6.0.10 
tomcat-native 1.1.8 + apr-1.2.8 
jdk1.6.0 
linux

tomcat 6.1.10  can't found the native be installed .
Always show message :
INFO: The Apache Tomcat Native library which allows optimal performance in 
production environments was not found on the java.library.path: ..

I downloaded apr-1.2.8.tar.bz2 and tomcat-native.tar.gz ,then unzip it, 
configuare,make ,make install ,
  then copy /usr/local/apr/lib/* to JAVA_HOME/jre/lib/i386/client 
now restart tomcat ,but the "INFO"  always be display !

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]



DO NOT REPLY [Bug 99] - Tomcat reports 'out of memory error' BugRat Report#89

2007-03-11 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=99


[EMAIL PROTECTED] changed:

   What|Removed |Added

  BugsThisDependsOn||41817




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



Re: Tomcat 6 Scales

2007-03-11 Thread Mladen Turk

Costin Manolache wrote:

Yes, 100 concurent requests is a sign you need lb - serving 1000 on


Sometimes it is desired to have the capability of serving 1000 concurrent
connections (not requests). The typical situation is when the frontend
server is used for delivering a static content with higher concurrency
then backend application server. The thread per request model like
implemented with APR connector solves this problem. NIO would need
AJP protocol implementation to be able to do that as well.



one server is a false problem in most cases. I would rather have a
server smartly reject requests and notify a lb rather then degrading
all requests by accepting more than it can handle properly.



Agreed, but without some sort of IPC it's impossible.

Regards,
Mladen.

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



Bug report for Tomcat 3 [2007/03/11]

2007-03-11 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|
| 5331|Ass|Nor|2001-12-09|getPathInfo vs URL normalization  |
| 6027|Inf|Maj|2002-01-25|Tomcat  Automatically shuts down as service   |
| 6488|Ver|Maj|2002-02-15|Error: 304. Apparent bug in default ErrorHandler c|
| 7785|Inf|Blk|2002-04-06|tomcat bug in context reloading   |
| 7863|Inf|Maj|2002-04-09|I have a problem when running Tomcat with IIS |
| 8187|Inf|Cri|2002-04-17|Errors when Tomcat used with MS Access database   |
| 9737|Ver|Nor|2002-06-10|ArrayIndexOutOfBoundsException when sending just p|
|10047|Ass|Cri|2002-06-20|IllegalStateException |
|10406|Ass|Cri|2002-07-02|IllegalStateException |
|11087|Inf|Blk|2002-07-23|IllegalStateException |
|12156|Inf|Cri|2002-08-29|Apache and Tomcat 3.3.1 Interworking problem  |
|16363|Ass|Cri|2003-01-23|Stack Overflow accessing compiled JSP - Tomcat 3.2|
|39250|Inf|Cri|2006-04-07|Tomcat 3.2.1 + JDK 1.4|
+-+---+---+--+--+
| Total   14 bugs   |
+---+

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



Bug report for Tomcat 4 [2007/03/11]

2007-03-11 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 Watchdog [2007/03/11]

2007-03-11 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 [2007/03/11]

2007-03-11 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  |
| |   |   |  |  |
| 2500|Opn|Min|2001-07-08|FileNotFoundException from service() unintentional|
|22679|Ver|Enh|2003-08-24|how to access ssl session ID out of tomcat to prev|
|28039|Opn|Enh|2004-03-30|Cluster Support for SingleSignOn  |
|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|
|30028|Opn|Nor|2004-07-10|session attributes Map may become inconsistent sta|
|30241|Ver|Enh|2004-07-21|Enhance build script to use branch argument when c|
|32017|Inf|Nor|2004-11-02|Tomcat 5.5 manager fails to undeploy Struts app   |
|33262|Inf|Enh|2005-01-27|Service Manager autostart should check for adminis|
|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|
|34801|New|Enh|2005-05-08|PATCH: CGIServlet does not terminate child after a|
|34805|Ass|Enh|2005-05-08|warn about invalid security constraint url pattern|
|34868|Ass|Enh|2005-05-11|allow to register a trust store for a session that|
|35054|Inf|Enh|2005-05-25|warn if appBase is not existing as a File or direc|
|35079|Inf|Enh|2005-05-26|Should be able to specify DNS lookup timeout  |
|35229|Opn|Enh|2005-06-05|alert user about expired certificates in client ce|
|35552|Inf|Enh|2005-06-29|JMS destination under|
|35746|Inf|Enh|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|
|35869|Inf|Enh|2005-07-26|Can't run as a service on Windows Server 2003 64-B|
|36121|Opn|Maj|2005-08-10|Including JSP's changes working directory |
|36133|Inf|Enh|2005-08-10|Support JSS SSL implementation|
|36169|New|Enh|2005-08-12|[PATCH] Enable chunked encoding for IIS JK connect|
|36362|New|Enh|2005-08-25|missing check for Java reserved keywords in tag fi|
|36540|Inf|Enh|2005-09-07|pooled cluster replication does not seem ensure sy|
|36569|Inf|Enh|2005-09-09|Redirects produce illegal URL's   |
|36837|Inf|Enh|2005-09-28|Looking for ProxyHandler implementation of Http re|
|36922|Inf|Enh|2005-10-04|setup.sh file mis-advertised and missing  |
|36923|New|Nor|2005-10-05|Deactivated EL expressions are not parsed for jsp |
|37018|Ass|Enh|2005-10-11|Document how to use tomcat-SSL with a pkcs11 token|
|37072|New|Nor|2005-10-13|Encoding mismatch in error condition  |
|37084|Opn|   |2005-10-14|JspC from ant fails on JSPs that use custom taglib|
|37138|New|Enh|2005-10-18|Allow to specify a security provider (priority lis|
|37326|Ass|Nor|2005-11-01|No error reported when  has non-exist|
|37334|Inf|Enh|2005-11-02|Realm digest property not aligned with the adminis|
|37449|Opn|Enh|2005-11-10|Two UserDatabaseRealm break manager user  |
|37485|Inf|Enh|2005-11-14|I'd like to run init SQL after JDBC Connection cre|
|37498|Inf|Nor|2005-11-14|[PATCH] NPE in org.apache.catalina.core.ContainerB|
|37515|Inf|Nor|2005-11-15|smap not generated by JspC when used from Ant for |
|37627|Opn|Nor|2005-11-24|Slow and incomplete dynamic content generation aft|
|37674|New|Nor|2005-11-29|Windows EXE fails to pass spaces in JVMTI -javaage|
|37785|Inf|Nor|2005-12-05|Changing startup type via Tomcat Monitor does not |
|37794|Opn|Nor|2005-12-05|getParameter() fails on POST with transfer-encodin|
|37797|Inf|Maj|2005-12-05|Configure Tomcat utility truncates classpath to 96|
|37822|Opn|Nor|2005-12-07|WebappClassLoader interfering with Catalina core c|
|37834|Ass|Nor|2005-12-08|compressableMimeTypes not working properly|
|37847|Ass|Enh|2005-12-09|Allow User To Optionally Specify Catalina Output F|
|37869|Opn|Nor|2005-12-12|Cannot obtain client certificate with SSL / client|
|37918|Ass|Nor|2005-12-15|EL cannot find valid getter from object when using|
|37956|Opn|Enh|2005-12-18|Mak