Documentation Archive Developer
Search
PATH  Documentation > WebObjects 4.5 > Tools and Techniques

   

Testing With a Web Server

When you're working in direct connect mode, few issues arise with respect to rapid turnaround. If your application has features which require a web server be used even for testing, however, there are a couple of things to know to make rapid turnaround work for you. Specifically, since you are relying on the web server to locate files within WebServerResources, you must follow these guidelines:

  1. Your projects must reside somewhere below your web server's document root.

  2. NSProjectSearchPath should point to all projects of interest.

  3. For application projects, the WOApplicationBaseURL user default should specify the directory containing the application project. For example, if your application's project folder is:

    c:\web\docroot\WebObjects\MyApp

    then the WOApplicationBaseURL user default must be "/WebObjects".

  4. For framework projects, the WOFrameworksBaseURL user default should specify the directory containing all framework projects used by the application. For example, if your application uses MyFramework.framework and that project resides in:

    c:\web\docroot\WebObjects\Frameworks\MyFramework

    then the WOFrameworksBaseURL user default must be "/WebObjects/Frameworks".

Conveniently, the two examples above use the default locations for WOApplicationBaseURL and WOFrameworksBaseURL; if your projects reside in these default locations, you need only set NSProjectSearchPath.

Also, while it is possible to point WOApplicationBaseURL and WOFrameworksBaseURL to other locations, it is not recommended that WOFrameworksBaseURL be moved since all WebObjects applications use WOExtensions.framework, which resides in the default location. If you set WOFrameworksBaseURL to point elsewhere, one side effect will be that the images in the "Raised Exception" panel will not render.


© 1999 Apple Computer, Inc. – (Last Updated July 27 99)