Missing Contents in Resource Manager / URLs
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