261262263264265266267268269270271
// Configure the XmlMapper we will be using XmlMapper mapper = createMapper(); // Process the configuration file File file = new File(configFile); mapper.readXml(file, null); // Start or stop ; // FIXME }
142143144145146147148149150151152
mr.addUser( user, pass, group ); } } ); xh.readXml( f, this ); } } public static class SimpleRealmPrincipal extends SimplePrincipal { private String pass;
125126127128129130131132133134135
if ( !f.isAbsolute()) f=new File( cm.getHome(), File.separator + configFile); if( f.exists() ){ try { xh.readXml(f, this ); } catch( Exception ex ) { ex.printStackTrace(); throw new TomcatException(ex); } }
276277278279280281282283284285286
throw ex1; } catch( Exception ex ) { throw new TomcatException( ex ); } } else { ctx1=xh.readXml(f, ctx); } if( validate && xeh != null && xeh.isOk() ) { // don't create the validation mark if an error was detected try {