Re: WOImage?
Re: WOImage?
- Subject: Re: WOImage?
- From: email@hidden (Paul L Merchant Jr.)
- Date: 05 Mar 2003 11:06:43 EST
Thanks Art, this was the clue I needed. The problem is not that Project Builder can't install a WebObjects application, but that WOImage (and whatever underlying library it's using) can't handle a pure split install.
I was building and installing only a WebServer style build. This puts the WebServerResources portion of the application in the web server's document directory (/Library/WebServer/Documents/WebObjects/...) and the rest of the application in the application directory (/Library/WebObjects/Applications/...).
Apparently, WOImage checks that the file exists within the Application bundle before generating the URL for the image. Since the split install doesn't place the WebServerResources directory within the application, the check fails, and WOImage generates the error URL.
If I simply copied WebServerResources and its contents to it's usual place within the application, WOImage worked and generated the correct URL to the image through the web server.
Your script builds a Deployment style version of the application first. This packages everything within the application bundle, including the WebServerResources directory. The subsequent WebServer style build doesn't delete the WebServerResources from the application, so the end result is essentially the same as copying WebServerResources into the application after a WebServer build.
Looks like an oversight either in the design of the split install scripts or in the way WOImage functions.
-- Paul
--- Art Isbell wrote:
> If it makes a difference, I'm using Project Builder from the December
> '02 developer tools to build the project and I'm not running pbxbuild
> directly.
This may be the root of your problem. I don't believe PBX is designed
to install WO apps. My Web server resources are always found when I
run a shell script, ~/bin/pbxinstall (with ~/bin in my shell's
execution path), in my project's directory to complete a split install.
% cat ~/bin/pbxinstall
#! /bin/sh
sudo pbxbuild install -buildstyle Deployment DSTROOT=/
sudo pbxbuild install -buildstyle WebServer DSTROOT=/
Art
http://homepage.mac.com/aisbell/
--- end of quote ---
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.