简体   繁体   中英

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

I have a web application deployed and I am trying to configure JAAS login module. I found that the Login module won't start until the security is enabled in 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. 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. This is my guess at least. I don't see any errors in the tomcat log.

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. Anyone?

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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