| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
| Thanks Chuck, I thought I did. // Configure log4j PropertyConfigurator.configure("/Library/Preferences/log4j.properties"); log = Logger.getLogger( Application.class ); log.debug("Log4j has been initialized"); 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) 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 On Aug 23, 2006, at 12:25 PM, Chuck Hill wrote:
|
_______________________________________________ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/email@hidden This email sent to email@hidden
| References: | |
| >WONDER in Eclipse - app not launching (From: John Larson <email@hidden>) | |
| >Re: WONDER in Eclipse - app not launching (From: Chuck Hill <email@hidden>) |
| Home | Archives | FAQ | Terms/Conditions | Contact | RSS | Lists | About |
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE
Contact Apple | Terms of Use | Privacy Policy
Copyright © 2007 Apple Inc. All rights reserved.