// Configure log4j
PropertyConfigurator.configure("/Library/Preferences/log4j.properties");
log = Logger.getLogger( Application.class );
log.debug("Log4j has been initialized");
Might be a bit easier doing so in your Properties file...
And there is a properties file there. I get the output from main that logging has been initialized. Then I get all the output about registering entities, etc. I DO get a message form Eclipse that it hasn't been initialized at the very beginning, but I thought that only had to do with Eclipse messages - not Wonder messages - so I didn't pay any attention to it.
log4j:WARN No appenders could be found for logger (org.apache.log4j.Logger).
log4j:WARN Please initialize the log4j system properly.
DEBUG [main] - Log4j has been initialized
DEBUG [main] - ApplicationDidFinishLaunching: <class com.webobjects.foundation.NSNotification(name=ApplicationWillFinishLaunchingNotification, etc. . .
Then I tried to pay attention to it by putting the properties file in a jar file and adding it as a classpath variable (LOG4J_PROPS) in Eclipse, then the message went away, but I got an exception from Wonder:
DEBUG [main] -
java.lang.RuntimeException
at er.extensions.ERXLogger.configureLogging(ERXLogger.java:190)
at er.extensions.ERXLogger.configureLoggingWithSystemProperties(ERXLogger.java:149)
at er.extensions.ERXExtensions.<clinit>(ERXExtensions.java:147)
AFAIK, this exception is kind of a debug statement and harmless. Anjo refactored all of the logging in Wonder some weeks ago...
Chances are, that everything is fine, but the (successfully launched app) just doesn't open a browser window. Check if the "-WOAutoOpenInBrowser" property is set to "true" in the "WO" tab of the Debug/Run configuration in Eclipse. If I interpret it correctly from looking at the WOLips commit messages, Uli changed the default from "false" to "true" some days ago. If not, and someone of the WOLips contributors is reading this - please do so.
If I take out the code in main, then I get the same thing as above. So it seems that when I add the classpath variable and point it in the right direction that Eclipse is happy, but Wonder isn't. if I leave the classpath variable out, then Wonder is happy, but Eclipse. In either case I am sad. :-(
John
HTH,