Tomcat 7.0.30 火狐 15.0.1 Eclipse 3.7 和 4.2
我最近安装了 Tomcat7.0.30,从那以后我遇到了 Firefox 的各种问题。(例如这个)
现在我遇到了一个java.lang.IllegalArgumentException: Control character in cookie value or attribute.
例外。
我有一个普通的 html 文件:
<html>
<head><title>Test</title></head>
<body>Test htm</body>
</html>
这是 Firebug 报告的内容:
"NetworkError: 500 Internal Server Error - http://localhost:8080/WSTest"
The character encoding of the plain text document was not declared.
The document will render with garbled text in some browser configurations
if the document contains characters from outside the US-ASCII range.
The character encoding of the file needs to be declared in the
transfer protocol or file needs to use a byte order mark as an encoding signature.
困扰我的是chrome没有任何问题。该页面就像我期望的那样打开......
我试图用谷歌搜索这个,我发现的唯一建议是添加这个:
org.apache.tomcat.util.http.ServerCookie.ALLOW_EQUALS_IN_VALUE=true
org.apache.tomcat.util.http.ServerCookie.ALLOW_HTTP_SEPARATORS_IN_V0=true
到 catalina.properties 文件,但这没有帮助。
我真的在这里失去理智。