HI all,
i try print message log in the geoserver 2.0 web-security module but not working.
I have the class:
…
static final Logger LOGGER = Logging.getLogger(DAOConfigurationProperties.class);
public ConfigureChainOfResponsibility loadConfiguration()
throws DAOException {
ConfigureChainOfResponsibility chain = null;
try {
File security = GeoserverDataDirectory.findConfigDir(
GeoserverDataDirectory.getGeoserverDataDirectory(),
“security”);
Properties properties = loadProperties(security.getAbsolutePath()
- “/” + “layers.properties”);
LOGGER.log(Level.INFO, “SCANNING MAP FILE”);
for(Map.Entry entry : properties.entrySet()){
final String ruleKey = (String) entry.getKey();
final String ruleValue = (String) entry.getValue();
final String rule = ruleKey + “=” + ruleValue;
LOGGER.log(Level.INFO, “RULE”+rule);
}
…
and load this in the wicket page class:
public class SecurityPage extends ServerAdminPage {
private TreeTable tree;
private Catalog catalog;
public SecurityPage() {
…
IModel resourceListModel = new LoadableDetachableModel() {
public Object load() {
IDAOConfiguration dao = new DAOConfigurationProperties();
try {
ConfigureChainOfResponsibility configuration = dao.loadConfiguration();
configuration.run(ConfigurationSingleton.getInstance());
} catch (DAOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
…
but in the console message not have any message.
Suggestion?
Thanks,
–
Francesco Izzi
CNR - IMAA
geoSDI - NSDI
Responsabile Sviluppo Software
C.da Loja
85050 Tito Scalo - POTENZA (PZ)
Italia
phone: +39 0971427305
fax: +39 0971 427271
mob: +39 3402640314
mail: francesco.izzi@anonymised.com
skype: neofx8080