I am using the new version of Tomcat 8 (from this October last year), and after adding a line to use the old cookie processor, it works fine. At ${catalina.base}conf/context.xml :
<Context> <WatchedResource>WEB-INF/web.xml</WatchedResource> <WatchedResource>${catalina.base}/conf/web.xml</WatchedResource> <CookieProcessor className="org.apache.tomcat.util.http.LegacyCookieProcessor" />
Hope this could be your case. Just set this CookieProcessor and your implementation will work just like in previous versions of Tomcat 8.
source share