On Jan 10, 2009, at 9:03 PM, D Tim Cummings wrote:


On 27/07/2008, at 2:59 PM, Rams wrote:

Check this out...

        public Application() {
                NSLog.out.appendln("Welcome to " + name() + " !");
NSLog.out.appendln("before setting frameworksBaseURL(): " + frameworksBaseURL());
                setFrameworksBaseURL("/WebObjects/myapp.woa/Frameworks");
NSLog.out.appendln("after setting frameworksBaseURL()" + frameworksBaseURL());
        }

Outputs /Library/WebObjects/Logs/myapp-instance

Jul 27 00:07:04 myapp[2004] (ERXNSLogLog4jBridge.java:40) INFO NSLog - Welcome to myapp ! Jul 27 00:07:04 myapp[2004] (ERXNSLogLog4jBridge.java:40) INFO NSLog - before setting frameworksBaseURL(): /WebObjects/Frameworks Jul 27 00:07:04 myapp[2004] (ERXNSLogLog4jBridge.java:40) INFO NSLog - after setting frameworksBaseURL()/WebObjects/myapp.woa/ Frameworks

This appears to be a bug in WebObjects 5.4.3 because the exact same code works fine in WebObjects 5.3.3. Note that your code above only works because of the logging statement which calls frameworksBaseURL() BEFORE you call setFrameworksBaseURL().

Heisenbug... nice! (^_^) And wow... since July! I think that's a record for oldest thread revival. Thanks for the code. I'll likely make good use of it.

While we're on the subject though, does anyone out there have any advice for debugging deployments beyond simple log statements?

Thanks again Tim!

Ramsey

Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-deploy mailing list      (Webobjects-deploy@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-deploy/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to