The JSP Command-Line Compiler
Chapter 4 Using JavaServer Pages 43
The cache has a Version file containing a version number that the server uses to
determine the structure of the directories and files in the caches. You can clean out
the caches by simply deleting the version file.
When the server starts up, if it does not find the version file, it deletes the directory
structures for the corresponding caches and re-creates the version file. Next time
the server serves a JSP page, it recreates the JSP class cache.
You can delete the version file simply by deleting it from the
ClassCache directory
as you would normally delete a file, or you can use the Java>Delete Version Files
page in the Server Manager to delete it. After deleting one or both version files, be
sure to restart the iPlanet Web Server to force it to clean up the appropriate caches
and to recreate the version file before the server serves any JSPs.
The JSP Command-Line Compiler
You can precompile JSPs for faster performance; this is recommended for
production servers. A command-line JSP compiler is included with iPlanet Web
Server. The JSP compiler is located under server_root
/bin/https/bin (make sure
this directory is in your path). The
IWS_SERVER_HOME environment variable must
be set to the server_root directory.
The format of the
jspc command is as follows:
jspc [options] jsp_files
The jsp_files can be one of the following:
The
options for the jspc command are:
files One or more JSP files to be compiled.
-webapp dir A directory containing a web application. All JSPs in the
directory and its subdirectories are compiled. You cannot
specify a WAR, JAR, or ZIP file.
-q Enables quiet mode (same as -v0). Only fatal error messages
are displayed.
Komentarze do niniejszej Instrukcji