The JavaServer FAQ has the following sections:
NOTE: For answers to commonly asked questions about using and writing servlets, see Frequently Asked Questions About Servlets.
For a list of known bugs and their workarounds, see Known Bugs. Please review this list before reporting a bug.
Server:
Reference:
There's no "package" to install at this time. We are using
a two distribution formats, tar files, which works on all the
platforms we support, and Win32 .exe
files for
Windows platforms. Packages only work on Solaris and other
UNIXes derived from System V release 4 sources. Just "untar" the
distribution and follow the installation instructions.
Why do I get a "Cannot locate java runtime" error when trying to start the server?
Make sure of the following:
You need to modify the classpath used by your compiler so that it includes the JavaServer lib/classes.zip file. With JavaSoft's JDK, you can do this either by modifying the CLASSPATH environment variable or by passing a suitable -classpath flag to the javac compiler invocation. Some other Java compilers have different requirements.
Why do I get java.lang.NoSuchMethodError: java.net.InetAddress ?
JavaServer requires JDK1.1 or later to run. Your CLASSPATH environment variable is pointing to earlier version of the JDK. If you're using JavaSoft's JDK, download the latest version of the JDK and add it to your CLASSPATH (instructions are included with the JDK). Otherwise, if you're not using JavaSoft's JDK, then get the upgrade which your product vendor should have made available by now.
How can I get the server to start automatically when the machine boots up?
For the Solaris platform we currently provide an /etc/rc script, the server_root/etc/java-server.startup file; read this for installation instructions. Support for other platforms will be provided in one of our future releases.
In a Unix environment do I need to set my CLASSPATH variable?
No. When running the Java Web Server in a Unix environment it is better to unset the CLASSPATH variable. The CLASSPATH variable is handled by the http daemon, httpd.
Make sure httpd is running as root. If you still see this problem when running as root, it might be a bug with the operating system. Solaris 2.5 has a bug which will not allow this to work. Upgrading to 2.5.1 or later will fix this problem.
Does JavaServer administration conform to JMAPI?
A high level description of JMAPI is: "A Java Management API that provides a rich set of extensible Java objects and methods for building applets that can be used to manage an enterprise network over Internets."
We are not writing a tool to manage an enterprise network. We are writing one that is a component that can be managed in such a framework. So our roadmap includes plans to fit our tool into existing system and network management tools as required by our customers. Tools using JMAPI, SNMP, and CMIP are all possible candidates for such integration.
In addition we plan to integrate with existing operating system facilities as much as possible. For instance, while we provide our own user, group, and ACL management, our first release includes support for existing Unix users. Standard tools can be then used to administer security policies and we will work with those.
This is the log file which servlets and server can use for messages of arbitrary format. Arbitrary format is also used by the Error Log. The Access Log uses the common log file format.
Why do we use the properties format in administration?
Properties are what Java applications (i.e HotJava) use for default administration. They are simply a series of name-value pairs. We do not anticipate administrators needing to manually modify most of the administration files, since we are currently working on web based administration tools.
Why do users I've added disappear and users I've deleted reappear?
When upgrading the JavaServer, the configuration files may be overwritten. To avoid this, the current workaround is to copy your current configuration files to a safe location during a JavaServer upgrade. Copy the old/safe configuration files over the new ones once the upgrade is complete. This problem will be remedied in the future by a more robust installation procedure.
There are a number of sources for more information on the Java Programming Language. General information is available at the JavaSoft Web Site, including a Java tutorial, a free binary release of the Java Developers Kit, and extensive documentation. There are also a number of books available on Java - see your local technical bookstore for a selection.
Where can I find more information on HTTP and other W3 Protocols?
A good site for information on World Wide Web Protocols is available on the W3C Protocols page. This mainly has HTTP information, but also has links to information on other protocols.
Where can I find more information on CGI?
NCSA's Common Gateway Interface page is a good resource for CGI information. It includes information on how to use CGI with form output.