Well, it didn't work. I still get an Apache test page.
There is now a complete copy of the app at
/Library/WebObjects.MyApp.woa and
/Library/WebServer/Documents/WebObjects/MyApp.woa
Here is what I did:
1. the /System/Library/StartupItems/WebObjects/WebObjects file now
has the line which allows WOMonitor to run at boot uncommented.
2. I also made sure the line in
/System/Library/WebObjects/Adapters/Apache/apache.conf has this
WebObjectsDocumentRoot line as follows:
WebObjectsDocumentRoot /LibraryWebServer/Documents
3. I used WOMonitor to add:
- the host (the local internal ip address, NOT the external ip address)
- the application (using the path wizard to point to the MyApp file
inside the MyApp.woa bundle)
- I added an instance of the application running on that host
I did not edit the /etc/httpd/httpd.conf file
I did copy the entire MyApp.woa into both /Library/WebObjects/
AND
/Library/WebServer/Documents/WebObjects/
Problems:
A. In WOMonitor, the link for the name of the App is blue, and if you
click it, it runs (without any graphics, despite the fact that they
are all there in MyApp.woa/Contents/WebServerResources/)
B. In WOMonitor, the link under host port also is blue, and runs the
app with all the graphics except the background .gif (which I can't
seem to get working anyway except hardcoding the html. . . . and even
that isn't working at the moment, if someone has a better idea for
this, I'd be happy to hear it)
C. Again, trying to reach the site from elsewhere seems to get an
apache test page http://playhousecomedy.com
I am using a dynamic dns service called zoneedit and a dnsupdate
daemon called, DNSUpdate. These seem to be working.
I really am getting frustrated with WebObjects. If I can't get this
thing working, I may throw up a simple static page and learn jsp or
something.
I have to get this working immediately, and therefore I hope someone
can help.
Thanks.
Andrew
On Nov 28, 2004, at 6:47 PM, Denis Stanton wrote:
On Nov 29, 2004, at 12:22 PM, Andrew Kinnie wrote:
OK, I finally managed to get the site to appear when I click the
application name link, but now none of the graphics appear.
I checked the source, and the source for the images is set to
/WebObjects/MyAppName.woa/Contents/WebServerResources/ I tried to
edit the apache.conf to have the WebObjectsDocumentRoot be
/Library/WebObjects/Applications but this has no effect.
The quick fix for this is to COPY (not simply move) your
MyAppName.woa file to /Library/WebServer/Documents/WebObjects/
This will let Apache find the resources as per the URL above.
the longer fix is to read up on 'split install'.
The graphics are inside your XXX.woa file, but Apache will expect to
find that inside its own document root i.e
/Library/WebServer/Documents/, not inside /Library/WebObjects
If you put it in both places WebObjects will find the app where it
expects it and Apache will find the graphics where it expects.
You can do things with symbolic links to avoid the need to copy each
new build into two places
Denis
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-deploy mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
email@hidden
This email sent to email@hidden