• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: WOFrameworksBaseURL and life :P
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: WOFrameworksBaseURL and life :P


  • Subject: Re: WOFrameworksBaseURL and life :P
  • From: Aaron Rosenzweig <email@hidden>
  • Date: Tue, 06 Aug 2013 21:53:46 -0400

Hi Lon,

It's a bug in WO 5.4.3 that was not there in WO 5.3.3 but there are ways to deal with it.

In your Application.java try adding these lines:

@Override
public void setFrameworksBaseURL(String string) {
// To workaround a WO 5.4 bug we need to take over and forcibly set the frameworks base URL
String defaultURL = "/WebObjects/yourAppName.woa/Contents/Frameworks";
String sysPropsURL = NSProperties.getProperty("WOFrameworksBaseURL");
String finalURL = defaultURL;
if (StringUtils.isNotBlank(sysPropsURL)) {
finalURL = sysPropsURL;
}
super.setFrameworksBaseURL(finalURL);
}
@Override
public void setApplicationBaseURL(String aString) {
// To workaround a WO 5.4 bug we need to take over and forcibly set the application base URL
String defaultURL = "/WebObjects";
String sysPropsURL = NSProperties.getProperty("WOApplicationBaseURL");
String finalURL = defaultURL;
if (StringUtils.isNotBlank(sysPropsURL)) {
finalURL = sysPropsURL;
}
super.setApplicationBaseURL(finalURL);
    }

Cheers,
-- Aaron


On Tue, Aug 6, 2013 at 9:15 PM, Lon Varscsak <email@hidden> wrote:
I'm not sure where to turn here, but it appears there's a bug with the way WOnder/WO (which one, I'm not sure…probably WO) handles WOFrameworksBaseURL.

It appears that the resource manager is never returning the right (based on WOFrameworksBaseURL) url for resources located inside of frameworks.  It only generates urls that look like /WebObjects/<app directory name>/Frameworks.  It's not even using the app's name (which in my case is different than the app's directory name)..

Has anyone ever encountered this?  Any ways around it?

-Lon

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: WOFrameworksBaseURL and life :P
      • From: Lon Varscsak <email@hidden>
References: 
 >WOFrameworksBaseURL and life :P (From: Lon Varscsak <email@hidden>)

  • Prev by Date: WOFrameworksBaseURL and life :P
  • Next by Date: Fatal exception occurred: java.io.IOException when WO app is launched
  • Previous by thread: WOFrameworksBaseURL and life :P
  • Next by thread: Re: WOFrameworksBaseURL and life :P
  • Index(es):
    • Date
    • Thread