discuss-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: GSWeb and resources in app bundle


From: Johannes Fortmann
Subject: Re: GSWeb and resources in app bundle
Date: Fri, 20 May 2005 17:27:02 +0200


Am 18.05.2005 um 16:27 schrieb Manuel Guesdon:

Hi,

On Sun, 15 May 2005 21:40:41 +0200 Johannes Fortmann <J.Fortmann@gmx.de> wrote:


| First off, sorry if this is the wrong list; I couldn't find a
| gsweb-specific list.


FYI, there's a gsweb specific list:
http://lists.turbocat.net/mailman/listinfo.cgi/gswhackers



| I'm trying to build a little demo app with gsweb. I'm working on OS X | 10.3, and so far everything has been working quite nicely, except for
| one big thing: I can't access any resources of my app.
| Specifically, my app resides at
| /Library/WebServer/Documents/WebObjects/Test.woa.
| I'm trying to access a file named enigma.png residing at
| Test.woa/Contents/Resources/enigma.png.
|
| Now, as far as I understood, there are two different possibilities for
| sending the resource:
| 1. binding to the data property, then implementing a method that
| returns the image data. This works.
| 2. binding to the filename property, and returning a file name.
|
| Now, if I bind to the filename, the resulting webpage references my
| image as /WebObjects/Test.woa/Contents/Resources/enigma.png . Accessing | this file gives me a blank page, even though the file should be there
| (my document root is /Library/WebServer/Documents/).
|
| Do I have to set specific permissions, or anything? Am I doing anything
| totally stupid?
| Please note: I may be blissfully ignorant of anything... this is the
| first time I did any web programming.


Do you use GNUstepWeb or WO ?
Have you checked web error logs to see if there's an error about this image file ?
What is the generated url for the image file ?

If you use GNUstepWeb, as far as I remember, you should put your file in WebServerResources directory. not in a Contents/Resources one. filename is "Path to the image relative to the WebServerResources directory."

Manuel


I'm using GNUstepWeb, configured with the --with-gswnames option enabled; that way I can use the Apple WOBuilder (which uses and interprets only WebObject tags). The url generated is /WebObjects/Test.woa/Contents/Resources/ enigma.png, which is exactly the path that points to the image file; I checked this by removing mod_gsweb.so from apache and trying the URL http://localhost/WebObjects/Test.woa/Contents/Resources/ enigma.png. Also, the error logs don't contain even the slightest error... the access log contains the line "GET /WebObjects/Test.woa/Contents/Resources/enigma.png HTTP/1.1" 200 599
which seems right.
Is it possible that the mod_gsweb module somehow blocks all accesses to stuff beneath the Test.woa hierarchy?

If nobody here knows the solution, I'll probably take my problem to the gswhackers list; however, that list seems quite forbidding (no access to the archives)...

Greetings,
Johannes




reply via email to

[Prev in Thread] Current Thread [Next in Thread]