On Thu, 2003-10-02 at 01:08, Brian Wallis wrote: > In starting JBoss (3.2.1 and earlier) I get the following messages that I > have been ignoring for a long while. (I do have a non-fatal validation issue > at line 166 which can be fixed) > > > INFO [XMLLoginConfig] Starting > > ERROR [STDERR] Warning: validation was turned on but an org.xml.sax.ErrorHandler > > was not > > ERROR [STDERR] set, which is probably not what is desired. Parser will use a > > default > > ERROR [STDERR] ErrorHandler to print the first 10 errors. Please call > > ERROR [STDERR] the 'setErrorHandler' method to fix this. > > ERROR [STDERR] Error: URI=null Line=166: The content of element type "policy" must > > match "(application-policy)+". > > INFO [XMLLoginConfig] Started > > I can turn validation off in which case no errors, ie: > > <mbean code="org.jboss.security.auth.login.XMLLoginConfig" > name="jboss.security:service=XMLLoginConfig"> > <attribute name="ConfigResource">login-config.xml</attribute> > <attribute name="ValidateDTD">false</attribute> > </mbean> > > But how can I actual set an appropriate error handler? I had a look at the > source of XMLLoginConfigImpl and there doesn't seem to be any reference > to calling setErrorHandler on the parser being used. >
CIMF (Code It Mother F*ck*r) and submit the patch :-) AND/OR, fix the XML to match the DTD. Regards, Adrian > thanks, brian wallis... > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > JBoss-user mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/jboss-user -- xxxxxxxxxxxxxxxxxxxxxxxx Adrian Brock Director of Support Back Office JBoss Group, LLC xxxxxxxxxxxxxxxxxxxxxxxx ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user