tomcat7.0
15 years agoRemove border-radius.htc until issue with this file is clarified.
kkolinko [Mon, 22 Nov 2010 22:54:51 +0000 (22:54 +0000)]
Remove border-radius.htc until issue with this file is clarified.

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

15 years agoImpose a limit on the total length of the trailing headers.
kkolinko [Mon, 22 Nov 2010 22:43:51 +0000 (22:43 +0000)]
Impose a limit on the total length of the trailing headers.
Otherwise the ByteChunk buffer in the ChunkedInputFilter might grow unlimitedly.

Implemented as a system property. It might be better to implement it as an attribute of a connector (like maxPostSize and maxSavePostSize attributes are), but I am not sure that it is worth the effort.

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

15 years agoFix https://issues.apache.org/bugzilla/show_bug.cgi?id=50316
kkolinko [Mon, 22 Nov 2010 20:59:20 +0000 (20:59 +0000)]
Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=50316
Fix display of negative values

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

15 years agoFix https://issues.apache.org/bugzilla/show_bug.cgi?id=50228
kkolinko [Mon, 22 Nov 2010 17:40:09 +0000 (17:40 +0000)]
Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=50228
Improve recycling of BodyContentImpl.

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

15 years agoFix CVE-2010-4172. Multiple XSS in Manager web application
markt [Mon, 22 Nov 2010 17:19:07 +0000 (17:19 +0000)]
Fix CVE-2010-4172. Multiple XSS in Manager web application

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

15 years agoFix https://issues.apache.org/bugzilla/show_bug.cgi?id=50308
markt [Mon, 22 Nov 2010 14:35:51 +0000 (14:35 +0000)]
Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=50308
Allow asynchronous request processing to call AsyncContext.dispatch() once the asynchronous request has timed out.

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

15 years agoAdditional info for https://issues.apache.org/bugzilla/show_bug.cgi?id=50273
markt [Mon, 22 Nov 2010 14:12:05 +0000 (14:12 +0000)]
Additional info for https://issues.apache.org/bugzilla/show_bug.cgi?id=50273
Add the error number to the message

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

15 years agoFix https://issues.apache.org/bugzilla/show_bug.cgi?id=50273
markt [Mon, 22 Nov 2010 13:42:01 +0000 (13:42 +0000)]
Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=50273
Provide a workaround for an HP-UX issue that can result in large numbers of SEVERE log messages appearing in the logs as a result of normal operation.

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

15 years agoFix https://issues.apache.org/bugzilla/show_bug.cgi?id=50310
markt [Mon, 22 Nov 2010 11:49:05 +0000 (11:49 +0000)]
Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=50310
Ensure Servlet info is displayed in Manager application

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

15 years agoUpdate docs to new MBean names
markt [Mon, 22 Nov 2010 11:46:46 +0000 (11:46 +0000)]
Update docs to new MBean names

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

15 years agoUse correct MBean name for Mangers
markt [Mon, 22 Nov 2010 11:45:57 +0000 (11:45 +0000)]
Use correct MBean name for Mangers
Fix Eclipse niggle

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

15 years agoEnsure MBean names are correct generated for version ROOT web applications.
markt [Mon, 22 Nov 2010 11:41:34 +0000 (11:41 +0000)]
Ensure MBean names are correct generated for version ROOT web applications.
Fix ContextResource case that was using old path=... rather than new context=...

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

15 years agoAdd recent HTML manager app fixes
markt [Mon, 22 Nov 2010 11:05:28 +0000 (11:05 +0000)]
Add recent HTML manager app fixes

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

15 years agoFix manager app - attribute removed message was not being displayed
markt [Mon, 22 Nov 2010 10:32:12 +0000 (10:32 +0000)]
Fix manager app - attribute removed message was not being displayed

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

15 years agoFix primary sessions not always treated as such by Manager app.
markt [Mon, 22 Nov 2010 10:30:05 +0000 (10:30 +0000)]
Fix primary sessions not always treated as such by Manager app.

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

15 years agoSimplify escapeXml(Object)
markt [Mon, 22 Nov 2010 10:18:17 +0000 (10:18 +0000)]
Simplify escapeXml(Object)

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

15 years agoFix ordering functionality for Manager app
markt [Mon, 22 Nov 2010 10:16:37 +0000 (10:16 +0000)]
Fix ordering functionality for Manager app

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

15 years agoRevert r1032232
kkolinko [Mon, 22 Nov 2010 03:05:44 +0000 (03:05 +0000)]
Revert r1032232
It broke evaluation of <c:set var="v">value<c:set>
https://issues.apache.org/bugzilla/show_bug.cgi?id=50228#c3

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

15 years agoUse image with tm (the same as tomcat.gif logo)
mturk [Sat, 20 Nov 2010 17:34:56 +0000 (17:34 +0000)]
Use image with tm (the same as tomcat.gif logo)

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

15 years agoImages are not executable
mturk [Sat, 20 Nov 2010 17:29:50 +0000 (17:29 +0000)]
Images are not executable

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

15 years agoAdd tm powered by logo
mturk [Sat, 20 Nov 2010 17:15:09 +0000 (17:15 +0000)]
Add tm powered by logo

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

15 years agoAdd tm
mturk [Sat, 20 Nov 2010 12:45:02 +0000 (12:45 +0000)]
Add tm

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

15 years agoAdd tm to logo
mturk [Sat, 20 Nov 2010 12:41:47 +0000 (12:41 +0000)]
Add tm to logo

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

15 years agoFix https://issues.apache.org/bugzilla/show_bug.cgi?id=50303
markt [Fri, 19 Nov 2010 18:49:11 +0000 (18:49 +0000)]
Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=50303
Update JavaMail download location
JAF is included in Java SE 6

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

15 years agoFix https://issues.apache.org/bugzilla/show_bug.cgi?id=50293
markt [Fri, 19 Nov 2010 18:31:17 +0000 (18:31 +0000)]
Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=50293
Increase default resolver array size. (Jasper adds 5 resolvers.)

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

15 years agoAdditional fix for https://issues.apache.org/bugzilla/show_bug.cgi?id=49297
markt [Fri, 19 Nov 2010 18:21:29 +0000 (18:21 +0000)]
Additional fix for https://issues.apache.org/bugzilla/show_bug.cgi?id=49297
Handle tag directives in a similar manner to page directives

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

15 years agoAdd the final component of parallel deployment
markt [Fri, 19 Nov 2010 17:18:04 +0000 (17:18 +0000)]
Add the final component of parallel deployment

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

15 years agoThe 60s timeout waiting for session info from other nodes will block processing of...
markt [Fri, 19 Nov 2010 16:20:09 +0000 (16:20 +0000)]
The 60s timeout waiting for session info from other nodes will block processing of all cluster messages. As well as lost session updates, this can result in lost sessions if a fail-over occurs while the messages are being blocked.

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

15 years agoParallel deployment
markt [Fri, 19 Nov 2010 15:00:32 +0000 (15:00 +0000)]
Parallel deployment
One more place where contexy.getPath() needs to be replaced with context.getName()

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

15 years agoChanges to Manager and HTML Manager to support parallel deployment
markt [Fri, 19 Nov 2010 12:55:27 +0000 (12:55 +0000)]
Changes to Manager and HTML Manager to support parallel deployment

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

15 years agoAdd displayName to ContextName
markt [Fri, 19 Nov 2010 10:33:54 +0000 (10:33 +0000)]
Add displayName to ContextName
Fix some bugs in ContextName constructors
Add a test case for ContextName

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

15 years agoFix expiration statistics broken by r1036281
markt [Thu, 18 Nov 2010 19:59:11 +0000 (19:59 +0000)]
Fix expiration statistics broken by r1036281
Add session creation and expiration rate statistics based on the 100 most recently created/expired sessions
Modify average session alive time to also use 100 most recently expired sessions
Update benchmarks - new statistics add overhead but not significant in overall processing chain

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

15 years agoSome additional statistics prompted by Remy's questions in the dev list
markt [Thu, 18 Nov 2010 15:49:19 +0000 (15:49 +0000)]
Some additional statistics prompted by Remy's questions in the dev list

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

15 years agoComment out release notes link since tribes has not been released separately
markt [Thu, 18 Nov 2010 11:05:33 +0000 (11:05 +0000)]
Comment out release notes link since tribes has not been released separately

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

15 years agoFix issues with tribes docs reported on users list.
markt [Thu, 18 Nov 2010 10:54:22 +0000 (10:54 +0000)]
Fix issues with tribes docs reported on users list.

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

15 years agoNarrow the manager-wide sync
markt [Wed, 17 Nov 2010 23:36:25 +0000 (23:36 +0000)]
Narrow the manager-wide sync

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

15 years agoRefactor the calculation of session manager statistics to the session manager as...
markt [Wed, 17 Nov 2010 23:24:25 +0000 (23:24 +0000)]
Refactor the calculation of session manager statistics to the session manager as suggested by kkolinko

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

15 years agoAdd recent performance improvements to changelog
markt [Wed, 17 Nov 2010 18:06:20 +0000 (18:06 +0000)]
Add recent performance improvements to changelog

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

15 years agoSession manager performance
markt [Wed, 17 Nov 2010 17:59:49 +0000 (17:59 +0000)]
Session manager performance
Switch to a queue of randomInputStreams
Significant performance improvement on multi-core non-Windows platforms

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

15 years agoSession manager performance
markt [Wed, 17 Nov 2010 17:37:19 +0000 (17:37 +0000)]
Session manager performance
Switch to only allowing changes to randomFile to take effect when the Manager next starts. This will simplify replacing RandomIS with a queue which is the next step in improving Manager performance on non-Windows platforms

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

15 years agoTab police - sorry rebuilt my laptop and forgot to configure Eclipse for spaces
markt [Wed, 17 Nov 2010 17:21:13 +0000 (17:21 +0000)]
Tab police - sorry rebuilt my laptop and forgot to configure Eclipse for spaces

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

15 years agoRename attributes to align with getter/setter to make code easier to read
markt [Wed, 17 Nov 2010 16:27:51 +0000 (16:27 +0000)]
Rename attributes to align with getter/setter to make code easier to read

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

15 years agoReduce code duplication
markt [Wed, 17 Nov 2010 16:26:23 +0000 (16:26 +0000)]
Reduce code duplication
Initialise the random number generator once in ManagerBase

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

15 years agoUpdate figures
markt [Wed, 17 Nov 2010 13:56:37 +0000 (13:56 +0000)]
Update figures

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

15 years agoIncrease length of tests to
markt [Wed, 17 Nov 2010 13:05:20 +0000 (13:05 +0000)]
Increase length of tests to
a) reduce impact of start-up overhead
b) make it easier to profile

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

15 years agoSession manager performance
markt [Wed, 17 Nov 2010 12:59:06 +0000 (12:59 +0000)]
Session manager performance
Focused on Windows.
Use a queue of Random's to generate session ID to remove sync bottleneck on random.nextBytes(bytes)
Timings suggest some bottlenecks still present in default Windows code path

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

15 years agoSession manager performance
markt [Wed, 17 Nov 2010 10:52:58 +0000 (10:52 +0000)]
Session manager performance
Focused on Windows.
No need for DataInputStream, so remove it.
Ensure randomIS is consistent with devRandomSource including when devRandomSource is changed whilst Manager is started
Further reduce scope of syncs

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

15 years agoAdd some test code I used to check thread-safety of FileInputStream on various platforms
markt [Wed, 17 Nov 2010 10:48:16 +0000 (10:48 +0000)]
Add some test code I used to check thread-safety of FileInputStream on various platforms

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

15 years agoCoyoteAdapter.parsePathParameters:
kkolinko [Wed, 17 Nov 2010 10:41:03 +0000 (10:41 +0000)]
CoyoteAdapter.parsePathParameters:
- do not reevaluate start/end, because we already have them in local variables
- move warnedEncoding flag outside the loop, because otherwise it was always false and thus useless

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

15 years agoAdditional results for reference
markt [Tue, 16 Nov 2010 19:39:07 +0000 (19:39 +0000)]
Additional results for reference

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

15 years agoSession manager performance
markt [Tue, 16 Nov 2010 18:07:56 +0000 (18:07 +0000)]
Session manager performance
Move sync. No performance change but sync requirements for sub-classes are clearer.
Still looking to remove sync completely.

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

15 years agoUpdate the metrics - looking a lot better on Windows
markt [Tue, 16 Nov 2010 17:50:34 +0000 (17:50 +0000)]
Update the metrics - looking a lot better on Windows

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

15 years agoSession manager performance
markt [Tue, 16 Nov 2010 17:48:07 +0000 (17:48 +0000)]
Session manager performance
Big performance improvement for Windows. Don't try to create randomIS on every single session creation call

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

15 years agoSession manager performance
markt [Tue, 16 Nov 2010 17:22:45 +0000 (17:22 +0000)]
Session manager performance
Switch to a queue of message digests rather than a single sync'd digest
Small improvement but is part of removing the sync completely that should result in larger improvements

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

15 years agoSession manager performance
markt [Tue, 16 Nov 2010 17:13:29 +0000 (17:13 +0000)]
Session manager performance
Narrow sync - few % improvement

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

15 years agoAdd some benchmark code for session creation.
markt [Tue, 16 Nov 2010 16:46:50 +0000 (16:46 +0000)]
Add some benchmark code for session creation.
A performance presentation at JavaOne 2010 highlighted Tomcat's session creation as a synchronisation bottleneck for multiple production apps
Some optimisations will follow.

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

15 years agoAvoid NPE when removing sessions
markt [Tue, 16 Nov 2010 16:41:13 +0000 (16:41 +0000)]
Avoid NPE when removing sessions

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

15 years agoImprove logging documentation.
kkolinko [Tue, 16 Nov 2010 02:54:12 +0000 (02:54 +0000)]
Improve logging documentation.
I completely rewrote the "Introduction" section of the page, to provide a lot more of details.

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

15 years agoWrap long lines in a properties file example.
kkolinko [Tue, 16 Nov 2010 00:23:40 +0000 (00:23 +0000)]
Wrap long lines in a properties file example.

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

15 years agoMove <source> block outside of <ol> list to avoid indent, and thus reduce horizontal...
kkolinko [Tue, 16 Nov 2010 00:19:36 +0000 (00:19 +0000)]
Move <source> block outside of <ol> list to avoid indent, and thus reduce horizontal scrolling.
Do not nest lists into <p>.

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

15 years agoReformat the document. Print default values on separate lines, for better readability.
kkolinko [Mon, 15 Nov 2010 23:50:18 +0000 (23:50 +0000)]
Reformat the document. Print default values on separate lines, for better readability.
Correctly document the default value of org.apache.jasper.Constants.PRECOMPILE property. The value is "jsp_precompile".

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

15 years agoRemove unused methods
markt [Mon, 15 Nov 2010 17:52:18 +0000 (17:52 +0000)]
Remove unused methods
Reduce visibility of methods where possible

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

15 years agoOpps. Encoded display text rather than link.
markt [Mon, 15 Nov 2010 17:35:56 +0000 (17:35 +0000)]
Opps. Encoded display text rather than link.

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

15 years agoParallel deployment
markt [Mon, 15 Nov 2010 17:29:45 +0000 (17:29 +0000)]
Parallel deployment
Add a version column to the HTML Manager output.

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

15 years agoAlign default with Context Javadoc.
markt [Mon, 15 Nov 2010 14:14:30 +0000 (14:14 +0000)]
Align default with Context Javadoc.

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

15 years agoFix wrong path in the "Tomcat Documentation" shortcut.
kkolinko [Mon, 15 Nov 2010 03:14:40 +0000 (03:14 +0000)]
Fix wrong path in the "Tomcat Documentation" shortcut.
The webapp is called "docs". ("tomcat-docs" was in TC5.5)

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

15 years agoDo not remove HKCR key "JSPFile", because we do not create it.
kkolinko [Sun, 14 Nov 2010 23:05:17 +0000 (23:05 +0000)]
Do not remove HKCR key "JSPFile", because we do not create it.

(Why was it there? Was somebody configuring Tomcat as the app that runs "*.jsp" files on Windows?)

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

15 years agoRemove "modern.exe" reference from Uninstall section.
kkolinko [Sun, 14 Nov 2010 22:48:23 +0000 (22:48 +0000)]
Remove "modern.exe" reference from Uninstall section.
There is no such file. It was just part of an old example.
E.g. mentioned here: http://forums.winamp.com/showthread.php?t=150064

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

15 years agoMove 'FileOpen' command outside from the InstallRetry loop.
kkolinko [Sun, 14 Nov 2010 22:28:31 +0000 (22:28 +0000)]
Move 'FileOpen' command outside from the InstallRetry loop.

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

15 years agoDefine a variable to hold a handle to the service-install.log file.
kkolinko [Sun, 14 Nov 2010 21:59:23 +0000 (21:59 +0000)]
Define a variable to hold a handle to the service-install.log file.
Using $R7 was not clean, because it can be reused in different methods along the way.
Append to the file, instead of overwriting it.

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

15 years agoSimplify logic
kkolinko [Sun, 14 Nov 2010 21:18:29 +0000 (21:18 +0000)]
Simplify logic

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

15 years ago- SetOutPath creates the empty folders for us. Thus 'File /nonfatal' trick is not...
kkolinko [Sun, 14 Nov 2010 21:05:41 +0000 (21:05 +0000)]
- SetOutPath creates the empty folders for us. Thus 'File /nonfatal' trick is not needed.
- Simplify deletion patterns in the Uninstall section

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

15 years ago- Move SecMenu section back to its place,
kkolinko [Sun, 14 Nov 2010 20:38:40 +0000 (20:38 +0000)]
- Move SecMenu section back to its place,
but extract its code into a separate method.
(The "components" page of the installer lists sections in the order they apprear in the script file).
- Fix processing of tomcat-user.xml, server.xml broken by r1034926. Using 'ReserveFile' was not enough. A 'File' statement must be used as well.
- Fix control type for the "password" field.
- Simplify several logical expressions.

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

15 years agoRename 'Service' section -> 'Service Startup' in the installer, to make its intent...
kkolinko [Sun, 14 Nov 2010 19:10:22 +0000 (19:10 +0000)]
Rename 'Service' section -> 'Service Startup' in the installer, to make its intent more clear.
It is port of r451508 from TC 5.5

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

15 years agoMove server.xml and tomcat-users.xml to the top of the installer archive (aka reservi...
kkolinko [Sun, 14 Nov 2010 02:25:36 +0000 (02:25 +0000)]
Move server.xml and tomcat-users.xml to the top of the installer archive (aka reserving them).

Those were installed among the first files ('configure' was called from Core section), but this code is near the end of the script and thus the files were packed near the end of the archive. The delay while extracting server.xml was noticeable. With this fix that step completes nearly instantly.

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

15 years agoWhen installing on Windows,
kkolinko [Sun, 14 Nov 2010 02:05:56 +0000 (02:05 +0000)]
When installing on Windows,
do not leave undeleted stale files in $TEMP/src/res/confinstall/

The cause is that there are two confinstall folders in $dist: '/confinstall' and '/src/res/confinstall'
The 'File /r confinstall' directive was selecting both paths (like issues fixed in r611660),
but subsequent 'RMDir /r "$TEMP\confinstall"' removed only one of them.

New implementaion selects only one copy of the files, and places them into $PLUGINSDIR.

Also,
added DetailPrint statements for operations that take noticeable time
(file copying and spawning external programs).

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

15 years agoReimplemented the Windows installer GUI using nsDialogs and MUI2 libraries,
kkolinko [Sat, 13 Nov 2010 23:39:57 +0000 (23:39 +0000)]
Reimplemented the Windows installer GUI using nsDialogs and MUI2 libraries,
instead of deprecated InstallOptions.
The *.ini files are no more used. All is specified in the nsi script.

Migration was straightforward, except for a DirRequest field
(the field on the JVM selection page that displays path to JRE):
I had to create the Browse button explicitly and implement an OnClick handler. It is not spelled in the docs, but is discussed a lot on forums.

Other improvements:
- Added a textfield to display/edit the roles for the user that we add to tomcat-user.xml
- The roles are calculated depending on what webapps are installed (manager, host-manager, or both).
- I do not display "username", "password", "roles" fields when neither manager nor host-manager are selected. In the previous version we showed them as disabled. Now I do not show them on screen.

- Implemented creating Windows Shortcuts for the Manager, Host Manager apps and Documentation. There was implementation for that already (Manager and Docs shortcut only), but it was not working: it used IfFileExist check that always evaluated to false, because shortcuts were created before those files were installed.
- Added support for the '/?' command line option. It displays a message box with some short text about the /S and /D options. See .onInit function in tomcat.nsi for details.
- Using LogicLib.nsh for logic. I hope that the script became more easily readable.

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

15 years agoRevert r1031709
markt [Sat, 13 Nov 2010 12:46:30 +0000 (12:46 +0000)]
Revert r1031709
Parallel deployment implementation is changing as a result of discussion on the dev list and this re-ordering was specific to the previous implementation.

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

15 years agoFix https://issues.apache.org/bugzilla/show_bug.cgi?id=50192
markt [Fri, 12 Nov 2010 18:29:12 +0000 (18:29 +0000)]
Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=50192
Improve performance for EL when running under a security manager.
Based on a patch by Robert Goff.

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

15 years agoAdditional tests and fixes for https://issues.apache.org/bugzilla/show_bug.cgi?id...
markt [Fri, 12 Nov 2010 16:52:02 +0000 (16:52 +0000)]
Additional tests and fixes for https://issues.apache.org/bugzilla/show_bug.cgi?id=49297
Duplicate attribute rules for the page directive are slightly different.
Based on a patch by genspring

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

15 years agoRe-organise tests for bugs 49nnn
markt [Fri, 12 Nov 2010 15:11:25 +0000 (15:11 +0000)]
Re-organise tests for bugs 49nnn

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

15 years agoOrganise
markt [Fri, 12 Nov 2010 14:39:11 +0000 (14:39 +0000)]
Organise

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

15 years agoFix https://issues.apache.org/bugzilla/show_bug.cgi?id=50230
markt [Thu, 11 Nov 2010 22:10:25 +0000 (22:10 +0000)]
Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=50230
Add new DistributedManager interface that is implemented by the Backup Manager to remove circular dependency between tomcat-catalina-ha and tomcat-catalina modules. Also allows third-party distributed Manager implementations to report full session information through the HTML Manager.

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

15 years agoFix broken links
markt [Thu, 11 Nov 2010 14:04:06 +0000 (14:04 +0000)]
Fix broken links

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

15 years agoFix https://issues.apache.org/bugzilla/show_bug.cgi?id=50252
markt [Thu, 11 Nov 2010 13:00:52 +0000 (13:00 +0000)]
Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=50252
Prevent ClassCastException when using a <ResourceLink>.
Patch provided by Eiji Takahashi.

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

15 years agoFix https://issues.apache.org/bugzilla/show_bug.cgi?id=50183
markt [Thu, 11 Nov 2010 12:51:35 +0000 (12:51 +0000)]
Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=50183
BIO sender was not scheduling tasks to the executor during normal operation.
Patch provided by Ariel.

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

15 years agoClean-up
markt [Thu, 11 Nov 2010 12:41:54 +0000 (12:41 +0000)]
Clean-up

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

15 years agoClean-up
markt [Thu, 11 Nov 2010 12:40:15 +0000 (12:40 +0000)]
Clean-up

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

15 years agoClean-up
markt [Thu, 11 Nov 2010 12:33:07 +0000 (12:33 +0000)]
Clean-up

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

15 years agoFix https://issues.apache.org/bugzilla/show_bug.cgi?id=50169
markt [Thu, 11 Nov 2010 12:29:40 +0000 (12:29 +0000)]
Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=50169
Ensure that when a Container is started that it doesn't try and register with the mapper unless its parent has already started.
Patch provided by Eiji Takahashi.

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

15 years agoConsistency.
markt [Thu, 11 Nov 2010 12:00:02 +0000 (12:00 +0000)]
Consistency.

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

15 years agoUpdate changelog
markt [Thu, 11 Nov 2010 11:58:11 +0000 (11:58 +0000)]
Update changelog

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

15 years agoRestore the ability (via an option) to edit the contents of WEB-INF and META-INF...
markt [Thu, 11 Nov 2010 11:49:51 +0000 (11:49 +0000)]
Restore the ability (via an option) to edit the contents of WEB-INF and META-INF via WebDAV

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

15 years agoRemove unused function.
kkolinko [Thu, 11 Nov 2010 11:07:02 +0000 (11:07 +0000)]
Remove unused function.
Update changelog for r1027504, r1033856, r1033882.

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

15 years agoImprovement for r1027504
kkolinko [Thu, 11 Nov 2010 11:01:26 +0000 (11:01 +0000)]
Improvement for r1027504
Read PE header from jvm.dll to autodetect the target CPU architecture

Note: function findCpuType is no more used. Should I delete it?

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

15 years agoTypo / line-length
markt [Thu, 11 Nov 2010 10:16:13 +0000 (10:16 +0000)]
Typo / line-length

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

15 years agoSimpler code / fix Eclipse warnings
markt [Thu, 11 Nov 2010 10:14:21 +0000 (10:14 +0000)]
Simpler code / fix Eclipse warnings

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

15 years agoFix Eclipse warnings
markt [Thu, 11 Nov 2010 10:07:21 +0000 (10:07 +0000)]
Fix Eclipse warnings

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

15 years agoFolloup to 1027504:
kkolinko [Thu, 11 Nov 2010 09:40:26 +0000 (09:40 +0000)]
Folloup to 1027504:
NSIS docs say that using relative offset in Goto does not play well with macros, because those may be expanded into several lines. Use a label instead.

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

15 years agoFollowup to implementation of https://issues.apache.org/bugzilla/show_bug.cgi?id...
kkolinko [Thu, 11 Nov 2010 08:53:01 +0000 (08:53 +0000)]
Followup to implementation of https://issues.apache.org/bugzilla/show_bug.cgi?id=49860
Use local variable instead of array access.

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