This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Tomcat and the fly likes security-constrain and security-role Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "security-constrain and security-role" Watch "security-constrain and security-role" New topic

security-constrain and security-role

Elinor Chang
Ranch Hand

Joined: Jul 30, 2003
Posts: 58
I am trying to config my tomcat to restrict the usage of POST method to any of my pages. I configure as the following in the web.xml
<display-name> Privileged user only </display-name>
Defines privileged user for this tomcat installation
It seems working but I got 'error' is a 500 and I am expecting a 404. There is the error massage
HTTP Status 500 - Configuration error: Cannot perform access control without an authenticated principal
Is there anything I did wrong?

The more I learn, the less I know....<br /> <br />SCJP2 <br />SCWCD
Don't get me started about those stupid light bulbs.
subject: security-constrain and security-role