Mac OS X 10.1: Opening WebObjects Applications Without a Network Connection

This document explains how to open a WebObjects application when no network connection is available in Mac OS X 10.1.
Symptom

Project Builder opens an Internet Explorer window when opening a WebObjects application. If the computer is not connected to a network, the browser does not load the application because it is unable to find the server's address. A similar issue can arise if the computer has an incomplete network configuration.


Solution

Solution 1: Select an alternate default browser to open .html files

You must have another browser installed on your computer to use this solution (see note for browsers tested).


Note: The following browsers were tested: OmniWeb, Netscape 6, iCab. You can perform the test yourself. Start Web Sharing in the System Preferences and load "localhost" in your browser. When the computer is not connected to the network not alert box should appear.

Solution 2: Use an IP address

In Mac OS X, Internet Explorer can load local addresses with no network connection if a numerical address of "127.0.0.1" is used instead of "localhost".


Solution 3: Set a local name for your computer

This solution requires administrator privileges and some Unix command-line knowledge. If you don't feel comfortable with these, use one of the previous solutions. The terminal commands are listed in fixed width font.

If Project Builder already loads a host name other than "localhost", go directly to step 7.


Project Builder will now use your computer name instead of "localhost" and the application will load properly.

Published Date: Feb 19, 2012