0

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 文件,但这没有帮助。

我真的在这里失去理智。

4

1 回答 1

0

显然问题出在我的 Firefox 安装上。在用尽所有选项并使用 Chrome、Safari、Opera 甚至 IE 进行测试后,一切正常,我决定卸载 Firefox,删除所有配置文件设置,然后重新安装。新的安装工作。

ps 提示:如果您要完全卸载 Firefox,请不要忘记备份您的书签和密码并保存您的附加组件列表;)书签可以直接从 Firefox 备份 密码可以使用名为 Password 的附加组件存储我用截图“保存”了出口商附加组件:D

于 2012-09-29T11:05:34.710 回答