【发布时间】:2012-09-27 20:28:54
【问题描述】:
Tomcat 7.0.30 火狐 15.0.1 Eclipse 3.7 和 4.2
我最近安装了 Tomcat7.0.30,从那以后我遇到了各种 Firefox 问题。 (例如this one)
现在我收到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 文件,但这没有帮助。
我真的在这里发疯了。
【问题讨论】:
标签: eclipse firefox cookies tomcat7