This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Customer Requirements for Developers and have Marcho Behler on-line!
See this thread for details.
The moose likes EJB and other Java EE Technologies and the fly likes Exclude servlet from security-constraint Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Customer Requirements for Developers this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Exclude servlet from security-constraint" Watch "Exclude servlet from security-constraint" New topic

Exclude servlet from security-constraint

Michal Glowacki
Ranch Hand

Joined: Mar 14, 2006
Posts: 114

I have security-constraint set up over my whole project, it's set up like this:


in web.xml. Then i have set up users and roles in jboss. Everything works ok, but I want to exclude one pattern from this constraint. The reason is that outside company need to have access to one of my servlets, and it's an automated process. So I send them URL to servlet and their system then uses it. I have created one more constraint for this servlet, with another password and user, then tried to access it this way:

but it doesn't work :/

Can anyone give me a hint how to solve it?

[edited to disable smilies and fix url tag]
[ November 02, 2007: Message edited by: Jeanne Boyarsky ]
It is sorta covered in the JavaRanch Style Guide.
subject: Exclude servlet from security-constraint
jQuery in Action, 3rd edition