32
This is really a poor solution to be avoided if possible. One deficiency is that if you update your copy of Mathemat
ica, you will have to remember to copy the new fonts. The proper solution is to launch Xvfb so it either uses a font
server or a font path setting, as described above. Remember that this is not a problem when working under Win
dows.
2.5 Upgrading from webMathematica 1.0
This section discusses some of the issues that will concern you if you already have webMathematica 1.0. If you are
using an older servlet container this may be a good opportunity to upgrade to something more recent. You should
note that to use all the features of webMathematica 2.0 a servlet container that supports the JSP API 1.2 is required.
If you are going to upgrade your servlet container you could follow the instructions at the beginning of this chapter
as though this was a fresh installation of webMathematica 2.0.
A summary of the new features can be found in the section
webMathematica 2.0 New Features
.
2.5.1 Install Mathematica 4.2
webMathematica 2.0 comes with a copy of Mathematica 4.2 and this should be installed as discussed in the section
on
Installing and Configuring Mathematica
.
If you have installed any applications into your copy of Mathematica 4.1 you will need to make them available to
Mathematica 4.2, this is discussed in the section Installing Packages. Note that you should not copy the MSP
application from Mathematica 4.1 to Mathematica 4.2.
2.5.2 Install the webMathematica Web Application
To install the webMathematica web application you will need to remove your current webMathematica web applica
tion out of your servlet container. For Tomcat, this is a simple matter of moving the webMathematica directory
from the webapps directory. You may need some of the material in this web application so you should probably
keep it somewhere accessible. After this you can follow the instructions for Installing the webMathematica Web
Application.
2.5.3 Configure the New Layout
If you made any special configuration to your old version of webMathematica you may want to make similar
changes in webMathematica 2.0. Two relevant files are web.xml and MSP.conf. In addition, the security system
is configured in a different way.
web.xml
Warning: you should not copy the web.xml file from webMathematica 1.0 into webMathematica 2.0. Some of the
settings are incompatible between the two versions and will prevent webMathematica 2.0 from running correctly.
In both webMathematica 1.0 and 2.0 the web.xml file is found in the directory webMathematica/WEB INF.
You should only make changes in this file if you are certain that you understand the intent of the setting.
.
<
New Page 1
Comcast Web Hosting