37
You can get extra information about the services you have installed by going to the Administrative Tools
icon of the Control Panel. Here you will see a Services icon which you can open. The Services dialog
that opens will show the services that have been installed on your machine, you should see one for Tomcat. The
dialog will tell you if the service has started or not and will tell you how it is launched. Typically the installer makes
it an Automatic startup type which causes it to launch when the computer is booted. Clicking on the Tomcat entry
and selecting Properties will give you a dialog that allows you to configure the service.
Running Tomcat as a service works well if the JDK is 1.4. The JDK is found by searching for java.exe on the
Windows path so you need to make sure that the JDK you installed earlier is found.
2.6.3 Web Server Connections
In some configurations, the main accessible server is a regular web server such as the Apache HTTP server, the
Microsoft Internet Information Server, or the Netscape Enterprise Server. It is possible to use such a server in
conjunction with a servlet container. This type of configuration is more complicated, but can take advantage of
many additional features, for example, authentication and URL rewriting, and is often suitable for an existing web
infrastructure. This section gives a brief description of configuration for some typical arrangements. It is probably
useful to configure your servlet container to work in a stand alone mode before starting any of this work.
If you wish to use webMathematica in conjunction with a separate web server, you will need to make sure that all
requests to webMathematica are forwarded to the webMathematica web application. This will make sure that
requests for applet archives, HTML pages, and images are properly processed. If the server is only set to allow
access to servlets, then these other resources will not be accessible.
If you just wish to test webMathematica running directly through a servlet container such as Tomcat, you may skip
this section.
Apache and Tomcat
There are a number of ways for the Apache web server to communicate with Tomcat. One convenient way is to use
an HTTP forwarding mechanism to send requests from the Apache web server to Tomcat. This can be arranged with
the ProxyPass configuration directive. A sample configuration, that could be added to the Apache configuration
file (typically called httpd.conf), is shown below.
Order allow,deny
deny from all
ProxyPass /webMathematica http://tomcatserver:8080/webMathematica
ProxyPassReverse /webMathematica
http://tomcatserver:8080/webMathematica
The ProxyPass directive provides a mapping from a path to an external URL, and the ProxyPassReverse
directive causes the responses to be modified so that the proxy is transparent. Any access to /webMathematica
will be sent to port 8080 on the machine tomcatserver. The configuration also denies access to the KernelMon
itor via the proxy, the features of the KernelMonitor are described in a
later section
.
For the ProxyPass directive to be effective the modules mod_proxy and mod_proxy_http must be loaded,
this can be done with the following configuration information in the Apache configuration file.
.
<
New Page 1
Comcast Web Hosting