The Apache Tomcat Servlet/JSP Container

Apache Tomcat 7

Version 7.0.16, Jun 11 2011
Apache Logo

Links

User Guide

Reference

Apache Tomcat Development

Changelog

Tomcat 7.0.16 (markt)
Catalina
fix 51249: Further improve system property replacement code in ClassLoaderLogManager of Tomcat JULI to cover some corner cases. (kkolinko)
fix 51264: Improve the previous fix for this issue by returning the connection to the pool when not in use so it does not appear to be an abandoned connection. Patch provided by Felix Schumacher. (markt)
fix 51324: Improve handling of exceptions when flushing the response buffer to ensure that the doFlush flag does not get stuck in the enabled state. Patch provided by Jeremy Norris. (markt)
fix Correct a regression in the fix for 51278 that prevented any web application from being marked as distributable. (kfujino/markt)
fix Correct a regression in the fix for 51278 that prevented a web application from overriding the default welcome files. (markt)
fix Enable remaining valves for Servlet 3 asynchronous processing support. (markt)
fix Avoid possible NPE when logging requests received during embedded Tomcat shutdown. (markt)
fix 51340: Fix thread-safety issue when parsing multiple web.xml files in parallel. Apache Tomcat does not do this but products that embed it may. (markt)
fix 51344: Fix problem with Lifecycle re-factoring for deprecated embedded class that prevented events being triggered. (markt)
fix 51348: Prevent possible NPE when processing WebDAV locks. (markt)
Coyote
fix When parsing the port in the HTTP host header, treat the port as a base 10 integer rather than a hexadecimal one. (rjung/markt/kkolinko)
update Various refactorings to reduce code duplication and unnecessary code in the connectors. (markt)
Jasper
update Change JAR scanning log messages where no TLDs are found to DEBUG level and replace the multiple messages with a single INFO level message that indicates that at least one JAR was scanned needlessly and how to obtain more info. (markt)
Cluster
fix Enable Servlet 3 asynchronous processing support when using clustering. (markt)
Web applications
fix Correct the log4j configuration settings when defining conversion patterns in the documentation web application. (markt)
Tomcat 7.0.15 (markt)not released
Catalina
fix 27122: Remove a workaround for a very old and since fixed Mozilla bug and change the default value of the securePagesWithPragma attribute of the Authenticator Valves to false. These changes should reduce the likelihood of issues when downloading files with IE. (markt)
fix 35054: Check that a file is not specified for a Host's appBase and log an error if it is. (markt)
fix 51197: Fix possible dropped connection when sendError or sendRedirect are used during async processing. (markt)
fix 51221: Correct Spanish translation of text used in a 302 response. Patch provided by Paco Soberón. (markt)
fix 51249: Correct ClassLoaderLogManager system property replacement code so properties of the form "}${...}" can be used without error. (markt)
fix 51264: Allow the JDBC persistent session store to use a JNDI datasource to define the database in which sessions are persisted. Patch provided by Felix Schumacher. (markt)
fix 51274: Add missing i18n strings in PersistentManagerBase. Patch provided by Eiji Takahashi. (markt)
fix 51276: Provide an abstraction for accessing content in JARs so the most efficient method can be selected depending on the type of URL used to identify the JAR. This improves startup time when JARs are located in $CATALINA_BASE/lib. (markt)
fix 51277: Improve error message if an application is deployed with an incomplete FORM authentication configuration. (markt)
fix 51278: Allow ServletContainerInitializers to override settings in the global default web.xml and the host web.xml. (markt)
fix 51310: When stopping the Server object on shutdown call destroy() after calling stop(). (markt)
Coyote
add 51145: Add an AJP-NIO connector. (markt/rjung)
Jasper
add 51220: Add a system property to enable tag pooling with JSPs that use a custom base class. Based on a patch by Dan Mikusa. (markt)
add Include a comment header in generated java files that indicates when the file was generated and which version of Tomcat generated it. (markt)
fix 51240: Ensure that maxConnections limit is enforced when multiple acceptor threads are configured. (markt)
Cluster
fix 51230: Add missing attributes to JMX for ReplicationValve and JvmRouteBinderValve. Patch provided by Eiji Takahashi. (markt)
Web applications
add Add documentation for AJP-NIO connector. (markt/rjung)
fix 51182: Document JAAS supported added in 51119. Patch provided by Neil Laurance. (markt)
fix 51225: Fix broken documentation links for non-English locales in the HTML Manager application. Patch provided by Eiji Takahashi. (markt)
fix 51229: Fix bugs in the Servlet 3.0 asynchronous examples. Patch provided by Eiji Takahashi. (markt)
fix 51251: Add web application version support to the Ant tasks. Based on a patch provided by Eiji Takahashi. (markt)
fix 51294: Clarify behaviour of unpackWAR attribute of StandardContext components. (markt)
Other
fix 46451: Configure svn:bugtraq properties for Tomcat trunk. Based on a patch provided by Marc Guillemot. (markt)
fix 51309: Correct logic in catalina.sh stop when using a PID file to ensure the correct message is shown. Patch provided by Caio Cezar. (markt)
Tomcat 7.0.14 (markt)released 2011-05-12
Catalina
update Stylistic improvements to MIME type sync script. Based on a patch provided by Felix Schumacher. (rjung)
fix Ensure that the SSLValve provides the SSL key size as an Integer rather than a String. (markt)
fix Ensure that the RemoteIpValve works correctly with Servlet 3.0 asynchronous requests. (markt)
fix Use safe equality test when determining event type in the MapperListener. (markt)
fix Use correct class loader when loading Servlet classes in StandardWrapper. (markt)
add Provide additional configuration options for the RemoteIpValve and RemoteIpFilter to allow greater control over the values returned by ServletRequest#getServerPort() and ServletRequest#getLocalPort() when Tomcat is behind a reverse proxy. (markt)
fix Ensure session cookie paths end in / so that session cookies created for a context with a path of /foo do not get returned with requests mapped to a context with a path of /foobar. (markt)
Jasper
fix 51177: Ensure Tomcat's MapElResolver always returns Object.class for getType() as required by the EL specification. (markt)
Tomcat 7.0.13 (markt)not released
Catalina
fix Correct mix-up in Realm Javadoc. (markt)
fix Fix display of response headers in AccessLogValve. (kkolinko)
update Implement display of multiple request headers in AccessLogValve: print not just the value of the first header, but of the all of them, separated by commas. (kkolinko)
add 50306: New StuckThreadDetectionValve to detect requests that take a long time to process, which might indicate that their processing threads are stuck. Based on a patch provided by TomLu. (slaurent)
fix 51038: Ensure that asynchronous requests are included in access logs. (markt)
fix 51042: Don't trigger session creation listeners when a session ID is changed as part of the authentication process. (markt)
fix 51050: Add additional common but non-standard file extension to MIME type mappings for MPEG 4 files. Based on a patch by Cédrik Lime. (markt)
add Add some additional common JARs that do not contain TLDs or web fragments to the list of JARs to skip when scanning for TLDs and web fragments. (markt)
fix While scanning JARs for TLDs and fragments, avoid using JarFile and use JarInputStream as in most circumstances where JARs are scanned, JarFile will create a temporary copy of the JAR rather than using the resource directly. This change significantly improves startup performance for applications with lots of JARs to be scanned. (markt)
fix Ensure response is committed when AsyncContext#complete() is called. (markt)
add Add a container event that is fired when a session's ID is changed, e.g. on authentication. (markt)
fix 51099: Correctly implement non-default login configurations (configured via the loginConfigName attribute) for the the SPNEGO authenticator. (fhanik/markt)
add 51119: Add JAAS authentication support to the JMXRemoteLifecycleListener. Patch provided by Neil Laurance. (markt)
add 51136: Provide methods that enable the name of a Context on Context creation when using Tomcat in an embedded scenario. Based on a patch provided by David Calavera. (markt)
fix 51137: Add additional Microsoft Office MIME type mappings. (rjung)
add Partial sync of MIME type mapping with mime.types from the Apache web server. About 600 MIME types added, some changed. (rjung)
fix Make access logging more robust when logging requests that generate 400 responses since the request object is unlikely to be fully/correctly populated in that case. (markt)
Coyote
fix 50957: Fix regression in HTTP BIO connector that triggered errors when processing pipe-lined requests. (markt)
fix 50158: Ensure the asynchronous requests never timeout if the timeout is set to zero or less. Based on a patch provided by Chris. (markt)
fix 51073: Throw an exception and do not start the APR connector if it is configured for SSL and an invalid value is provided for SSLProtocol. (markt)
fix Align all the connector implementations with the documented default setting for processorCache of 200. This changes the default from -1 (unlimited) for the AJP-BIO, AJP-APR and HTTP-APR connectors. Additional information was also added to the documentation on how to select an appropriate value.
fix Take account of time spent waiting for a processing thread when calculating connection and keep-alive timeouts for the HTTP BIO connector. (markt)
fix 51095: Don't trigger a NullPointerException when the SSL handshake fails with the HTTP-APR connector. Patch provided by Mike Glazer. (markt)
fix Improve handling in AJP connectors of the case where too large a AJP packet is received. (markt)
fix Restore the automatic disabling of HTTP keep-alive with the BIO connector once 75% of the processing threads are in use and make the threshold configurable. (markt)
fix Make pollerSize and maxConnections synonyms for the APR connectors since they perform the same function. (markt)
fix Use maxThreads rather than 10000 as the default maxConnections for the BIO connectors. (markt)
Jasper
fix 47371: Correctly coerce the empty string to zero when used as an operand in EL arithmetic. Patch provided by gbt. (markt)
add Label JSP/tag file line and column numbers when reporting errors since it may not be immediately obvious what the numbers represent. (markt)
fix Correct a regression in the fix for 49916 that resulted in JSPs being compiled twice rather than just once. (markt)
add Log JARs that are scanned for TLDs where no TLD is found so that users can easily identify JARs that can be added to the list of JARs to skip. (markt)
update Use a single TLD location cache for a web application rather than one per JSP compilation to speed up JSP compilation. (markt)
add 51124: Refactor BodyContentImpl to assist in determining the root cause of this bug. Based on a patch by Ramiro. (markt)
Cluster
fix 50950: Correct possible NotSerializableException for an authenticated session when running with a security manager. (markt)
Web applications
update Configure Security Manager How-To to include a copy of the actual conf/catalina.policy file when the documentation is built, rather than maintaining a copy of its content. (kkolinko)
fix Fix broken stylesheet URL in XML based manager status output. (rjung)
fix 51156: Ensure session expiration option is available in Manager application was running web applications that were defined in server.xml. (markt)
Other
update Clarify error messages in *.sh files to mention that if a script is not found it might be because execute permission is needed. (kkolinko)
update Update commons pool to 1.5.6. (markt)
fix 51135: Fix auto-detection of JAVA_HOME for 64-bit Windows platforms that only have a 32-bit JVM installed. (markt)
fix 51154: Remove duplicate @deprecated tags in ServletContext Javadoc. Patch provided by sebb. (markt)
fix 51155: Add comments to @deprecated tags that have none. Patch provided by sebb. (markt)
Tomcat 7.0.12 (markt)released 2011-04-06
Catalina
add Automatically correct invalid paths when specified for Context elements inside server.xml and log a warning that the configuration has been corrected. (markt)
fix Don't unpack WAR files if they are not located in the Host's appBase. (markt)
fix Don't log to standard out in SSLValve. (markt)
fix Handle the case where a web crawler provides an invalid session ID in the CrawlerSessionManagerValve. (markt)
update Update pattern used in CrawlerSessionManagerValve to that used by the ASF infrastructure team. (markt)
fix Remove unnecessary whitespace from MIME mapping entries in global web.xml file. (markt)
fix When using parallel deployment, correctly handle the scenario when the client sends multiple JSESSIONID cookies. (markt)
add 12428: Add support (disabled by default) for preemptive authentication. This can be configured per context. Based on a patch suggested by Werner Donn. (markt)
fix 50929: When wrapping an exception, include the root cause. Patch provided by sebb. (markt)
fix Make the CSRF nonce cache serializable so that it can be replicated across a cluster and/or persisted across Tomcat restarts. (markt)
update Resolve some refactoring TODOs in the implementation of the new Context attribute "swallowAbortedUploads". (markt)
fix Include the seed time when calculating the time taken to create SecureRandom instances for session ID generation, report excessive times (greater than 100ms) at INFO level and provide a value for the message key so a meaningful message appears in the logs. (markt)
fix Don't register Contexts that fail to start with the Mapper. (markt)
add 48685: Add initial support for SPNEGO/Kerberos authentication also referred to as integrated Windows authentication. This includes user authentication, authorisation via the directory using the user's delegated credentials and exposing the user's delegated credentials via a request attribute so applications can make use of them to impersonate the current user when accessing third-party systems that use a compatible authentication mechanism. Based on a patch provided by Michael Osipov. (markt)
fix HTTP range requests cannot be reliably served when a Writer is in use so prevent the DefaultServlet from attempting to do so. (kkolinko)
fix Protect the DefaultServlet from Valves, Filters and Wrappers that write content to the response. Prevent partial responses to partial GET requests in this case since the range cannot be reliably determined. Also prevent the DefaultServlet from setting a content length header since this too cannot be reliably determined. (markt)
fix 50991: Fix regression in fix for 25060 that called close on a JNDI resource while it was still available to the application. (markt)
add Provide a configuration option that lets the close method to be used for a JNDI Resource to be defined by the user. This change also disables using the close method unless one is explicitly defined for the resource and limits it to singleton resources. (markt)
fix Correctly track changes to context.xml files and trigger redeployment when copyXML is set to false. (markt)
fix 50997: Relax the requirement that directories must have a name ending in .jar to be treated as an expanded JAR file by the default JarScanner. Based on patch by Rodion Zhitomirsky. (markt)
fix Don't append the jvmRoute to a session ID if the jvmRoute is a zero length string. (markt)
fix Don't register non-singelton DataSource resources with JMX. (markt)
add Provide additional configuration options for the DIGEST authenticator. (markt)
fix Provide a workaround for Tomcat hanging during shutdown when running the unit tests. (markt)
Coyote
add 50887: Add support for configuring the JSSE provider used to convert client certificates. Based on a patch by pknopp. (markt)
fix 50903: When a connector is stopped, ensure that requests that are currently in a keep-alive state and waiting for client data are not processed. Requests where processing has started will continue to completion. (markt)
fix 50927: Improve error message when SSLCertificateFile is not specified when using APR with SSL. Based on a patch provided by sebb. (markt)
fix 50928: Don't ignore keyPass attribute for HTTP BIO and NIO connectors. Based on a patch provided by sebb. (markt)
Cluster
fix Securely seed the SecureRandom instance used for UUID generation and report excessive creation time (greater than 100ms) at INFO level. (markt)
Web applications
fix 50924: Clean-up HTTP connector comparison table. (markt)
add Slightly expanded the documentation of the Host element to clarify the relationship between host name and DNS name. (markt)
fix 50925: Update SSL how-to to take account of keyPass connector attribute. (markt)
update Improve Tomcat Logging documentation. (kkolinko)
fix Align the authenticator documentation and MBean descriptors with the implementation. (markt)
fix Prevent the custom error pages for the Manager and Host Manager applications from being accessed directly. (markt)
fix 50984: When using the Manager application ensure that undeployment fails if a file cannot be deleted. (markt)
Other
update Update Eclipse JDT complier to 3.6.2. (markt)
update Update WSDL4J library to 1.6.2 (used by JSR 109 support in the extras package). (markt)
update Update optional CheckStyle library to 5.3. (markt)
fix 50911: Reduce noise generated during the build of the Windows installer so warnings are more obvious. Patch provided by sebb. (markt)
fix Further work to reduce compiler and validation warnings across the code base. (markt)
Tomcat 7.0.11 (markt)released 2011-03-11
Catalina
fix CVE-2011-1088: Completed fix. Don't ignore @ServletSecurity annotations. (markt)
add 25060: Close Apache Commons DBCP datasources when the associated JNDI naming context is stopped (e.g. for a non-global DataSource resource on web application reload) to close remaining database connections immediately rather than waiting for garbage collection. (markt)
add 26701: Provide a mechanism for users to register their own URLStreamHandlerFactory objects. (markt)
fix 50855: Fix NPE on HttpServletRequest.logout() when debug logging is enabled. (markt)
add New context attribute "swallowAbortedUploads" allows to make request data swallowing configurable for requests that are too large. (rjung)
fix 50854: Add additional permissions required by the Manager application when running under a security Manager and support a shared Manager installation when $CATALINA_HOME != CATALINA_BASE. (markt)
fix 50893: Add additional information to the download README for the extras components. (markt)
fix Calling stop() and then destroy() on a connector incorrectly triggered an exception. (markt)
Coyote
add 48208: Allow the configuration of a custom trust manager for use in CLIENT-CERT authentication. (markt)
fix Fix issues that prevented asynchronous servlets from working when used with the HTTP APR connector on platforms that support TCP_DEFER_ACCEPT. (markt)
Jasper
fix Correct possible threading issue in JSP compilation when development mode is used. (markt)
fix 50895: Don't initialize classes created during the compilation stage. (markt)
Tomcat 7.0.10 (markt)released 2011-03-08
Catalina
fix CVE-2011-1088: Partial fix. Don't ignore @ServletSecurity annotations. (markt)
fix 27988: Improve reporting of missing files. (markt)
fix 28852: Add URL encoding where missing to parameters in URLs presented by Ant tasks to the Manager application. Based on a patch by Stephane Bailliez. (markt)
fix Improve handling of SSL renegotiation by failing earlier when the request body contains more bytes than maxSavePostSize. (markt)
fix Improve shut down speed by not renewing threads during shut down when the ThreadLocalLeakPreventionListener is enabled. (markt)
Coyote
add 49284: Add SSL re-negotiation support to the HTTP NIO connector and extend test cases to cover CLIENT-CERT authentication. (fhanik/markt)
Tomcat 7.0.9 (markt)not released
Catalina
add 19444: Add an option to the JNDI realm to allow role searches to be performed by the authenticated user. (markt)
add 21669: Add the ability to specify the roleBase for the JNDI Realm as relative to the users DN. Based on a patch by Art W. (markt)
add 22405: Add a new Lifecycle listener, org.apache.catalina.security.SecurityListener that prevents Tomcat from starting insecurely. It requires that Tomcat is not started as root and that a umask at least as restrictive as 0007 is used. This new listener is not enabled by default. (markt)
fix 48863: Better logging when specifying an invalid directory for a class loader. Based on a patch by Ralf Hauser. (markt/kkolinko)
fix 48870: Refactor to remove use of parallel arrays. (markt)
add Enhance the RemoteIpFilter and RemoteIpValve so that the modified remote address, remote host, protocol and server port may be used in an access log if desired. (markt)
fix Restore access to Environments, Resources and ResourceLinks via JMX which was lost in early 7.0.x re-factoring. (markt)
update Remove ServerLifecycleListener. This was already removed from server.xml and with the Lifecycle re-factoring is no longer required. (markt)
add Add additional checks to ensure that sub-classes of org.apache.catalina.util.LifecycleBase correctly implement the expected state transitions. (markt)
fix 50189: Once the application has finished writing to the response, prevent further reads from the request since this causes various problems in the connectors which do not expect this. (markt)
fix 50700: Ensure that the override attribute of context parameters is correctly followed. (markt)
fix 50721: Correctly handle URL decoding where the URL ends in %nn. Patch provided by Christof Marti. (markt)
add 50737: Add additional information when an invalid WAR file is detected. (markt)
fix 50748: Allow the content length header to be set up to the point the response is committed when a writer is being used. (markt)
fix 50751: When authenticating with the JNDI Realm, only attempt to read user attributes from the directory if attributes are required. (markt)
fix 50752: Fix typo in debug message in deprecated Embedded class. (markt)
fix 50789: Provide an option to enable ServletRequestListeners for forwards as required by some CDI frameworks. (markt)
fix 50793: When processing Servlet 3.0 async requests, ensure that the requestInitialized and requestDestroyed events are only fired once per request at the correct times. (markt)
fix 50802: Ensure that ServletContext.getResourcePaths() includes static resources packaged in JAR files in its output. (markt)
add Web crawlers can trigger the creation of many thousands of sessions as they crawl a site which may result in significant memory consumption. The new Crawler Session Manager Valve ensures that crawlers are associated with a single session - just like normal users - regardless of whether or not they provide a session token with their requests. (markt)
fix Don't attempt to start NamingResources for Contexts multiple times. (markt)
fix 50826: Avoid IllegalArgumentException if an embedded Tomcat instance that includes at least one Context is destroyed without ever being started. (markt)
fix Ensure a web application is taken out of service if the web.xml file is not valid. (kkolinko/markt)
fix Ensure Servlet 2.2 jspFile elements are correctly converted to use a leading '/' if missing. (markt)
fix 50836: Better documentation of the meaning of Lifecycle.isAvailable() and correct a couple of cases where this could incorrectly return true. (markt)
Coyote
fix 50780: Fix memory leak in APR implementation of AJP connector introduced by the refactoring for 49884. (markt)
fix If server configuration errors and/or faulty applications caused the ulimit for open files to be reached, the acceptor threads for all connectors could enter a tight loop. This loop consumed CPU and also logged an error message for every iteration of the loop which lead to large log files being generated. The acceptors have been enhanced to better handle this situation. (markt)
Jasper
fix 50720: Ensure that the use of non-ISO-8859-1 character sets for web.xml does not trigger an error when Jasper parses the web.xml file. (markt)
fix 50726: Ensure that the use of the genStringAsCharArray does not result in String constants that are too long for valid Java code. (markt)
fix 50790: Improve method resolution in EL expressions. (markt)
Cluster
fix 50771: Ensure HttpServletRequest#getAuthType() returns the name of the authentication scheme if request has already been authenticated. (kfujino)
Web applications
fix 50713: Remove roles command from the Manager application. (markt)
Tribes
fix r1068549 50667: Allow RPC callers to get confirmation when sending a reply. (fhanik)
Other
fix 50743: Cache CheckStyle results between builds to speed up validation. Patch provided by Oliver. (markt)
Tomcat 7.0.8 (markt)released 2011-02-05
Catalina
fix Fix NPE in CoyoteAdapter when postParseRequest() call fails. (kkolinko)
fix 50709: Make ApplicationContextFacade non-final to enable extension. (markt)
fix When running under a security manager, user requests may fail with a security exception. (markt)
Coyote
fix Reduce level of log message for invalid URL parameters from WARNING to INFO. (markt)
fix Fix hanging Servlet 3 asynchronous requests when using the APR based AJP connector. (markt)
Other
fix Align server.xml installed by the Windows installer with the one bundled in zip/tar.gz files. The differences are LockOutRealm being used and AccessLogValve being enabled by default. (kkolinko)
Tomcat 7.0.7 (markt)not released
Catalina
fix 18462: Don't merge stdout and stderr internally so users retain the option to treat them separately. (markt)
add 18797: Provide protection against null or zero length names being provided for users, roles and groups in the MemoryRealm and UserDatabaseRealm. (markt)
update Improve fix for 50205 to trigger an error earlier if invalid configuration is used. (markt)
add Provide additional control over component class loaders, primarily for use when embedding. (markt)
fix Fix NPE in RemoteAddrFilter, RemoteHostFilter. (kkolinko)
fix 49711: HttpServletRequest#getParts will work in a filter or servlet without an @MultipartConfig annotation or MultipartConfigElement if the new "allowCasualMultipartParsing" context attribute is set to "true". (schultz)
fix 49978: Correct another instance where deployment incorrectly failed if a directory in the work area already existed. (markt)
fix 50582: Refactor access logging so chunked encoding is not forced for all requests if bytes sent is logged. (markt)
fix 50597: Don't instantiate a new instance of a Filter if an instance was provided via the ServletContext.addFilter(String, Filter) method. Patch provided by Ismael Juma. (markt)
fix 50598: Correct URL for Manager text interface. (markt)
fix 50620: Stop exceptions that occur during Session.endAccess() from preventing the normal completion of Request.recycle(). (markt)
fix 50629: Make StandardContext.bindThread() and StandardContext.unbindThread() protected to allow use by sub-classes. (markt)
update Use getName() instead of logName() in error messages in StandardContext. (kkolinko)
fix 50642: Move the sun.net.www.http.HttpClient keep-alive thread memory leak protection from the JreMemoryLeakPreventionListener to the WebappClassLoader since the thread that triggers the memory leak is created on demand. (markt)
fix 50673: Improve Catalina shutdown when running as a service. Do not call System.exit(). (kkolinko)
fix 50683: Ensure annotations are scanned when unpackWARs is set to false in the Host where a web application is deployed. (markt)
fix Improve HTTP specification compliance in support of Accept-Language header. (kkolinko)
Coyote
fix Prevent possible thread exhaustion if a Comet timeout event takes a while to complete. (markt)
fix Prvent multiple Comet END events if the CometServlet calls event.close() during an END event. (markt)
fix 50325: When the JVM indicates support for RFC 5746, disable Tomcat's allowUnsafeLegacyRenegotiation configuration attribute and use the JVM configuration to control renegotiation. (markt)
fix 50405: Fix occassional NPE when using NIO connector and Comet. (markt)
fix Ensure correct recycling of NIO input filters when processing Comet events. (markt)
fix 50627: Correct interaction of NIO socket and Poller when processing Comet events. (markt)
fix Correct interaction of APR socket and Poller when processing Comet events. (markt)
fix 50631: InternalNioInputBuffer should honor maxHttpHeadSize. (kkolinko)
Jasper
fix Improve special case handling of javax.servlet.jsp.el.ScopedAttributeELResolver in javax.el.CompositeELResolver to handle sub-classes. (markt)
update 15688: Use fully-qualified class names in generated jsp files to avoid naming conflicts with user imports. (markt)
fix 46819: Remove redundant object instantiations in JspRuntimeLibrary. Patch provided by Anthony Whitford. (markt)
update Improve error message when EL identifiers are not valid Java identifiers and use i18n for the error message. (markt)
fix 50680: Prevent an NPE when using tag files from an exploded JAR file, e.g. from within an IDE. Patch provided by Larry Isaacs. (markt)
Cluster
fix 50591: Fix NPE in ReplicationValve. (kkolinko)
add Internationalise the log messages for the FarmWarDeployer. (markt)
fix 50600: Prevent a ConcurrentModificationException when removing a WAR file via the FarmWarDeployer. (markt)
fix Be consistent with locks on sessionCreationTiming, sessionExpirationTiming in DeltaManager.resetStatistics(). (kkolinko)
fix 50648: Correctly set the interrupt status if a thread using RpcChannel is interrupted waiting for a message reply. Based on a patch by Olivier Costet. (markt)
fix 50646: Ensure larger Tribes messages are fully read. Patch provided by Olivier Costet. (markt)
fix 50679: Update the FarmWarDeployer to support parallel deployment. (markt)
Web applications
fix 22278: Add a commented out RemoteAddrValve that limits access to the Manager and Host Manager applications to localhost. Based on a patch by Yann Cébron. (markt)
fix Correct a handful of Javadoc warnings. (markt)
add Provide additional detail about how web application version order is determined when using parallel deployment. (markt)
fix Correct the documentation for the recoveryCount count attribute of the the default cluster membership. (markt)
fix 50441: Clarify when it is valid to set the docBase attribute in a Context element. (markt)
fix 50526: Provide additional documetation on configuring JavaMail resources. (markt)
fix 50599: Use correct names of roles required to access the Manager application. (markt)
Other
add Extend the Checkstyle tests to check for license headers. (markt)
fix Modify the build script so a release build always rebuilds the dependencies to ensure that the correct Tomcat version appears in the manifest. (markt)
fix Code clean-up to remove unused code and reduce IDE warnings. (markt)
fix 50601: Code clean-up. Patch provided by sebb. (markt)
fix 50606: Improve CGIServlet: Provide support for specifying empty value for the executable init-param. Provide support for explicit additional arguments for the executable. Those were broken when implementing fix for bug 49657. (kkolinko)
Tomcat 7.0.6 (markt)released 2011-01-14
General
update Update to Commons Daemon 1.0.5. (mturk)
Catalina
fix 8705: org.apache.catalina.SessionListener now extends java.util.EventListener. (markt)
add 10526: Add an option to the Authenticators to force the creation of a session on authentication which may offer some performance benefits. (markt)
update 10972: Improve error message if the className attribute is missing on an element in server.xml where it is required. (markt)
update 48692: Provide option to parse application/x-www-form-urlencoded PUT requests. (schultz)
update 48822: Include context name in case of error while stopping or starting a context during its reload. Patch provided by Marc Guillemot. (slaurent)
add 48837: Extend thread local memory leak detection to include classes loaded by subordinate class loaders to the web application's class loader such as the Jasper class loader. Based on a patch by Sylvain Laurent. (markt)
add 48973: Avoid creating a SESSIONS.ser file when stopping an application if there's no session. Patch provided by Marc Guillemot. (slaurent)
fix 49000: No longer accept specification invalid name only cookies by default. This behaviour can be restored using a system property. (markt)
add 49159: Improve memory leak protection by renewing threads of the pool when a web application is stopped. (slaurent)
fix 49372: Re-fix after connector re-factoring. If connector initialisation fails (e.g. if a port is alreasy in use) do not trigger an LifecycleException for an invalid state transition. (markt)
fix 49543: Allow Tomcat to use shared data sources with per application credentials. (fhanik)
fix 49650: Remove unnecessary entries package.access property defined in catalina.properties. Patch provided by Owen Farrell. (markt)
fix 50106: Correct several MBean descriptors. Patch provided by Eiji Takahashi. (markt)
update Further performance improvements to session ID generation. Remove legacy configuration options that are no longer required. Provide additional options to control the SecureRandom instances used to generate session IDs. (markt)
fix 50201: Update the access log reference in StandardEngine when the ROOT web application is redeployed, started, stopped or defaultHost is changed. (markt/kkolinko)
add 50282: Load javax.security.auth.login.Configuration with JreMemoryLeakPreventionListener to avoid memory leak when stopping a web application that would use JAAS. (slaurent)
fix 50351: Fix the regression that broke BeanFactory resources caused by the previous fix for 50159. (markt)
fix 50352: Ensure that AsyncListener.onComplete() is fired when AsyncContext.complete() is called. (markt)
fix 50358: Set the correct LifecycleState when stopping instances of the deprecated Embedded class. (markt)
fix Further Lifecycle refactoring for Connectors and associated components. (markt)
fix Correct handling of versioned web applications in deployer. (markt)
fix Correct removal of LifeCycleListeners from Containers via JMX. (markt)
fix Don't use nulls to construct log messages. (markt)
fix Code clean-up. Replace use of inefficient constructors with more efficient alternatives. (markt)
fix 50411: Ensure sessions are removed from the Store associated with a PersistentManager. (markt)
fix 50413: Ensure 304 responses are not returned when using static files as error pages. (markt/kkolinko)
fix 50448: Fix possible IllegalStateException caused by recent session management refactoring. (markt)
fix Ensure aliases settings for a context are retained after a context is reloaded. (markt)
fix Log a warning if context.xml files define values for properties that do not exist (e.g. if there is a typo in a property name). (markt)
fix 50453: Correctly handle multiple X-Forwarded-For headers in the RemoteIpFilter and RemoteIpValve. Patch provided by Jim Riggs. (markt)
add 50541: Add support for setting the size limit and time limit for LDAP seaches when using the JNDI Realm with userSearch. (markt)
update All configuration options that use regular expression now require a single regular expression (using java.util.regex) rather than a list of comma-separated or semi-colon-separated expressions. (markt)
fix 50496: Bytes sent in the access log are now counted after compression, chunking etc rather than before. (markt)
fix 50550: When a new directory is created (e.g. via WebDAV) ensure that a subsequent request for that directory does not result in a 404 response. (markt)
fix 50554: Code clean up. (markt)
add 50556: Improve JreMemoryLeakPreventionListener to prevent a potential class loader leak caused by a thread spawned when the class com.sun.jndi.ldap.LdapPoolManager is initialized and the system property com.sun.jndi.ldap.connect.pool.timeout is set to a value greater than 0. (slaurent)
Coyote
fix 47319: Return the client's IP address rather than null for calls to getRemoteHost() when the APR connector is used with enableLookups="true" but the IP address is not resolveable. (markt)
add 50108: Add get/set methods for Connector property minSpareThreads. Patch provided by Eiji Takahashi. (markt)
fix 50360: Provide an option to control when the socket associated with a connector is bound. By default, the socket is bound on Connector.init() and released on Connector.destroy() as per the current behaviour but this can be changed so that the socket is bound on Connector.start() and released on Connector.stop(). This fix also includes further Lifecycle refactoring for Connectors and associated components. (markt)
fix Remove a huge memory leak in the NIO connector introduced by the fix for 49884. (markt)
fix 50467: Protected against NPE triggered by a race condition that causes the NIO poller to fail, preventing the processing of further requests. (markt)
Jasper
add 13731: Make variables in _jspService() method final where possible. (markt)
fix 50408: Fix NoSuchMethodException when using scoped variables with EL method invocation. (markt)
fix 50460: Avoid a memory leak caused by using a cached exception instance in JspDocumentParser and ProxyDirContext. (kkolinko)
fix 50500: Use correct coercions (as per the EL spec) for arithmetic operations involving string values containing '.', 'e' or 'E'. Based on a patch by Brian Weisleder. (markt)
Cluster
add 50185: Add additional trace level logging to Tribes to assist with fault diagnosis. Based on a patch by Ariel. (markt)
fix Don't try and obtain session data from the cluster if the current node is the only node in the cluster. Log requesting session data as INFO rather than WARNING. (markt)
fix 50503: When web application has a version, Engine level Clustering works correctly. (kfujino)
fix 50547: Add time stamp for CHANGE_SESSION_ID message and SESSION_EXPIRED message. (kfujino)
Web applications
fix 21157: Ensure cookies are written before the response is commited in the Cookie example. Patch provided by Stefan Radzom. (markt)
add 50294: Add more information to documentation regarding format of configuration files. Patch provided by Luke Meyer. (markt)
fix Correctly validate provided context path so sessions for the ROOT web application can be viewed through the HTML Manager. (markt)
update Improve documentation of database connection factory. (rjung)
fix 50488: Update classpath required when using jsvc and add a note regarding server VMs. (markt)
fix Further filtering of Manager display output. (kkolinko)
Other
fix Don't configure Windows installer to use PID file since it is not removed when the service stops which prevents the service from starting. (markt)
fix 14416: Make TagLibraryInfo.getTag() more robust at handling nulls. (markt)
fix 50552: Avoid NPE that hides error message when using Ant tasks. (schultz)
add Provide two alternative locations for the libraries downloaded from the ASF web site at build time. Use the main distribution site as default and the archive one as fallback. (kkolinko)
Tomcat 7.0.5 (markt)beta, 2010-12-01
General
update Update to Commons Daemon 1.0.4. (mturk)
Catalina
fix 3839: Provide a mechanism to gracefully handle the case where users book-mark the form login page or otherwise misuse the FORM authentication process. Based on a suggestion by Mark Morris. (markt)
fix 49180: Add option to disable log rotation in juli FileHandler. Patch provided by Pid (pidster at apache). (funkman)
fix 49991: Ensure servlet request listeners are fired for the login and error pages during FORM authentication. (markt)
fix 50107: When removing a Host via JMX, do not attempt to destroy the host's pipeline twice. Patch provided by Eiji Takahashi. (markt)
fix 50138: Fix threading issues in org.apache.catalina.security.SecurityUtil. (markt)
fix 50157: Ensure MapperListener is only added to a container object once. (markt)
fix 50159: Add a new attribute for <Resource> elements, singleton, that controls whether or not a new object is created every time a JNDI lookup is performed to obtain the resource. The default value is true, which will return the same instance of the resource in every JNDI lookup. (markt)
fix 50168: Separate the Lifecycle.DESTROY_EVENT into Lifecycle.BEFORE_DESTROY_EVENT and Lifecycle.AFTER_DESTROY_EVENT. Use the additional state to ensure that Context objects are only destroyed once. (markt)
fix 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. (markt)
add 50222: Modify memory leak prevention code so it pins the system class loader in memory rather than than the common class loader, which is better for embedded systems. Patch provided by Christopher Schultz. (markt)
add Improve debug logging for MapperListener registration. (markt)
add Expose names of LifecycleListeners and ContainerListeners for StandardContext via JMX. (markt)
add Add a new option, resourceOnlyServlets, to Context elements that provides a mechanism for working around the issues caused by new requirements for welcome file mapping introduced in Servlet 3.0. By default, the existing Tomcat 6.0.x welcome file handling is used. (markt)
fix Make Tomcat more tolerant of null when generating JMX names for Valves. (markt)
fix Make AccessLogValve attribute enabled changeable via JMX. (pero)
fix Correct infinite loop if ServletRequest.startAsync(ServletRequest, ServletResponse) was called. (markt)
fix 50232: Remove dependency between StoreBase and PersistentManager and associated code clean-up. Patch provided by Tiago Batista. (markt)
fix 50252: Prevent ClassCastException when using a <ResourceLink>. Patch provided by Eiji Takahashi. (markt)
add Reduce synchronization in session managers to improve performance of session creation. (markt)
fix If starting children automatically when adding them to a container (e.g. when adding a Context to a Host) don't lock the parent's set of children whilst the new child is being started since this can block other threads and cause issues such as lost cluster messages. (markt)
add Implement support for parallel deployment. This allows multiple versions of the same web application to be deployed to the same context path at the same time. Users without a current session will be mapped to the latest version of the web application. Users with a current session will continue to use the version of the web application with which the session is associated until the session expires. (markt)
fix 50308: Allow asynchronous request processing to call AsyncContext.dispatch() once the asynchronous request has timed out. (markt)
add Make memory leak prevention code that clears ThreadLocal instances more robust against objects with toString() methods that throw exceptions. (markt)
Coyote
fix 49860: Complete support for handling trailing headers in chunked HTTP requests. (markt)
add Impose a limit on the length of the trailing headers. The limit is configurable with a system property and is 8192 by default. (kkolinko)
fix 50207: Ensure Comet timeout events are triggered. This bug was a regression triggered by the fix for 49884. (markt)
Jasper
fix 49297: Enforce the rules in the JSP specification for parsing the attributes of custom and standard actions that require that the attribute names are unique within an element and that there is whitespace before the attribute name. The whitespace test can be disabled by setting the system property org.apache.jasper.compiler.Parser.STRICT_WHITESPACE to false. Attributes of the page directive have slightly different rules. The implementation of that part of the fix is based on a patch by genspring. (markt)
fix 50105: When processing composite EL expressions use Enum.name() rather than Enum.toString() as required by the EL specification. (markt)
fix Fix minor thread-safety and performance issues in the implementation of maxLoadedJsps. (rjung)
add Add support for unloading JSPs that have not been requested for a long time using the new parameter jspIdleTimeout. (rjung)
add Add logging and JMX support to JSP unloading. (rjung)
fix 50192: Improve performance for EL when running under a security manager. Based on a patch by Robert Goff. (markt)
fix 50228: Improve recycling of BodyContentImpl. This avoids keeping a cached reference to a webapp-provided Writer used in JspFragment.invoke() calls. (kkolinko)
add 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. (markt)
fix 50293: Increase the size of internal ELResolver array from 2 to 8 since in typical usage there are at least 5 resolvers. Based on a patch by Robert Goff. (markt)
Cluster
fix Add support for maxActiveSessions attribute to BackupManager. (kfujino)
fix Improve sending an access message in DeltaManager. maxInactiveInterval of not Manager but the session is used. If maxInactiveInterval is negative, an access message is not sending. (kfujino)
fix 50183: BIO sender was not scheduling tasks to the executor during normal operation. Patch provided by Ariel. (markt)
fix 50184: Add an option to the RpcChannel to enable the Channel send options to be set for the reply message. Based on a patch by Ariel. (markt)
fix Ensure that a new Context waiting for session data from other nodes in the cluster does not block the processing of clustering messages for other Contexts. (markt)
Web applications
fix 49426: Localize messages in the Manager application based on the Locale of the user rather than the default Locale of the server. (markt)
fix Localize messages in the Host Manager application based on the Locale of the user rather than the default Locale of the server. (markt)
add 50242: Provide a sample log4j configuration that more closely matches the default JULI configuration. Patch provided by Christopher Schultz. (markt)
add Restore the ability to edit the contents of /WEB-INF and /META-INF via WebDAV via the provision of a new configuration option, allowSpecialPaths. (markt)
fix Correct broken links for on-line JavaDocs. (markt)
fix 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. (markt)
update Improve Tomcat Logging documentation. (kkolinko)
fix 50303: Update JNDI how-to to reflect the new JavaMail download location and that JAF is now included in Java SE 6. (markt)
fix Fix ordering functionality on sessions page for the HTML Manager application. (markt)
fix Fix primary sessions not always being treated as such in the HTML Manager application. (markt)
fix Fix message not being displayed after session attribute removal in the HTML Manager application. (markt)
fix 50310: Fix display of Servlet information in the Manager application. (markt)
fix CVE-2010-4172: Multiple XSS in the Manager application. (markt/kkolinko)
fix 50316: Fix display of negative values in the Manager application. (kkolinko)
fix 50318: Avoid NPE when trying to view session detail for an expired session in the Manager application. (markt)
Other
fix Correct a handful of Javadoc warnings. (markt)
fix 22965: Fix some typos and formatting issues in the global web.xml file. Based on a patch by Yann Cébron. (markt)
add Extend Checkstyle validation checks to check for unused imports. (markt)
fix General code clean-up to reduce (not eliminate) the number of warnings reported by IDEs. (markt)
fix 50140: Don't ignore a user specified installation directory when performing a silent install with the Windows installer on 64-bit platforms. (markt)
update Reimplemented Windows installer dialogs, using modern libraries (nsDialogs, MUI2). (kkolinko)
add When installing with the Windows installer on 64-bit platforms, allow the user to select either a 32-bit JDK or a 64-bit JDK. If a 32-bit JDK is selected, the 32-bit service wrapper and the 32-bit native DLL will be installed. If a 64-bit JDK is selected, the 64-bit service wrapper and the 64-bit native DLL will be installed. (markt/kkolinko)
add Create Windows shortcuts for the Manager and Host Manager webapps. (kkolinko)
add Support /? command line option in the Windows Installer. (kkolinko)
add Display and allow to change roles for the Tomcat admin user in the Windows installer. (kkolinko)
fix In the Windows installer: do not leave stale server.xml and tomcat-users.xml fragments in the $TEMP folder. (kkolinko)
update 49819: Redesign of home page by Pid (pidster at apache). (timw)
Tomcat 7.0.4 (markt)beta, 2010-10-21
Catalina
fix 49428: Re-implement the fix for bug 49428 – namespace issues for some Microsoft WebDAV clients. (kkolinko)
fix 49669: Fix memory leak triggered by using the deprecated javax.security.auth.Policy class. (markt)
fix 49922: Don't add filter twice to filter chain if the filter matches more than one URL pattern and/or Servlet name. Patch provided by heyoulin. (markt)
fix 49937: Use an InstanceManager when creating an AsyncListener through the AsyncContext to ensure annotations are processed. Based on a patch by David Jencks. (markt)
fix To avoid NoSuchMethodException, xmlValidation and xmlNamespaceAware are removed from the createStandardHost definition of mbeans-descriptors.xml. (kfujino)
fix 49945: Continue improvements to JMX. Fix a handful of attributes that were showing as Unavailable in JConsole. Patch provided by Chamith Buddhika. (markt)
fix 49952: Allow ServletContainerInitializers to add listeners to a web application. Patch provided by David Jencks. (markt)
fix 49956: Handle case when @Resource annotation uses the full JNDI name for a resource. Based on a patch by Gurkan Erdogdu. (markt)
fix 49557: Correct regression due to Lifecycle refactoring that cleared all work directories (with compiled JSPs and persisted sessions) when Tomcat was stopped. (markt)
fix 49978: Correctly handle the case when a directory expected to be created during web application start is already present. Rather than throwing an exception and failing to start, allow the web application to start normally. (markt)
fix 49987: Fix thread safety issue with population of servlet context initialization parameters. (markt)
fix 49994: As per the Java EE 6 specification, return a new object instance for each JNDI look up of a resource reference. (markt)
fix 50015: Re-factor dynamic servlet security implementation to make extensions, such as JACC implementations, simpler. Patch provided by David Jencks. (markt)
fix 50016: Re-factor isUserInRole() and login()/logout() methods to support JACC implementations and to improve encapsulation. Patch provided by David Jencks. (markt)
update 50017: Code clean-up. No functional change. Patch provided by sebb. (markt)
fix 50027: Avoid NPE on start when a Context is defined in server.xml with one or more JNDI resources. (markt)
fix 50059: JARs should always be searched for static resources even if the web application is marked as meta-data complete. (markt)
fix 50063: Correct regression in fix for 50059 that causes applications marked as meta-data complete to return 404s for all requests. Patch provided by heyoulin. (markt)
fix 50087: Catch ClassFormatErrors when scanning for annotations. (markt)
Coyote
fix 49923: Avoid using negative timeouts during acceptor unlock to ensure APR connector shuts down properly. (mturk)
fix 49972: Fix potential thread safe issue when formatting dates for use in HTTP headers. (markt)
fix 50003: Set not maxThreads but minSpareThreads to corePoolSize, if AbstractEndpoint.setMinSpareThreads is called. (kfujino)
fix 50044: Fix issue when using comet where socket remained in long poll after the comet request has ended. (markt)
fix 50054: Correctly handle the setting of minSpareThreads in AJP connector. (kfujino)
fix 50072: Fix issues when using a non-blocking read for the request line with the NIO connector that could result in the request line being mis-read. (markt)
Jasper
fix 49986: Fix thread safety issue for JSP reload. (timw)
fix 49998: Make jsp:root detection work with single quoted attributes as well. (timw)
fix Correctly handle the setting of primitive bean values via expression language. (markt)
fix Don't swallow exceptions when processing TLD files and handle the case when there is no web.xml file. (markt)
fix 50066: Fix building of recursive tag files when the file depends on a JAR file. Patch provided by Sylvain Laurent. (markt)
fix 50078: Fix threading problem in EL caches. Patch provided by Takayoshi Kimura. (markt)
add Make EL cache sizes configurable. (markt)
Web applications
fix Apply filters to default home page so copyright year is correctly displayed. (markt)
Other
update 48716: Do not call reset if the default LogManager is in use. (markt)
fix 50013: Correctly package classes from org.apache.tomcat.util.file and add the tomcat-util.jar to the class path for the Ant tasks. Based on a patch provided by Sylvain Laurent. (markt)
Tomcat 7.0.3 (markt)not released
Catalina
fix 48644: Review all instances of catching Throwable and re-throw where appropriate. (markt)
update Allow glob patterns in the jarsToSkip configuration and add some debug logging to the jar scanner. (rjung)
fix 48738: Workaround a couple of long standing JDK bugs to enable GZIP compressed output streams to be flushed. Based on a patch provided by Jiong Wang. (markt)
update 48967: Replace strings "catalina.base" and "catalina.home" by globally defined constants. Patch provided by Marc Guillemot. (rjung)
fix 49195: Don't report an error when shutting down a Windows service for a Tomcat instance that has a disabled shutdown port. (markt)
fix 49209: Prevent possible AccessControlException during undeployment when running with a security manager. Patch provided by Sylvain Laurent. (markt)
fix 49657: Handle CGI executables with spaces in the path. (markt)
fix 49667: Ensure that using the JDBC driver memory leak prevention code does not cause a one of the memory leaks it is meant to avoid. (markt)
fix 49670: Restore SSO functionality that was broken by Lifecycle refactoring. (markt)
fix 49698: Allow a listener to complete an asynchronous request if it times out. (markt)
fix 49714: The annotation process of Jar doesn't influence distributable element of web.xml. (kfujino)
fix 49721: Alls JAR in a web application should be searched for resources, not just those with a web-fragment.xml that is going to be processed. (markt)
fix 49728: Improve PID file handling when another process is managing the PID file and Tomcat does not have write access. (markt)
fix 49730: Fix a race condition in StandardThreadExector that can cause requests to experience large delays. Patch provided by Sylvain Laurent. (markt)
fix 49749: Single sign on cookies should have httpOnly flag set using same rules as session cookies. (markt)
fix 49750: Align WebappClassLoader.validate() implementation with Javadoc and ensure that javax.servlet.* classes can not be loaded by a WebappClassLoader instance. Patch provided by pid. (markt)
fix 49757: Correct some generics warnings. Based on a patch provided by Gábor. (markt)
fix 49779: Improve handling of POST requests and FORM authentication, particularly when the user agent responds to the 302 response by repeating the POST request including a request body. Any request body provided at this point is now swallowed. (markt)
fix CSRF prevention filter did not correctly handle URLs that used anchors. (markt)
fix Fix memory leak on web application stopped caused by failed to de-register the web application's Servlets with the MBean server. (markt)
update More tweaks to the Lifecycle refactoring to ensure that when a component is being destroyed, the destroy method is only called once on each child component. (markt)
fix Keep the MBean names for web applications consistent between Tomcat 6 and Tomcat 7. (markt)
fix 49856: Add an executorName attribute to Connectors so it is possible to trace ThreadPool to Connector to Executor via the JMX interface. (markt)
fix 49865: Tomcat failed to start if catalina.properties was not present. (markt)
fix 49876: Fix the generics warnings in the copied Apache Jakarta BCEL code. Based on a patch by Gábor. (markt)
fix 49883: Ensure that the CombinedRealm and LockOutRealm return a name for use in log messages rather than throwing an UnsupportedOperationException. (markt)
fix 49884: Fix occassional NullPointerException on async complete(). This resulted in a major refactoring of the async implementation to address a number of threading issues. (markt)
fix Update the version numbers in ServerInfo defaults to Tomcat 7.0.x. (markt)
fix 49892: Correct JNDI name for method resource injections. Based on a patch by Gurkan Erdogdu. (markt)
fix Ensure that Context elements defined in server.xml use any configClass setting specified in the parent Host element. (markt)
fix GSOC 2010. Enable the creation of Services, Engines, Connectors, Hosts and Contexts via JMX from a minimal server.xml that contains only a Server element. Based on a patch by Chamith Buddhika. (markt)
fix 49909: Fix a regression introduced with the fix for 47950 that prevented JSTL classes being loaded. (markt)
fix 49915: Make error more obvious, particularly when accessed via JConsole, if StandardServer.storeConfig() is called when there is no StoreConfig implementation present. (markt)
fix 50018: Fix some minor Javadoc errors in Jasper source. Based on a patch by sebb. (timw)
fix 50021: Correct a regression in the fix for 46844 that may have caused additional problems during a failure at start up. (markt)
fix 50026: Prevent serving of resources from WEB-INF and META-INF directories when DefaultServlet or WebdavServlet is mapped to a sub-path of the context. This changes DefaultServlet to always serve resources with paths relative to the root of the context regardless of where it is mapped, which is a breaking change for current servlet-mappings that map the default servlet to a subpath. (timw)
fix 50689: Provide 100 Continue responses at appropriate points during FORM authentication if client indicates that they are expected. (markt)
Coyote
update Wait for the connectors to exit before closing them down. (mturk)
add Follow up to 48545. Make JSSE connectors more tolerant of a incorrect trust store password. (markt)
fix Fix some edge cases in the NIO connector when handling requests that are not received all at the same time and the socket needs to be returned to the poller. (markt)
update Further work to reduce the code duplication in the HTTP connectors. (markt)
fix Make sure acceptor threads are stopped when the connector is stopped. (markt)
fix Make sure async timeout thread is stopped when the connector is stopped. (markt)
fix 49625: Ensure Vary header is set if response may be compressed rather than only setting it if it is compressed. (markt)
fix 49802: Re-factor connector pause, stop and destroy methods so that calling any of those methods has the expected results. (markt)
update Various refactorings to reduce code duplication and unnecessary code in the connectors. (markt)
fix 49860: Add partial support for trailing headers in chunked HTTP requests. (markt)
Jasper
fix 49665: Provide better information including JSP file name and location when a missing file is detected during TLD handling. Patch provided by Ted Leung. (markt)
fix 49726: Specifying a default content type via a JSP property group should not prevent a page from setting some other content type. (markt)
fix 49799: The new omit attribute for jsp:attribute elements now supports the use of expressions and expression language. (markt)
fix 49916: Switch to using an initialisation parameter to pass JSP file information from Catalina to Jasper. This simplifies the Catalina code as well as making it easier for Geronimo and others to integrate Jasper. Patch provided by David Jencks. (markt)
fix 49985: Fix thread safety issue in EL parser. (markt)
Cluster
fix Remove domainReplication attribute from ClusterManager. If you send session to only same domain, use DomainFilterInterceptor. (kfujino)
fix Add Null check when CHANGE_SESSION_ID message received. (kfujino)
fix Add support for LAST_ACCESS_AT_START system property to DeltaSession. (kfujino)
fix Avoid a NPE in the DeltaManager when a parallel request invalidates the session before the current request has a chance to send the replication message. (markt)
fix 49905: Prevent memory leak when using asynchronous session replication. (markt)
fix 49924: When non-primary node changes into a primary node, make sure isPrimarySession is changed to true. (kfujino)
Web applications
fix Correct the class name of the default JAR scanner in the documentation web application. (rjung)
fix 49585: Update JSVC documentation to reflect new packaging of Commons Daemon. (markt)
update Update the Servlet, JSP and EL Javadoc links to link to the specifications and the relevant part of the Java EE 6 Javadoc. (markt)
fix Update a few places in the docs where the Manager documentation referred to the old role name of manager rather than than the new manager-script. (markt)
Extras
fix 49861: Don't log RMI ports formatted with commas for the JMX remote listener. (markt)
Other
fix Correct the user names created by the Windows installer for the Manager and Host Manager applications. (mturk)
fix Correct the Eclipse compiler dependency in the Jasper POM. (markt)
add Extend Checkstyle validation checks to check import order. (markt)
fix 49758: Fix generics warnings exposed by a fix in Eclipse 3.6. Patch provided by sebb. (markt)
update Update commons pool to 1.5.5. (markt)
update 49955: Improvement and correction of Building Tomcat guide. Based on a patch from Wesley Acheson. (timw)
Tomcat 7.0.2 (markt)beta, 2010-08-11
Catalina
fix Fix regression that prevented running with a security manager enabled. (markt)
Web applications
fix Correct Javadoc errors. (markt)
add Provide Javadoc for Servlet 3.0 API, JSP 2.2 API and EL 2.2 API. (markt)
fix Remove second copy of RUNNING.txt from the full-docs distribution. Some unpacking utilities can't handle multiple copies of a file with the same name in a directory. (markt)
Other
add Extend Checkstyle validation checks to check for tabs in nearly all text files. (markt)
update Update Commons Daemon from 1.0.2 to 1.0.3.(markt)
update Update Eclipse JDT Core Batch Compiler (ecj.jar) from 3.5.1 to 3.6. (markt)
Tomcat 7.0.1 (markt)not released
Catalina
fix GSOC 2010. Continue work to align MBean descriptors with reality. Patch provided by Chamith Buddhika. (markt)
fix When running under a security manager, enforce package access and package definition restrictions defined in the catalina.properties file. (markt)
fix When using a Loader configured with searchExternalFirst="true" failure to find the class in an external repository should not prevent searching of the local repositories. (markt)
add Add entryPoint support to the CSRF prevention filter. (markt)
fix 48297: Correctly initialise handler chain for web services resources. (markt)
add 48960: Add a new option to the SSI Servlet and SSI Filter to allow the disabling of the exec command. This is now disabled by default. Based on a patch by Yair Lenga. (markt)
add 48998, 49617: Add the ExpiresFilter, a port of the httpd mod_expires module. Patch provided by Cyrille Le Clerc. (markt)
fix 49030: When initializing/starting/stopping connectors and one of them fails, do not ignore the others. (markt/kkolinko)
fix 49128: Don't swallow exceptions unnecessarily in WebappClassLoader.start(). (markt)
fix 49182: Align comments in setclasspath.[sh|bat] with behaviour. Based on a patch provided by sebb. (markt)
fix 49230: Enhance JRE leak prevention listener with protection for the keep-alive thread started by sun.net.www.http.HttpClient. Based on a patch provided by Rob Kooper. (markt)
fix 49414: When reporting threads that may have triggered a memory leak on web application stop, attempt to differentiate between request processing threads and threads started by the application. (markt)
fix 49428: Add a work-around for the known namespace issues for some Microsoft WebDAV clients. Patch provided by Panagiotis Astithas. (markt)
add Add support for *.jar pattern in VirtualWebappLoader. (kkolinko)
add Use a LockOutRealm in the default configuration to prevent attempts to guess user passwords by brute-force. (markt)
add 49478: Add support for user specified character sets to the AddDefaultCharsetFilter. Based on a patch by Felix Schumacher. (markt)
fix 49503: Make sure connectors bind to their associated ports sufficiently early to allow jsvc and the org.apache.catalina.startup.EXIT_ON_INIT_FAILURE system property to operate correctly. (markt)
fix 49525: Ensure cookies for the ROOT context have a path of / rather than an empty string. (markt)
fix 49528, 49567: Ensure that AsyncContext.isAsyncStarted() returns the correct value after AsyncContext.start() and that if AsyncContext.complete() is called on a separate thread that it is handled correctly. (markt)
fix 49530: Contexts and Servlets not stopped when Tomcat is shut down. (markt)
fix 49536: If no ROOT context is deployed, ensure a 404 rather than a 200 is returned for requests that don't map to any other context. (markt)
add Additional debug logging in StandardContext to provide information on Manager selection. (markt)
fix 49550: Supress deprecation warning where deprecated code is required to be used. No functional change. Patch provided by Sebb. (markt)
fix 49551: Allow default context.xml location to be specified using an absolute path. (markt)
add Improve logging of unhandled exceptions in servlets by including the path of the context where the error occurred. (markt)
add Include session ID in error message logged when trying to set an attribute on an invalid session. (markt)
fix Improve the CSRF protection filter by using SecureRandom rather than Random to generate nonces. Also make the implementation class used user configurable. (markt)
fix Avoid NullPointerException, when copyXML=true and META-INF/context.xml does not exist. (kfujino)
fix 49598: When session is changed and the session cookie is replaced, ensure that the new Set-Cookie header overwrites the old Set-Cookie header. (markt)
fix Create a thread to trigger asynchronous timeouts when using the BIO connector, change the default timeout to 10s (was infinite) and make the default timeout configurable using the asyncTimeout attribute on the connector. (pero/markt)
fix 49600: Make exceptions returned by the ProxyDirContext consistent for resources that weren't found by checking the DirContext or the cache. Test case based on a patch provided by Marc Guillemot. (markt)
fix 49613: Improve performance when using SSL for applications that make multiple class to Request.getAttributeNames(). Patch provided by Sampo Savolainen. (markt)
fix Handle the edge cases where resources packaged in JARs have names that start with a single quote character or a double quote character. (markt)
fix Correct copy and paste typo in web.xml parsing rules that mixed up local-ejb-ref and resource-env-ref. (markt)
update Refactor session managers to remove unused code and to reduce code duplication. Also, all session managers used for session replication now extend org.apache.catalina.ha.session.ClusterManagerBase. (markt)
Jasper
update Remove references to Jikes since it does not support Java 6. (markt)
fix Correct over zealous type checking for EL in attributes that broke the use of JSF converters. (markt)
fix Correct algorithm used to identify correct method to use when a MethodExpressions is used in EL. (markt)
fix 49217: Ensure that identifiers used in EL meet the requirements of the Java Language Specification. (markt)
add Improve logging of JSP exceptions by including JSP snippet (if enabled) rather than just the root cause in the host log. (markt)
fix 49555: Correctly handled Tag Libraries where functions are defined in static inner classes. (markt)
Cluster
fix 49127: Don't swallow exceptions unnecessarily in SimpleTcpReplicationManager.startInternal(). (markt)
fix 49407: Change the BackupManager so it is consistent with DeltaManager and reports both primary and backup sessions when active sessions are requested. (markt)
fix 49445: When session ID is changed after authentication, ensure the DeltaManager replicates the change in ID to the other nodes in the cluster. (kfujino)
Web applications
fix 49112: Update the ROOT web application's index page. Patch provided by pid. (markt)
fix 49213: Add the permissions necessary to enable the Manager application to operate currently when running with a security manager. (markt)
fix 49436: Correct documented default for readonly attribute of the UserDatabase component. (markt)
fix 49475: Use new role name for manager application access on the ROOT web application's index page. (markt)
fix 49476: CSRF protection was preventing access to the session expiration features. Also switch the manager application to the generic CSRF protection filter. (markt)
fix Better handle failure to create directories required for new hosts in the Host Manager application. (markt)
fix Switch the Host Manager application to the generic CSRF protection for the HTML interface and prevent started hosts from being started and stopped hosts from being stopped. (markt)
fix 49518: Fix typo in extras documentation. (markt)
fix 49522: Fix regression due to change of name for MBeans for naming resources that broke the complete server status page in the manager application. Note these MBeans now have a new name. (markt)
fix 49570: When using the example compression filter, set the Vary header on compressed responses. (markt)
add Add redirects for the root of the manager and host-manager web applications that redirect users to the html interface rather than returning a 404. (markt)
add Provide the HTML Manager application with the ability to differentiate between primary, backup and proxy sessions. Note that proxy sessions are only shown if enabled in web.xml. (markt)
Other
fix 49130: Better describe the core package in the Windows installer, making it clear that the service will be installed. Patch provided by sebb. (markt)
add Re-factor unit tests to enable them to be run once with each of the HTTP connector implementations (BIO, NIO and APR/native). (markt)
add 49268: Add the necessary plumbing to include CheckStyle in the build process. Start with no checks. Additional checks will be added as they are agreed. (markt)
update Updated to Ant 1.8.1. The build now requires a minimum of Ant 1.8.x. (markt)
update Update the re-packaged version of commons-fileupload from 1.2.1 to 1.2.2. The layout of re-packaged version was also restored to the original commons-fileupload layout to make merging of future updates easier. (markt)
update Update the re-packaged version of Jakarta BCEL from trunk revision 880760 to trunk revision 978831. (markt)
Tomcat 7.0.0 (markt)beta, 2010-06-29
Catalina
update Update Servlet support to the Servlet 3.0 specification. (all)
update Improve and document VirtualWebappLoader. (rjung)
add 43642: Add prestartminSpareThreads attribute for Executor. (jfclere)
update Switch from AnnotationProcessor to InstanceManager. Patch provided by David Jecks with modifications by Remy. (remm/fhanik)
update r620845 and r669119. Make shutdown address configurable. (jfclere)
fix r651977 Add some missing control checks to ThreadWithAttributes. (markt)
add r677640 Add a startup class that does not require any configuration files. (costin)
fix r700532 Log if temporary file operations within the CGI servlet fail. Make sure header Reader is closed on failure. (markt)
fix r708541 Delete references to DefaultContext which was removed in 6.0.x. (markt)
add r709018 Initial implementation of an asynchronous file handler for JULI. (fhanik)
fix Give session thisAccessedTime and lastAccessedTime clear semantics. (rjung)
add Expose thisAccessedTime via Session interface. (rjung)
add Provide a log format for JULI that provides the same information as the default but on a single line. (markt)
add r723889 Provide the ability to configure the Executor job queue size and a timeout for adding jobs to the queue. (fhanik)
add Add support for aliases to StandardContext. This allows content from other directories and/or WAR files to be mapped to paths within the context. (markt)
update Provide clearer definition of Lifecycle interface, particularly start and stop, and align components that implement Lifecycle with this definition. (markt)
add 48662: Provide a new option to control the copying of context XML descriptors from web applications to the host's xmlBase. Copying of XMl descriptors is now disabled by default. (markt)
fix Move comet classes from the org.apache.catalina package to the org.apache.catalina.comet package to allow comet to work under a security manager. (markt)
Coyote
update Port SSLInsecureRenegotiation from mod_ssl. This requires to use tomcat-native 1.2.21 that have option to detect this support from OpenSSL library. (mturk)
update Allow bigger AJP packets also for request bodies and responses using the packetSize attribute of the Connector. (rjung)
updater703017 Make Java socket options consistent between NIO and JIO connector. Expose all the socket options available on java.net.Socket (fhanik)
fix 46051: The writer returned by getWriter() now conforms to the PrintWriter specification and uses platform dependent line endings rather than always using \r\n. (markt)
update Use tc-native 1.2.x which is based on APR 1.3.3+ (mturk)
update r724239 NIO connector now always uses an Executor. (fhanik)
update r724393 Implement keepAliveCount for NIO connector in a thread safe manner. (fhanik)
update r724849 Implement keep alive timeout for NIO connector. (fhanik)
Jasper
update Update JSP support to the JSP 2.2 specification. (markt)
update Update EL support to the EL 2.2 specification. (markt)
update r787978 Use "1.6" as the default value for compilerSourceVM and compilerTargetVM options of Jasper. (kkolinko)
add 48358: Add support for limiting the number of JSPs that are loaded at any one time. Based on a patch by Isabel Drost. (markt)
add 48689: Access TLD files through a new JarResource interface to make extending Jasper simpler, particularly in OSGi environments. Patch provided by Jarek Gawor. (markt)
High Availability
add Add support for UDP and secure communication to tribes. (fhanik)
add Add versioning to the tribes communication protocol to support future developments. (fhanik)
add Add a demo on how to use the payload. (fhanik)
add Started to add JMX support to the cluster implementation. (markt)
fix r609778 Minor fixes to the throughput interceptor and the NIO receiver. (fhanik)
fix r630234 Additional checks for the NIO receiver. (fhanik)
update r671650 Improve error message when multicast is not enabled. (fhanik)
Web applications
update r631321 Update changelog to support the <rev> element in the documentation. (fhanik)
add A number of additional roles were added to the Manager and Host Manager applications to separate out permissions for the HTML interface, the text interface and the JMX proxy. (markt)
add CSRF protection was added to the Manager and Host Manager applications. (markt)
add List array elements in the JMX proxy output of the Manager application. (rjung)
Extras
add A new JmxRemoteLifecycleListener that can be used to fix the ports used for remote JMX connections, eg when using JConsole. (markt)
Other
fix Numerous code clean-up changes including the use of generics and removing unused imports, fields, parameters and methods. (markt)
fix All deprecated internal code has been removed. Warning: If you have custom components for a previous Tomcat version that extend internal Tomcat classes and override deprecated methods it is highly likely that they will no longer work. (markt)
update Parameterize version number throughout build scripts and source. (rjung)

Copyright © 1999-2011, Apache Software Foundation