aspose file tools*
The moose likes Servlets and the fly likes <login-config> tag not working for Tomcat server Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "<login-config> tag not working for Tomcat server" Watch "<login-config> tag not working for Tomcat server" New topic
Author

<login-config> tag not working for Tomcat server

Rajkumar Masanaiyan
Greenhorn

Joined: Sep 17, 2011
Posts: 24
In the below mentioned DD, I had added the <login-config> and invoked the jsp page. While the page comes up, the Tomcat server doesn't prompt for user name and password. I have pasted tomcat-user.xml at the bottom for reference. Would you please let me know what went wrong?




Hebert Coelho
Ranch Hand

Joined: Jul 14, 2010
Posts: 754

Do not you need to add the constraint?



[uaiHebert.com] [Full WebApplication JSF EJB JPA JAAS with source code to download] One Table Per SubClass [Web/JSF]
Miku Ranjan
Ranch Hand

Joined: Oct 11, 2011
Posts: 98
Hi,
Can some one give some idea to me what is this tag used for.
Hebert Coelho
Ranch Hand

Joined: Jul 14, 2010
Posts: 754

To detail the URL that you will protect.
Rajkumar Masanaiyan
Greenhorn

Joined: Sep 17, 2011
Posts: 24
I am trying to only authentication. I am not trying to use that for authorization. Can't I do that?
Rajkumar Masanaiyan
Greenhorn

Joined: Sep 17, 2011
Posts: 24
Rajkumar Masanaiyan wrote:I am trying to only authentication. I am not trying to use that for authorization. Can't I do that?


Based on my experiement, authentication and authorization works only together. Authentication can't be enabled seperately.
 
 
subject: <login-config> tag not working for Tomcat server
 
Similar Threads
username and password are not getting verified by tomcat
Unable to login to manager GUI
Authentication and Authorization implementation using DD Problem
problems with form-based authentication
HTTP Status 403 Access to the requested resource has been denied