Installation guide

5. SERVLETEXEC APPLICATION SERVER (WINDOWS)
ServletExec 4.1 Installation Guide 61
addition to java command arguments, ServletExec/AS accepts several required and
optional arguments. You can also start a ServletExec/AS instance using the
StartServletExec.bat file. The following sections describe both methods.
5.6.1.1 StartServletExec.bat
The batch file StartServletExec.bat is provided for your convenience in starting
the ServletExec/AS instance. It is also used by Services to start the ServletExec/AS
instance.
StartServletExec.bat includes defaults for all java and ServletExec/AS command
line arguments. You can edit StartServletExec.bat to modify them. The next
section features a complete list of ServletExec/AS command line arguments.
5.6.1.2 Using the java Command
We recommend you use the StartServletExec.bat file or Services to start a
ServletExec/AS instance. However, it is possible to start a ServletExec/AS instance from
a DOS command prompt using the java command. The information in this section can
also help you edit the StartServletExec.bat file to modify the startup parameters
for a ServletExec/AS instance.
To start a ServletExec/AS instance using the java command
From the command line, type the following:
java [java arguments] ServletExec [ServletExec/AS arguments]
Important
The java command arguments must include the –classpath option specifying the
path to the ServletExec41.jar, servlet.jar, crimson.jar, jaxp.jar, and
jndi.jar archives.
Start ServletExec/AS arguments
If an option value contains spaces then the entire value must be placed inside double
quotes, as in the following example:
-name “Local Instance”
See the following table for a complete list of available arguments.
Argument Explanation
-help
Displays all available arguments and
explanations.
-port <port number>
Optional. The default value is 8888. This
argument specifies the TCP/IP port on
which the ServletExec/AS instance
communicates with the web server
adapter(s). If you modify this value, you
must also modify the web server
configuration file(s) as described above.
-backlog <length>
O
tional. The default value is 50. This