Re: WO develop build works, deploy goes BOOM!
Re: WO develop build works, deploy goes BOOM!
- Subject: Re: WO develop build works, deploy goes BOOM!
- From: Dave Stewart <email@hidden>
- Date: Fri, 5 Nov 2004 14:33:17 -0800
On Nov 5, 2004, at 1:26 PM, Tom Woteki kindly offered this:
Most of my projects are WO, so for what it's worth:
- Since you are using -activebuildstyle, is the build style in your
project set to Deployment?
Yes (I've tried setting the -buildstyle to Deployment explicitly as
well, same story. I also just tried setting the target explicitly, but
still no love).
- try using sudo
I never would have thought of that. I just tried it running as root,
same sob story though.
If I try really hard, sacrifice a couple of virgin goats (I'm getting
VERY low on these now!:) and follow these procedures:
1. Build the project from XCode with the Development buildstyle.
2. Rename the build/_WOServerTMS.tmp file to TMS.tmp (so the next
command won't fail).
3. Rebuild the project from the command line as root using this build
command:
"xcodebuild clean install -buildstyle Deployment -target "TMS"
DSTROOT=/Users/DWS/projects/TMS/deploy"
4. Try to run the project from the command line before bothering
copying it to the real server ...
I end up with a java.lang.ClassNotFoundException: Application message
instead of my site.
I've been banging my head against this for days now and can't for the
life of me understand why it builds and runs fine in Development mode,
but just won't build (or won't run if I can force it to build by using
extreme violence upon it like I did above) in Deployment mode.
Isn't this stuff supposed to "just work"? Is XCode really this touchy?
How can any project get this messed up?
(It may be key to note that I've been working on this project for most
of this year and haven't tried deploying it in at least that much time.
I did successfully deploy another WO project earlier this year though
WITHOUT all this confusion and trouble; it "just worked" then!)
My typical build command looks something like this:
sudo xcodebuild clean install -buildstyle Deployment
DSTROOT=/some/where
After issuing this, you may need to manually remove the build
directory from your project folder because of the way permissions
(sometimes) get set on the files in that folder. I.e., clean all may
fail from within XCode after building as above.
Yeah, I get this a lot already as well. Deleting the build folder
solves the problem though.
Tom
Many thanks for the ideas and input Tom. I also have mostly been
working on WO projects in XCode here (some little AppleScript projects
as well) and I swear I've never had *THIS* much trouble before.
Something has to be messed up in a preference file or something ... but
what? Where would I even start looking?
On Nov 4, 2004, at 6:28 PM, Dave Stewart wrote:
xcodebuild -activetarget -activebuildstyle clean install
DSTROOT=/Users/DWS/projects/tms/deploy
Dave Stewart
Aqua~Flo Supply (Goleta CA)
dstewart at aquaflo dot com
The trouble with doing something right the first time
is that nobody appreciates how difficult it was.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden