Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

WebObjects deployed on 10.6.1 - after Upgrade to 10.6.5 Error 404

Hi there,

we migrated a server from 10.5.8. to 10.6.1 onto a new machine.

Afterwards we deployed WebObjects like it is mentioned here: http://wiki.objectstyle.org/confluence/display/WO/Deployingon+Mac+OS+XServer
(Installing with the Apple installer)

All Systems seem to work but we get a 404 error when trying to access the WebObjects Application.

We got the fix for that here: http://osdir.com/ml/webobjects-dev/2010-04/msg00044.html

Unfortunately after updating to 10.6.5 we got the same issue again but this time the values of ScriptAlias and ScriptAliasMatch in the /etc/apache2/httpd.conf seems fine. Nevertheless we tried all possible combinations of these values (and restarting apache with +apachectl restart+ every time). Nothing helps. This time the problem seems to be located elsewhere.

The fix on this site: http://osdir.com/ml/webobjects-dev/2010-11/msg00613.html doesn't work either, because the values already were:

<Directory "/">
Options FollowSymLinks
AllowOverride None
</Directory>


I hope the quotation marks are correct, because they were not set by us but without them the problem persists. There is no other description for the directory / in the file.

The error in the logs shows that apache still points to the wrong location:

Script not found or unable to stat: /Library/WebServer/CGI-Executables/WebObjects


Current values of ScriptAlias and ScriptAliasMatch

ScriptAliasMatch ^/cgi-bin/((?!(?i:webobjects)).*$) "Library/WebServer/CGI-Executables/$1"
ScriptAlias /cgi-bin/ "/Library/WebServer/CGI-Executables/"


Any help is really appreciated!

Thanks a lot!

Best wishes from Germany!

Message was edited by: ragob66

MacBook Pro (3,1) Intel Core 2 Duo 2,2GHz, Mac OS X (10.6.5), 4GB Ram, 500GB HDD

Posted on Dec 20, 2010 3:06 AM

Reply
Question marked as Best reply

Posted on Dec 20, 2010 5:21 PM

Just based on your settings for ScriptAlias and ScriptAliasMatch my system has

ScriptAliasMatch ^/cgi-bin/((?!(?i:webobjects)).*$) "/Library/WebServer/CGI-Executables/$1"

which indicates a missing / at the beginning on your item. This would direct your path to the user library instead of the root library where apache2 is active.
secondly

ScriptAlias "/Library/WebServer/CGI-Executables"
which is less the trailing / that your item indicates. The trailing slash problem is mentioned in the comments as

# If you include a trailing / on /webpath then the server will
# require it to be present in the URL. You will also likely
# need to provide a <Directory> section to allow access to
# the filesystem path.

HTH,
Harry
2 replies
Question marked as Best reply

Dec 20, 2010 5:21 PM in response to ragob66

Just based on your settings for ScriptAlias and ScriptAliasMatch my system has

ScriptAliasMatch ^/cgi-bin/((?!(?i:webobjects)).*$) "/Library/WebServer/CGI-Executables/$1"

which indicates a missing / at the beginning on your item. This would direct your path to the user library instead of the root library where apache2 is active.
secondly

ScriptAlias "/Library/WebServer/CGI-Executables"
which is less the trailing / that your item indicates. The trailing slash problem is mentioned in the comments as

# If you include a trailing / on /webpath then the server will
# require it to be present in the URL. You will also likely
# need to provide a <Directory> section to allow access to
# the filesystem path.

HTH,
Harry

Jan 4, 2011 5:07 AM in response to harry-pmsi

Hi Harry,

thanks for your reply. Sorry I mistyped it. The Path in the file is totally identical to yours.

Nevertheless we solved this problem by restoring the PreSnowLeo httpd.conf in /etc/apache2. Now everything seems to work perfect.

Another problem with WebObjects is that teaming of the two Ethernet cards doesn't seem to be supported. If you enable teaming you get the message "The port is still in use" of all of your WebObjects Applications (in WO Monitor). A restart of WebObjects and Apache helps, but only until the next reboot. That is a pity.

Thanks a lot for your help!

Best wishes

WebObjects deployed on 10.6.1 - after Upgrade to 10.6.5 Error 404

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.