This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes login-config element in DD 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 » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "login-config element in DD" Watch "login-config element in DD" New topic

login-config element in DD

Deb Sadhukhan
Ranch Hand

Joined: Nov 05, 2003
Posts: 67
login-config doesn't have mandatory sub-elements.
What is the use of it? Is it true having <login-config/> in DD will make the entire app. inaccessible by anybody?
[ February 11, 2005: Message edited by: Deb Sadhukhan ]

_ __ _ __ _ __ _<br />SCJP 1.4 (95%) | SCWCD 1.4 (79%)<br />Artificial intelligence is no match for natural stupidity.
Rodrigo W Bonatto
Ranch Hand

Joined: Aug 20, 2004
Posts: 62

If you define a <security-constraint> element, you must define a <login-config> element, otherwise the container will throw a NullPointerException (in Tomcat 5.0.28).

I don't know if it depends of container implementation or if it is the default behaviour.



I agree. Here's the link:
subject: login-config element in DD
Similar Threads
Filter doubts
security-constraint with no login-config element
login authentication
he doesn't ask for authenticate
Regarding Authentication & Authorization