diff --git a/router/java/src/net/i2p/router/startup/ClientAppConfig.java b/router/java/src/net/i2p/router/startup/ClientAppConfig.java index 13310b370813311aa3f9ec0e395036c5e06f4211..70d61f346fe8ad307eb66d0c981699a502ab2698 100644 --- a/router/java/src/net/i2p/router/startup/ClientAppConfig.java +++ b/router/java/src/net/i2p/router/startup/ClientAppConfig.java @@ -47,13 +47,15 @@ public class ClientAppConfig { cfgFile = new File(ctx.getConfigDir(), clientConfigFile); // fall back to use router.config's clientApp.* lines - if (!cfgFile.exists()) + if (!cfgFile.exists()) { + System.out.println("Warning - No client config file " + cfgFile.getAbsolutePath()); return ctx.router().getConfigMap(); + } try { DataHelper.loadProps(rv, cfgFile); } catch (IOException ioe) { - // _log.warn("Error loading the client app properties from " + cfgFile.getName(), ioe); + System.out.println("Error loading the client app properties from " + cfgFile.getAbsolutePath() + ' ' + ioe); } return rv; diff --git a/router/java/src/net/i2p/router/startup/LoadClientAppsJob.java b/router/java/src/net/i2p/router/startup/LoadClientAppsJob.java index 3923adec159a8b7417d215f6470b316c6e943188..0f86f5b61b3f02813f9bd96b863d8d211f379f54 100644 --- a/router/java/src/net/i2p/router/startup/LoadClientAppsJob.java +++ b/router/java/src/net/i2p/router/startup/LoadClientAppsJob.java @@ -29,6 +29,11 @@ public class LoadClientAppsJob extends JobImpl { _loaded = true; } List apps = ClientAppConfig.getClientApps(getContext()); + if (apps.size() <= 0) { + _log.error("Warning - No client apps or router console configured - we are just a router"); + System.err.println("Warning - No client apps or router console configured - we are just a router"); + return; + } for(int i = 0; i < apps.size(); i++) { ClientAppConfig app = (ClientAppConfig) apps.get(i); if (app.disabled)