WebObjects 4.5.1: Adaptor Source Will Not Compile on Mac OS X Server 1.2

This article describes how to fix the WebObjects 4.5.1 adaptor source so it will compile on Mac OS X Server 1.2
Symptom

After running the make command or building in ProjectBuilderWO you see these messages:

In file included from ../Adaptor/cohostedapps.h:16,
                from ../Adaptor/cohostedapps.c:18:
../Adaptor/WOAppReq.h:41: `WA_MAX_APP_NAME_LENGTH' undeclared here (not in a function)
../Adaptor/WOAppReq.h:42: `WA_MAX_HOST_NAME_LENGTH' undeclared here (not in a function)
../Adaptor/WOAppReq.h:45: `WA_MAX_INSTANCE_NUMBER_LENGTH' undeclared here (not in a function)
.
.
.



Solution

Note: This issue is caused by files left behind from a previous version of WebObjects. The WebObjects 4.0.1 adaptor source was included in the DeveloperDocs package from the Mac OS X Server Developer Tools.
Published Date: Feb 18, 2012