Apparently they fixed a bug so that the cookie name now finally conforms the RFC2109.
Also see the javax.servlet.http.Cookie
API specification:
The name must conform to RFC 2109. That means it can contain only ASCII alphanumeric characters and cannot contain commas, semicolons, or white space or begin with a $ character. The cookie's name cannot be changed after creation.
The c with cedille ç
is not an ASCII character.
Update: sorry, the problem concerns the cookie value. This is then related to this Tomcat bugfix (JBoss uses Tomcat under the hoods). This should be workaroundable by setting the cookie version as follows:
cookie.setVersion(1);
The ç
is not a valid character for the cookie value according the old Netscape specification, but it is according the newer RFC2109 specification. With the Cookie#setVersion()
you can toggle between them.