Hi Kevin, Daniel

Daniel Kao wrote :
>> What is  "WebObjectsDocumentRoot" for in webobjects.conf? because we
>> use 'Alias /WebObjects" in apache2.conf? do we need
>> "WebObjectsDocumentRoot"?
> -- The "/WebObjectsDocumentRoot/" is used by the WO Apache HTTP
> Adaptor to know where your WO application lives on the system. 
> Normally in Apache, you'd set the CGI_DOCUMENT_ROOT, but this
> directive handles it for you, at least according to the documentation
> I've read over.  Both the "/WebObjectsDocumentRoot/" and applicable
> "/Alias/" directives are required for WO 5.4 to operate correctly with
> Apache2.
I just have a look in the Adaptor source, followed the
WebObjectsRDocumentRoot value in the code to find that it is finally
"used" in Adaptor/transaction.c  during the call tr_handleRequest with
:  app.docroot = docroot; 
app.docroot isn't used to build the response as far as I can see.

Also you can start your app with WOApplicationBaseURL and
WOFrameworksBaseURL to set a different location (non standard) for the
WebServerResources of your application. so how the adaptor would handle
that ?  it can't...

so WebObjectsDocumentRoot is useless but I still have it in
webobjects.conf to /var/www/www.mydomainname.tld  as the adaptor tries
to set it. (it just need to be set to something)
(WebObjectsAlias still being important)


But in order to fix the "ERROR/NOT_FOUND" problem you have to look on
WebObjects server side (not in Apache):
In the
$NEXT_ROOT/Local/Library/WebObjects/Applications/MySchool.woa/Contents/WebServerResources/
you need to have basicbrain.gif or any other resources.
If not the application will generate html response with ERROR/NO_FOUND
in the src URL which of course cause au 404 error for the http GET at
the apache level.

I hope this help

regards

Aurelien


ps: I have made a documentation about the adaptor installation in
French, it is available there: 
http://www.cocktail.org/downloads/documents/Mise_en_oeuvre_de_mod_WebObjects.pdf
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-deploy mailing list      (Webobjects-deploy@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-deploy/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to