Realm Security - connection interrupted - The document contains no data.

2009-10-21 Thread Kris Reid

Hi

I've build a web app using Realm security which works perfectly as expected
on my dev machine.
However when I deploy it to the real server I get Connection Interrupted -
the document contains no data.

Its driving me nuts and I'm not sure what to look at.

The application is connecting to the database fine as non secure pages work.
And even we you try to log in it sends data back and forth for a second
before bang.

Any ideas what to look at?

Cheers

Kris


-
http://www.kremsoft.com Kremsoft - Software Development 
-- 
View this message in context: 
http://www.nabble.com/Realm-Security---connection-interrupted---The-document-contains-no-data.-tp25988455p25988455.html
Sent from the Tomcat - Dev mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org



Re: [VOTE] Releasing Apache Tomcat Native 1.1.17

2009-10-21 Thread Mladen Turk

On 20/10/09 21:55, jean-frederic clere wrote:

Hi,

Apache Tomcat Native 1.1.17 is:


[X] Stable - no major issues, no regressions
[ ] Beta - at least one significant issue -- tell us what it is
[ ] Alpha - multiple significant issues -- tell us what they are




Regards
--
^TM


-
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org



DO NOT REPLY [Bug 48033] New: ProxyDirContext.cacheLookup

2009-10-21 Thread bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=48033

   Summary: ProxyDirContext.cacheLookup
   Product: Tomcat 6
   Version: 6.0.20
  Platform: PC
OS/Version: Linux
Status: NEW
  Severity: normal
  Priority: P2
 Component: Catalina
AssignedTo: dev@tomcat.apache.org
ReportedBy: ericjvandervel...@gmail.com


Hi,

   protected CacheEntry cacheLookup(String name) {
if (cache == null)
return (null);
if (name == null)
name = "";
for (int i = 0; i < nonCacheable.length; i++) {
if (name.startsWith(nonCacheable[i])) {

In my case, 

 nonCacheable[0] = "/WEB-INF/lib/"
 nonCacheable[1] = "/WEB-INF/classes/"
 name = "/WEB-INF/classes"

So name.startsWith(nonCacheable[i])==false, even when i==1, because name
doesn't end with a "/". Is this the intention?

Thanks, 

Eric J.

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

-
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org



svn commit: r828196 - in /tomcat/trunk: conf/server.xml java/org/apache/catalina/core/JreMemoryLeakPreventionListener.java

2009-10-21 Thread markt
Author: markt
Date: Wed Oct 21 20:36:23 2009
New Revision: 828196

URL: http://svn.apache.org/viewvc?rev=828196&view=rev
Log:
Somewhat ironically, the call to java.beans.Introspector.flushCaches() that is 
meant to prevent memory leaks now causes a leak on reload due to a change in 
1.6.0_15 onwards.
Add a listener that prevents the leak.

Added:

tomcat/trunk/java/org/apache/catalina/core/JreMemoryLeakPreventionListener.java
Modified:
tomcat/trunk/conf/server.xml

Modified: tomcat/trunk/conf/server.xml
URL: 
http://svn.apache.org/viewvc/tomcat/trunk/conf/server.xml?rev=828196&r1=828195&r2=828196&view=diff
==
--- tomcat/trunk/conf/server.xml (original)
+++ tomcat/trunk/conf/server.xml Wed Oct 21 20:36:23 2009
@@ -25,6 +25,8 @@
   
   
   
+  
+  
   
   
   

Added: 
tomcat/trunk/java/org/apache/catalina/core/JreMemoryLeakPreventionListener.java
URL: 
http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/core/JreMemoryLeakPreventionListener.java?rev=828196&view=auto
==
--- 
tomcat/trunk/java/org/apache/catalina/core/JreMemoryLeakPreventionListener.java 
(added)
+++ 
tomcat/trunk/java/org/apache/catalina/core/JreMemoryLeakPreventionListener.java 
Wed Oct 21 20:36:23 2009
@@ -0,0 +1,60 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You 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.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.catalina.core;
+
+import javax.imageio.ImageIO;
+
+import org.apache.catalina.Lifecycle;
+import org.apache.catalina.LifecycleEvent;
+import org.apache.catalina.LifecycleListener;
+
+/**
+ * Provide a workaround for known places where the Java Runtime environment 
uses
+ * the context class loader to load a singleton as this will cause a memory 
leak
+ * if a web application class loader happens to be the context class loader at
+ * the time. The work-around is to initialise these singletons when Tomcat's
+ * common class loader is the context class loader.
+ */
+public class JreMemoryLeakPreventionListener implements LifecycleListener {
+
+@Override
+public void lifecycleEvent(LifecycleEvent event) {
+// Initialise these classes when Tomcat starts
+if (Lifecycle.INIT_EVENT.equals(event.getType())) {
+/*
+ * Several components end up calling:
+ * sun.awt.AppContext.getAppContext()
+ * 
+ * Those libraries / components known to trigger memory leaks due 
to
+ * eventual calls to getAppContext() are:
+ * 
+ * - Google Web Toolkit via its use of javax.imageio
+ * - Tomcat via its use of java.beans.Introspector.flushCaches() in
+ *   1.6.0_15 onwards
+ * - others TBD
+ */
+
+// Trigger a call to sun.awt.AppContext.getAppContext(). This will
+// pin the common class loader in memory but that shouldn't be an
+// issue.
+ImageIO.getCacheDirectory();
+
+}
+}
+
+}



-
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org



svn commit: r828197 - /tomcat/tc6.0.x/trunk/STATUS.txt

2009-10-21 Thread markt
Author: markt
Date: Wed Oct 21 20:39:36 2009
New Revision: 828197

URL: http://svn.apache.org/viewvc?rev=828197&view=rev
Log:
Fix memory leak

Modified:
tomcat/tc6.0.x/trunk/STATUS.txt

Modified: tomcat/tc6.0.x/trunk/STATUS.txt
URL: 
http://svn.apache.org/viewvc/tomcat/tc6.0.x/trunk/STATUS.txt?rev=828197&r1=828196&r2=828197&view=diff
==
--- tomcat/tc6.0.x/trunk/STATUS.txt (original)
+++ tomcat/tc6.0.x/trunk/STATUS.txt Wed Oct 21 20:39:36 2009
@@ -314,3 +314,8 @@
   http://svn.apache.org/viewvc?rev=821412&view=rev
   +1: markt, kkolinko, rjung
   -1: 
+
+* Fix memory leak causes by a JRE implementation change in 1.6.0_15 onwards
+  http://svn.eu.apache.org/viewvc?view=revision&revision=828196
+  +1: markt
+  -1: 



-
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org



svn commit: r828199 - /tomcat/tc6.0.x/trunk/STATUS.txt

2009-10-21 Thread markt
Author: markt
Date: Wed Oct 21 20:40:04 2009
New Revision: 828199

URL: http://svn.apache.org/viewvc?rev=828199&view=rev
Log:
Correct url

Modified:
tomcat/tc6.0.x/trunk/STATUS.txt

Modified: tomcat/tc6.0.x/trunk/STATUS.txt
URL: 
http://svn.apache.org/viewvc/tomcat/tc6.0.x/trunk/STATUS.txt?rev=828199&r1=828198&r2=828199&view=diff
==
--- tomcat/tc6.0.x/trunk/STATUS.txt (original)
+++ tomcat/tc6.0.x/trunk/STATUS.txt Wed Oct 21 20:40:04 2009
@@ -316,6 +316,6 @@
   -1: 
 
 * Fix memory leak causes by a JRE implementation change in 1.6.0_15 onwards
-  http://svn.eu.apache.org/viewvc?view=revision&revision=828196
+  http://svn.apache.org/viewvc?view=revision&revision=828196
   +1: markt
   -1: 



-
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org



svn commit: r828201 - /tomcat/trunk/java/org/apache/jasper/compiler/Parser.java

2009-10-21 Thread markt
Author: markt
Date: Wed Oct 21 20:43:21 2009
New Revision: 828201

URL: http://svn.apache.org/viewvc?rev=828201&view=rev
Log:
Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=48019
Be more careful to skip over all of nodes we aren't interested it

Modified:
tomcat/trunk/java/org/apache/jasper/compiler/Parser.java

Modified: tomcat/trunk/java/org/apache/jasper/compiler/Parser.java
URL: 
http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/jasper/compiler/Parser.java?rev=828201&r1=828200&r2=828201&view=diff
==
--- tomcat/trunk/java/org/apache/jasper/compiler/Parser.java (original)
+++ tomcat/trunk/java/org/apache/jasper/compiler/Parser.java Wed Oct 21 
20:43:21 2009
@@ -1780,11 +1780,21 @@
 while (reader.hasMoreInput()) {
 start = reader.mark();
 if (reader.matches("%--")) {
-parseComment(parent);
+// Comment
+reader.skipUntil("--%>");
 } else if (reader.matches("%@")) {
 parseDirective(parent);
 } else if (reader.matches("jsp:directive.")) {
 parseXMLDirective(parent);
+} else if (reader.matches("%!")) {
+// Declaration
+reader.skipUntil("%>");
+} else if (reader.matches("%=")) {
+// Expression
+reader.skipUntil("%>");
+} else if (reader.matches("%")) {
+// Scriptlet
+reader.skipUntil("%>");
 }
 reader.skipUntil("<");
 }



-
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org



svn commit: r828203 - /tomcat/tc6.0.x/trunk/STATUS.txt

2009-10-21 Thread markt
Author: markt
Date: Wed Oct 21 20:44:50 2009
New Revision: 828203

URL: http://svn.apache.org/viewvc?rev=828203&view=rev
Log:
Proposal

Modified:
tomcat/tc6.0.x/trunk/STATUS.txt

Modified: tomcat/tc6.0.x/trunk/STATUS.txt
URL: 
http://svn.apache.org/viewvc/tomcat/tc6.0.x/trunk/STATUS.txt?rev=828203&r1=828202&r2=828203&view=diff
==
--- tomcat/tc6.0.x/trunk/STATUS.txt (original)
+++ tomcat/tc6.0.x/trunk/STATUS.txt Wed Oct 21 20:44:50 2009
@@ -319,3 +319,9 @@
   http://svn.apache.org/viewvc?view=revision&revision=828196
   +1: markt
   -1: 
+
+* Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=48019
+  Be more careful about skipping over sections we aren't interested in
+  http://svn.apache.org/viewvc?view=revision&revision=828201
+  +1: markt
+  -1: 



-
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org



DO NOT REPLY [Bug 48019] StackOverflowError on "include"

2009-10-21 Thread bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=48019

--- Comment #1 from Mark Thomas  2009-10-21 14:45:06 BST ---
This has been fixed in trunk and proposed for 6.0.x

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

-
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org



DO NOT REPLY [Bug 48033] ProxyDirContext.cacheLookup

2009-10-21 Thread bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=48033

Mark Thomas  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||INVALID

--- Comment #1 from Mark Thomas  2009-10-21 14:51:23 BST ---
Bugzilla is not an appropriate forum for asking questions about the code.

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

-
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org



svn commit: r828210 - /tomcat/trunk/java/org/apache/catalina/startup/HostConfig.java

2009-10-21 Thread markt
Author: markt
Date: Wed Oct 21 20:53:47 2009
New Revision: 828210

URL: http://svn.apache.org/viewvc?rev=828210&view=rev
Log:
Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=48009
Add a check in case the file is in the middle of being renamed. It isn't 
perfect (it can't be) but this should cover most cases

Modified:
tomcat/trunk/java/org/apache/catalina/startup/HostConfig.java

Modified: tomcat/trunk/java/org/apache/catalina/startup/HostConfig.java
URL: 
http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/startup/HostConfig.java?rev=828210&r1=828209&r2=828210&view=diff
==
--- tomcat/trunk/java/org/apache/catalina/startup/HostConfig.java (original)
+++ tomcat/trunk/java/org/apache/catalina/startup/HostConfig.java Wed Oct 21 
20:53:47 2009
@@ -1103,6 +1103,17 @@
 return;
 }
 } else {
+// There is a chance the the resource was only missing
+// temporarily eg renamed during a text editor save
+try {
+Thread.sleep(500);
+} catch (InterruptedException e1) {
+// Ignore
+}
+// Recheck the resource to see if it was really deleted
+if (resource.exists()) {
+continue;
+}
 long lastModified =
 app.redeployResources.get(resources[i]).longValue();
 if (lastModified == 0L) {



-
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org



svn commit: r828211 - /tomcat/tc6.0.x/trunk/STATUS.txt

2009-10-21 Thread markt
Author: markt
Date: Wed Oct 21 20:55:07 2009
New Revision: 828211

URL: http://svn.apache.org/viewvc?rev=828211&view=rev
Log:
Proposal

Modified:
tomcat/tc6.0.x/trunk/STATUS.txt

Modified: tomcat/tc6.0.x/trunk/STATUS.txt
URL: 
http://svn.apache.org/viewvc/tomcat/tc6.0.x/trunk/STATUS.txt?rev=828211&r1=828210&r2=828211&view=diff
==
--- tomcat/tc6.0.x/trunk/STATUS.txt (original)
+++ tomcat/tc6.0.x/trunk/STATUS.txt Wed Oct 21 20:55:07 2009
@@ -325,3 +325,9 @@
   http://svn.apache.org/viewvc?view=revision&revision=828201
   +1: markt
   -1: 
+
+* Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=48009
+  Protect against a context file breifly disappearing due to text editor
+  http://svn.apache.org/viewvc?view=revision&revision=828210
+  +1: markt
+  -1: 



-
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org



DO NOT REPLY [Bug 48009] Editing context.xml may cause unwanted undeploy of a webapp

2009-10-21 Thread bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=48009

--- Comment #1 from Mark Thomas  2009-10-21 14:55:47 BST ---
This has been fixed in trunk and proposed for 6.0.x.

I went for the simple if file is deleted, wait 500ms and check it is still
deleted. It isn't perfect but no solution can be,

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

-
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org



svn commit: r828212 - /tomcat/trunk/java/org/apache/catalina/loader/WebappClassLoader.java

2009-10-21 Thread markt
Author: markt
Date: Wed Oct 21 20:57:14 2009
New Revision: 828212

URL: http://svn.apache.org/viewvc?rev=828212&view=rev
Log:
Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=47987
Limit size of not found resources cache

Modified:
tomcat/trunk/java/org/apache/catalina/loader/WebappClassLoader.java

Modified: tomcat/trunk/java/org/apache/catalina/loader/WebappClassLoader.java
URL: 
http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/loader/WebappClassLoader.java?rev=828212&r1=828211&r2=828212&view=diff
==
--- tomcat/trunk/java/org/apache/catalina/loader/WebappClassLoader.java 
(original)
+++ tomcat/trunk/java/org/apache/catalina/loader/WebappClassLoader.java Wed Oct 
21 20:57:14 2009
@@ -41,6 +41,8 @@
 import java.util.Enumeration;
 import java.util.HashMap;
 import java.util.Iterator;
+import java.util.LinkedHashMap;
+import java.util.Map;
 import java.util.Vector;
 import java.util.jar.Attributes;
 import java.util.jar.JarEntry;
@@ -238,7 +240,14 @@
  * The cache of ResourceEntry for classes and resources we have loaded,
  * keyed by resource name.
  */
-protected HashMap resourceEntries = new 
HashMap();
+protected HashMap resourceEntries =
+new LinkedHashMap() {
+private static final long serialVersionUID = 1L;
+protected boolean removeEldestEntry(
+Map.Entry eldest) {
+return size() > 1000;
+}
+};
 
 
 /**



-
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org



svn commit: r828214 - /tomcat/tc6.0.x/trunk/STATUS.txt

2009-10-21 Thread markt
Author: markt
Date: Wed Oct 21 20:58:17 2009
New Revision: 828214

URL: http://svn.apache.org/viewvc?rev=828214&view=rev
Log:
Proposal

Modified:
tomcat/tc6.0.x/trunk/STATUS.txt

Modified: tomcat/tc6.0.x/trunk/STATUS.txt
URL: 
http://svn.apache.org/viewvc/tomcat/tc6.0.x/trunk/STATUS.txt?rev=828214&r1=828213&r2=828214&view=diff
==
--- tomcat/tc6.0.x/trunk/STATUS.txt (original)
+++ tomcat/tc6.0.x/trunk/STATUS.txt Wed Oct 21 20:58:17 2009
@@ -331,3 +331,9 @@
   http://svn.apache.org/viewvc?view=revision&revision=828210
   +1: markt
   -1: 
+
+* Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=47987
+  Limit size of not found resources cache
+  http://svn.apache.org/viewvc?view=revision&revision=828212
+  +1: markt
+  -1: 



-
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org



DO NOT REPLY [Bug 47987] Out of memory being caused by notFoundResources in org.apache.catalina.loader.WebappClassLoader

2009-10-21 Thread bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=47987

Mark Thomas  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||FIXED

--- Comment #1 from Mark Thomas  2009-10-21 14:58:47 BST ---
This has been fixed in trunk and proposed for 6.0.x

I limited the cache to 1000 items.

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

-
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org



DO NOT REPLY [Bug 47987] Out of memory being caused by notFoundResources in org.apache.catalina.loader.WebappClassLoader

2009-10-21 Thread bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=47987

Mark Thomas  changed:

   What|Removed |Added

 Status|RESOLVED|REOPENED
 Resolution|FIXED   |

--- Comment #2 from Mark Thomas  2009-10-21 14:59:17 BST ---
Re-opening until it is fixed in 6.0.x. Sorry for the noise

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

-
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org



svn commit: r828225 - /tomcat/trunk/bin/catalina.sh

2009-10-21 Thread markt
Author: markt
Date: Wed Oct 21 21:40:21 2009
New Revision: 828225

URL: http://svn.apache.org/viewvc?rev=828225&view=rev
Log:
Refix https://issues.apache.org/bugzilla/show_bug.cgi?id=37848
Don't output info messages if there is no terminal
Patch provided by Eric Herman

Modified:
tomcat/trunk/bin/catalina.sh

Modified: tomcat/trunk/bin/catalina.sh
URL: 
http://svn.apache.org/viewvc/tomcat/trunk/bin/catalina.sh?rev=828225&r1=828224&r2=828225&view=diff
==
--- tomcat/trunk/bin/catalina.sh (original)
+++ tomcat/trunk/bin/catalina.sh Wed Oct 21 21:40:21 2009
@@ -248,7 +248,9 @@
   else
 shift
 if [ "$1" = "-security" ] ; then
-  echo "Using Security Manager"
+  if [ $have_tty -eq 1 ]; then
+echo "Using Security Manager"
+  fi
   shift
   exec "$_RUNJDB" "$LOGGING_CONFIG" $JAVA_OPTS $CATALINA_OPTS \
 -Djava.endorsed.dirs="$JAVA_ENDORSED_DIRS" -classpath "$CLASSPATH" \
@@ -274,7 +276,9 @@
 
   shift
   if [ "$1" = "-security" ] ; then
-echo "Using Security Manager"
+if [ $have_tty -eq 1 ]; then
+  echo "Using Security Manager"
+fi
 shift
 exec "$_RUNJAVA" "$LOGGING_CONFIG" $JAVA_OPTS $CATALINA_OPTS \
   -Djava.endorsed.dirs="$JAVA_ENDORSED_DIRS" -classpath "$CLASSPATH" \
@@ -305,7 +309,9 @@
   shift
   touch "$CATALINA_BASE"/logs/catalina.out
   if [ "$1" = "-security" ] ; then
-echo "Using Security Manager"
+if [ $have_tty -eq 1 ]; then
+  echo "Using Security Manager"
+fi
 shift
 "$_RUNJAVA" "$LOGGING_CONFIG" $JAVA_OPTS $CATALINA_OPTS \
   -Djava.endorsed.dirs="$JAVA_ENDORSED_DIRS" -classpath "$CLASSPATH" \



-
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org



svn commit: r828226 - /tomcat/tc5.5.x/trunk/STATUS.txt

2009-10-21 Thread markt
Author: markt
Date: Wed Oct 21 21:41:52 2009
New Revision: 828226

URL: http://svn.apache.org/viewvc?rev=828226&view=rev
Log:
Proposal

Modified:
tomcat/tc5.5.x/trunk/STATUS.txt

Modified: tomcat/tc5.5.x/trunk/STATUS.txt
URL: 
http://svn.apache.org/viewvc/tomcat/tc5.5.x/trunk/STATUS.txt?rev=828226&r1=828225&r2=828226&view=diff
==
--- tomcat/tc5.5.x/trunk/STATUS.txt (original)
+++ tomcat/tc5.5.x/trunk/STATUS.txt Wed Oct 21 21:41:52 2009
@@ -147,3 +147,9 @@
   http://svn.apache.org/viewvc?rev=821412&view=rev
   +1: markt, kkolinko, rjung
   -1: 
+
+* Refix https://issues.apache.org/bugzilla/show_bug.cgi?id=37848
+  Don't output info messages when there is no terminal
+  http://svn.apache.org/viewvc?rev=828225&view=rev
+  +1: markt
+  -1: 



-
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org



svn commit: r828227 - /tomcat/tc6.0.x/trunk/STATUS.txt

2009-10-21 Thread markt
Author: markt
Date: Wed Oct 21 21:42:04 2009
New Revision: 828227

URL: http://svn.apache.org/viewvc?rev=828227&view=rev
Log:
Proposal

Modified:
tomcat/tc6.0.x/trunk/STATUS.txt

Modified: tomcat/tc6.0.x/trunk/STATUS.txt
URL: 
http://svn.apache.org/viewvc/tomcat/tc6.0.x/trunk/STATUS.txt?rev=828227&r1=828226&r2=828227&view=diff
==
--- tomcat/tc6.0.x/trunk/STATUS.txt (original)
+++ tomcat/tc6.0.x/trunk/STATUS.txt Wed Oct 21 21:42:04 2009
@@ -337,3 +337,9 @@
   http://svn.apache.org/viewvc?view=revision&revision=828212
   +1: markt
   -1: 
+
+* Refix https://issues.apache.org/bugzilla/show_bug.cgi?id=37848
+  Don't output info messages when there is no terminal
+  http://svn.apache.org/viewvc?rev=828225&view=rev
+  +1: markt
+  -1: 



-
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org



DO NOT REPLY [Bug 37848] Inappropriate Output From catalina.sh When No Terminal Available

2009-10-21 Thread bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=37848

--- Comment #3 from Mark Thomas  2009-10-21 15:42:23 BST ---
Thanks for the patch

This has been applied to trunk and proposed for 6.0.x and 5.5.x

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

-
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org



DO NOT REPLY [Bug 42579] [Patch] JNDIRealm fails to parse absolute names

2009-10-21 Thread bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=42579

--- Comment #6 from Mark Thomas  2009-10-21 15:54:21 BST ---
(In reply to comment #5)
This was corrected in a later commit for 6.0.x. 5.5.x is also fine.

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

-
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org



svn commit: r828232 - in /tomcat/tc5.5.x/trunk: STATUS.txt build/build.properties.default container/webapps/docs/changelog.xml

2009-10-21 Thread markt
Author: markt
Date: Wed Oct 21 22:02:56 2009
New Revision: 828232

URL: http://svn.apache.org/viewvc?rev=828232&view=rev
Log:
Update to pool 1.5.3

Modified:
tomcat/tc5.5.x/trunk/STATUS.txt
tomcat/tc5.5.x/trunk/build/build.properties.default
tomcat/tc5.5.x/trunk/container/webapps/docs/changelog.xml

Modified: tomcat/tc5.5.x/trunk/STATUS.txt
URL: 
http://svn.apache.org/viewvc/tomcat/tc5.5.x/trunk/STATUS.txt?rev=828232&r1=828231&r2=828232&view=diff
==
--- tomcat/tc5.5.x/trunk/STATUS.txt (original)
+++ tomcat/tc5.5.x/trunk/STATUS.txt Wed Oct 21 22:02:56 2009
@@ -143,11 +143,6 @@
   +1: rjung
   -1:
 
-* Upgrade to Commons-Pool 1.5.3. 1.5.2 had a leak
-  http://svn.apache.org/viewvc?rev=821412&view=rev
-  +1: markt, kkolinko, rjung
-  -1: 
-
 * Refix https://issues.apache.org/bugzilla/show_bug.cgi?id=37848
   Don't output info messages when there is no terminal
   http://svn.apache.org/viewvc?rev=828225&view=rev

Modified: tomcat/tc5.5.x/trunk/build/build.properties.default
URL: 
http://svn.apache.org/viewvc/tomcat/tc5.5.x/trunk/build/build.properties.default?rev=828232&r1=828231&r2=828232&view=diff
==
--- tomcat/tc5.5.x/trunk/build/build.properties.default (original)
+++ tomcat/tc5.5.x/trunk/build/build.properties.default Wed Oct 21 22:02:56 2009
@@ -159,8 +159,8 @@
 
 
 # - Commons Pool, version 1.1 or later -
-commons-pool.home=${base.path}/commons-pool-1.5.2-src
-commons-pool-src.loc=${base-commons.loc}/pool/source/commons-pool-1.5.2-src.tar.gz
+commons-pool.home=${base.path}/commons-pool-1.5.3-src
+commons-pool-src.loc=${base-commons.loc}/pool/source/commons-pool-1.5.3-src.tar.gz
 
 
 # - Commons Collections, version 2.0 or later -

Modified: tomcat/tc5.5.x/trunk/container/webapps/docs/changelog.xml
URL: 
http://svn.apache.org/viewvc/tomcat/tc5.5.x/trunk/container/webapps/docs/changelog.xml?rev=828232&r1=828231&r2=828232&view=diff
==
--- tomcat/tc5.5.x/trunk/container/webapps/docs/changelog.xml (original)
+++ tomcat/tc5.5.x/trunk/container/webapps/docs/changelog.xml Wed Oct 21 
22:02:56 2009
@@ -49,6 +49,9 @@
   
 Update Windows installer to use NSIS 2.45. (kkolinko)
   
+  
+Update to commons-pool 1.5.3. This fixes a known leak in 1.5.2. (markt)
+  
 
   
   



-
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org



svn commit: r828236 - in /tomcat/tc6.0.x/trunk: STATUS.txt build.properties.default webapps/docs/changelog.xml

2009-10-21 Thread markt
Author: markt
Date: Wed Oct 21 22:14:46 2009
New Revision: 828236

URL: http://svn.apache.org/viewvc?rev=828236&view=rev
Log:
Update to pool 1.5.3

Modified:
tomcat/tc6.0.x/trunk/STATUS.txt
tomcat/tc6.0.x/trunk/build.properties.default
tomcat/tc6.0.x/trunk/webapps/docs/changelog.xml

Modified: tomcat/tc6.0.x/trunk/STATUS.txt
URL: 
http://svn.apache.org/viewvc/tomcat/tc6.0.x/trunk/STATUS.txt?rev=828236&r1=828235&r2=828236&view=diff
==
--- tomcat/tc6.0.x/trunk/STATUS.txt (original)
+++ tomcat/tc6.0.x/trunk/STATUS.txt Wed Oct 21 22:14:46 2009
@@ -310,11 +310,6 @@
   rjung: me to (threadRatio <= 75 branch).
   )
 
-* Upgrade to Commons-Pool 1.5.3. 1.5.2 had a leak
-  http://svn.apache.org/viewvc?rev=821412&view=rev
-  +1: markt, kkolinko, rjung
-  -1: 
-
 * Fix memory leak causes by a JRE implementation change in 1.6.0_15 onwards
   http://svn.apache.org/viewvc?view=revision&revision=828196
   +1: markt

Modified: tomcat/tc6.0.x/trunk/build.properties.default
URL: 
http://svn.apache.org/viewvc/tomcat/tc6.0.x/trunk/build.properties.default?rev=828236&r1=828235&r2=828236&view=diff
==
--- tomcat/tc6.0.x/trunk/build.properties.default (original)
+++ tomcat/tc6.0.x/trunk/build.properties.default Wed Oct 21 22:14:46 2009
@@ -74,8 +74,8 @@
 
commons-dbcp-src.loc=${base-commons.loc}/dbcp/source/commons-dbcp-1.2.2-src.tar.gz
 
 # - Commons Pool, version 1.1 or later -
-commons-pool.home=${base.path}/commons-pool-1.5.2-src
-commons-pool-src.loc=${base-commons.loc}/pool/source/commons-pool-1.5.2-src.tar.gz
+commons-pool.home=${base.path}/commons-pool-1.5.3-src
+commons-pool-src.loc=${base-commons.loc}/pool/source/commons-pool-1.5.3-src.tar.gz
 
 # - NSIS, version 2.0 or later -
 nsis.home=${base.path}/nsis-2.45

Modified: tomcat/tc6.0.x/trunk/webapps/docs/changelog.xml
URL: 
http://svn.apache.org/viewvc/tomcat/tc6.0.x/trunk/webapps/docs/changelog.xml?rev=828236&r1=828235&r2=828236&view=diff
==
--- tomcat/tc6.0.x/trunk/webapps/docs/changelog.xml (original)
+++ tomcat/tc6.0.x/trunk/webapps/docs/changelog.xml Wed Oct 21 22:14:46 2009
@@ -155,7 +155,7 @@
 requests. (markt) 
   
   
-Update Apache Commons Pool from 1.4 to 1.5.2. This update includes
+Update Apache Commons Pool from 1.4 to 1.5.3. This update includes
 various fixes to prevent deadlocks, reduces synchronization and makes
 object allocation occur fairly - i.e. objects are allocated to threads
 in the order that the threads request them. This update fixes a number



-
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org



DO NOT REPLY [Bug 48039] New: org.apache.catalina.core.StandardService start method doesn't return when it has started already

2009-10-21 Thread bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=48039

   Summary: org.apache.catalina.core.StandardService start method
doesn't return when it has started already
   Product: Tomcat 6
   Version: 6.0.20
  Platform: PC
OS/Version: All
Status: NEW
  Severity: minor
  Priority: P2
 Component: Catalina
AssignedTo: dev@tomcat.apache.org
ReportedBy: qingyang...@qunar.com


Below is the relevant part of source code:

public void start() throws LifecycleException {

// Validate and update our current component state
if (log.isInfoEnabled() && started) {
log.info(sm.getString("standardService.start.started"));
}

if( ! initialized )
init(); 

Is it reasonable that start() method should return immediately?

I checked the start() methods in StandardServer, StandardEngine, StandardHost
and StandardContext, and found that they all return immediately if 'started'
has been true.

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

-
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org



DO NOT REPLY [Bug 48039] org.apache.catalina.core.StandardService start method doesn't return immediately when it has started already

2009-10-21 Thread bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=48039

qingyang.xu  changed:

   What|Removed |Added

Summary|org.apache.catalina.core.St |org.apache.catalina.core.St
   |andardService start method  |andardService start method
   |doesn't return when it has  |doesn't return immediately
   |started already |when it has started already

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

-
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org



DO NOT REPLY [Bug 37035] Prevent temp\ directory disappearing when tar.gz is used on Windows

2009-10-21 Thread bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=37035

--- Comment #2 from platn...@gmail.com 2009-10-21 22:00:58 UTC ---
(In reply to comment #1)
> You're right, it IS a combination of WinZip stupidity and odd user behavior.  
> We
> recommend Windows users use the .zip distribution: that's why it's there ;)
> That said, I've added a placeholder file in the temp directly to the binary
> distributions.  It does not contain the same text as Tomcat 4.1 as that text 
> is
> no longer accurate.

may u please explain it for me that why it is not accurate?

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

-
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org