DO NOT REPLY [Bug 35064] - Admin WebApp fails to open connectors when clicked.

2006-03-16 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=35064.
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=35064


[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|NEEDINFO|RESOLVED
 Resolution||FIXED




-- 
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: [VOTE][RESULT] Tomcat v5.5.16 Stability

2006-03-16 Thread Remy Maucherat

Mladen Turk wrote:

Yoav Shapira wrote:
  The Apache Tomcat Team has voted to certify v5.5.16 as stable.
  Binding +1 votes were cast by Mladen Turk, Peter Rossbach, Remy
  Maucherat, Henri Gomez, Jeanfrancois Arcand, and myself.
 

Just figured out that the 5.5.16 was shipped with tomcat-native-1.1.1,
and it should be 1.1.2.

How should we resolve that? By repacking or releasing 5.5.17
I'm in favor of second.


Neither. People will figure it out if they are interested.

Rémy


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



svn commit: r386282 - in /tomcat/connectors/trunk/jk: native/common/jk_uri_worker_map.c xdocs/changelog.xml

2006-03-16 Thread mturk
Author: mturk
Date: Thu Mar 16 00:10:18 2006
New Revision: 386282

URL: http://svn.apache.org/viewcvs?rev=386282view=rev
Log:
Fix #38889 by sorting worker map depending on the path
elements, to comply with Servlet spec.
Patch provided by Steve Revilak.

Modified:
tomcat/connectors/trunk/jk/native/common/jk_uri_worker_map.c
tomcat/connectors/trunk/jk/xdocs/changelog.xml

Modified: tomcat/connectors/trunk/jk/native/common/jk_uri_worker_map.c
URL: 
http://svn.apache.org/viewcvs/tomcat/connectors/trunk/jk/native/common/jk_uri_worker_map.c?rev=386282r1=386281r2=386282view=diff
==
--- tomcat/connectors/trunk/jk/native/common/jk_uri_worker_map.c (original)
+++ tomcat/connectors/trunk/jk/native/common/jk_uri_worker_map.c Thu Mar 16 
00:10:18 2006
@@ -36,10 +36,48 @@
 #define JK_STRNCMP  strncmp
 #endif
 
+
+/*
+ * Given context uri, count the number of path tokens.
+ *
+ * Servlet specification 2.4, SRV.11.1 says
+
+ *   The container will recursively try tomatch the longest
+ *   path-prefix. This is done by stepping down the path tree a
+ *   directory at a time, using the / character as a path
+ *   separator. The longest match determines the servlet selected.
+ *
+ * The implication seems to be `most uri path elements is most exact'.
+ * This is a little helper function to count uri tokens, so we can
+ * keep the worker map sorted with most specific first.
+ */
+static int worker_count_context_uri_tokens(const char * context)
+{
+const char * c = context;
+int count = 0;
+while (c  *c) {
+if ('/' == *c++)
+count++;
+}
+return count;
+}
+
 static int worker_compare(const void *elem1, const void *elem2)
 {
 uri_worker_record_t *e1 = *(uri_worker_record_t **)elem1;
 uri_worker_record_t *e2 = *(uri_worker_record_t **)elem2;
+int e1_tokens = 0;
+int e2_tokens = 0;
+
+e1_tokens = worker_count_context_uri_tokens(e1-context);
+e2_tokens = worker_count_context_uri_tokens(e2-context);
+
+if (e1_tokens != e2_tokens) {
+return (e2_tokens - e1_tokens);
+}
+/* given the same number of URI tokens, use character
+ * length as a tie breaker
+ */
 return ((int)e2-context_len - (int)e1-context_len);
 }
 

Modified: tomcat/connectors/trunk/jk/xdocs/changelog.xml
URL: 
http://svn.apache.org/viewcvs/tomcat/connectors/trunk/jk/xdocs/changelog.xml?rev=386282r1=386281r2=386282view=diff
==
--- tomcat/connectors/trunk/jk/xdocs/changelog.xml (original)
+++ tomcat/connectors/trunk/jk/xdocs/changelog.xml Thu Mar 16 00:10:18 2006
@@ -25,6 +25,11 @@
   br /
   subsection name=Native
 changelog
+  fix
+  bug38889/bug: Use worker map sorting depending on the path
+  elements, to comply with Servlet spec. Patch provided by
+  Steve Revilak. (mturk)
+  /fix
   update
   bug36138/bug: Added Busyness lb method. Patch provided
   by  Chris Lamprecht. (mturk)



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



DO NOT REPLY [Bug 38889] - mod_jk disregards configuration file order of JkMount

2006-03-16 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=38889.
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=38889


[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||FIXED




--- Additional Comments From [EMAIL PROTECTED]  2006-03-16 08:10 ---
Commited.
Thanks!

-- 
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: r386285 - in /tomcat/connectors/trunk/jk: native/common/jk_ajp_common.c xdocs/changelog.xml

2006-03-16 Thread mturk
Author: mturk
Date: Thu Mar 16 00:18:04 2006
New Revision: 386285

URL: http://svn.apache.org/viewcvs?rev=386285view=rev
Log:
Fix #38859 by protect mod_jk against buggy or
malicious AJP servers in the backend.
Patch provided by Ruediger Pluem.

Modified:
tomcat/connectors/trunk/jk/native/common/jk_ajp_common.c
tomcat/connectors/trunk/jk/xdocs/changelog.xml

Modified: tomcat/connectors/trunk/jk/native/common/jk_ajp_common.c
URL: 
http://svn.apache.org/viewcvs/tomcat/connectors/trunk/jk/native/common/jk_ajp_common.c?rev=386285r1=386284r2=386285view=diff
==
--- tomcat/connectors/trunk/jk/native/common/jk_ajp_common.c (original)
+++ tomcat/connectors/trunk/jk/native/common/jk_ajp_common.c Thu Mar 16 
00:18:04 2006
@@ -1380,6 +1380,22 @@
 case JK_AJP13_SEND_BODY_CHUNK:
 {
 unsigned int len = (unsigned int)jk_b_get_int(msg);
+/*
+ * Do a sanity check on len to prevent write reading beyond buffer
+ * boundaries and thus revealing possible sensitive memory
+ * contents to the client.
+ * len cannot be larger than msg-len - 3 because the ajp message
+ * contains the magic byte for JK_AJP13_SEND_BODY_CHUNK (1 byte)
+ * and the length of the chunk (2 bytes). The remaining part of
+ * the message is the chunk.
+ */
+if (len  msg-len - 3) {
+jk_log(l, JK_LOG_ERROR,
+   Chunk length too large. Length of AJP message is %i,
+chunk length is %i., msg-len, len);
+JK_TRACE_EXIT(l);
+return JK_INTERNAL_ERROR;
+}
 if (!r-write(r, msg-buf + msg-pos, len)) {
 jk_log(l, JK_LOG_INFO,
Connection aborted or network problems);
@@ -2065,7 +2081,7 @@
 *e = NULL;
 /* set last_access only if needed */
 if (w-cache_timeout  0 || w-recycle_timeout  0)
-p-last_access = time(NULL); 
+p-last_access = time(NULL);
 JK_LEAVE_CS(w-cs, rc);
 if (sock = 0)
 jk_shutdown_socket(sock);
@@ -2137,7 +2153,7 @@
 else {
 jk_log(l, JK_LOG_WARNING,
 Unable to get the free endpoint for worker %s from %d 
slots,
-aw-name, aw-ep_cache_sz);
+aw-name, aw-ep_cache_sz);
 }
 JK_LEAVE_CS(aw-cs, rc);
 }

Modified: tomcat/connectors/trunk/jk/xdocs/changelog.xml
URL: 
http://svn.apache.org/viewcvs/tomcat/connectors/trunk/jk/xdocs/changelog.xml?rev=386285r1=386284r2=386285view=diff
==
--- tomcat/connectors/trunk/jk/xdocs/changelog.xml (original)
+++ tomcat/connectors/trunk/jk/xdocs/changelog.xml Thu Mar 16 00:18:04 2006
@@ -26,6 +26,10 @@
   subsection name=Native
 changelog
   fix
+  bug38859/bug: Protect mod_jk against buggy or malicious
+  AJP servers in the backend. Patch provided by Ruediger Pluem. (mturk)
+  /fix
+  fix
   bug38889/bug: Use worker map sorting depending on the path
   elements, to comply with Servlet spec. Patch provided by
   Steve Revilak. (mturk)



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



DO NOT REPLY [Bug 37247] - Busy workers counter doesn't count down

2006-03-16 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=37247.
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=37247


[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||WONTFIX




--- Additional Comments From [EMAIL PROTECTED]  2006-03-16 08:19 ---
This was already fixed in the most recent versions of mod_jk.

-- 
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: r386286 - /tomcat/connectors/trunk/jk/xdocs/howto/apache.xml

2006-03-16 Thread mturk
Author: mturk
Date: Thu Mar 16 00:25:12 2006
New Revision: 386286

URL: http://svn.apache.org/viewcvs?rev=386286view=rev
Log:
Small doc update by Luc Carpentier.
We need more of those!

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

Modified: tomcat/connectors/trunk/jk/xdocs/howto/apache.xml
URL: 
http://svn.apache.org/viewcvs/tomcat/connectors/trunk/jk/xdocs/howto/apache.xml?rev=386286r1=386285r2=386286view=diff
==
--- tomcat/connectors/trunk/jk/xdocs/howto/apache.xml (original)
+++ tomcat/connectors/trunk/jk/xdocs/howto/apache.xml Thu Mar 16 00:25:12 2006
@@ -7,13 +7,13 @@
   project;
 copyright
Copyright 1999-2005 The Apache Software Foundation
- 
+
Licensed under the Apache License, Version 2.0 (the License);
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
- 
+
http://www.apache.org/licenses/LICENSE-2.0
- 
+
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an AS IS BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@@ -29,7 +29,7 @@
 body
 section name=Introduction
 p
-This document explains how to connect Tomcat to the popular open source web 
server, Apache. 
+This document explains how to connect Tomcat to the popular open source web 
server, Apache.
 There is actually two version of Apache, 1.3 and 2.0 and both can be used with 
mod_jk, the Tomcat redirector
 module.
 /p
@@ -40,13 +40,13 @@
 /p
 
 p
-This document was originally part of bTomcat: A Minimalistic User's 
Guide/b written by Gal Shachor, 
-but has been split off for organizational reasons. 
+This document was originally part of bTomcat: A Minimalistic User's 
Guide/b written by Gal Shachor,
+but has been split off for organizational reasons.
 /p
 
 subsection name=Document Conventions and Assumptions
 p
-${tomcat_home} is the root directory of tomcat. 
+${tomcat_home} is the root directory of tomcat.
 Your Tomcat installation should have the following subdirectories:
 
 ul
@@ -84,7 +84,7 @@
 Netware
 /li
 li
-iSeries V5R1 and V5R2 with Apache 2.0.39. Be sure to have the latest Apache 
PTF installed. 
+iSeries V5R1 and V5R2 with Apache 2.0.39. Be sure to have the latest Apache 
PTF installed.
 /li
 li
 Tomcat 3.2.x, Tomcat 3.3.x, Tomcat 4.0.x, Tomcat 4.1.x and Tomcat 5
@@ -93,7 +93,7 @@
 /p
 
 p
-The redirector uses bajp12/b and bajp13/b to send requests to the 
Tomcat containers. There is also an option to use Tomcat in process, 
+The redirector uses bajp12/b and bajp13/b to send requests to the 
Tomcat containers. There is also an option to use Tomcat in process,
 more about the in-process mode can be found in the in process howto.
 /p
 /subsection
@@ -104,7 +104,7 @@
 /p
 
 p
-The bajp12/b has been bdeprecated/b with Tomcat 3.3.x and you should 
use instead 
+The bajp12/b has been bdeprecated/b with Tomcat 3.3.x and you should 
use instead
 bajp13/b which is the only ajp protocol known by Tomcat 4.0.x, 4.1.x and 5.
 /p
 
@@ -120,13 +120,13 @@
 
 subsection name=How does it work ?
 p
-In a nutshell a web server is waiting for client HTTP requests. 
-When these requests arrive the server does whatever is needed to serve the 
+In a nutshell a web server is waiting for client HTTP requests.
+When these requests arrive the server does whatever is needed to serve the
 requests by providing the necessary content.
 /p
 
 p
-Adding a servlet container may somewhat change this behavior. 
+Adding a servlet container may somewhat change this behavior.
 Now the web server needs also to perform the following:
 /p
 
@@ -135,21 +135,21 @@
 Load the servlet container adapter library and initialize it (prior to serving 
requests).
 /li
 li
-When a request arrives, it needs to check and see if a certain request belongs 
to a servlet, 
+When a request arrives, it needs to check and see if a certain request belongs 
to a servlet,
 if so it needs to let the adapter take the request and handle it.
 /li
 /ul
 
 p
-The adapter on the other hand needs to know what requests it is going to 
serve, 
+The adapter on the other hand needs to know what requests it is going to serve,
 usually based on some pattern in the request URL, and to where to direct these 
requests.
 /p
 
 p
-Things are even more complex when the user wants to set a configuration that 
uses virtual hosts, 
-or when they want multiple developers to work on the same web server 
-but on different servlet container JVMs. 
-We will cover these two cases in the advanced sections. 
+Things are even more complex when the user wants to set a configuration that 
uses virtual hosts,
+or when they want multiple developers to work on the same web server
+but on different servlet container JVMs.
+We will cover these two cases in the advanced sections.
 /p
 
 /subsection
@@ -158,25 +158,25 @@
 
 section name=Obtaining mod_jk
 p

DO NOT REPLY [Bug 35064] - Admin WebApp fails to open connectors when clicked.

2006-03-16 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=35064.
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=35064





--- Additional Comments From [EMAIL PROTECTED]  2006-03-16 08:30 ---
Created an attachment (id=17911)
 -- (http://issues.apache.org/bugzilla/attachment.cgi?id=17911action=view)
cast the address to an Inet4Address and get the hostAddress from it.

the registered address in mBean server is a Inet4Address. in the existing code
they try to cast it to a String. so we have to cast it to Inet4Address and get
the  Host address.

-- 
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: r386289 - /tomcat/connectors/trunk/jk/xdocs/config/workers.xml

2006-03-16 Thread mturk
Author: mturk
Date: Thu Mar 16 00:50:02 2006
New Revision: 386289

URL: http://svn.apache.org/viewcvs?rev=386289view=rev
Log:
Document Busyness load balancer method.

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

Modified: tomcat/connectors/trunk/jk/xdocs/config/workers.xml
URL: 
http://svn.apache.org/viewcvs/tomcat/connectors/trunk/jk/xdocs/config/workers.xml?rev=386289r1=386288r2=386289view=diff
==
--- tomcat/connectors/trunk/jk/xdocs/config/workers.xml (original)
+++ tomcat/connectors/trunk/jk/xdocs/config/workers.xml Thu Mar 16 00:50:02 2006
@@ -4,7 +4,7 @@
 ]
 document url=workers.html
 
-project; 
+project;
 
 properties
 author email=[EMAIL PROTECTED]Mladen Turk/author
@@ -21,34 +21,34 @@
 Apache forwarding servlet requests to a Tomcat process (the worker) running 
behind it.
 /p
 p
-The scenario described above is a very simple one; 
-in fact one can configure multiple Tomcat workers to serve servlets on 
-behalf of a certain web server. 
+The scenario described above is a very simple one;
+in fact one can configure multiple Tomcat workers to serve servlets on
+behalf of a certain web server.
 The reasons for such configuration can be:
 /p
 ul
 li
-We want different contexts to be served by different Tomcat workers to provide 
a 
+We want different contexts to be served by different Tomcat workers to provide 
a
 development environment where all the developers share the same web server but
 own a Tomcat worker of their own.
 /li
 li
-We want different virtual hosts served by different Tomcat processes to 
provide a 
+We want different virtual hosts served by different Tomcat processes to 
provide a
 clear separation between sites belonging to different companies.
 /li
 li
-We want to provide load balancing, meaning run multiple Tomcat workers each on 
a 
+We want to provide load balancing, meaning run multiple Tomcat workers each on 
a
 machine of its own and distribute the requests between them.
 /li
 /ul
 
 p
 There are probably more reasons for having multiple workers but I guess that 
this list is enough...
-Tomcat workers are defined in a properties file dubbed 
bworkers.properties/b and this tutorial 
+Tomcat workers are defined in a properties file dubbed 
bworkers.properties/b and this tutorial
 explains how to work with it.
 /p
 /section
- 
+
 section name=Directives
 br/
 pEach workers.properties directive consists of three words separated by dot. 
The first word is always
@@ -72,7 +72,7 @@
 directive name=worker.list default=ajp13 required=true
 A comma separated list of workers names that the JK will use. When starting up,
 the web server plugin will instantiate the workers whose name appears in the
-worker.list property, these are also the workers to whom you can map requests. 
+worker.list property, these are also the workers to whom you can map requests.
 /directive
 directive name=worker.maintain default=60 required=false
 Worker connection pool maintain timeout in seconds. If set to the positive
@@ -141,13 +141,13 @@
 /directive
 
 directive name=recycle_timeout default=0 required=false
-The number of seconds that told webserver to cut an ajp13 connection after 
some time of 
+The number of seconds that told webserver to cut an ajp13 connection after 
some time of
 inactivity. When choosing an endpoint for a request and the assigned socket is 
open, it will be
 closed if it was not used for the configured time.
-It's a good way to ensure that there won't too old threads living on Tomcat 
side, 
+It's a good way to ensure that there won't too old threads living on Tomcat 
side,
 with the extra cost you need to reopen the socket next time a request be 
forwarded.
 This property is very similar to bcache_timeout/b but works also in 
non-cache mode.
-If set to value zero (default) no recycle will took place. 
+If set to value zero (default) no recycle will took place.
 /directive
 
 directive name=retries default=3 required=false
@@ -162,7 +162,7 @@
 It will limit the number of those connection that each web server child
 process can made.
 p
-Cachesize property is used only for multi threaded 
+Cachesize property is used only for multi threaded
 web servers such as Apache 2.0 (worker), IIS and Netscape. The cachesize 
property
 should reflect the number of threads per child process. JK will discover
 the number of threads per child process on Apache 2 web server with worker-mpm 
and set
@@ -174,9 +174,9 @@
 
 directive name=cache_timeout default=0 required=false
 Cache timeout property should be used with bcachesize/b to specify how to 
time JK should keep
-an open socket in cache before closing it. This property should be used to 
reduce the number of threads 
+an open socket in cache before closing it. This property should be used to 
reduce the number of threads
 on the Tomcat WebServer.
-p 
+p
 Each child could open an ajp13 connection if it have to forward a 

Re: ParserController.java

2006-03-16 Thread Mladen Turk

Jean-frederic Clere wrote:

Hi,

One of the patches I need to get TC working with JSP in EBCDIC is the 
following:


Any comments?



Yes. Fix your clock. You live in the future :)

Cheers,
Mladen.

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



DO NOT REPLY [Bug 37498] - [PATCH] NPE in org.apache.catalina.core.ContainerBase.removeChild

2006-03-16 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=37498.
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=37498





--- Additional Comments From [EMAIL PROTECTED]  2006-03-16 09:36 ---
(In reply to comment #5)
 getLogger().getClass().getClassLoader() == WebappClassLoader
 this.getClass().getClassLoader() == StandardClassLoader
 
 Maybe this is 100% correct and expected behaviour

How did you guess ? ;)

 .  But the problem that occurs
 is the call to log the Tomcat Container situation relys on the web-apps class
 files (which we just deleted/removed).

The files are deleted/removed after, when stopping the classloader. In
listenerStop, the classloader is fully able to load any class, and the context
classloader is also correctly set.

 Okay.. I think I may have a proper path for this problem, during the setup of
 the Context in StandardContext#start() we zap the logger instance for use 
 while
 re run some web-app related method.

This is because some (bad) components may call getLogger before the context
classloader is correctly set. This is not the case here.

 I think we should also zap it again when we unbind and return that thread back
 to the containter execution context so all future logging is done with TCs
 logging instances from StandardClassLoader.

This is not future logging, this is perfectly valid logging, done in the
application context, which is still available.

 Please explain any specific objections to that. 

The issues is that there's no reason to do that.

 I realize logging and
 ClassLoaders are a nightmare.

No. Only certain technologies have issues. You would have no issues with
java.util.logging, for example.

-- 
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 38795] - [PATCH] StandardContext doesn't always reset thread's contextClassLoader

2006-03-16 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=38795.
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=38795





--- Additional Comments From [EMAIL PROTECTED]  2006-03-16 09:42 ---
(In reply to comment #2)
 Created an attachment (id=17909)
 -- (http://issues.apache.org/bugzilla/attachment.cgi?id=17909action=view) 
[edit]
 Defensive coding patch for all bind/unbind usage NEEDS PEER REVIEW

It doesn't look like a good patch.

 Its very important that TCs internal accounting state can never
 be disrupted no matter how badly a web-app behaves

It's very funny. Let's see:
- ways to guarantee thread release: none
- ways to guarantee memory release: none
- ways to guarantee classloading is clean (ex: log4j): none

Please write a letter to Sun for me :)


-- 
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: r386315 - /tomcat/jasper/tc5.5.x/src/share/org/apache/jasper/compiler/ParserController.java

2006-03-16 Thread jfclere
Author: jfclere
Date: Thu Mar 16 03:54:29 2006
New Revision: 386315

URL: http://svn.apache.org/viewcvs?rev=386315view=rev
Log:
If the encoding is not specified use the detected one.

Modified:

tomcat/jasper/tc5.5.x/src/share/org/apache/jasper/compiler/ParserController.java

Modified: 
tomcat/jasper/tc5.5.x/src/share/org/apache/jasper/compiler/ParserController.java
URL: 
http://svn.apache.org/viewcvs/tomcat/jasper/tc5.5.x/src/share/org/apache/jasper/compiler/ParserController.java?rev=386315r1=386314r2=386315view=diff
==
--- 
tomcat/jasper/tc5.5.x/src/share/org/apache/jasper/compiler/ParserController.java
 (original)
+++ 
tomcat/jasper/tc5.5.x/src/share/org/apache/jasper/compiler/ParserController.java
 Thu Mar 16 03:54:29 2006
@@ -372,7 +372,8 @@
 * Determine the page encoding from the page directive, unless it's
 * specified via JSP config.
 */
-   sourceEnc = jspConfigPageEnc;
+   if (jspConfigPageEnc != null)
+   sourceEnc = jspConfigPageEnc;
if (sourceEnc == null) {
sourceEnc = getPageEncodingForJspSyntax(jspReader, startMark);
if (sourceEnc == null) {



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



Re: ParserController.java

2006-03-16 Thread Jean-frederic Clere

Mladen Turk wrote:


Jean-frederic Clere wrote:


Hi,

One of the patches I need to get TC working with JSP in EBCDIC is the 
following:


Any comments?



Yes. Fix your clock. You live in the future :)


Have to fix the past to be allow to live in the future :)



Cheers,
Mladen.

-
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: r386322 - /tomcat/container/tc5.5.x/modules/ha/src/share/org/apache/catalina/ha/tcp/ReplicationValve.java

2006-03-16 Thread fhanik
Author: fhanik
Date: Thu Mar 16 04:48:09 2006
New Revision: 386322

URL: http://svn.apache.org/viewcvs?rev=386322view=rev
Log:
Fixed primary session settings as per pero's fix

Modified:

tomcat/container/tc5.5.x/modules/ha/src/share/org/apache/catalina/ha/tcp/ReplicationValve.java

Modified: 
tomcat/container/tc5.5.x/modules/ha/src/share/org/apache/catalina/ha/tcp/ReplicationValve.java
URL: 
http://svn.apache.org/viewcvs/tomcat/container/tc5.5.x/modules/ha/src/share/org/apache/catalina/ha/tcp/ReplicationValve.java?rev=386322r1=386321r2=386322view=diff
==
--- 
tomcat/container/tc5.5.x/modules/ha/src/share/org/apache/catalina/ha/tcp/ReplicationValve.java
 (original)
+++ 
tomcat/container/tc5.5.x/modules/ha/src/share/org/apache/catalina/ha/tcp/ReplicationValve.java
 Thu Mar 16 04:48:09 2006
@@ -468,6 +468,7 @@
 Session contextSession = request.getSessionInternal(false);
 if(contextSession != null  contextSession instanceof DeltaSession){
 resetDeltaRequest(contextSession);
+((DeltaSession)contextSession).setPrimarySession(true);
 }
 if(isCrossContext) {
 Object sessions = crossContextSessions.get();
@@ -477,6 +478,9 @@
 for(; iter.hasNext() ;) {  
 Session session = (Session)iter.next();
 resetDeltaRequest(session);
+if(session instanceof DeltaSession)
+((DeltaSession)contextSession).setPrimarySession(true);
+
 }
 }
 } 



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



Re: [VOTE][RESULT] Tomcat v5.5.16 Stability

2006-03-16 Thread Yoav Shapira
Hola,
Releasing a new version a day after declaring the previous one stable
is... amusing... At most I'd package this optional piece minor-minor
release (1.1.1 to 1.1.2) separately and tell users where to find it if
interested.  Are we not modular enough to do this?

Yoav

On 3/16/06, Filip Hanik - Dev Lists [EMAIL PROTECTED] wrote:
 I'm in favor on releasing 5.5.17, users shouldn't have to figure it out
 the hard way.

 Filip

 Mladen Turk wrote:
  Yoav Shapira wrote:
   The Apache Tomcat Team has voted to certify v5.5.16 as stable.
   Binding +1 votes were cast by Mladen Turk, Peter Rossbach, Remy
   Maucherat, Henri Gomez, Jeanfrancois Arcand, and myself.
  
 
  Just figured out that the 5.5.16 was shipped with tomcat-native-1.1.1,
  and it should be 1.1.2.
 
  How should we resolve that? By repacking or releasing 5.5.17
  I'm in favor of second.
 
  Regards,
  Mladen.
 
 
  -
  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]




--
Yoav Shapira
Nimalex LLC
1 Mifflin Place, Suite 310
Cambridge, MA, USA
[EMAIL PROTECTED] / www.yoavshapira.com

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



Re: [VOTE][RESULT] Tomcat v5.5.16 Stability

2006-03-16 Thread Remy Maucherat

Yoav Shapira wrote:

Hola,
Releasing a new version a day after declaring the previous one stable
is... amusing... At most I'd package this optional piece minor-minor
release (1.1.1 to 1.1.2) separately and tell users where to find it if
interested.  Are we not modular enough to do this?


1.1.2 is already available and easy to download (here: 
http://www.apache.org/dist/tomcat/tomcat-connectors/native/tomcat-native-1.1.2.tar.gz).


For Windows installer users, it's ok (it will d/l the up to date 1.1.2 
dll). The 1.1.1 package Mladen is talking about is the one in bin 
inside the Tomcat distribution. Tomcat will put out an error message 
requesting version 1.1.2 if you try to run it with 1.1.1.


So IMO, it's a problem, but people can still figure it out (maybe you 
can add a note to the readme on the download page, or something).


Rémy

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



DO NOT REPLY [Bug 37498] - [PATCH] NPE in org.apache.catalina.core.ContainerBase.removeChild

2006-03-16 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=37498.
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=37498





--- Additional Comments From [EMAIL PROTECTED]  2006-03-16 13:04 ---
(In reply to comment #10)(In reply to comment #10)
 Your points noted.  They do however seem to be more subjective than objective,
 maybe you would re-phrase them in a technical manner so everyone can better
 understand the technical point of view you are trying to convey.

Whatever.

 Some other alternative solutions I can suggest

I do not see how they make any sense, that's the issue.

 With reference to your future logging comment, it doesn't make any sense 
 given
 this bug report and suggests you may not have taken all the details in.

Ok, no problem, I will ignore this bug report, then.


-- 
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 37498] - [PATCH] NPE in org.apache.catalina.core.ContainerBase.removeChild

2006-03-16 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=37498.
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=37498


[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|REOPENED|RESOLVED
 Resolution||WONTFIX




-- 
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: [VOTE][RESULT] Tomcat v5.5.16 Stability

2006-03-16 Thread Mladen Turk

Yoav Shapira wrote:

Hola,
The one thing I don't want to do is repackage 5.5.16.  The do nothing
option is viable, as is just sending a message (ideally a response to
my stable vote announcement) to the mailing lists saying by the way,
it's stable but it has native 1.1.1 just fyi.  If you want to build
just native 1.1.2 and post it on the download page as a small separate
binary, that's fine by me as well...



We'll have a zillion of: it doesn't work on the user list ;).
But like Remy said, a note should be fine, but it should go as
a simple note on the web site and README in the FTP.

Regards,
Mladen.


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



Re: [VOTE][RESULT] Tomcat v5.5.16 Stability

2006-03-16 Thread Henri Gomez
And for the majority of users the 1.1.1 sources are useless, they want
and use 1.1.2 binaries provided by Mladen :)

2006/3/16, Mladen Turk [EMAIL PROTECTED]:
 Yoav Shapira wrote:
  Hola,
  The one thing I don't want to do is repackage 5.5.16.  The do nothing
  option is viable, as is just sending a message (ideally a response to
  my stable vote announcement) to the mailing lists saying by the way,
  it's stable but it has native 1.1.1 just fyi.  If you want to build
  just native 1.1.2 and post it on the download page as a small separate
  binary, that's fine by me as well...
 

 We'll have a zillion of: it doesn't work on the user list ;).
 But like Remy said, a note should be fine, but it should go as
 a simple note on the web site and README in the FTP.

 Regards,
 Mladen.


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



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



Re: [VOTE][RESULT] Tomcat v5.5.16 Stability

2006-03-16 Thread Henri Gomez
There is also something to add in tcnative, the support of static link with APR.

Many Linux distributions still provided Apache 2.0.x and APR 0.9.x and
as such people couldn't use tcnative against APR 0.9.x.


2006/3/16, Henri Gomez [EMAIL PROTECTED]:
 And for the majority of users the 1.1.1 sources are useless, they want
 and use 1.1.2 binaries provided by Mladen :)

 2006/3/16, Mladen Turk [EMAIL PROTECTED]:
  Yoav Shapira wrote:
   Hola,
   The one thing I don't want to do is repackage 5.5.16.  The do nothing
   option is viable, as is just sending a message (ideally a response to
   my stable vote announcement) to the mailing lists saying by the way,
   it's stable but it has native 1.1.1 just fyi.  If you want to build
   just native 1.1.2 and post it on the download page as a small separate
   binary, that's fine by me as well...
  
 
  We'll have a zillion of: it doesn't work on the user list ;).
  But like Remy said, a note should be fine, but it should go as
  a simple note on the web site and README in the FTP.
 
  Regards,
  Mladen.
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 


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



Re: [VOTE][RESULT] Tomcat v5.5.16 Stability

2006-03-16 Thread Remy Maucherat

Henri Gomez wrote:

There is also something to add in tcnative, the support of static link with APR.

Many Linux distributions still provided Apache 2.0.x and APR 0.9.x and
as such people couldn't use tcnative against APR 0.9.x.


We're never going to support APR 0.9.

Rémy


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



Re: [VOTE][RESULT] Tomcat v5.5.16 Stability

2006-03-16 Thread Henri Gomez
2006/3/16, Remy Maucherat [EMAIL PROTECTED]:
 Henri Gomez wrote:
  There is also something to add in tcnative, the support of static link with 
  APR.
 
  Many Linux distributions still provided Apache 2.0.x and APR 0.9.x and
  as such people couldn't use tcnative against APR 0.9.x.

 We're never going to support APR 0.9.

That's why we should provide a way to build tcnative linked statically
against another APR.

We could comment how to build an APR 1.2.2 ready for static inclusion (easy).

But the configure/makefile of tcnative should be adapted

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



svn commit: r386326 - in /tomcat/site/trunk: docs/download-55.html xdocs/download-55.xml

2006-03-16 Thread yoavs
Author: yoavs
Date: Thu Mar 16 05:50:50 2006
New Revision: 386326

URL: http://svn.apache.org/viewcvs?rev=386326view=rev
Log:
Add note about native connector version in 5.5.16.

Modified:
tomcat/site/trunk/docs/download-55.html
tomcat/site/trunk/xdocs/download-55.xml

Modified: tomcat/site/trunk/docs/download-55.html
URL: 
http://svn.apache.org/viewcvs/tomcat/site/trunk/docs/download-55.html?rev=386326r1=386325r2=386326view=diff
==
--- tomcat/site/trunk/docs/download-55.html (original)
+++ tomcat/site/trunk/docs/download-55.html Thu Mar 16 05:50:50 2006
@@ -314,6 +314,16 @@
   a href=[preferred]/tomcat/tomcat-5/v5.5.16/README.htmlREADME/a
   file for packaging information.  It explains what every distribution 
contains.
   /p
+  p
+  strongNote Regarding Native Connector:/strong
+  The Tomcat 5.5.16 binaries include the Native Connector version 1.1.1.  
This version
+  contains some significant bugs that have been addressed in version 
1.1.2.  We strongly
+  encourage users of the Native Connector to upgrade to version 1.1.2 by 
downloading it: 
+  a 
href=[preferred]/tomcat/tomcat-connectors/native/tomcat-native-1.1.2.tar.gztar.gz/a
+  (a 
href=http://www.apache.org/dist/tomcat/tomcat-connectors/native/tomcat-native-1.1.2.tar.gz.asc;PGP/a),
 
+  a 
href=[preferred]/tomcat/tomcat-connectors/native/tomcat-native-1.1.2.zipzip/a
 
+  (a 
href=http://www.apache.org/dist/tomcat/tomcat-connectors/native/tomcat-native-1.1.2.zip.asc;PGP/a)
+  /p
 
   table width=100% cellpadding=2 cellspacing=0 border=0
 tr

Modified: tomcat/site/trunk/xdocs/download-55.xml
URL: 
http://svn.apache.org/viewcvs/tomcat/site/trunk/xdocs/download-55.xml?rev=386326r1=386325r2=386326view=diff
==
--- tomcat/site/trunk/xdocs/download-55.xml (original)
+++ tomcat/site/trunk/xdocs/download-55.xml Thu Mar 16 05:50:50 2006
@@ -65,6 +65,16 @@
   a href=[preferred]/tomcat/tomcat-5/v5.5.16/README.htmlREADME/a
   file for packaging information.  It explains what every distribution 
contains.
   /p
+  p
+  strongNote Regarding Native Connector:/strong
+  The Tomcat 5.5.16 binaries include the Native Connector version 1.1.1.  
This version
+  contains some significant bugs that have been addressed in version 
1.1.2.  We strongly
+  encourage users of the Native Connector to upgrade to version 1.1.2 by 
downloading it: 
+  a 
href=[preferred]/tomcat/tomcat-connectors/native/tomcat-native-1.1.2.tar.gztar.gz/a
+  (a 
href=http://www.apache.org/dist/tomcat/tomcat-connectors/native/tomcat-native-1.1.2.tar.gz.asc;PGP/a),
 
+  a 
href=[preferred]/tomcat/tomcat-connectors/native/tomcat-native-1.1.2.zipzip/a
 
+  (a 
href=http://www.apache.org/dist/tomcat/tomcat-connectors/native/tomcat-native-1.1.2.zip.asc;PGP/a)
+  /p
 
   subsection name=Binary Distributions
   ul



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



Re: [VOTE][RESULT] Tomcat v5.5.16 Stability

2006-03-16 Thread Yoav Shapira
Hola,
I've added notes to the download page and to the README.html on the
web site which contains packaging information  If you'd like to send
an email to the list or add notes elsewhere, have fun ;)

Yoav

On 3/16/06, Mladen Turk [EMAIL PROTECTED] wrote:
 Yoav Shapira wrote:
  Hola,
  The one thing I don't want to do is repackage 5.5.16.  The do nothing
  option is viable, as is just sending a message (ideally a response to
  my stable vote announcement) to the mailing lists saying by the way,
  it's stable but it has native 1.1.1 just fyi.  If you want to build
  just native 1.1.2 and post it on the download page as a small separate
  binary, that's fine by me as well...
 

 We'll have a zillion of: it doesn't work on the user list ;).
 But like Remy said, a note should be fine, but it should go as
 a simple note on the web site and README in the FTP.

 Regards,
 Mladen.


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




--
Yoav Shapira
Nimalex LLC
1 Mifflin Place, Suite 310
Cambridge, MA, USA
[EMAIL PROTECTED] / www.yoavshapira.com

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



svn commit: r386331 - /tomcat/container/tc5.5.x/catalina/src/share/org/apache/catalina/core/StandardContext.java

2006-03-16 Thread remm
Author: remm
Date: Thu Mar 16 06:03:12 2006
New Revision: 386331

URL: http://svn.apache.org/viewcvs?rev=386331view=rev
Log:
- 38795: Associate more closely bind with a finally unbind.
- Based on a patch submitted by Darryl Miles.

Modified:

tomcat/container/tc5.5.x/catalina/src/share/org/apache/catalina/core/StandardContext.java

Modified: 
tomcat/container/tc5.5.x/catalina/src/share/org/apache/catalina/core/StandardContext.java
URL: 
http://svn.apache.org/viewcvs/tomcat/container/tc5.5.x/catalina/src/share/org/apache/catalina/core/StandardContext.java?rev=386331r1=386330r2=386331view=diff
==
--- 
tomcat/container/tc5.5.x/catalina/src/share/org/apache/catalina/core/StandardContext.java
 (original)
+++ 
tomcat/container/tc5.5.x/catalina/src/share/org/apache/catalina/core/StandardContext.java
 Thu Mar 16 06:03:12 2006
@@ -4059,18 +4059,19 @@
 }
 }
 
-// Binding thread
-ClassLoader oldCCL = bindThread();
-
 // Standard container startup
 if (log.isDebugEnabled())
 log.debug(Processing standard container startup);
 
-if (ok) {
+// Binding thread
+ClassLoader oldCCL = bindThread();
 
-boolean mainOk = false;
-try {
+boolean mainOk = false;
 
+try {
+
+if (ok) {
+
 started = true;
 
 // Start our subordinate components, if any
@@ -4141,17 +4142,18 @@
 
 mainOk = true;
 
-} finally {
-// Unbinding thread
-unbindThread(oldCCL);
-if (!mainOk) {
-// An exception occurred
-// Register with JMX anyway, to allow management
-registerJMX();
-}
 }
 
+} finally {
+// Unbinding thread
+unbindThread(oldCCL);
+if (!mainOk) {
+// An exception occurred
+// Register with JMX anyway, to allow management
+registerJMX();
+}
 }
+
 if (!getConfigured()) {
 log.error( Error getConfigured);
 ok = false;
@@ -4168,38 +4170,42 @@
 // Binding thread
 oldCCL = bindThread();
 
-// Create context attributes that will be required
-if (ok) {
-postWelcomeFiles();
-}
-
-if (ok) {
-// Notify our interested LifecycleListeners
-lifecycle.fireLifecycleEvent(AFTER_START_EVENT, null);
-}
-
-// Configure and call application event listeners and filters
-if (ok) {
-if (!listenerStart()) {
-log.error( Error listenerStart);
-ok = false;
+try {
+
+// Create context attributes that will be required
+if (ok) {
+postWelcomeFiles();
 }
-}
-if (ok) {
-if (!filterStart()) {
-log.error( Error filterStart);
-ok = false;
+
+if (ok) {
+// Notify our interested LifecycleListeners
+lifecycle.fireLifecycleEvent(AFTER_START_EVENT, null);
 }
+
+// Configure and call application event listeners and filters
+if (ok) {
+if (!listenerStart()) {
+log.error( Error listenerStart);
+ok = false;
+}
+}
+if (ok) {
+if (!filterStart()) {
+log.error( Error filterStart);
+ok = false;
+}
+}
+
+// Load and initialize all load on startup servlets
+if (ok) {
+loadOnStartup(findChildren());
+}
+
+} finally {
+// Unbinding thread
+unbindThread(oldCCL);
 }
 
-// Load and initialize all load on startup servlets
-if (ok) {
-loadOnStartup(findChildren());
-}
-
-// Unbinding thread
-unbindThread(oldCCL);
-
 // Set available status depending upon startup success
 if (ok) {
 if (log.isDebugEnabled())
@@ -4324,30 +4330,30 @@
 // Binding thread
 ClassLoader oldCCL = bindThread();
 
-// Stop our filters
-filterStop();
+try {
 
-// Stop our application listeners
-listenerStop();
+// Stop our filters
+filterStop();
 
-// Stop ContainerBackgroundProcessor thread
-super.threadStop();
+// Stop our application listeners
+listenerStop();
 
-if ((manager != null)  (manager instanceof Lifecycle)) {
-((Lifecycle) manager).stop();
-}
+// 

svn commit: r386336 - in /tomcat/container/tc5.5.x/catalina/src/share/org/apache/catalina/startup: HostConfig.java LocalStrings.properties

2006-03-16 Thread remm
Author: remm
Date: Thu Mar 16 06:13:00 2006
New Revision: 386336

URL: http://svn.apache.org/viewcvs?rev=386336view=rev
Log:
- Wrap remove inside a try/catch, to prevent recurrent undeploy failures.

Modified:

tomcat/container/tc5.5.x/catalina/src/share/org/apache/catalina/startup/HostConfig.java

tomcat/container/tc5.5.x/catalina/src/share/org/apache/catalina/startup/LocalStrings.properties

Modified: 
tomcat/container/tc5.5.x/catalina/src/share/org/apache/catalina/startup/HostConfig.java
URL: 
http://svn.apache.org/viewcvs/tomcat/container/tc5.5.x/catalina/src/share/org/apache/catalina/startup/HostConfig.java?rev=386336r1=386335r2=386336view=diff
==
--- 
tomcat/container/tc5.5.x/catalina/src/share/org/apache/catalina/startup/HostConfig.java
 (original)
+++ 
tomcat/container/tc5.5.x/catalina/src/share/org/apache/catalina/startup/HostConfig.java
 Thu Mar 16 06:13:00 2006
@@ -975,12 +975,17 @@
 if (log.isInfoEnabled())
 log.info(sm.getString(hostConfig.undeploy, 
app.name));
 ContainerBase context = (ContainerBase) 
host.findChild(app.name);
-host.removeChild(context);
+try {
+host.removeChild(context);
+} catch (Throwable t) {
+log.warn(sm.getString
+ (hostConfig.context.remove, app.name), t);
+}
 try {
 context.destroy();
-} catch (Exception e) {
+} catch (Throwable t) {
 log.warn(sm.getString
- (hostConfig.context.destroy, app.name), e);
+ (hostConfig.context.destroy, app.name), t);
 }
 // Delete other redeploy resources
 for (int j = i + 1; j  resources.length; j++) {
@@ -1010,12 +1015,17 @@
 if (log.isInfoEnabled())
 log.info(sm.getString(hostConfig.undeploy, app.name));
 ContainerBase context = (ContainerBase) 
host.findChild(app.name);
-host.removeChild(context);
+try {
+host.removeChild(context);
+} catch (Throwable t) {
+log.warn(sm.getString
+ (hostConfig.context.remove, app.name), t);
+}
 try {
 context.destroy();
-} catch (Exception e) {
+} catch (Throwable t) {
 log.warn(sm.getString
- (hostConfig.context.destroy, app.name), e);
+ (hostConfig.context.destroy, app.name), t);
 }
 // Delete all redeploy resources
 for (int j = i + 1; j  resources.length; j++) {
@@ -1150,7 +1160,12 @@
 DeployedApplication[] apps = 
 (DeployedApplication[]) deployed.values().toArray(new 
DeployedApplication[0]);
 for (int i = 0; i  apps.length; i++) {
-host.removeChild(host.findChild(apps[i].name));
+try {
+host.removeChild(host.findChild(apps[i].name));
+} catch (Throwable t) {
+log.warn(sm.getString
+(hostConfig.context.remove, apps[i].name), t);
+}
 }
 
 deployed.clear();

Modified: 
tomcat/container/tc5.5.x/catalina/src/share/org/apache/catalina/startup/LocalStrings.properties
URL: 
http://svn.apache.org/viewcvs/tomcat/container/tc5.5.x/catalina/src/share/org/apache/catalina/startup/LocalStrings.properties?rev=386336r1=386335r2=386336view=diff
==
--- 
tomcat/container/tc5.5.x/catalina/src/share/org/apache/catalina/startup/LocalStrings.properties
 (original)
+++ 
tomcat/container/tc5.5.x/catalina/src/share/org/apache/catalina/startup/LocalStrings.properties
 Thu Mar 16 06:13:00 2006
@@ -43,6 +43,7 @@
 hostConfig.canonicalizing=Error delete redeploy resources from context [{0}]
 hostConfig.cce=Lifecycle event data object {0} is not a Host
 hostConfig.context.destroy=Error during context [{0}] destroy
+hostConfig.context.remove=Error while removing context [{0}]
 hostConfig.context.restart=Error during context [{0}] restart
 hostConfig.deploy=Deploying web application directory {0}
 hostConfig.deployDescriptor=Deploying configuration descriptor {0}



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



Re: [VOTE][RESULT] Tomcat v5.5.16 Stability

2006-03-16 Thread Peter Rossbach
I also can't find apr static link command for MAC OS X. At MAC OS X  
the tcnative library´suffix must be jnilib instead dylib. How I can  
change this?


peter



Am 16.03.2006 um 15:15 schrieb Henri Gomez:


2006/3/16, Mladen Turk [EMAIL PROTECTED]:

Henri Gomez wrote:


We could comment how to build an APR 1.2.2 ready for static  
inclusion (easy).

But the configure/makefile of tcnative should be adapted



You have the commit rights, so what's the problem :)


One problems :

- How to get the correct link command from apr-config when APR want to
be used statically. I've got it for Linux but what about AIX / HPUX /
Solaris. Send questions on apr-dev but still not response.

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



DO NOT REPLY [Bug 38997] New: - install4iis.js doesn't work on Windows 2003 Server

2006-03-16 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=38997.
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=38997

   Summary: install4iis.js doesn't work on Windows 2003 Server
   Product: Tomcat 5
   Version: 5.0.30
  Platform: PC
OS/Version: Windows Server 2003
Status: NEW
  Severity: normal
  Priority: P2
 Component: Unknown
AssignedTo: tomcat-dev@jakarta.apache.org
ReportedBy: [EMAIL PROTECTED]


For some reason, on Windows 2003 Server, the ROOT directory is returned as Root
in findADSIObject.  Consequently, the install script doesn't find it and fails.

To fix it, modify line 483 on install4iis.js.  Change ROOT to Root.

-- 
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: [VOTE][RESULT] Tomcat v5.5.16 Stability

2006-03-16 Thread Yoav Shapira
Separate thread, perhaps for this technical discussion?

(The [VOTE] and [VOTE][RESULT] threads have significant historical
value for readers and researchers, I like to keep them as on-topic as
possible)  Thanks,

Yoav

On 3/16/06, Peter Rossbach [EMAIL PROTECTED] wrote:
 I also can't find apr static link command for MAC OS X. At MAC OS X
 the tcnative library´suffix must be jnilib instead dylib. How I can
 change this?

 peter



 Am 16.03.2006 um 15:15 schrieb Henri Gomez:

  2006/3/16, Mladen Turk [EMAIL PROTECTED]:
  Henri Gomez wrote:
 
  We could comment how to build an APR 1.2.2 ready for static
  inclusion (easy).
  But the configure/makefile of tcnative should be adapted
 
 
  You have the commit rights, so what's the problem :)
 
  One problems :
 
  - How to get the correct link command from apr-config when APR want to
  be used statically. I've got it for Linux but what about AIX / HPUX /
  Solaris. Send questions on apr-dev but still not response.
 
  -
  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]




--
Yoav Shapira
Nimalex LLC
1 Mifflin Place, Suite 310
Cambridge, MA, USA
[EMAIL PROTECTED] / www.yoavshapira.com

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



Re: [VOTE][RESULT] Tomcat v5.5.16 Stability

2006-03-16 Thread Henri Gomez
for Linux (Suse SLES 9 PPC and i386)

to build APR 1.2.2 with static support I used :

./configure --with-pic --prefix=/root/local

For tcnative I used :

./configure --with-apr=/root/local/bin/apr-1-config

Then I change the Makefile like this :

$(TARGET_LIB): $(OBJECTS)
$(LINK) -rpath $(libdir) $(OBJECTS)  
/root/local/lib/libapr-1.a -lrt -lcrypt  -lpthread -ldl -lssl -lcrypto

Even when build with static support, the APR apr-config (apr-1-config
here) didn't provide the   /root/local/lib/libapr-1.a ;(

2006/3/16, Peter Rossbach [EMAIL PROTECTED]:
 I also can't find apr static link command for MAC OS X. At MAC OS X
 the tcnative library´suffix must be jnilib instead dylib. How I can
 change this?

 peter



 Am 16.03.2006 um 15:15 schrieb Henri Gomez:

  2006/3/16, Mladen Turk [EMAIL PROTECTED]:
  Henri Gomez wrote:
 
  We could comment how to build an APR 1.2.2 ready for static
  inclusion (easy).
  But the configure/makefile of tcnative should be adapted
 
 
  You have the commit rights, so what's the problem :)
 
  One problems :
 
  - How to get the correct link command from apr-config when APR want to
  be used statically. I've got it for Linux but what about AIX / HPUX /
  Solaris. Send questions on apr-dev but still not response.
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 


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



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



DO NOT REPLY [Bug 38795] - [PATCH] StandardContext doesn't always reset thread's contextClassLoader

2006-03-16 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=38795.
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=38795


[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||FIXED




--- Additional Comments From [EMAIL PROTECTED]  2006-03-16 14:45 ---
I have improved the try/finally, especially in stop.

-- 
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: http://issues.apache.org/bugzilla/show_bug.cgi?id=38984

2006-03-16 Thread Jim Jagielski

I'm thinking... the behavior we want is that non-Windows
OSs want the APR_SO_REUSEADDR before the bind; Windows
wants it after. So checking for (OS.IS_UNIX) at
one point (for the former) and then (OS.IS_WIN32 || OS.IS_WIN64)
(for the later) is misleading, and doesn't match what
we do elsewhere. So why not make the former test

!(OS.IS_WIN32 || OS.IS_WIN64)

instead? This should also fix the MacOS bug as well.


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



Re: ParserController.java

2006-03-16 Thread Ian Darwin




One of the patches I need to get TC working with JSP in EBCDIC is the 
following:


Any comments?



Yes. Fix your clock. You live in the future :)


What!? EBCDIC makes a comeback in the future? :-)  Quick, let me phone 
my stock broker...


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



Start

2006-03-16 Thread José Iván González Vidal

Hola, alguien me puede colaborar, estoy iniciando a utilizar el Tomcat lo
instalé y el servicio aparece iniciado, pero cuando abro la página
127.0.0.1:8080
pero no The page no found.

- Lo desinstalé y lo instalé nuevamente.

y sigue en lo mismo, estoy trabajando con Xp y bajé la versión
apache-tomcat-5.5.16

Alguna sugerencia??

tks


José Iván González Vidal
Coordinador de Sistemas
www.citalsa.com http://www.citalsa.com
Cel: 3003196231
Tel: 2854400 ext 111
msn: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]
skype: jamaswireless



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



DO NOT REPLY [Bug 38998] New: - Ant example missing a jar

2006-03-16 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=38998.
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=38998

   Summary: Ant example missing a jar
   Product: Tomcat 5
   Version: Unknown
  Platform: All
   URL: http://tomcat.apache.org/tomcat-4.1-doc/jasper-
howto.html
OS/Version: other
Status: NEW
  Severity: normal
  Priority: P2
 Component: Jasper
AssignedTo: tomcat-dev@jakarta.apache.org
ReportedBy: [EMAIL PROTECTED]


The Ant example in the HowTo is missing the following from the path:

pathelement location=${tomcat.home}/bin/commons-logging-api.jar/

For someone who's new to Ant and tries to figure this out, this could be a 
barrier to entry.

Thank you.

-- 
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: Start

2006-03-16 Thread José Iván González Vidal

Hi!!

I´m begining to use the apache-tomcat-5.5.16, I install it and start the
service but , when I try to open the page: http://127.0.0.1:8080 it doesn'
found, and if I go to see the process who are opening ports this doesn´t
open the port 8080...

Tks...


José Iván González Vidal
Coordinador de Sistemas
www.citalsa.com http://www.citalsa.com
Cel: 3003196231
Tel: 2854400 ext 111
msn: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]
skype: jamaswireless



-Mensaje original-
De: José Iván González Vidal [mailto:[EMAIL PROTECTED]
Enviado el: Jueves, 16 de Marzo de 2006 11:17 a.m.
Para: 'Tomcat Developers List'
Asunto: Start



Hola, alguien me puede colaborar, estoy iniciando a utilizar el Tomcat lo
instalé y el servicio aparece iniciado, pero cuando abro la página
127.0.0.1:8080
pero no The page no found.

- Lo desinstalé y lo instalé nuevamente.

y sigue en lo mismo, estoy trabajando con Xp y bajé la versión
apache-tomcat-5.5.16

Alguna sugerencia??

tks


José Iván González Vidal
Coordinador de Sistemas
www.citalsa.com http://www.citalsa.com
Cel: 3003196231
Tel: 2854400 ext 111
msn: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]
skype: jamaswireless



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



Re: Start

2006-03-16 Thread Mladen Turk

José Iván González Vidal wrote:

Hi!!

I´m begining to use the apache-tomcat-5.5.16, I install it and start the
service but , when I try to open the page: http://127.0.0.1:8080 it doesn'
found, and if I go to see the process who are opening ports this doesn´t
open the port 8080...



!!! Thunderbird thinks this message might be an email scam.

This is what my email client thinks of your message.
However I think that you should use Tomcat users list for
such kind of problems and questions.

As a first shot I bet your windows firewall is blocking
the port 8080. Try running Tomcat from the command line.

Regards,
Mladen.

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



svn commit: r386390 - /tomcat/build/tc5.5.x/build.properties.default

2006-03-16 Thread remm
Author: remm
Date: Thu Mar 16 09:22:38 2006
New Revision: 386390

URL: http://svn.apache.org/viewcvs?rev=386390view=rev
Log:
- Update to Xerces 2.8.

Modified:
tomcat/build/tc5.5.x/build.properties.default

Modified: tomcat/build/tc5.5.x/build.properties.default
URL: 
http://svn.apache.org/viewcvs/tomcat/build/tc5.5.x/build.properties.default?rev=386390r1=386389r2=386390view=diff
==
--- tomcat/build/tc5.5.x/build.properties.default (original)
+++ tomcat/build/tc5.5.x/build.properties.default Thu Mar 16 09:22:38 2006
@@ -126,12 +126,12 @@
 commons-modeler.jar=${commons-modeler.lib}/commons-modeler.jar
 
commons-modeler.loc=${base-jakarta.loc}/commons/modeler/binaries/modeler-1.1.tar.gz
 
-# - Xerces XML Parser, version 2.7.1 -
-xerces.home=${base.path}/xerces-2_7_1
+# - Xerces XML Parser, version 2.8.0 -
+xerces.home=${base.path}/xerces-2_8_0
 xerces.lib=${xerces.home}
 xercesImpl.jar=${xerces.lib}/xercesImpl.jar
 xml-apis.jar=${xerces.lib}/xml-apis.jar
-xerces.loc=${base-xml.loc}/xerces-j/binaries/Xerces-J-bin.2.7.1.tar.gz
+xerces.loc=${base-xml.loc}/xerces-j/binaries/Xerces-J-bin.2.8.0.tar.gz
 
 
 # - Eclipse JDT, version 3.1.2 or later -



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



svn commit: r386404 - /tomcat/container/tc5.5.x/catalina/src/share/org/apache/catalina/valves/SemaphoreValve.java

2006-03-16 Thread remm
Author: remm
Date: Thu Mar 16 09:50:37 2006
New Revision: 386404

URL: http://svn.apache.org/viewcvs?rev=386404view=rev
Log:
- Expand a bit the semaphore valve.

Modified:

tomcat/container/tc5.5.x/catalina/src/share/org/apache/catalina/valves/SemaphoreValve.java

Modified: 
tomcat/container/tc5.5.x/catalina/src/share/org/apache/catalina/valves/SemaphoreValve.java
URL: 
http://svn.apache.org/viewcvs/tomcat/container/tc5.5.x/catalina/src/share/org/apache/catalina/valves/SemaphoreValve.java?rev=386404r1=386403r2=386404view=diff
==
--- 
tomcat/container/tc5.5.x/catalina/src/share/org/apache/catalina/valves/SemaphoreValve.java
 (original)
+++ 
tomcat/container/tc5.5.x/catalina/src/share/org/apache/catalina/valves/SemaphoreValve.java
 Thu Mar 16 09:50:37 2006
@@ -101,6 +101,22 @@
 public void setFairness(boolean fairness) { this.fairness = fairness; }
 
 
+/**
+ * Block until a permit is available.
+ */
+protected boolean block = true;
+public boolean getBlock() { return block; }
+public void setBlock(boolean block) { this.block = block; }
+
+
+/**
+ * Block interruptibly until a permit is available.
+ */
+protected boolean interruptible = false;
+public boolean getInterruptible() { return interruptible; }
+public void setInterruptible(boolean interruptible) { this.interruptible = 
interruptible; }
+
+
 // -- Lifecycle Methods
 
 
@@ -206,15 +222,55 @@
 public void invoke(Request request, Response response)
 throws IOException, ServletException {
 
-try {
-semaphore.acquireUninterruptibly();
-// Perform the request
+if (controlConcurrency(request, response)) {
+boolean shouldRelease = true;
+try {
+if (block) {
+if (interruptible) {
+try {
+semaphore.acquire();
+} catch (InterruptedException e) {
+shouldRelease = false;
+permitDenied(request, response);
+return;
+}  
+} else {
+semaphore.acquireUninterruptibly();
+}
+} else {
+if (!semaphore.tryAcquire()) {
+shouldRelease = false;
+permitDenied(request, response);
+return;
+}
+}
+getNext().invoke(request, response);
+} finally {
+if (shouldRelease) {
+semaphore.release();
+}
+}
+} else {
 getNext().invoke(request, response);
-} finally {
-semaphore.release();
 }
 
 }
 
+
+/**
+ * Subclass friendly method to add conditions.
+ */
+public boolean controlConcurrency(Request request, Response response) {
+return true;
+}
+
+
+/**
+ * Subclass friendly method to add error handling when a permit isn't 
granted.
+ */
+public void permitDenied(Request request, Response response)
+throws IOException, ServletException {
+}
+
 
 }



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



RE: svn commit: r386315 - /tomcat/jasper/tc5.5.x/src/share/org/apache/jasper/compiler/ParserController.java

2006-03-16 Thread Bill Barker
 

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
 Sent: Thursday, March 16, 2006 3:55 AM
 To: tomcat-dev@jakarta.apache.org
 Subject: svn commit: r386315 - 
 /tomcat/jasper/tc5.5.x/src/share/org/apache/jasper/compiler/Pa
 rserController.java
 
 Author: jfclere
 Date: Thu Mar 16 03:54:29 2006
 New Revision: 386315
 
 URL: http://svn.apache.org/viewcvs?rev=386315view=rev
 Log:
 If the encoding is not specified use the detected one.
 

-1.
If it gets to this point, the detected encoding is *wrong* (e.g. ?xml
version=1.0 encoding=iso-8859-2 ? in JSP syntax).  

I don't have access to an EBCDIC machine to know what the problem is, but
this isn't the fix.  Possibly a better way to guess the encoding of the
Reader?

 



This message is intended only for the use of the person(s) listed above as the 
intended recipient(s), and may contain information that is PRIVILEGED and 
CONFIDENTIAL.  If you are not an intended recipient, you may not read, copy, or 
distribute this message or any attachment. If you received this communication 
in error, please notify us immediately by e-mail and then delete all copies of 
this message and any attachments.

In addition you should be aware that ordinary (unencrypted) e-mail sent through 
the Internet is not secure. Do not send confidential or sensitive information, 
such as social security numbers, account numbers, personal identification 
numbers and passwords, to us via ordinary (unencrypted) e-mail.


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



RE: [VOTE][RESULT] Tomcat v5.5.16 Stability

2006-03-16 Thread Bill Barker
 

 -Original Message-
 From: Henri Gomez [mailto:[EMAIL PROTECTED] 
 Sent: Thursday, March 16, 2006 6:40 AM
 To: Tomcat Developers List
 Subject: Re: [VOTE][RESULT] Tomcat v5.5.16 Stability
 
 for Linux (Suse SLES 9 PPC and i386)
 
 to build APR 1.2.2 with static support I used :
 
 ./configure --with-pic --prefix=/root/local
 

If you include '--disable-shared', then APR will only build the .a, so that
is all that tcnative will have a choice to link to.

 For tcnative I used :
 
 ./configure --with-apr=/root/local/bin/apr-1-config
 
 Then I change the Makefile like this :
 
 $(TARGET_LIB): $(OBJECTS)
 $(LINK) -rpath $(libdir) $(OBJECTS)  
 /root/local/lib/libapr-1.a -lrt -lcrypt  -lpthread -ldl -lssl -lcrypto
 
 Even when build with static support, the APR apr-config (apr-1-config
 here) didn't provide the   /root/local/lib/libapr-1.a ;(
 
 2006/3/16, Peter Rossbach [EMAIL PROTECTED]:
  I also can't find apr static link command for MAC OS X. At MAC OS X
  the tcnative library´suffix must be jnilib instead dylib. How I can
  change this?
 
  peter
 
 
 
  Am 16.03.2006 um 15:15 schrieb Henri Gomez:
 
   2006/3/16, Mladen Turk [EMAIL PROTECTED]:
   Henri Gomez wrote:
  
   We could comment how to build an APR 1.2.2 ready for static
   inclusion (easy).
   But the configure/makefile of tcnative should be adapted
  
  
   You have the commit rights, so what's the problem :)
  
   One problems :
  
   - How to get the correct link command from apr-config 
 when APR want to
   be used statically. I've got it for Linux but what about 
 AIX / HPUX /
   Solaris. Send questions on apr-dev but still not response.
  
   
 -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
  
  
 
 
  
 -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 



This message is intended only for the use of the person(s) listed above as the 
intended recipient(s), and may contain information that is PRIVILEGED and 
CONFIDENTIAL.  If you are not an intended recipient, you may not read, copy, or 
distribute this message or any attachment. If you received this communication 
in error, please notify us immediately by e-mail and then delete all copies of 
this message and any attachments.

In addition you should be aware that ordinary (unencrypted) e-mail sent through 
the Internet is not secure. Do not send confidential or sensitive information, 
such as social security numbers, account numbers, personal identification 
numbers and passwords, to us via ordinary (unencrypted) e-mail.


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



svn commit: r386426 - /tomcat/build/tags/tc5.5.x/5_5_16/

2006-03-16 Thread markt
Author: markt
Date: Thu Mar 16 11:25:43 2006
New Revision: 386426

URL: http://svn.apache.org/viewcvs?rev=386426view=rev
Log:
Clean up duplicate 5.5.16 tags

Removed:
tomcat/build/tags/tc5.5.x/5_5_16/


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



svn commit: r386428 - /tomcat/container/tags/tc5.5.x/5_5_16/

2006-03-16 Thread markt
Author: markt
Date: Thu Mar 16 11:26:48 2006
New Revision: 386428

URL: http://svn.apache.org/viewcvs?rev=386428view=rev
Log:
Clean up duplicate 5.5.16 tags

Removed:
tomcat/container/tags/tc5.5.x/5_5_16/


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



svn commit: r386427 - /tomcat/connectors/tags/tc5.5.x/5_5_16/

2006-03-16 Thread markt
Author: markt
Date: Thu Mar 16 11:26:33 2006
New Revision: 386427

URL: http://svn.apache.org/viewcvs?rev=386427view=rev
Log:
Clean up duplicate 5.5.16 tags

Removed:
tomcat/connectors/tags/tc5.5.x/5_5_16/


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



svn commit: r386429 - /tomcat/jasper/tags/tc5.5.x/5_5_16/

2006-03-16 Thread markt
Author: markt
Date: Thu Mar 16 11:27:02 2006
New Revision: 386429

URL: http://svn.apache.org/viewcvs?rev=386429view=rev
Log:
Clean up duplicate 5.5.16 tags

Removed:
tomcat/jasper/tags/tc5.5.x/5_5_16/


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



svn commit: r386430 - /tomcat/servletapi/tags/servlet2.4-jsp2.0-tc5.x/5_5_16/

2006-03-16 Thread markt
Author: markt
Date: Thu Mar 16 11:27:52 2006
New Revision: 386430

URL: http://svn.apache.org/viewcvs?rev=386430view=rev
Log:
Clean up duplicate 5.5.16 tags

Removed:
tomcat/servletapi/tags/servlet2.4-jsp2.0-tc5.x/5_5_16/


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



svn commit: r386431 - /tomcat/servletapi/tags/servlet2.4-jsp2.0-tc5.x/TOMCAT_5_5_16/servlet2.4-jsp2.0-tc5.x/

2006-03-16 Thread markt
Author: markt
Date: Thu Mar 16 11:28:45 2006
New Revision: 386431

URL: http://svn.apache.org/viewcvs?rev=386431view=rev
Log:
Clean up duplicate 5.5.16 tags

Removed:

tomcat/servletapi/tags/servlet2.4-jsp2.0-tc5.x/TOMCAT_5_5_16/servlet2.4-jsp2.0-tc5.x/


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



svn commit: r386432 - /tomcat/site/tags/5_5_16/

2006-03-16 Thread markt
Author: markt
Date: Thu Mar 16 11:29:48 2006
New Revision: 386432

URL: http://svn.apache.org/viewcvs?rev=386432view=rev
Log:
Clean up duplicate 5.5.16 tags

Removed:
tomcat/site/tags/5_5_16/


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



svn commit: r386433 - /tomcat/site/tags/TOMCAT_5_5_16/trunk/

2006-03-16 Thread markt
Author: markt
Date: Thu Mar 16 11:30:25 2006
New Revision: 386433

URL: http://svn.apache.org/viewcvs?rev=386433view=rev
Log:
Clean up duplicate 5.5.16 tags

Removed:
tomcat/site/tags/TOMCAT_5_5_16/trunk/


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



svn commit: r386434 - /tomcat/jasper/tags/tc5.5.x/TOMCAT_5_5_16/tc5.5.x/

2006-03-16 Thread markt
Author: markt
Date: Thu Mar 16 11:31:29 2006
New Revision: 386434

URL: http://svn.apache.org/viewcvs?rev=386434view=rev
Log:
Clean up duplicate 5.5.16 tags

Removed:
tomcat/jasper/tags/tc5.5.x/TOMCAT_5_5_16/tc5.5.x/


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



svn commit: r386435 - /tomcat/container/tags/tc5.5.x/TOMCAT_5_5_16/tc5.5.x/

2006-03-16 Thread markt
Author: markt
Date: Thu Mar 16 11:31:51 2006
New Revision: 386435

URL: http://svn.apache.org/viewcvs?rev=386435view=rev
Log:
Clean up duplicate 5.5.16 tags

Removed:
tomcat/container/tags/tc5.5.x/TOMCAT_5_5_16/tc5.5.x/


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



svn commit: r386436 - /tomcat/build/tags/tc5.5.x/TOMCAT_5_5_16/tc5.5.x/

2006-03-16 Thread markt
Author: markt
Date: Thu Mar 16 11:32:41 2006
New Revision: 386436

URL: http://svn.apache.org/viewcvs?rev=386436view=rev
Log:
Clean up duplicate 5.5.16 tags

Removed:
tomcat/build/tags/tc5.5.x/TOMCAT_5_5_16/tc5.5.x/


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



svn commit: r386443 - /tomcat/build/tags/tc5.5.x/TOMCAT_5_5_16/build.properties.default

2006-03-16 Thread markt
Author: markt
Date: Thu Mar 16 11:50:59 2006
New Revision: 386443

URL: http://svn.apache.org/viewcvs?rev=386443view=rev
Log:
Merge the changes made to update the version number that were committed after 
the tag was made.

Modified:
tomcat/build/tags/tc5.5.x/TOMCAT_5_5_16/build.properties.default

Modified: tomcat/build/tags/tc5.5.x/TOMCAT_5_5_16/build.properties.default
URL: 
http://svn.apache.org/viewcvs/tomcat/build/tags/tc5.5.x/TOMCAT_5_5_16/build.properties.default?rev=386443r1=386442r2=386443view=diff
==
--- tomcat/build/tags/tc5.5.x/TOMCAT_5_5_16/build.properties.default (original)
+++ tomcat/build/tags/tc5.5.x/TOMCAT_5_5_16/build.properties.default Thu Mar 16 
11:50:59 2006
@@ -12,10 +12,10 @@
 # - Vesion Control Flags -
 version.major=5
 version.minor=5
-version.build=0
+version.build=16
 version.patch=0
 #Set the pretty version name
-version=5.5.0-dev
+version=5.5.16
 
 # - Compile Control Flags -
 compile.debug=on



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



Re: Tomcat Native Question

2006-03-16 Thread William A. Rowe, Jr.

Fenlason, Josh wrote:


I should have checked this before the vote for 5.5.16 was closed, but I
just realized that in 5.5.16 the native connector is still at 1.1.1.


Question, does TC-Native 1.1.1 share the same flaw as mod_jk, mod_proxy_ajp?


We would need to repack the 5.5.16 or release 5.5.17


If this flaw is present, clearly 5.5.17 is called for.  If the flaw is not
present, or irrelevant due to the fixes in Tomcat connectors themselves, then
I'd agree with that noop alternative and let folks obtain 1.1.2 on their own
if there is a bug fix that affects them.

No matter which, 5.5.17 will be along someday soon enough to encourage folks
to try out tcnative, and those following the dicussion closely are probably
already obtaining it independently.


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



Re: Tomcat Native Question

2006-03-16 Thread Mladen Turk

William A. Rowe, Jr. wrote:

Fenlason, Josh wrote:


I should have checked this before the vote for 5.5.16 was closed, but I
just realized that in 5.5.16 the native connector is still at 1.1.1.


Question, does TC-Native 1.1.1 share the same flaw as mod_jk, 
mod_proxy_ajp?




It's irrelevant.
5.5.16 will not work with 1.1.1

And the answer is no.

Regards,
Mladen.


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



svn commit: r386458 - in /tomcat/container/tc5.5.x/modules/groupcom/src/share/org/apache/catalina/tribes/tcp: ReceiverBase.java bio/BioReceiver.java nio/NioReceiver.java

2006-03-16 Thread fhanik
Author: fhanik
Date: Thu Mar 16 13:12:23 2006
New Revision: 386458

URL: http://svn.apache.org/viewcvs?rev=386458view=rev
Log:
Implemented an autoBind feature, so that tcpListenPort doesn't have to be 
unique, it can try to find an open port starting with the given port

Modified:

tomcat/container/tc5.5.x/modules/groupcom/src/share/org/apache/catalina/tribes/tcp/ReceiverBase.java

tomcat/container/tc5.5.x/modules/groupcom/src/share/org/apache/catalina/tribes/tcp/bio/BioReceiver.java

tomcat/container/tc5.5.x/modules/groupcom/src/share/org/apache/catalina/tribes/tcp/nio/NioReceiver.java

Modified: 
tomcat/container/tc5.5.x/modules/groupcom/src/share/org/apache/catalina/tribes/tcp/ReceiverBase.java
URL: 
http://svn.apache.org/viewcvs/tomcat/container/tc5.5.x/modules/groupcom/src/share/org/apache/catalina/tribes/tcp/ReceiverBase.java?rev=386458r1=386457r2=386458view=diff
==
--- 
tomcat/container/tc5.5.x/modules/groupcom/src/share/org/apache/catalina/tribes/tcp/ReceiverBase.java
 (original)
+++ 
tomcat/container/tc5.5.x/modules/groupcom/src/share/org/apache/catalina/tribes/tcp/ReceiverBase.java
 Thu Mar 16 13:12:23 2006
@@ -61,6 +61,8 @@
 private long tcpSelectorTimeout;
 private String tcpListenAddress;
 private boolean sendAck;
+//how many times to search for an available socket
+private int autoBind = 1;
 
 public ReceiverBase() {
 }
@@ -257,6 +259,10 @@
 return tcpListenAddress;
 }
 
+public int getAutoBind() {
+return autoBind;
+}
+
 public void setTcpSelectorTimeout(long selTimeout) {
 tcpSelectorTimeout = selTimeout;
 }
@@ -291,5 +297,10 @@
 
 public void setSendAck(boolean sendAck) {
 this.sendAck = sendAck;
+}
+
+public void setAutoBind(int autoBind) {
+this.autoBind = autoBind;
+if ( this.autoBind = 0 ) this.autoBind = 1;
 }
 }

Modified: 
tomcat/container/tc5.5.x/modules/groupcom/src/share/org/apache/catalina/tribes/tcp/bio/BioReceiver.java
URL: 
http://svn.apache.org/viewcvs/tomcat/container/tc5.5.x/modules/groupcom/src/share/org/apache/catalina/tribes/tcp/bio/BioReceiver.java?rev=386458r1=386457r2=386458view=diff
==
--- 
tomcat/container/tc5.5.x/modules/groupcom/src/share/org/apache/catalina/tribes/tcp/bio/BioReceiver.java
 (original)
+++ 
tomcat/container/tc5.5.x/modules/groupcom/src/share/org/apache/catalina/tribes/tcp/bio/BioReceiver.java
 Thu Mar 16 13:12:23 2006
@@ -99,7 +99,7 @@
 serverSocket = new ServerSocket();
 // set the port the server channel will listen to
 //serverSocket.bind(new InetSocketAddress(getBind(), 
getTcpListenPort()));
-bind(serverSocket,getPort(),10);
+bind(serverSocket,getPort(),getAutoBind());
 }
 
 

Modified: 
tomcat/container/tc5.5.x/modules/groupcom/src/share/org/apache/catalina/tribes/tcp/nio/NioReceiver.java
URL: 
http://svn.apache.org/viewcvs/tomcat/container/tc5.5.x/modules/groupcom/src/share/org/apache/catalina/tribes/tcp/nio/NioReceiver.java?rev=386458r1=386457r2=386458view=diff
==
--- 
tomcat/container/tc5.5.x/modules/groupcom/src/share/org/apache/catalina/tribes/tcp/nio/NioReceiver.java
 (original)
+++ 
tomcat/container/tc5.5.x/modules/groupcom/src/share/org/apache/catalina/tribes/tcp/nio/NioReceiver.java
 Thu Mar 16 13:12:23 2006
@@ -120,7 +120,7 @@
 selector = Selector.open();
 // set the port the server channel will listen to
 //serverSocket.bind(new InetSocketAddress(getBind(), 
getTcpListenPort()));
-bind(serverSocket,getTcpListenPort(),10);
+bind(serverSocket,getTcpListenPort(),getAutoBind());
 // set non-blocking mode for the listening socket
 serverChannel.configureBlocking(false);
 // register the ServerSocketChannel with the Selector



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



Re: [VOTE][RESULT] Tomcat v5.5.16 Stability

2006-03-16 Thread Henri Gomez
2006/3/16, Bill Barker [EMAIL PROTECTED]:


  -Original Message-
  From: Henri Gomez [mailto:[EMAIL PROTECTED]
  Sent: Thursday, March 16, 2006 6:40 AM
  To: Tomcat Developers List
  Subject: Re: [VOTE][RESULT] Tomcat v5.5.16 Stability
 
  for Linux (Suse SLES 9 PPC and i386)
 
  to build APR 1.2.2 with static support I used :
 
  ./configure --with-pic --prefix=/root/local
 

 If you include '--disable-shared', then APR will only build the .a, so that
 is all that tcnative will have a choice to link to.


Great

  For tcnative I used :
 
  ./configure --with-apr=/root/local/bin/apr-1-config
 
  Then I change the Makefile like this :
 
  $(TARGET_LIB): $(OBJECTS)
  $(LINK) -rpath $(libdir) $(OBJECTS)
  /root/local/lib/libapr-1.a -lrt -lcrypt  -lpthread -ldl -lssl -lcrypto
 
  Even when build with static support, the APR apr-config (apr-1-config
  here) didn't provide the   /root/local/lib/libapr-1.a ;(
 
  2006/3/16, Peter Rossbach [EMAIL PROTECTED]:
   I also can't find apr static link command for MAC OS X. At MAC OS X
   the tcnative library´suffix must be jnilib instead dylib. How I can
   change this?
  
   peter
  
  
  
   Am 16.03.2006 um 15:15 schrieb Henri Gomez:
  
2006/3/16, Mladen Turk [EMAIL PROTECTED]:
Henri Gomez wrote:
   
We could comment how to build an APR 1.2.2 ready for static
inclusion (easy).
But the configure/makefile of tcnative should be adapted
   
   
You have the commit rights, so what's the problem :)
   
One problems :
   
- How to get the correct link command from apr-config
  when APR want to
be used statically. I've got it for Linux but what about
  AIX / HPUX /
Solaris. Send questions on apr-dev but still not response.
   
   
  -
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
   
   
  
  
  
  -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
  
  
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 



 This message is intended only for the use of the person(s) listed above as 
 the intended recipient(s), and may contain information that is PRIVILEGED and 
 CONFIDENTIAL.  If you are not an intended recipient, you may not read, copy, 
 or distribute this message or any attachment. If you received this 
 communication in error, please notify us immediately by e-mail and then 
 delete all copies of this message and any attachments.

 In addition you should be aware that ordinary (unencrypted) e-mail sent 
 through the Internet is not secure. Do not send confidential or sensitive 
 information, such as social security numbers, account numbers, personal 
 identification numbers and passwords, to us via ordinary (unencrypted) e-mail.


 -
 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: ParserController.java

2006-03-16 Thread Henri Gomez
Yes EBCDIC is everywhere, even on IBM OS/400 (I5/OS) where using each
day at ... work

2006/3/16, Ian Darwin [EMAIL PROTECTED]:

 
  One of the patches I need to get TC working with JSP in EBCDIC is the
  following:
 
  Any comments?
 
 
  Yes. Fix your clock. You live in the future :)

 What!? EBCDIC makes a comeback in the future? :-)  Quick, let me phone
 my stock broker...

 -
 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 Native Question

2006-03-16 Thread William A. Rowe, Jr.

Mladen Turk wrote:


It's irrelevant.
5.5.16 will not work with 1.1.1


Then I'd think there are two solutions;

1. repackage 5.5.16 -without- jknative.

2. roll 5.5.17 with jknative 1.1.2

It sounds like the 5.5.16 package is fundementally flawed.  Retracting
a component to avoid confusion amoung users doesn't change the essential
nature of the package, does it?  jknative clearly isn't quite at the same
stability as Tomcat 5.5 as a whole, or well proven connector technology
like mod_jk.

jknative is getting there, for sure :)  But is it there yet?


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



Re: Tomcat Native Question

2006-03-16 Thread William A. Rowe, Jr.

William A. Rowe, Jr. wrote:

Mladen Turk wrote:


It's irrelevant.
5.5.16 will not work with 1.1.1


jknative is getting there, for sure :)  But is it there yet?


I should have asked the question this way instead...

Is jknative a faster moving target than the Tomcat 5.5 releases themselves?

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



DO NOT REPLY [Bug 37498] - [PATCH] NPE in org.apache.catalina.core.ContainerBase.removeChild

2006-03-16 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=37498.
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=37498


[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|RESOLVED|REOPENED
 Resolution|WONTFIX |




--- Additional Comments From [EMAIL PROTECTED]  2006-03-16 22:16 ---
More childish behaviour from Remy what a supprise.

Please cite technical grounds, your personal opinion does not matter Remy its
purely subjective that doesn't do an OSS project any good.  Your work and effort
on Tomcat is appreciated but you if you can't make a factual technical argument
to backup your view then why make comment at all.

Please don't resolve this bug again unless you actually address it.


-- 
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 39003] New: - Tomcat 5.5.15 with APR 1.2.2 corrupts sent images

2006-03-16 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=39003.
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=39003

   Summary: Tomcat 5.5.15 with APR 1.2.2 corrupts sent images
   Product: Tomcat 5
   Version: 5.5.15
  Platform: All
OS/Version: Linux
Status: NEW
  Severity: normal
  Priority: P2
 Component: Native:Integration
AssignedTo: tomcat-dev@jakarta.apache.org
ReportedBy: [EMAIL PROTECTED]


Hello, 

I run Tomcat 5.5.15 as a service (using jsvc) on a Linux 2.4.22 platform, with
APR 1.2.2 and libtcnative compiled and enabled using -Djava.library.path.

Allmost all images arrive corrupt in the browser. It seems that most of the time
the first 75% of the bytes arrive fine, and the rest corrupts the image data.
The browser then says 'cannot display image because it contains errors'.

I do not have the problem when I run exactly the same web application on exactly
the same Tomcat without APR.

-- 
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 38795] - [PATCH] StandardContext doesn't always reset thread's contextClassLoader

2006-03-16 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=38795.
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=38795





--- Additional Comments From [EMAIL PROTECTED]  2006-03-16 23:14 ---
Thats really great, thanks very 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]



DO NOT REPLY [Bug 39003] - Tomcat 5.5.15 with APR 1.2.2 corrupts sent images

2006-03-16 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=39003.
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=39003





--- Additional Comments From [EMAIL PROTECTED]  2006-03-17 07:19 ---
Is this with AJP or HTTP protocol.
If it's AJP connector the this is already fixed with 5.5.16
See:
http://cvs.apache.org/viewcvs.cgi?rev=381505view=rev

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