Bug 10972

Summary: <Realm> without className in server.xml produces NullPointerException
Product: Tomcat 4 Reporter: Willis Boyce <wboyce>
Component: CatalinaAssignee: Tomcat Developers Mailing List <dev>
Status: RESOLVED FIXED    
Severity: enhancement    
Priority: P3    
Version: 4.0 Beta 1   
Target Milestone: ---   
Hardware: PC   
OS: Linux   

Description Willis Boyce 2002-07-19 02:30:07 UTC
If the className attribute is not included with the <Realm> tag in server.xml, 
the server dies with a cryptic NullPointerException.  It would be nice if it 
produced a more meaningful error message (like "Missing className attribute for 
<Realm> tag").
Comment 1 Mark Thomas 2003-12-27 21:03:09 UTC
Agreed, a more meaningful error message would be nice. However, this is an 
enhancement request.
Comment 2 Jeff Whidby 2004-12-13 10:21:30 UTC
Note that this bug affects you if you accidently spell className classname, so
it can be pretty difficult to find.
Comment 3 Mark Thomas 2010-12-15 12:58:14 UTC
This has been fixed in 7.0.5 and will be included in 7.0.6 onwards.