tomcat7.0
15 years agoTest for null rather than waiting for the NPE ot be thrown.
markt [Mon, 14 Dec 2009 10:37:01 +0000 (10:37 +0000)]
Test for null rather than waiting for the NPE ot be thrown.

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

15 years agoOnly apply filtering to the files that need it else non-text files will get corrupted.
markt [Mon, 14 Dec 2009 10:00:23 +0000 (10:00 +0000)]
Only apply filtering to the files that need it else non-text files will get corrupted.

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

15 years agoOne more week of (almost 20%) hacking on tomcat-lite:
costin [Mon, 14 Dec 2009 07:35:57 +0000 (07:35 +0000)]
One more week of (almost 20%) hacking on tomcat-lite:
- protocol handler is almost useable with both tomcat7 and 6.x. It's missing most options of the other
connectors - will need to select what fits with 'lite', SSL is not hooked
- run the old watchdog tests ( in junit form ) - they seem to catch few problems, improved a bit the
runner to make eclipse happy.
- few load tests - and associated fixes.

If anyone tries it out with maven - one test will look for examples webapp, the one in tomcat7 has
a RequestDumperFilter that needs to be commented out. Ant runs more tests - some are failing. For
either - you need a build of the watchdog.

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

16 years agoFix https://issues.apache.org/bugzilla/show_bug.cgi?id=48381
markt [Sun, 13 Dec 2009 23:03:32 +0000 (23:03 +0000)]
Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=48381
Add a note about case of host name

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

16 years agoFix https://issues.apache.org/bugzilla/show_bug.cgi?id=43656
markt [Sun, 13 Dec 2009 22:48:20 +0000 (22:48 +0000)]
Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=43656
Correctly coerce null to zero when Number is the required type.

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

16 years agoRemove empty dir
markt [Sun, 13 Dec 2009 19:41:38 +0000 (19:41 +0000)]
Remove empty dir

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

16 years agoMake init param name consistent
markt [Sat, 12 Dec 2009 19:49:40 +0000 (19:49 +0000)]
Make init param name consistent

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

16 years agoIgnores if building module in Eclipse
markt [Sat, 12 Dec 2009 19:48:33 +0000 (19:48 +0000)]
Ignores if building module in Eclipse

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

16 years agoCleanup of unused method and parameter
markt [Fri, 11 Dec 2009 17:33:27 +0000 (17:33 +0000)]
Cleanup of unused method and parameter

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

16 years agoAddress session fixation by changing the session ID on authentication. This is enable...
markt [Fri, 11 Dec 2009 17:30:59 +0000 (17:30 +0000)]
Address session fixation by changing the session ID on authentication. This is enabled by default. This should be safe since this also happens when sessions migrate between nodes in a cluster. If an app can't handle a changing ID, then the feature can be disabled in the authenticator.

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

16 years agoRemove docs for valve that was replaced with filter
markt [Fri, 11 Dec 2009 17:14:26 +0000 (17:14 +0000)]
Remove docs for valve that was replaced with filter

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

16 years agoJARs without any web.xml fragments should not impact the status of distributable
markt [Fri, 11 Dec 2009 17:04:36 +0000 (17:04 +0000)]
JARs without any web.xml fragments should not impact the status of distributable

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

16 years agoFix https://issues.apache.org/bugzilla/show_bug.cgi?id=47656
markt [Fri, 11 Dec 2009 13:47:10 +0000 (13:47 +0000)]
Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=47656
Add information on system property replacement in config files.

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

16 years agoFix https://issues.apache.org/bugzilla/show_bug.cgi?id=47537
markt [Fri, 11 Dec 2009 13:12:57 +0000 (13:12 +0000)]
Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=47537
Return an error page if a forward during form auth fails rather than a zero length 200 response.

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

16 years agoUse the right class for the logger
markt [Fri, 11 Dec 2009 12:47:13 +0000 (12:47 +0000)]
Use the right class for the logger

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

16 years agoFix https://issues.apache.org/bugzilla/show_bug.cgi?id=48373
markt [Fri, 11 Dec 2009 12:17:27 +0000 (12:17 +0000)]
Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=48373
Patch suggested by wujunchen

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

16 years agoFix https://issues.apache.org/bugzilla/show_bug.cgi?id=48370
markt [Fri, 11 Dec 2009 12:14:05 +0000 (12:14 +0000)]
Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=48370
Remove some unused imports

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

16 years agoUpdate procrun to 2.0.6
mturk [Fri, 11 Dec 2009 07:51:09 +0000 (07:51 +0000)]
Update procrun to 2.0.6

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

16 years agoFix https://issues.apache.org/bugzilla/show_bug.cgi?id=47507
markt [Thu, 10 Dec 2009 18:46:39 +0000 (18:46 +0000)]
Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=47507
Document the UserDatabaseRealm, in particular the readonly attribute of UserDartabase resources.

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

16 years agoFix https://issues.apache.org/bugzilla/show_bug.cgi?id=48324
markt [Thu, 10 Dec 2009 16:59:29 +0000 (16:59 +0000)]
Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=48324
Correct JavaDoc. Patch by sebb

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

16 years agoInclude the version on the homepage.
markt [Thu, 10 Dec 2009 10:53:13 +0000 (10:53 +0000)]
Include the version on the homepage.

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

16 years agoCorrect TODO - thanks sebb
markt [Tue, 8 Dec 2009 17:59:57 +0000 (17:59 +0000)]
Correct TODO - thanks sebb

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

16 years agoFix a couple of potential NPEs
markt [Tue, 8 Dec 2009 00:29:50 +0000 (00:29 +0000)]
Fix a couple of potential NPEs

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

16 years agoMore post-refactoring recurrsion protection
markt [Mon, 7 Dec 2009 19:26:03 +0000 (19:26 +0000)]
More post-refactoring recurrsion protection

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

16 years agoAdd missing part of recurrsion patch
markt [Mon, 7 Dec 2009 19:12:18 +0000 (19:12 +0000)]
Add missing part of recurrsion patch

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

16 years agoShutdown the handlers used by webapps otherwise log messages in the buffer just get...
markt [Mon, 7 Dec 2009 18:48:27 +0000 (18:48 +0000)]
Shutdown the handlers used by webapps otherwise log messages in the buffer just get lost.

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

16 years agoMore clean up
markt [Mon, 7 Dec 2009 17:22:24 +0000 (17:22 +0000)]
More clean up

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

16 years agoRemove remains of generic package
markt [Mon, 7 Dec 2009 17:11:10 +0000 (17:11 +0000)]
Remove remains of generic package
More clean up

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

16 years agoMore BCEL pruning
markt [Mon, 7 Dec 2009 16:56:00 +0000 (16:56 +0000)]
More BCEL pruning

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

16 years agoAdd support for WebFilter
markt [Mon, 7 Dec 2009 16:43:25 +0000 (16:43 +0000)]
Add support for WebFilter
Remove wrappers to implement isAsyncSupported() having found the setAttribute() code
It is individual filters rather than the whole filter chain that need to be considered for isAsyncSupported

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

16 years agoAdd annotation support for WebListener
markt [Mon, 7 Dec 2009 14:25:21 +0000 (14:25 +0000)]
Add annotation support for WebListener

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

16 years agoAdd annotation support for WebServlet
markt [Mon, 7 Dec 2009 14:18:29 +0000 (14:18 +0000)]
Add annotation support for WebServlet

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

16 years agoAdd async-supported impl for Servlets
markt [Mon, 7 Dec 2009 14:17:14 +0000 (14:17 +0000)]
Add async-supported impl for Servlets

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

16 years agoA little more cleanup. UCDetector claims there is no more to clean. I'm not yet convi...
markt [Mon, 7 Dec 2009 14:14:49 +0000 (14:14 +0000)]
A little more cleanup. UCDetector claims there is no more to clean. I'm not yet convinced.

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

16 years agoTypo
markt [Mon, 7 Dec 2009 12:49:56 +0000 (12:49 +0000)]
Typo

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

16 years agoLast cleanup of unused code for today. Still more todo.
markt [Sun, 6 Dec 2009 01:03:55 +0000 (01:03 +0000)]
Last cleanup of unused code for today. Still more todo.

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

16 years agoMore unused code removal.
markt [Sun, 6 Dec 2009 00:19:52 +0000 (00:19 +0000)]
More unused code removal.
Still not complete.

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

16 years agoRemove unused code identified by Eclipse / UCDetector.
markt [Sat, 5 Dec 2009 23:22:46 +0000 (23:22 +0000)]
Remove unused code identified by Eclipse / UCDetector.
Not complete - still more to remove.

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

16 years agoRemove some unused classes identified by the unused code detector
markt [Fri, 4 Dec 2009 20:23:13 +0000 (20:23 +0000)]
Remove some unused classes identified by the unused code detector

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

16 years agoDon't need the Vistor and associated support
markt [Fri, 4 Dec 2009 18:56:38 +0000 (18:56 +0000)]
Don't need the Vistor and associated support

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

16 years agoRemove the verifier
markt [Fri, 4 Dec 2009 18:12:33 +0000 (18:12 +0000)]
Remove the verifier

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

16 years agoImport a package renamed Jakarta BCEL trunk to do the annotation scanning.
markt [Fri, 4 Dec 2009 17:59:52 +0000 (17:59 +0000)]
Import a package renamed Jakarta BCEL trunk to do the annotation scanning.
There is far more functionality here than is required. The excess will be removed as development progresses.
The import has been done via svn copy so future updates should be easy via svn merge.

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

16 years agoImport a a package renamed Jakarta BCEL trunk to do the annotation scanning. There...
markt [Fri, 4 Dec 2009 17:49:49 +0000 (17:49 +0000)]
Import a a package renamed Jakarta BCEL trunk to do the annotation scanning. There is a lot of fat still to be trimmed.
This was done as an svn copy so future updates should be simple via svn merge.

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

16 years agoFix the Eclipse warnings
markt [Fri, 4 Dec 2009 13:51:52 +0000 (13:51 +0000)]
Fix the Eclipse warnings

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

16 years agoNeed to strip /hostname/contextpath before trying to list resources
markt [Fri, 4 Dec 2009 13:50:36 +0000 (13:50 +0000)]
Need to strip /hostname/contextpath before trying to list resources

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

16 years agoNew Jar in Java 7
markt [Fri, 4 Dec 2009 10:17:06 +0000 (10:17 +0000)]
New Jar in Java 7

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

16 years agoAdding the plumbing to get inputstreams for class files. These will be passed BCEL...
markt [Fri, 4 Dec 2009 10:16:27 +0000 (10:16 +0000)]
Adding the plumbing to get inputstreams for class files. These will be passed BCEL for annotation scanning.

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

16 years agoMore accurate comment
markt [Fri, 4 Dec 2009 10:14:36 +0000 (10:14 +0000)]
More accurate comment

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

16 years agoFix typo
markt [Fri, 4 Dec 2009 10:14:00 +0000 (10:14 +0000)]
Fix typo

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

16 years agoAdded the tests - but then tried few more changes and broke them again. Fix it back.
costin [Fri, 4 Dec 2009 08:03:16 +0000 (08:03 +0000)]
Added the tests - but then tried few more changes and broke them again. Fix it back.

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

16 years agoOne more iteration:
costin [Fri, 4 Dec 2009 07:16:59 +0000 (07:16 +0000)]
One more iteration:
- added few more tests
- moved the http/1.x code to HttpConnection - easier to test, allows protocol upgrade
- added an (experimental, hello-world-style) implementation of spdy ( a new binary protocol
and possible replacement for jk ). Tested with chrome and the unit tests - the tricky part
seems to work - detecting and 'upgrading' the wire transport.

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

16 years agoUpdate web.xml to servlet 3.0
markt [Thu, 3 Dec 2009 23:12:24 +0000 (23:12 +0000)]
Update web.xml to servlet 3.0
Mark as metadata-complete

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

16 years agoAdd support for the MultipartConfig annotation
markt [Thu, 3 Dec 2009 15:25:54 +0000 (15:25 +0000)]
Add support for the MultipartConfig annotation

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

16 years agoOnly log missing class as an error on Sun JVMs. Likely to be an non-issue for other...
markt [Thu, 3 Dec 2009 13:24:15 +0000 (13:24 +0000)]
Only log missing class as an error on Sun JVMs. Likely to be an non-issue for other vendors.

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

16 years agoRemove use of deprecated code
markt [Wed, 2 Dec 2009 18:00:40 +0000 (18:00 +0000)]
Remove use of deprecated code

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

16 years agoFix https://issues.apache.org/bugzilla/show_bug.cgi?id=47502
markt [Wed, 2 Dec 2009 00:31:33 +0000 (00:31 +0000)]
Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=47502
Don't try and replicate attributes we know to be non-serializable
Patch by Tim Funk

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

16 years agoBetter descriptions
markt [Tue, 1 Dec 2009 23:28:49 +0000 (23:28 +0000)]
Better descriptions

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

16 years agoFix https://issues.apache.org/bugzilla/show_bug.cgi?id=48296
markt [Tue, 1 Dec 2009 23:21:41 +0000 (23:21 +0000)]
Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=48296
Generics and JavaDoc fixes
Patch provided by sebb

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

16 years agoRemove deprecated commands
markt [Tue, 1 Dec 2009 23:02:36 +0000 (23:02 +0000)]
Remove deprecated commands

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

16 years agoFix https://issues.apache.org/bugzilla/show_bug.cgi?id=47453
markt [Tue, 1 Dec 2009 22:52:55 +0000 (22:52 +0000)]
Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=47453
Handle void return types.
Patch by Tim Funk.

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

16 years agoMore memory leak protection. Adds support for:
markt [Tue, 1 Dec 2009 20:04:17 +0000 (20:04 +0000)]
More memory leak protection. Adds support for:
 - optionally stopping threads started by a web app - this is dangerous last resort option for dev environments - not for production
 - clearing ThreadLocals created buy web apps
 - clearing unintentional references in sun.rmi.transport.Target

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

16 years agoMove from a global system property to a per Context attribute for clearing static...
markt [Tue, 1 Dec 2009 19:33:44 +0000 (19:33 +0000)]
Move from a global system property to a per Context attribute for clearing static references.
Change the default as this should no longer be an issue with modern JVMs and the other memory leak protection provided in Tomcat 7.

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

16 years agoMore memory leak protection - this time for the GC Daemon thread.
markt [Tue, 1 Dec 2009 18:44:32 +0000 (18:44 +0000)]
More memory leak protection - this time for the GC Daemon thread.

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

16 years agoProvide a simple way of enabling all cipher suites when testing.
markt [Tue, 1 Dec 2009 14:34:55 +0000 (14:34 +0000)]
Provide a simple way of enabling all cipher suites when testing.

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

16 years agoAdd code that logs threads started but not stopped by the webapp.
markt [Sun, 29 Nov 2009 19:27:38 +0000 (19:27 +0000)]
Add code that logs threads started but not stopped by the webapp.
I have some highly experimental code to shut those threads down but it a) needs more work and b) needs to be made configurable before I commit it.

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

16 years agoRefactor prior to adding some more clean-up methods.
markt [Sun, 29 Nov 2009 15:30:40 +0000 (15:30 +0000)]
Refactor prior to adding some more clean-up methods.

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

16 years agoBetter logging of what is going on on Context reload
markt [Sun, 29 Nov 2009 14:32:41 +0000 (14:32 +0000)]
Better logging of what is going on on Context reload

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

16 years agoAdd logging when a context fails to unregister a JDBC driver.
markt [Sun, 29 Nov 2009 14:25:04 +0000 (14:25 +0000)]
Add logging when a context fails to unregister a JDBC driver.
Don't unregister the jdbc-obdc bridge driver that is loaded by the system classloader.

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

16 years agoFix https://issues.apache.org/bugzilla/show_bug.cgi?id=47342
markt [Fri, 27 Nov 2009 22:23:40 +0000 (22:23 +0000)]
Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=47342
Make sure replicated context is initialised before accessing fields
Patch provided by Keiichi Fujino

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

16 years agoFix https://issues.apache.org/bugzilla/show_bug.cgi?id=48289
markt [Fri, 27 Nov 2009 18:20:12 +0000 (18:20 +0000)]
Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=48289
Javadoc / generics fixes
Patch procided by sebb

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

16 years agoFix https://issues.apache.org/bugzilla/show_bug.cgi?id=48288
markt [Fri, 27 Nov 2009 18:14:19 +0000 (18:14 +0000)]
Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=48288
Supress some warnings
Patch provided by sebb

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

16 years agoFix https://issues.apache.org/bugzilla/show_bug.cgi?id=48287
markt [Fri, 27 Nov 2009 18:11:34 +0000 (18:11 +0000)]
Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=48287
Eclipse warnings
Patch provided by sebb

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

16 years agoFix https://issues.apache.org/bugzilla/show_bug.cgi?id=48285
markt [Fri, 27 Nov 2009 18:01:12 +0000 (18:01 +0000)]
Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=48285
Add handling of Async dispatcher types

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

16 years agoFurther simplication - delete unused constants
markt [Fri, 27 Nov 2009 17:53:29 +0000 (17:53 +0000)]
Further simplication - delete unused constants

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

16 years agoTake advantage of revised constants to simplify code
markt [Fri, 27 Nov 2009 17:52:25 +0000 (17:52 +0000)]
Take advantage of revised constants to simplify code

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

16 years agoRe-order the numbering so each dispatcher type always refers to the same bit so we...
markt [Fri, 27 Nov 2009 17:24:47 +0000 (17:24 +0000)]
Re-order the numbering so each dispatcher type always refers to the same bit so we can use bitwise operations

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

16 years agoFix https://issues.apache.org/bugzilla/show_bug.cgi?id=48282
markt [Fri, 27 Nov 2009 17:17:12 +0000 (17:17 +0000)]
Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=48282
Correct possible NPE
Patch provided by sebb

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

16 years agoFix https://issues.apache.org/bugzilla/show_bug.cgi?id=48267
markt [Fri, 27 Nov 2009 17:14:16 +0000 (17:14 +0000)]
Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=48267
Generics
Patch provided by sebb

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

16 years agoFix https://issues.apache.org/bugzilla/show_bug.cgi?id=48297
markt [Fri, 27 Nov 2009 16:57:21 +0000 (16:57 +0000)]
Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=48297
Missing french translations and some weird sentences
Patch provided by Marc Paquette

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

16 years agoFix https://issues.apache.org/bugzilla/show_bug.cgi?id=48295
markt [Fri, 27 Nov 2009 16:53:37 +0000 (16:53 +0000)]
Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=48295
Correct French translations.
Patch provided by Marc Paquette

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

16 years agoDouble-check getResource() works as intended after report of issue with Grails (http...
markt [Fri, 27 Nov 2009 14:55:26 +0000 (14:55 +0000)]
Double-check getResource() works as intended after report of issue with Grails (jira.codehaus.org/browse/GRAILS-5038)
All seems OK. Maybe a Grails issue?

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

16 years agoRemove unused class
markt [Thu, 26 Nov 2009 19:38:46 +0000 (19:38 +0000)]
Remove unused class

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

16 years agoShouldn't do last-minute changes before a large commit...
costin [Thu, 26 Nov 2009 07:02:53 +0000 (07:02 +0000)]
Shouldn't do last-minute changes before a large commit...

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

16 years agoAdded eclipse files, remove unused build helper file
costin [Thu, 26 Nov 2009 06:56:33 +0000 (06:56 +0000)]
Added eclipse files, remove unused build helper file

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

16 years agoTests. Note that you need to have watchdog checked out and built (if it can still...
costin [Thu, 26 Nov 2009 06:55:49 +0000 (06:55 +0000)]
Tests. Note that you need to have watchdog checked out and built (if it can still be built... - probably should checkin the binaries ).
There are a bunch of useful tests in watchdog - I'm not running watchdog, but turned it into JUnit test cases, we just
need the web apps and golden files from there.

At the moment there are about 12 failures (out of ~1000 tests - there are several dups because same tests are run against
different targets )

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

16 years agoFor downloading deps - used Ant Ivy. The actual deps are declared in a maven pom...
costin [Thu, 26 Nov 2009 06:52:28 +0000 (06:52 +0000)]
For downloading deps - used Ant Ivy. The actual deps are declared in a maven pom.xml ( Ivy is supporting it just fine ).

The maven file can be used to compile and test tomcat-lite in servlet-2.5 mode - I wouldn't recomend to anyone to
use it, but if you have to and can't use build.xml - it does the basic thing.

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

16 years agoFew change to the ObjectManager ( intended for integration with existing frameworks ).
costin [Thu, 26 Nov 2009 06:50:10 +0000 (06:50 +0000)]
Few change to the ObjectManager ( intended for integration with existing frameworks ).
The 'sample/if no other framework around' SimpleObject manager no longer depends on IntrospectionUtils, refactored it ( and parts of modeler )
to DynamicObject.

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

16 years agoMoved the old coyote-specific servlet api impl to coyote/servlet
costin [Thu, 26 Nov 2009 06:48:42 +0000 (06:48 +0000)]
Moved the old coyote-specific servlet api impl to coyote/servlet
Added (10% working) coyote connector that uses the new http impl

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

16 years agoRemoved the 'addons' package, moved the interfaces close to the packages that define...
costin [Thu, 26 Nov 2009 06:47:03 +0000 (06:47 +0000)]
Removed the 'addons' package, moved the interfaces close to the packages that define them, also
some code move around.

The web.xml parsing ( and some incipient 3.0 annotation processing ) is independent of tomcat, indended as
a user-library.

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

16 years agoBased on the code in tomcat.lite, but using the new http connector instead of coyote.
costin [Thu, 26 Nov 2009 06:45:13 +0000 (06:45 +0000)]
Based on the code in tomcat.lite, but using the new http connector instead of coyote.
Also the ObjectManager and properties are no longer used.

This can be compiled against both 3.0 and 2.5 ( with proper exclude ), since one of the goals
of tomcat-lite is to be useable against current servers.

Note that this is mostly for testing and to allow existing servlets to be used _outside_ of a
servlet engine - this is not a servlet engine.

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

16 years agoProxy service - CONNECT doesn't seem to work ( probably because it didn't have a...
costin [Thu, 26 Nov 2009 06:42:49 +0000 (06:42 +0000)]
Proxy service - CONNECT doesn't seem to work ( probably because it didn't have a test ), the rest works
pretty well. Also includes a small socks server I used while testing. Almost all work is non-blocking and
done in the selector thread.

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

16 years agoThe http implementation - it may be hard to recognize the original connector code...
costin [Thu, 26 Nov 2009 06:41:00 +0000 (06:41 +0000)]
The http implementation - it may be hard to recognize the original connector code from tomcat after many iterations.
Changes compared with coyote:
- both server and client mode
- HttpRequest/HttpResponse implement most of methods in the HttpServletRequest - with the addition of setters, for use
in client mode. They don't implement the interfaces - or 'servlet framework' specific methods - but should look
familiar to people using this as a library
- mapping is moved in this package, also support running HttpServices in the selector thread (proxy will run this way)
- MimeHeaders are gone, so are the parameters - replaced with the MultiMap, which is based on MimeHeaders but adds a HashMap
instead of linear scanning
See tests for examples.

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

16 years agoThis is the first draft of the refactored coyote connector.
costin [Thu, 26 Nov 2009 06:35:43 +0000 (06:35 +0000)]
This is the first draft of the refactored coyote connector.
Lots of big changes:
- MessageBytes is gone - BBuffer, CBuffer are used as buffers, BBucket/CBucket are used for wrapping bytes
- C2B/B2C are gone - replaced by nio charsets in IOReader/IOWriter. CBuffer is still needed (instead of a StringBuilder ) to have
access to the raw chars and avoid copy
- speaking of copy, IOChannel uses a list of buffers instead of growing a buffer. For proxy we should be able to move
buffers from in to out.  This works a bit better with the char conversions, etc
- Nio code heavily refactored - I didn't add APR but shouldn't be hard if anyonew wants.
- Ssl is barely working - needs improvements

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

16 years agoReduce visibility
markt [Thu, 26 Nov 2009 01:02:19 +0000 (01:02 +0000)]
Reduce visibility

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

16 years agoMore memory leak protection. This one is particularly nasty as profilers don't appear...
markt [Wed, 25 Nov 2009 23:56:30 +0000 (23:56 +0000)]
More memory leak protection. This one is particularly nasty as profilers don't appear to show the GC root associated with the leak.

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

16 years agoFix https://issues.apache.org/bugzilla/show_bug.cgi?id=48266
markt [Wed, 25 Nov 2009 01:00:07 +0000 (01:00 +0000)]
Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=48266
Generics and unused imports.
Patch by sebb

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

16 years agoFix https://issues.apache.org/bugzilla/show_bug.cgi?id=47836
markt [Tue, 24 Nov 2009 01:27:40 +0000 (01:27 +0000)]
Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=47836
Don't keep TLD/listener info between reloads

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

16 years agoExplicitly close the stream.
markt [Tue, 24 Nov 2009 01:15:19 +0000 (01:15 +0000)]
Explicitly close the stream.

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

16 years agoRest of fix required for https://issues.apache.org/bugzilla/show_bug.cgi?id=48113
markt [Mon, 23 Nov 2009 15:10:20 +0000 (15:10 +0000)]
Rest of fix required for https://issues.apache.org/bugzilla/show_bug.cgi?id=48113
Based on a patch by Quintin Beukes

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

16 years agoFix https://issues.apache.org/bugzilla/show_bug.cgi?id=48233
markt [Mon, 23 Nov 2009 00:46:20 +0000 (00:46 +0000)]
Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=48233
Reduce visibility of loggers
Patch provided by sebb

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