Hi Scott.
First, have you read Apple's Deployment Guide. It is full of good
and important information.
On May 2, 2007, at 9:30 AM, Scott Winn wrote:
Hello Group,
I am having trouble getting my first WebObjects app deployed.
Using XCode
You have my sympathies.
and Mac OS X Server 10.4.9 on a G5
I went into my project directory with the terminal and compiled the
project with . . .
sudo xcodebuild install -configuration Deployment DSTROOT=/
sudo xcodebuild install -configuration WebServer DSTROOT=/
MyApp.woa made it successfully to /Library/WebObjects/Applications
but there is no sign of WebServerResources in the /Library/
WebServer/Documents/WebObjects. (Need to move MyApp.woa to the
folder manually, Problem 1)
I launched the above app by dragging MyApp (executable) in the
MyApp.woa package to the terminal and hitting return. It runs.
That is no small miracle. You need to cd into the MyApp.woa
directory first for everything to run OK.
The browser auto launches (not sure why) and the URL is
hostname.local:port/cgi-bin/WebObjects/MyApp.woa like a development
build. Any attempt to see it from the website's domain name
fails. I also get a JDBC Adaptor Exception when the database is
queried. (FrontBase Framework not available I expect, Problem 2)
What do you expect running it from the command line? That is not
proper deployment and tells you nothing. Configure it in
JavaMonitor. Launch it from there.
wotaskd seems to be up and running (I can go to http://localhost:
1085/ and see the xml anyway).
Java Monitor is running.
DNS is good (to the router at least) in forward and reverse
lookup. I have no local network DNS service running. My server's
hostname is not localhost. /etc/hostconfig HOSTNAME=-AUTOMATIC-.
I remember reading about some Server Monitor issue if you didn't
have a local DNS service and your hostname was different, but
somehow (in my very limited understanding of all things server) it
didn't seem to apply to my situation.
First try to setup the app with Java Monitor. . .
Java Monitor will only take the server's local IP as a Host. It
can't find the server if I try to add a host with the site's domain
name (that points to the router, that forwards port 80 to the server).
Sounds like a DNS lookup problem. Fix this before continuing.
The WO app is setup and running (or at least Java Monitor says it
is), but . . .
Clicking the Instance link gets "No instance available"
http://<website>/cgi-bin/WebObjects/MyApp.woa/1
Clicking the App name link gets "The requested application was not
found on this server"
http://<website>/cgi-bin/WebObjects/MyApp
Clicking the IP address gets "Can't connect to the server"
http://<Local IP Address>:2001/
I also get "Deaths" showing up after it has been running for a
short time. No idea why. It is not like anyone is using it.
It is crashing. Check the app log.
Second attempt. . .
I set the Router to pass port 1085 to my local server IP. Now I
can setup the site's domain name as a host in Java Monitor (and it
shows my outside IP address under the hostname), but I can't start
an instance. In Detail View the On / Off switch keeps going back
and forth.
Could be a permissions problem.
http://www.gvcsitemaker.com/gvc.webobjects/
faq&mode=single&recordID=19193&nextMode=list
See also http://www.gvcsitemaker.com/gvc.webobjects/faq
Chuck
Third attempt . .
I let the router get through to port 2001, where it seems to set
the first instance. Still no joy. Not surprising since the Status
switch in Detail View is still flipping on and off.
I don't know what to try next. I could use changeip and try to put
the hostname back to localhost, but I'm not sure how to use it. My
IP was DHCP, now it is static (changed maybe a month or so back).
I'm not sure which IP to give changeip or how I could possibly
give it a former DHCP address. I didn't run changeip when I went
over from DHCP to static. I don't know if that matters or not.
The first two problems I mentioned don't seem to apply to the
larger issue. I have a very standard configuration here. I'm not
trying to do anything fancy, just make a WO app with a few extra
frameworks available to the outside world.
Thanks for any assistance.
Scott
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-deploy mailing list (Webobjects-
[EMAIL PROTECTED])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-deploy/chill%
40global-village.net
This email sent to [EMAIL PROTECTED]
--
Practical WebObjects - for developers who want to increase their
overall knowledge of WebObjects or who are trying to solve specific
problems.
http://www.global-village.net/products/practical_webobjects
_______________________________________________
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]