Tomcat 7的 - 我在哪里设置“系统属性”? [英] Tomcat 7 - where do I set 'system properties'?

查看:762
本文介绍了Tomcat 7的 - 我在哪里设置“系统属性”?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的web应用程序是有,因为升级到Tomcat 7.我会会去我登录后尝试做任何事情(提交请求)的问题。我读过设置以下可以帮助:

  org.apache.tomcat.util.http.ServerCookie.FWD_SLASH_IS_SEPARATOR = FALSE

有谁知道在哪里设置呢?如果这在 web.xml中设置 context.xml中或别的地方?

我要检查的另一件事是:

  org.apache.catalina.STRICT_SERVLET_COMPLIANCE


解决方案

您可以设置任何系统属性的

 的apache-tomcat的-7.0.33 \\的conf \\ catalina.properties

文件。添加在这个文件中的条目应该会解决你的问题。

My webapp is having an issue since upgrading to Tomcat 7. My session will go null after I login and try to do anything (submitting a request). I've read that setting the following may help:

org.apache.tomcat.util.http.ServerCookie.FWD_SLASH_IS_SEPARATOR=false

Does anyone know where to set this? Should this be set in web.xml, context.xml or somewhere else?

The other thing I want to check is the following:

org.apache.catalina.STRICT_SERVLET_COMPLIANCE

解决方案

You can set any of the system properties in

apache-tomcat-7.0.33\conf\catalina.properties

file. Adding your entry in this file should resolve your problem.

这篇关于Tomcat 7的 - 我在哪里设置“系统属性”?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆