Stephen,
Thanks for the detailed explanation. Following on from this I have now fixed
the problem with your help.

Turns out I have hosted a test static webpage which I have been using as a
landing page with links to my webobjects app. This site had a root (Web
Folder) set as /Library/WebServer/MySite in Server Admin. It was probably a
mistake not to host this from within the apache default location. but..

Storing my WebServerResources under this folder structure
works(/Library/WebServer/MySite/WebObjects/Contents/WebServerResources)

Or

Changing the root (Web Folder) in Server admin back
to /Library/WebServer/Documents also works if storing WebServerResources
under Library/WebServer/Documents/WebObjects/Contents/WebServerResources

Many thanks for all your help.

I finally feel like I'm getting somewhere. :-)

Mark

On Sat, Aug 29, 2009 at 3:37 PM, Stephen R. Smith <[email protected]>wrote:

> Hi Mark,
> Couple of things to note.
>
> You've mentioned that you're embedding all frameworks, in which case you
> don't need to put the Wonder frameworks into /Library/Frameworks on the
> deployment machine, in fact you want not to. If you're embedding all
> frameworks, you can include different versions of the frameworks in
> different applications deployed on the same server. You also can update the
> Wonder frameworks in one application without having to rebuild and test all
> the other applications deployed on the same server.
>
> Second - when building from Eclipse (I'm assuming you're building from
> Eclipse with WOLips), right click on the build.xml file in the WOExplorer
> view, and choose WOLips Ant Tools -> Install...
>
> Confirm that any required packages are included (for example, of your
> application includes several custom frameworks, make sure they are all
> checked), and the application will be built into your local
> Library/WebObjects/Applications directory in several parts.
>
> *YourApp-Applications.tar.gz* - this is the .woa application bundle that
> should be copied to Library/WebObjects/Applications and expanded on the
> deployment machine
>
> *YourApp-WebServerResources.tar.gz* - this is the .woa bundle with only
> the WebServerResources contained in it, and this should be coped to
> Library/WebServer/Documents/WebObjects/ on the deployment server.
>
> *NOTE*: This assumes that Library/WebServer/Documents/ is the root for the
> domain your application is hosted from, for example - we host multiple sites
> on a deployment server, each having their own root directory, so each has
> their own nested WebObjects directory containing the web server resources
> for the app for that domain.
>
> Library/WebServer/Documents/_clientOne/WebObjects/clientOneApp.woa
> [containing just the web server resources]
> *Library/WebServer/Documents/_clientTwo/WebObjects/clientTwoApp.woa
> Library/WebServer/Documents/_clientThree/WebObjects/ clientThreeApp.woa*
>
> Have a look in Server Admin on the deployment machine at the site
> configuration for the domain you're accessing the application through. If
> the *Web folder: *setting is anything deeper
> than/Library/WebServer/Documents, you'll need to move the
> /WebObjects/YourApp.woa - web server resources there too.
>
> *The Ant build script sets the right permissions on everything for a
> default install, so you shouldn't have to change that.*
>
> *The only other thing that may throw you is that accessing the application
> through the link on WOMonitor may use a different URL path than the one
> you'll normally use, and may appear to not be working only because of the
> way you are accessing it.*
>
> *For example, if you've configured Java WOMonitor to use the server's IP
> address, then clicking an application link in WOMonitor to launch the app
> will use an URL of http://IP_Address/cgi-bin/WebObjects/YourApp to access
> the application, and if that path isn't configured on the server to access
> the same document root as http://Your_Domain/cgi-bin/WebObjects/YourApp -
> you'll get the application, but the relative URL's to the web server
> resources won't resolve properly. Be sure to test the application with the
> URL you intend to use for actual deployment to be sure it's actually 
> notworking before you try to fix it.
> *
>
> *Best,*
> *:Steve
>
> --
> Stephen R. Smith
> Partner
>
> Align Software Inc.
> 2054 Halton Place, Burlington, Ontario, Canada, L7R 1P7
> T  : 905.633.9178
> C : 905.464.4440
> F  : 905.634.1064
>
> [email protected]
> http://www.alignsoft.com
> *
>
>
>
> On Aug 29, 2009, at 6:27 AM, Mark Ainge wrote:
>
> I have successfully deployed a webobjects app onto a OS 10.4 Server. The
> app launches and runs fine, but associated style sheets and images are not
> loaded. I have checked apaches logs and can see 404's for the images and
> stylesheet.
> I have unzipped and copied the WebServerResources.tar.gz into my servers
> /Library/WebServer/Documents/WebObjects/ directory under a folder name
> matching my app. (Full path to stylesheet
> is 
> /Library/WebServer/Documents/WebObjects/MyApp.woa/Contents/WebServerResources/StyleSheet.css)
>
> My webserver is a stock install of Mac OS Server 10.4.11 with wonder
> frameworks placed in (/Library/Frameworks/). My app is a Wonder app based on
> WebObjects 5.3.3 and embeds all frameworks.
>
> Can anyone suggest what I may be missing? Do I need to apply a argument
> when deploying? I develop with directconnect = true, is this my problem? Is
> my folder permissions for my MyApp.woa folder wrong (ie does it need to be
> something specific)?
>
> Any help would be appreciated?
>
> Mark
>
>
> _______________________________________________
> 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/ssmith%40alignsoft.com
>
> This email sent to [email protected]
>
>
>
 _______________________________________________
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]

Reply via email to