Documentation Archive Developer
Search
PATH  Documentation > WebObjects 4.5 > WebObjects Developer's Guide


Table of Contents Previous Section

Debugging Without a Web Server

WebObjects applications are meant to be used in conjunction with a web server. When you are in development mode, however, you do not have to use a web server to interact with the application. Instead, you simply specify the number of the port where the application should receive requests using the WOPort user default. By default, WOPort is -1, which assigns an arbitrary high port number to the application. Thus, if you specify no port number at all, you can still run your application without a web server. However, it is probably a good idea to assign a specific port number to your application. To do so, use the following command in a command shell window:

% defaults write MyWebApp WOPort portNumber 
When a port number is assigned to an application, you can access it by typing the following URL in the browser (provided the application is already running):

http://localhost:portNumber 

Table of Contents Next Section