tomcat7.0
16 years agoUpdate spec classes for latest Servlet 3.0 API as of 2009-10-15.
markt [Tue, 20 Oct 2009 13:41:59 +0000 (13:41 +0000)]
Update spec classes for latest Servlet 3.0 API as of 2009-10-15.
Update internals so Tomcat builds with the updated spec. Lots if stubbed impl marked with TODO.

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@827435 13f79535-47bb-0310-9956-ffa450edef68

16 years agoFix Eclipse warnings
markt [Sat, 17 Oct 2009 19:28:15 +0000 (19:28 +0000)]
Fix Eclipse warnings

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@826296 13f79535-47bb-0310-9956-ffa450edef68

16 years agoPart 2 of CSRF protection for the host manager. Use POST and require valid nonce.
markt [Sat, 17 Oct 2009 19:27:12 +0000 (19:27 +0000)]
Part 2 of CSRF protection for the host manager. Use POST and require valid nonce.

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@826295 13f79535-47bb-0310-9956-ffa450edef68

16 years agoPart 1 of CSRF protection for host manager. Move text interface from / to /text,...
markt [Sat, 17 Oct 2009 19:25:11 +0000 (19:25 +0000)]
Part 1 of CSRF protection for host manager. Move text interface from / to /text, add extra role for /text. Port 401.jsp and 404.jsp from manager.

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@826294 13f79535-47bb-0310-9956-ffa450edef68

16 years agoChange of name for role
markt [Sat, 17 Oct 2009 19:22:16 +0000 (19:22 +0000)]
Change of name for role

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@826293 13f79535-47bb-0310-9956-ffa450edef68

16 years agoChange name of role for scripts
markt [Sat, 17 Oct 2009 19:21:50 +0000 (19:21 +0000)]
Change name of role for scripts

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@826292 13f79535-47bb-0310-9956-ffa450edef68

16 years agoUse string manager for i18n.
markt [Sat, 17 Oct 2009 19:21:01 +0000 (19:21 +0000)]
Use string manager for i18n.

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@826291 13f79535-47bb-0310-9956-ffa450edef68

16 years agosimplify example
fhanik [Fri, 16 Oct 2009 00:09:48 +0000 (00:09 +0000)]
simplify example

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@825711 13f79535-47bb-0310-9956-ffa450edef68

16 years agoAdd some modifications to the state machine. Timeout and error are an async dispatch...
fhanik [Fri, 16 Oct 2009 00:06:14 +0000 (00:06 +0000)]
Add some modifications to the state machine. Timeout and error are an async dispatch, and its unclear what the state should be. Since both those actions should stop the event, we set the state to COMPLETING

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@825708 13f79535-47bb-0310-9956-ffa450edef68

16 years agoAdd a simple asynchronous stock ticker.
fhanik [Thu, 15 Oct 2009 01:10:34 +0000 (01:10 +0000)]
Add a simple asynchronous stock ticker.
Some more refactoring around common code

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@825366 13f79535-47bb-0310-9956-ffa450edef68

16 years agoTypos
markt [Wed, 14 Oct 2009 16:28:31 +0000 (16:28 +0000)]
Typos

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@825180 13f79535-47bb-0310-9956-ffa450edef68

16 years agoUpdate copyright
markt [Wed, 14 Oct 2009 05:35:53 +0000 (05:35 +0000)]
Update copyright

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@825011 13f79535-47bb-0310-9956-ffa450edef68

16 years agoFix misprint in a comment
kkolinko [Tue, 13 Oct 2009 07:05:53 +0000 (07:05 +0000)]
Fix misprint in a comment

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@824615 13f79535-47bb-0310-9956-ffa450edef68

16 years agoAdd an explicit test for JSPs. Grails - that is using a variant of this - seems to...
markt [Mon, 12 Oct 2009 17:28:49 +0000 (17:28 +0000)]
Add an explicit test for JSPs. Grails - that is using a variant of this - seems to have issues with JSPs. Looks OK here.

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@824432 13f79535-47bb-0310-9956-ffa450edef68

16 years agoReplace StringBuffer with StringBuilder
kkolinko [Sun, 11 Oct 2009 06:55:27 +0000 (06:55 +0000)]
Replace StringBuffer with StringBuilder

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@824032 13f79535-47bb-0310-9956-ffa450edef68

16 years agoSet svn:eol-style = native
kkolinko [Sun, 11 Oct 2009 06:27:32 +0000 (06:27 +0000)]
Set svn:eol-style = native

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@824031 13f79535-47bb-0310-9956-ffa450edef68

16 years agoNo need for sync
markt [Sat, 10 Oct 2009 23:15:44 +0000 (23:15 +0000)]
No need for sync

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@823976 13f79535-47bb-0310-9956-ffa450edef68

16 years agoUse a nonce to provide CSRF protection
markt [Sat, 10 Oct 2009 23:11:30 +0000 (23:11 +0000)]
Use a nonce to provide CSRF protection

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@823975 13f79535-47bb-0310-9956-ffa450edef68

16 years agoFix https://issues.apache.org/bugzilla/show_bug.cgi?id=40001
markt [Sat, 10 Oct 2009 21:54:54 +0000 (21:54 +0000)]
Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=40001
Use POST rather than GET for all operations that are not idempotent
Partly based on a patch suggested by Daniel Naber
Remove the "Are you sure?", partly due to lack of i18n support and since as (based on my recollection) as many people disliked the feature as liked it.
Provides a (very) small measure of CSRF protection but lays the foundation for using a nonce with POST.

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@823962 13f79535-47bb-0310-9956-ffa450edef68

16 years agoRefactor upload into its own method in preparation for moving some commands from...
markt [Sat, 10 Oct 2009 18:16:51 +0000 (18:16 +0000)]
Refactor upload into its own method in preparation for moving some commands from GET to POST.

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@823910 13f79535-47bb-0310-9956-ffa450edef68

16 years agoFix the Eclipse warnings, add some additional comments.
markt [Sat, 10 Oct 2009 18:11:51 +0000 (18:11 +0000)]
Fix the Eclipse warnings, add some additional comments.
No functional change.

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@823908 13f79535-47bb-0310-9956-ffa450edef68

16 years agoExplicitly mark all our valves so that we can track down which ones we need to fix...
fhanik [Fri, 9 Oct 2009 22:02:35 +0000 (22:02 +0000)]
Explicitly mark all our valves so that we can track down which ones we need to fix and make async aware

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@823713 13f79535-47bb-0310-9956-ffa450edef68

16 years agoJust like filters, valves will have to be async aware in order for it to work properly.
fhanik [Fri, 9 Oct 2009 21:52:36 +0000 (21:52 +0000)]
Just like filters, valves will have to be async aware in order for it to work properly.

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@823710 13f79535-47bb-0310-9956-ffa450edef68

16 years agoAdd license
fhanik [Fri, 9 Oct 2009 20:54:01 +0000 (20:54 +0000)]
Add license

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@823683 13f79535-47bb-0310-9956-ffa450edef68

16 years agoAbstract out code for output buffer, much easier to read
fhanik [Fri, 9 Oct 2009 16:24:43 +0000 (16:24 +0000)]
Abstract out code for output buffer, much easier to read

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@823608 13f79535-47bb-0310-9956-ffa450edef68

16 years agoAdd a local bind otherwise for box with multi IP httpd may use the wrong port.
jfclere [Fri, 9 Oct 2009 16:00:20 +0000 (16:00 +0000)]
Add a local bind otherwise for box with multi IP httpd may use the wrong port.

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@823603 13f79535-47bb-0310-9956-ffa450edef68

16 years agopropset eol-style
fhanik [Fri, 9 Oct 2009 13:43:33 +0000 (13:43 +0000)]
propset eol-style

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@823550 13f79535-47bb-0310-9956-ffa450edef68

16 years agoconsolidate two input buffers into one, no functional change, just abstract out exact...
fhanik [Thu, 8 Oct 2009 22:37:52 +0000 (22:37 +0000)]
consolidate two input buffers into one, no functional change, just abstract out exact same code used in two connectors

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@823351 13f79535-47bb-0310-9956-ffa450edef68

16 years agoRefactor the BIO connector to align it better for async support, this means a "poller...
fhanik [Thu, 8 Oct 2009 17:08:20 +0000 (17:08 +0000)]
Refactor the BIO connector to align it better for async support, this means a "poller" style for timeouts etc.
First step is to allow the connector to do keep alive on more connections than we have threads.
More changes to follow, good chance that NIO and BIO can share tons of code

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@823234 13f79535-47bb-0310-9956-ffa450edef68

16 years agoremove not needed entry
fhanik [Thu, 8 Oct 2009 16:40:31 +0000 (16:40 +0000)]
remove not needed entry

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@823225 13f79535-47bb-0310-9956-ffa450edef68

16 years agoRemove Javadoc for method argument, that was
rjung [Sun, 4 Oct 2009 11:04:37 +0000 (11:04 +0000)]
Remove Javadoc for method argument, that was
erroneously added in r684270.

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@821507 13f79535-47bb-0310-9956-ffa450edef68

16 years agoUpgrade to pool 1.5.3
markt [Sat, 3 Oct 2009 20:59:45 +0000 (20:59 +0000)]
Upgrade to pool 1.5.3

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@821412 13f79535-47bb-0310-9956-ffa450edef68

16 years agoMore docs tweaks based on Rainer's and Konstantin's feedback
markt [Sat, 3 Oct 2009 19:43:34 +0000 (19:43 +0000)]
More docs tweaks based on Rainer's and Konstantin's feedback

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@821400 13f79535-47bb-0310-9956-ffa450edef68

16 years agoIgnore duplicate entries on the classpath.
markt [Sat, 3 Oct 2009 19:36:01 +0000 (19:36 +0000)]
Ignore duplicate entries on the classpath.
Patch could be smaller but change variable name to make new behaviour clear

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@821397 13f79535-47bb-0310-9956-ffa450edef68

16 years agoFix BASE/HOME swap and add note re security manager.
markt [Sat, 3 Oct 2009 16:20:49 +0000 (16:20 +0000)]
Fix BASE/HOME swap and add note re security manager.

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@821353 13f79535-47bb-0310-9956-ffa450edef68

16 years agoUpdate tomcat-docs.xsl
kkolinko [Sat, 3 Oct 2009 02:08:13 +0000 (02:08 +0000)]
Update tomcat-docs.xsl
It is port of rev.821208 from tc6.0.x

1. Properly publish author names in <meta> HTML tag (it has content attribute, not value),
and do not publish e-mails.
2. Added support for "rtext" attribute on <section> tag. I use it to include release dates in changelog.xml.

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@821220 13f79535-47bb-0310-9956-ffa450edef68

16 years agoUse proper method to construct an URL string.
kkolinko [Fri, 2 Oct 2009 10:39:21 +0000 (10:39 +0000)]
Use proper method to construct an URL string.
File.toURI() takes care of absolute paths, trailing slashes in the names of directories, encoding of special characters such as '%'.
Based on a suggestion by Rainer Jung.

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@820954 13f79535-47bb-0310-9956-ffa450edef68

16 years agotomcat-coyote.jar (former tomcat-util.jar before rev.389946) is not needed by bootstr...
kkolinko [Fri, 2 Oct 2009 03:16:12 +0000 (03:16 +0000)]
tomcat-coyote.jar (former tomcat-util.jar before rev.389946) is not needed by bootstrap classes

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@820874 13f79535-47bb-0310-9956-ffa450edef68

16 years agoAdd port in the message.
jfclere [Wed, 30 Sep 2009 09:03:25 +0000 (09:03 +0000)]
Add port in the message.

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@820220 13f79535-47bb-0310-9956-ffa450edef68

16 years agoDo not reuse sessionsList window to show sessionsDetail.
kkolinko [Wed, 30 Sep 2009 00:01:17 +0000 (00:01 +0000)]
Do not reuse sessionsList window to show sessionsDetail.
It adds more sense to the "Close window" button on that page.

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@820132 13f79535-47bb-0310-9956-ffa450edef68

16 years agoDo proper nesting of HTML tags and add DOCTYPE declaration.
kkolinko [Tue, 29 Sep 2009 23:23:11 +0000 (23:23 +0000)]
Do proper nesting of HTML tags and add DOCTYPE declaration.

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@820123 13f79535-47bb-0310-9956-ffa450edef68

16 years agoCorrect wording
kkolinko [Tue, 29 Sep 2009 22:54:17 +0000 (22:54 +0000)]
Correct wording

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@820118 13f79535-47bb-0310-9956-ffa450edef68

16 years agoDo not include ASF License comment into generated output
kkolinko [Tue, 29 Sep 2009 22:48:09 +0000 (22:48 +0000)]
Do not include ASF License comment into generated output

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@820117 13f79535-47bb-0310-9956-ffa450edef68

16 years agoFix display of sessionList and sessionDetail pages in IE 6 and IE 7:
kkolinko [Tue, 29 Sep 2009 22:24:47 +0000 (22:24 +0000)]
Fix display of sessionList and sessionDetail pages in IE 6 and IE 7:
do not include ASF License comment into generated output.

Because of that large comment that precedes other content those browsers try to display these pages as generic XML, and fail.

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@820110 13f79535-47bb-0310-9956-ffa450edef68

16 years agoCorrect a pair of misprints
kkolinko [Tue, 29 Sep 2009 21:18:09 +0000 (21:18 +0000)]
Correct a pair of misprints

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@820092 13f79535-47bb-0310-9956-ffa450edef68

16 years agotimeout can't be negative...
jfclere [Tue, 29 Sep 2009 12:20:57 +0000 (12:20 +0000)]
timeout can't be negative...

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@819899 13f79535-47bb-0310-9956-ffa450edef68

16 years agoFix https://issues.apache.org/bugzilla/show_bug.cgi?id=47324
markt [Sun, 27 Sep 2009 17:44:26 +0000 (17:44 +0000)]
Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=47324
Fix submit IRL when behind a reverse proxy
Patch by Maik Jablonski

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@819361 13f79535-47bb-0310-9956-ffa450edef68

16 years agoFix https://issues.apache.org/bugzilla/show_bug.cgi?id=47320
markt [Sun, 27 Sep 2009 16:48:23 +0000 (16:48 +0000)]
Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=47320
Don't rely on the platform default encoding being suitable to parse the session ID

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@819339 13f79535-47bb-0310-9956-ffa450edef68

16 years agoDeltaManager needs to replicate changed attributes even if session
rjung [Wed, 23 Sep 2009 11:28:14 +0000 (11:28 +0000)]
DeltaManager needs to replicate changed attributes even if session
gets invalidated. Otherwise session listeners will not see the right
data on the secondary nodes.

Port of r818061 from TC 5.5.x.

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@818062 13f79535-47bb-0310-9956-ffa450edef68

16 years agoFix https://issues.apache.org/bugzilla/show_bug.cgi?id=47499
markt [Tue, 22 Sep 2009 21:16:54 +0000 (21:16 +0000)]
Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=47499
Don't swallow BindException

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@817843 13f79535-47bb-0310-9956-ffa450edef68

16 years agoFix https://issues.apache.org/bugzilla/show_bug.cgi?id=47267
markt [Tue, 22 Sep 2009 20:26:23 +0000 (20:26 +0000)]
Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=47267

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@817822 13f79535-47bb-0310-9956-ffa450edef68

16 years agoUse the re-factored JAR scanning code to scan JAR for web-fragments and parse any...
markt [Tue, 22 Sep 2009 18:35:50 +0000 (18:35 +0000)]
Use the re-factored JAR scanning code to scan JAR for web-fragments and parse any that are found. Discovered fragments are not yet used to configure the web app.

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@817754 13f79535-47bb-0310-9956-ffa450edef68

16 years agoI refactored the location and missed this one in the previous commit.
markt [Tue, 22 Sep 2009 15:25:46 +0000 (15:25 +0000)]
I refactored the location and missed this one in the previous commit.

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@817699 13f79535-47bb-0310-9956-ffa450edef68

16 years agoRemove the system properties the refactoring made unnecessary
markt [Tue, 22 Sep 2009 14:55:17 +0000 (14:55 +0000)]
Remove the system properties the refactoring made unnecessary

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@817686 13f79535-47bb-0310-9956-ffa450edef68

16 years agoRefactor the TLD JAR scanning. This a) reduces duplication between Catalina and Jaspe...
markt [Tue, 22 Sep 2009 14:54:28 +0000 (14:54 +0000)]
Refactor the TLD JAR scanning. This a) reduces duplication between Catalina and Jasper b) allows the Jar scanning to be controlled by configuration rather than system properties and c) (hopefully) allows the scanning code to be re-used for web-fragment.xml scanning
The JSP TCK passes with this patch applied

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@817685 13f79535-47bb-0310-9956-ffa450edef68

16 years agoRemove old Tomcat 6 file
markt [Mon, 21 Sep 2009 22:32:21 +0000 (22:32 +0000)]
Remove old Tomcat 6 file

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@817447 13f79535-47bb-0310-9956-ffa450edef68

16 years agoSeparate out Manager app roles
markt [Mon, 21 Sep 2009 22:31:47 +0000 (22:31 +0000)]
Separate out Manager app roles
Move /manager to /manager/text to simplify permissions
Allows the future addition of extra security measures to one interface that might not make sense for another (usually these will be added to the HTML interface but that might not always be the case).

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@817446 13f79535-47bb-0310-9956-ffa450edef68

16 years agoFix copyright
markt [Mon, 21 Sep 2009 22:20:00 +0000 (22:20 +0000)]
Fix copyright

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@817442 13f79535-47bb-0310-9956-ffa450edef68

16 years agoDon't mark every servlet as the JSP Servlet
markt [Mon, 21 Sep 2009 22:03:27 +0000 (22:03 +0000)]
Don't mark every servlet as the JSP Servlet

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@817434 13f79535-47bb-0310-9956-ffa450edef68

16 years agoUpdate test to use a resource that does exist.
markt [Mon, 21 Sep 2009 11:06:52 +0000 (11:06 +0000)]
Update test to use a resource that does exist.

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@817207 13f79535-47bb-0310-9956-ffa450edef68

16 years agoFix possible NPE when embedded
markt [Mon, 21 Sep 2009 11:02:27 +0000 (11:02 +0000)]
Fix possible NPE when embedded

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@817204 13f79535-47bb-0310-9956-ffa450edef68

16 years agoAdd a test case for https://issues.apache.org/bugzilla/show_bug.cgi?id=47866
markt [Mon, 21 Sep 2009 10:54:36 +0000 (10:54 +0000)]
Add a test case for https://issues.apache.org/bugzilla/show_bug.cgi?id=47866
Fix a couple of places where expected and actual were the wrong way around

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@817201 13f79535-47bb-0310-9956-ffa450edef68

16 years agoFix https://issues.apache.org/bugzilla/show_bug.cgi?id=47231
markt [Sun, 20 Sep 2009 23:10:15 +0000 (23:10 +0000)]
Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=47231
Improve the SSL docs. Based on a patch by Sebb.
Remove duplication of configuration parameters - it is better to reference the config docs to prevent the two lists of attributes getting out of sync.

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@817120 13f79535-47bb-0310-9956-ffa450edef68

16 years agoEclipse 3.5 has a new dead code detector. Fix various debug related logging issues...
markt [Sun, 20 Sep 2009 18:32:48 +0000 (18:32 +0000)]
Eclipse 3.5 has a new dead code detector. Fix various debug related logging issues found.
Update copy of IntrospectionUtils in test suite (it was quicker than porting the individual fixes)

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@817075 13f79535-47bb-0310-9956-ffa450edef68

16 years agoTabs -> 8 spaces
markt [Sun, 20 Sep 2009 18:28:22 +0000 (18:28 +0000)]
Tabs -> 8 spaces

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@817072 13f79535-47bb-0310-9956-ffa450edef68

16 years agoFirst part of the Servlet3 web-fragment support.
markt [Sat, 19 Sep 2009 20:13:22 +0000 (20:13 +0000)]
First part of the Servlet3 web-fragment support.
This patch inserts a stage into the web.xml processing. web.xml files are now parsed and loaded into an instance of WebXml and then that WebXml instance is used to configure the context. This will allow the subsequent addition of parsing and merging web-fragment.xml files. The hooks are in place to add this functionality but it has not yet been written.
With the patch applied, the Servlet 2.5 TCK and JSP 2.1 TCK pass with the exception of the Servlet version number checks.

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@816951 13f79535-47bb-0310-9956-ffa450edef68

16 years agoAdd my new key
markt [Sat, 19 Sep 2009 00:32:38 +0000 (00:32 +0000)]
Add my new key

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@816833 13f79535-47bb-0310-9956-ffa450edef68

16 years agoReplace parseException instance field
markt [Thu, 17 Sep 2009 16:10:05 +0000 (16:10 +0000)]
Replace parseException instance field

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@816254 13f79535-47bb-0310-9956-ffa450edef68

16 years agoEnable the ability to disable the buffered writer. This does bunch of copying when...
fhanik [Thu, 17 Sep 2009 16:07:13 +0000 (16:07 +0000)]
Enable the ability to disable the buffered writer. This does bunch of copying when writing using an async thread there is no need for such a thing

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@816252 13f79535-47bb-0310-9956-ffa450edef68

16 years agoFix https://issues.apache.org/bugzilla/show_bug.cgi?id=47225
markt [Wed, 16 Sep 2009 21:17:11 +0000 (21:17 +0000)]
Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=47225
Buffer length is end-offset

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@815972 13f79535-47bb-0310-9956-ffa450edef68

16 years agoUpdate to Maven deploy process. A SNAPHOT deployment of trunk should now work and...
markt [Wed, 16 Sep 2009 20:23:44 +0000 (20:23 +0000)]
Update to Maven deploy process. A SNAPHOT deployment of trunk should now work and include extras and embedded.

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@815952 13f79535-47bb-0310-9956-ffa450edef68

16 years agoCorrect the SNAPSHOT version number
markt [Wed, 16 Sep 2009 16:02:39 +0000 (16:02 +0000)]
Correct the SNAPSHOT version number

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@815855 13f79535-47bb-0310-9956-ffa450edef68

16 years agoAdd the extra JARs, update version numbers and add a note about some issues I saw...
markt [Wed, 16 Sep 2009 15:49:01 +0000 (15:49 +0000)]
Add the extra JARs, update version numbers and add a note about some issues I saw on Windows.

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@815849 13f79535-47bb-0310-9956-ffa450edef68

16 years agoAdd a bunch of additional poms.
markt [Wed, 16 Sep 2009 15:46:06 +0000 (15:46 +0000)]
Add a bunch of additional poms.

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@815847 13f79535-47bb-0310-9956-ffa450edef68

16 years agoBZ47852: Javadoc fixes.
rjung [Wed, 16 Sep 2009 14:54:07 +0000 (14:54 +0000)]
BZ47852: Javadoc fixes.
Patch by Sebb.

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@815816 13f79535-47bb-0310-9956-ffa450edef68

16 years agoUse defaults where appropriate for jarIt macro
markt [Wed, 16 Sep 2009 08:09:08 +0000 (08:09 +0000)]
Use defaults where appropriate for jarIt macro
A couple of minor packaging tweaks

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@815657 13f79535-47bb-0310-9956-ffa450edef68

16 years agoRemove all traces of maxSpareThreads
markt [Tue, 15 Sep 2009 21:09:18 +0000 (21:09 +0000)]
Remove all traces of maxSpareThreads

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@815490 13f79535-47bb-0310-9956-ffa450edef68

16 years agoFix for https://issues.apache.org/bugzilla/show_bug.cgi?id=47161
markt [Tue, 15 Sep 2009 21:06:14 +0000 (21:06 +0000)]
Fix for https://issues.apache.org/bugzilla/show_bug.cgi?id=47161
Correctly report maxThreads
Note 6.0.x will need a different fix as it still uses threadpools

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@815486 13f79535-47bb-0310-9956-ffa450edef68

16 years agoFix Tomcat side of https://issues.apache.org/bugzilla/show_bug.cgi?id=46950
markt [Tue, 15 Sep 2009 17:50:54 +0000 (17:50 +0000)]
Fix Tomcat side of https://issues.apache.org/bugzilla/show_bug.cgi?id=46950
- adds new setVerify() method
- uses it before renegotiation to change the cert verification level for the connection
- increments minimum tc native version to 1.1.17 as it requires the new setVerify() method

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@815418 13f79535-47bb-0310-9956-ffa450edef68

16 years agoFix NPE if no filters are configured.
markt [Tue, 15 Sep 2009 12:27:40 +0000 (12:27 +0000)]
Fix NPE if no filters are configured.

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@815290 13f79535-47bb-0310-9956-ffa450edef68

16 years agoMake the setter do something.
markt [Tue, 15 Sep 2009 12:25:23 +0000 (12:25 +0000)]
Make the setter do something.

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@815289 13f79535-47bb-0310-9956-ffa450edef68

16 years agoUpdate the ignore list
markt [Tue, 15 Sep 2009 11:50:43 +0000 (11:50 +0000)]
Update the ignore list

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@815285 13f79535-47bb-0310-9956-ffa450edef68

16 years agoUpdate version.
markt [Tue, 15 Sep 2009 11:49:51 +0000 (11:49 +0000)]
Update version.

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@815284 13f79535-47bb-0310-9956-ffa450edef68

16 years agoFix https://issues.apache.org/bugzilla/show_bug.cgi?id=47828
markt [Tue, 15 Sep 2009 10:38:23 +0000 (10:38 +0000)]
Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=47828
Change Tomcat.setSilent() to setSilent(boolean) so it can be turned on and off

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@815264 13f79535-47bb-0310-9956-ffa450edef68

16 years agoFix https://issues.apache.org/bugzilla/show_bug.cgi?id=47827
markt [Tue, 15 Sep 2009 10:35:03 +0000 (10:35 +0000)]
Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=47827
Be more specific about the exception that is thrown

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@815262 13f79535-47bb-0310-9956-ffa450edef68

16 years agoSide-effect of fixing https://issues.apache.org/bugzilla/show_bug.cgi?id=47827
markt [Tue, 15 Sep 2009 10:34:05 +0000 (10:34 +0000)]
Side-effect of fixing https://issues.apache.org/bugzilla/show_bug.cgi?id=47827
No need to declare throws Exception here

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@815261 13f79535-47bb-0310-9956-ffa450edef68

16 years agoFix https://issues.apache.org/bugzilla/show_bug.cgi?id=47820
markt [Tue, 15 Sep 2009 10:26:32 +0000 (10:26 +0000)]
Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=47820
Add non-static versions of static methods

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@815254 13f79535-47bb-0310-9956-ffa450edef68

16 years agoFixed https://issues.apache.org/bugzilla/show_bug.cgi?id=47819
markt [Tue, 15 Sep 2009 09:53:41 +0000 (09:53 +0000)]
Fixed https://issues.apache.org/bugzilla/show_bug.cgi?id=47819
Add source jar generation to embedded.
Based on a patch by Dave Syer

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@815245 13f79535-47bb-0310-9956-ffa450edef68

16 years agoFix https://issues.apache.org/bugzilla/show_bug.cgi?id=47792
markt [Tue, 15 Sep 2009 09:21:15 +0000 (09:21 +0000)]
Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=47792
Some parameters documented as longs, are actually ints
Patch provided by Phil Steitz

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@815227 13f79535-47bb-0310-9956-ffa450edef68

16 years agoFix https://issues.apache.org/bugzilla/show_bug.cgi?id=47791
markt [Tue, 15 Sep 2009 09:19:27 +0000 (09:19 +0000)]
Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=47791
Update h2 download location
Patch provided by Phil Steitz

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@815226 13f79535-47bb-0310-9956-ffa450edef68

16 years agoDon't flush each time if we use a buffered output stream. It flushes for you
fhanik [Mon, 14 Sep 2009 21:47:04 +0000 (21:47 +0000)]
Don't flush each time if we use a buffered output stream. It flushes for you

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@814876 13f79535-47bb-0310-9956-ffa450edef68

16 years agocheck for return from the queue
fhanik [Mon, 14 Sep 2009 20:48:12 +0000 (20:48 +0000)]
check for return from the queue

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@814841 13f79535-47bb-0310-9956-ffa450edef68

16 years agoRefactoring of async logging handler. Much cleaner code achieves the exact same funct...
fhanik [Mon, 14 Sep 2009 20:06:03 +0000 (20:06 +0000)]
Refactoring of async logging handler. Much cleaner code achieves the exact same functionality.
The fact that the queue is bounded means that we never have to worry about the size

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@814823 13f79535-47bb-0310-9956-ffa450edef68

16 years agoAdd in behavior and properties around async logging.
fhanik [Mon, 14 Sep 2009 18:53:27 +0000 (18:53 +0000)]
Add in behavior and properties around async logging.
Thinking about it, I think the exact same functionality can be achieved in a much simpler manner by just using a blocking queue.
Will attempt that refactor next

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@814775 13f79535-47bb-0310-9956-ffa450edef68

16 years agoAllow buffer size to be configurable instead of accepting the default
fhanik [Mon, 14 Sep 2009 15:43:41 +0000 (15:43 +0000)]
Allow buffer size to be configurable instead of accepting the default

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@814708 13f79535-47bb-0310-9956-ffa450edef68

16 years agoFix https://issues.apache.org/bugzilla/show_bug.cgi?id=47834
markt [Mon, 14 Sep 2009 12:39:45 +0000 (12:39 +0000)]
Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=47834
As well as the JAR as directory feature requested, this adds looking at all files to see if they are JARs rather than using the presence of a .jar extension. These features are optional for the Servlet spec but required for RFC66 in an OSGI environment.
Both options are configurable with system properties and default to off.

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@814617 13f79535-47bb-0310-9956-ffa450edef68

16 years agoUnlikely, but handle it in case.
markt [Sun, 13 Sep 2009 18:27:37 +0000 (18:27 +0000)]
Unlikely, but handle it in case.

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@814377 13f79535-47bb-0310-9956-ffa450edef68

16 years agoAnother typo, spotted by sebb
idarwin [Sun, 13 Sep 2009 00:41:02 +0000 (00:41 +0000)]
Another typo, spotted by sebb

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@814257 13f79535-47bb-0310-9956-ffa450edef68

16 years agoTrivial typo correction
idarwin [Sat, 12 Sep 2009 16:58:08 +0000 (16:58 +0000)]
Trivial typo correction

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@814198 13f79535-47bb-0310-9956-ffa450edef68

16 years agoFix https://issues.apache.org/bugzilla/show_bug.cgi?id=47425
markt [Sat, 12 Sep 2009 16:43:45 +0000 (16:43 +0000)]
Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=47425
Document the crlFile attribute

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@814191 13f79535-47bb-0310-9956-ffa450edef68