• 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
Missing Contents in Resource Manager / URLs
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Missing Contents in Resource Manager / URLs


  • Subject: Missing Contents in Resource Manager / URLs
  • From: email@hidden
  • Date: Fri, 07 Aug 2009 12:09:23 -1000

Just solved a problem that's I've been banging my head against.

PROBLEM: The resource manager is leaving off the Contents component of the name when loading the resources into memory. For the most part everything will function fine unless you have static files in the WebServerResources. The problem is when the URL's are created the Contents directory is left off. So instead of the correct http://hostname/cgi-bin/WebObjects/AppName.woa/Contents/WebServerResources/image.jpg you get http://hostname/cgi-bin/WebObjects/AppName.woa/WebServerResources/image.jpg as your link.

SOLUTION: You have a copy of your Info.plist file in the Resources directory of the woa. Remove that, or place it back into the Contents directory if its missing there.

Somehow one of my projects ended up with an extra Info.plist file in the Resources directory and I didn't notice it. On the plus side I've learned a LOT about the resource loading mechanisms.

Eric
 _______________________________________________
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

  • Prev by Date: Re: WebObjects and Security in case of a physical breach
  • Next by Date: Re: Many to many relationship... some problem
  • Previous by thread: Re: WebObjects and Security in case of a physical breach
  • Next by thread: when db schema changes... al goes wrong
  • Index(es):
    • Date
    • Thread