简体   繁体   English

启用安全性的Eclipse Indigo中的Tomcat 7显示空白的JSP页面

[英]Tomcat 7 in Eclipse Indigo with security enabled shows blank JSP pages

I am running apache-tomcat-7.0.27 as a server inside Eclipse Indigo SR 2 我正在将apache-tomcat-7.0.27作为Eclipse Indigo SR 2中的服务器运行

I have a web application deployed and I am trying to configure JAAS login module. 我已经部署了Web应用程序,并且正在尝试配置JAAS登录模块。 I found that the Login module won't start until the security is enabled in Tomcat. 我发现直到在Tomcat中启用安全性后,登录模块才会启动。 I did this with double clicking the server configuration and setting the security check box there. 我通过双击服务器配置并在此处设置安全性复选框来做到这一点。

My problem is that when this is enabled all JSPs stop showing any content, only a blank page is served. 我的问题是,启用此功能后,所有JSP均停止显示任何内容,仅提供空白页。 Static pages are not affected. 静态页面不受影响。 I guess this is some bug in the Eclipse provided catalina.policy Some permission needs to be added there in order for JSPs to work properly. 我猜这是Eclipse提供的catalina.policy中的一些错误。需要在其中添加一些权限,以使JSP正常工作。 This is my guess at least. 至少这是我的猜测。 I don't see any errors in the tomcat log. 我在tomcat日志中没有看到任何错误。

Any suggestions, please? 有什么建议吗?

EDIT: It turned out that this happens only with the login and error pages defined for the FORM authentication I am using. 编辑:事实证明,这仅发生在为我使用的FORM身份验证定义的登录和错误页面上。 Anyone? 任何人?

检查您的tomcat日志,您的应用程序可能缺少SecurityPermission

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM