Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: WO Document Root
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: WO Document Root



Hi Andrew,

You seem like you're making things very complicated for yourself. For starters, it sounds like you're building your application incorrectly for deployment.

It's a bit problematic to have a copy of your entire application bundle in the Web server's document root. This allows anyone--regardless of permissions--to potentially download your application, decompile, and have access to the internals of your application and EOModel. Avoiding this situation is the whole point of WebObjects' split install feature.

Build your application in XCode and do a split install. This will create two separate application bundles, one containing the private portions of your application (ie. the application jar file, model, etc), and another containing only your WebServerResources.

Colin

---
Colin Clark
Dynamic Web and Database Development Lead,
Resource Centre for Academic Technology,
University of Toronto

On Monday, November 29, 2004, at 09:04  AM, Andrew Kinnie wrote:

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


_______________________________________________ Do not post admin requests to the list. They will be ignored. Webobjects-deploy mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >Re: WO Document Root (From: Andrew Kinnie <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.