Add a unit test for tag files packaged in JARs

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1551188 13f79535-47bb-0310-9956-ffa450edef68
No need to set defaults

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1551190 13f79535-47bb-0310-9956-ffa450edef68
Fix memory leak when something goes wrong when serving static resources.

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1551211 13f79535-47bb-0310-9956-ffa450edef68
jndi: URLS are no longer used. Remove some unused code.

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1551238 13f79535-47bb-0310-9956-ffa450edef68
Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=55884
Ensure that URLs that are converted to file paths are correctly decoded. The primary use is to ensure that %20 sequences are converted to spaces.

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1551240 13f79535-47bb-0310-9956-ffa450edef68
Better handling if no message handler is configured. Message is just ignored.

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1551298 13f79535-47bb-0310-9956-ffa450edef68
Need to handle case where message size limits are larger than the default buffer size. (Limits smaller than the buffer size were handled correctly.)

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1551300 13f79535-47bb-0310-9956-ffa450edef68
Throw exception if max message size is too big

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1551323 13f79535-47bb-0310-9956-ffa450edef68
Performance improvement
The context class loader was set in *Endpoint#processSocket() in case a new thread was created since this method may be triggered from web application code and that in turn would trigger a memory leak since the thread would end up with the web app class loader as its context class loader. However, this is only an issue when creating threads and since getting the current class loader is expensive, move this code to where threads are created rather than calling it on every call to *Endpoint#processSocket().
This appears (on my fairly unscientific tests) to remove ~5% of the overhead from all request processing.

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1551340 13f79535-47bb-0310-9956-ffa450edef68
Performance improvement
Partial fix for https://issues.apache.org/bugzilla/show_bug.cgi?id=55855
Make the adding of the WsFilter lazy so it doesn't get added to web apps that don't need it.

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1551352 13f79535-47bb-0310-9956-ffa450edef68
Fix failing test after adding test-lib.jar to test web app

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1551373 13f79535-47bb-0310-9956-ffa450edef68
Observed strange lock-up on OSX when two threads were writing concurrently to this Map. Switch to ConcurrentHashMap in an attempt to avoid the lock-up in future.

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1551428 13f79535-47bb-0310-9956-ffa450edef68
Need to publish new tomcat-util-scan JAR

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1551431 13f79535-47bb-0310-9956-ffa450edef68
Avoid NPE on shutdown if application doesn't use WebSocket

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1551481 13f79535-47bb-0310-9956-ffa450edef68
Avoid a warning that executor hasn't shutdown yet if the endpoint is not configured to wait for the executor to shutdown. (BIO is configured not to wait by default as threads in keep-alive can't be interrupted.)

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1551482 13f79535-47bb-0310-9956-ffa450edef68
Add time stamp to GET_ALL_SESSION message.

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

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1551550 13f79535-47bb-0310-9956-ffa450edef68
Fix a reported issue when running under a security manager.
Refactor to enable some basic unit testing to hopefully avoid some of these issues in future.

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1551652 13f79535-47bb-0310-9956-ffa450edef68
Add a basic unit test

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

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