I posted this on the development list as part of another programming
related issue (I thought, it was actually a Java 1.5 issue). I did
get a response with a link to a site with a command line deployment
tool. However, I still would like to understand the basic issue
better, and hopefully avoid using a command line tool, split builds,
etc. I also seem to remember already solving this once, but can't
seem to get it working this time.
Basically, I have a site that has been working using WO 5.3 on a Mac
OS X 10.4 Client machine. It's very small, it's for a comedy club,
so there's not much in the way of hits (it's also pretty ugly IMHO,
but the owner likes it the way it is, so I can't make it prettier -
http://www.playhousecomedy.com). There're few graphics. I develop
it on my laptop, and deploy it on another 10.4 client machine.
Ideally, I'd like to be able to make whatever changes I need to make,
build it, test it on my development machine, then take the
resulting .woa, zip it, send it to the other machine, put it in the /
Library/WebObjects/Applications/ folder, then stop and start it again
in Java Monitor.
I don't want to deal with split builds (unless and until I understand
everything along the process much better than I currently do). I
haven't made changes to the thing for months, but the last time I
did, I did it this way (if I remember correctly).
Now, literally a couple hours after I updated to Java 1.5 on my
development machine, I needed to make an absurdly small change (I
needed to change the name of one string variable to the name of
another string variable). I was first getting a weird EO issue on
my development machine (that was a side-effect of Java 1.5 - dates
acting as scientific notation). I tried to deploy that anyway, think
if it was running on the deployment machine, it may not have that
effect. Monitor would not run it.
I changed my development JVM to 1.4 and that didn't help. I updated
the Openbase JDBC driver to solve the EO issue, which it did, but
Monitor still would not run it. I then saw the WO kbase article and
set the target of the app to Java 1.4 according to that, and that
also had no effect. These were all tried with the Development build
configuration.
Along in here I tried to set the build configuration to "Deployment"
instead of "Development" and was getting permissions issues (didn't
have permission to write to /tmp/Library....), and errors saying
there was "No Executable at the Launch path." I deleted the build
directories, the "/tmp/Library...myApp.dst" directories, etc. This
avoids the permissions problem, but not the no executable at path
problem. I still didn't seem to get a valid deployment build.
I noticed that the build folder had a "Deployment" subdirectory which
contained an alias which points to /private/tmp/myApp.dst/Library/
WebObjects/Applications/MyApp.woa
That file (the one it points to) it 8kb
I am therefore very confused.
Can someone explain to me:
1. The actual practical difference between the development and
deployment build configurations (it seems to me that they each create
a folder in the build folder called "Deployment" or "Development" and
the "Deployment" version has an alias (symbolic link?) to another
location.
2. What is this MyApp.dst in /private/tmp/, do I need it, and is this
working correctly that I can't build or clean it, but need to
manually overwrite it? (if the development build should work, I'm
happy with that, but I'd still like to know)
Note there also does seem to be a .woa in /Library/WebObjects/
Applications and this "runs" but this fails immediately with an
exception due to no having a class description for one of the EOs
Thanks.
Andrew
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-deploy mailing list ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-deploy/archive%40mail-archive.com
This email sent to [email protected]