Re: First Deployment Help
Re: First Deployment Help
- Subject: Re: First Deployment Help
- From: Chuck Hill <email@hidden>
- Date: Wed, 2 May 2007 12:01:16 -0700
On May 2, 2007, at 11:55 AM, Scott Winn wrote:
On May 2, 2007, at 10:53 AM, Chuck Hill wrote:
Hi Scott.
First, have you read Apple's Deployment Guide. It is full of good
and important information.
Yup. And I'll be reading it again soon I fancy. The boss is going
nuts. This was supposed to be deployed tomorrow.
At least it was not yesterday. :-P
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.
Only tried it because the "Standard Deployment" guide on
Programming:WebObjects WikiBooks said to do it.
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.
What should the Host in Java Monitor look like?
foo.bar.com
with a tiny IP below it
The Apple example shows a domain name with an IP. I can get a
domain name (web address) by opening up wotaskd's port 1085 to the
outside world on my router, otherwise Java Montior says it can't
find the server.
That seems wrong. JM should be behind the firewall, not in front of it.
If I use the server's local IP for the host, I get No Instance or
App not found.
I don't know what to do or even try. Everything is very standard.
One server, one router, one domain name, no virtual hosts, etc. The
website URL works. The WebObjects app runs locally, but I can't
get it to the outside world. If an outside web connection can get
to my server what is preventing it from getting to my WebObjects
application?
How do you have all these boxes setup WRT the firewall?
Chuck
I setup two hosts one on the local IP and the other on the domain
name just so I could see one instance of the app running and the
other trying to run. It is not a permissions problem (see below).
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.
It didn't produce any logs in the last location I gave it (when It
was crashing). Now that I have changed it to /tmp it hasn't
crashed (yet). It does say that it is running and waiting for
requests.
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
Thanks for the link. the sudo -u appserver commands work ok for /
Library/WebObjects/Applications/MyApp.woa/MyApp and the logging
location. I changed the log location to /tmp just to be safe.
Still the same problems described above.
Any continued assistance is even more appreciated.
Scott
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@hidden)
Help/Unsubscribe/Update your Subscription:
40global-village.net
This email sent to email@hidden
--
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
--
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-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden