When configuring the ArcGIS Web Adaptor (Java) using the configurewebadaptor.sh script provided in <install path>/java/tools, the script fails if the user running the web server does not have a home directory defined.
Configure the user running the web server to have a home directory defined and ensure the user running the configurewebadaptor.sh script has write permissions to it