TOPIC This article contains frequently asked questions (FAQ) regarding WebObjects 4 Deployment, with answers to those questions. This FAQ does not include questions involving Monitor or MonitorProxy; for Monitor issues, please see the WebObjects 4 Monitor FAQ, article 70121 . DISCUSSION
Questions answered in this article: Question 1: Where can I get the latest documentation? Answer : Current WebObjects documentation is available on the Apple DevWorld WWW server at http://devworld.apple.com/dev/SWTechPubs/Documents/WebObjects/ It is available in HTML and PDF formats. Documentation is also available as part of your WebObjects installation, at:
file://$NEXT_ROOT/System/Documentation/Developer/WebObjects/ServingWebObjects.pdf
Question 2 : What does the $NEXT_ROOT/Library/WebObjects/Configuration/WebObjects.conf file do? How about the /tmp/WebObjects.conf file? What is the difference? Answer : $NEXT_ROOT/Library/WebObjects/Configuration/WebObjects.conf is the "Public" WebObjects.conf file. /tmp/WebObjects.conf is the "private" WebObjects.conf file. For more information on public and private WebObjects.conf files, please see article 70040 . Question 3 : How do I go about using multiple Web Servers? Answer : To deploy on multiple web servers, the public WebObjects.conf file needs to be distributed to all web server machines. The best technique is to run Monitor on one app server, and rdist or rcp the WebObjects.conf file to all the webservers. That way you do not need to run Monitor on the webserver and you are not forced to NFS mount a single file system. You could have the webservers "pull" rather than push if security is an issue. Question 4 : For some reason, the public WebObjects.conf file is not being updated by Monitor. Everything is configured correctly, what am I doing wrong? Answer : Check your license. If your license is only for a single application instance, then the public WebObjects.conf file will not be updated and requests for the startup for multiple instances will silently fail. Question 5 : How do I turn on adaptor logging? Answer : Go to the /tmp directory and create a file called "logWebObjects". Depending on the adaptor and its settings, the amount of time that the resultant log file "WebObjects.log" will be created varies greatly. If it is the CGI adaptor, the next time the adaptor is run, it will check for the log. In fact, everytime the CGI adaptor receives a hit, it will check the current configuration files and the existance of the "logWebObjects" file. The NSAPI, ISAPI, Apache, and WAI adaptors are set by the compile options in /opt/Apple/Developer/Examples/WebObjects/Source/Adaptors/Adaptor/config.h:
#define TPSEC 1 /* expected WO-requests / second */
Also, remember to check the web server logs. In particular, the Netscape log is pretty good about reporting what the NSAPI adaptor did on startup. Question 6 : How do I restart the adaptor? Answer : For all adaptors other than CGI, you'll need to restart the web server. Question 7 : How can I confirm that the adaptor is running? Answer : In the game "Adventure", xyzzy is a "magic command" that allows you to transport yourself between two rooms. Xyzzy is also an option that you can enable when you compile your own adaptor. It provides a very cheap way of checking to see if the adaptor is running and to get some basic information on the adaptor. Once again, in the file: /opt/Apple/Developer/Examples/WebObjects/Source/Adaptors/Adaptor/config.h: set the option:
#define XYZZY "xyzzy"
After recompiling the adaptor, and restarting the web server, try entering a URL such as: http://your_web_server/cgi-bin/WebObjects/xyzzy The following output is an example of what you'll see:
Server Adaptor: Server = Netscape/NSAPIWebObjects
Answer : Apple provides Sybase, Oracle and generic ODBC adaptors for most versions of WebObjects. Third-party adaptors may be available for other databases, including Informix, Quickbase, AS/400, Supra, DB2, Gupta SQL Base, VSAM, ADABAS, IMS/DB, and NCR Teradata. Other databases may be accessed programmatically through custom libraries provided by your database vendor. Question 9 : How do I configure Microsoft IIS for WebObjects?
Answer
: If you're using Microsoft IIS or PWS as your HTTP server, The CGI user must have Administrator privileges to access the NEXT_ROOT environment variable. This is necessary if you want to enable load balancing (distributing the processing load among multiple instances of a WebObjects application). Load balancing is a performance feature that you'd use on a deployment site.
Answer : It seems that on some systems the /tmp or C:\TEMP directories either don't exist or don't have read/write permissions set correctly. Be sure the directory can be seen and accessed by all. WebObjects, other apps and users need access to this directory to work properly. On Windows NT, also make sure that your environment variables (TMP and TEMP) are set to C:\TEMP.
|
Document Information | |
Product Area: | WebObjects |
Category: | WebObjects 4 |
Sub Category: | Deployment |
Copyright © 2000 Apple Computer, Inc. All rights reserved.