server.addListener( listener );
log.info( "...added shutdown listener for port " + SHUTDOWN_PORT );
// Set the default users and roles for the realm (note that realm name *must* match web.xml <realm-name>
HashUserRealm realm = new HashUserRealm( "JSPWikiRealm" );
realm.put( Users.ADMIN, new Password( Users.ADMIN_PASS ) );
realm.addUserToRole( Users.ADMIN, "Authenticated" );
realm.addUserToRole( Users.ADMIN, "Admin" );
realm.put( Users.JANNE, new Password( Users.JANNE_PASS ) );
realm.addUserToRole( Users.JANNE, "Authenticated" );
server.addRealm( realm );
}