![]() |
|||
| Contents | / Index | / Glossary | / AdminTool Help |
The Java Web Server installs "out of the box" with a default configuration. Customizations refer to any changes you have made to that default configuration. For example, you may have changed the port through which clients access documents served by the web server. Or you may have installed and configured your own servlets or CGI scripts.
This document provides guidance on migrating your existing Java Web Server 1.1.3 customizations over to a new Java Web Server 2.0 installation. Because the opportunities for customization are extensive, this document can not address every possibility. However, it should prove a valuable guide and reminder of what to consider when migrating customizations.
Note: If your customizations were minor or few, you may prefer to simply install Java Web Server 2.0 and repeat your customizations on the new installation, rather than attempting to migrate them from the old verions. The choice is yours.
This document has the following sections:
These instructions assume two Java Web Server installations--an existing, customized installation of Java Web Server 1.1.3 and a new, default installation of Java Web Server 2.0. These installations must be in separate directories.
- If your existing Java Web Server 1.1.3 is using the default port settings, reset those port numbers before installing Java Web Server 2.0. If you do not reset them, you will experience port conflicts when the Java Web Server 2.0 attempts to install services on the existing, active ports.
Java Web Server 1.1.3
ServiceDefault Temporary For instructions, see: Web Service 8080 8085 Administration Tool: Network Setup online document. Secure Service 7070 7075 Administration Tool: Network Setup online document. AdminTool (external) 9090 9095 Administration Tool: Properties online document. AdminTool (internal 9091 9096 Administration Tool: Properties online document.
- To install the new Java Web Server 2.0, follow the installation instructions provided with the Java Web Server 2.0 product
The general approach will be to identify and copy files from the existing Java Web Server 1.1.3 installation to the new installation. Once files have been identified and copied (not moved), the Administration Tool for the two installations is run in parallel and property settings (customizations) verified on a screen-by-screen basis.
The following steps guide you through the steps of migration in the order they need to be performed. If you have made no customizations in a particular area, simply skip that step and move on to the next.
Copy all your servlet and servlet bean files from your Java Web Server 1.1.3 to your Java Web Server 2.0 installation.
servlets or servletbeans directory of the
web server:
% cp /opt/JavaWebServer1.1.3/servlets/myServlet.class /opt/JavaWebServer2.0/servlets/ (on UNIX)
C:\>cp C:\JavaWebServer1.1.3/servlets/myServlet.class C:\JavaWebServer2.0/servlets/myServlet.class (on Windows)
% mkdir /opt/JavaWebServer2.0/classes % cp /opt/JavaWebServer1.1.3/classes/myServlet.class /opt/JavaWebServer2.0/servlets/ (on UNIX)
D:\>mkdir C:\JavaWebServer2.0/classes D:\>cp C:\JavaWebServer1.1.3/classes/myServlet.class C:\JavaWebServer2.0/servlets/myServlet.class (on Windows)
Changed in 2.0 In Java Web Server 1.1.3, servlet examples resided in server_root/servlets. In Java Web Server 2.0, servlet examples now reside in server_root/servlets/sunexamples.
% cp /opt/JavaWebServer1.1.3/cgi-bin/myScript
to /opt/JavaWebServer2.0/cgi-bin/myScript
Note: Although the default CGI script directory is the same for
both the webpage and secure services, it is possible to designate
a different CGI directory for each. If you have done so, you must
repeat the CGI script migration instructions for each service.
If you were starting the old Java Web Server automatically, you will need to remove it from automatic startup and add the new Java Web Server instead.
(More details on starting the Java Web Server automatically, can be found in the Starting the Java Web Server online document.)
Solaris:
Repeat the instructions in the java-server.startup file,
including moving, renaming, and linking the file. Edit the
file in the new installation to reflect similar customizations
to those you made to the same file in the old installation.
We expect little, if any, demand to migrate log information from 1.1.3 to 2.0. Due to changes in the log files and formats for Java Web Server 2.0, such migration is not recommended.
However, you may wish to simply keep your old logs in the same location as your new logs. This may be accomplished by renaming* the old log files to avoid conflict and then moving them to the new location.
* We recommend you use a name that indicates the product
version and/or date of discontinuation of the log file.
For example: rename access_log to
jws20_access_03jun99.
Follow these instructions only if SSL was setup on the old version.
If you are not sure, look for a
keys file in old-server-root/ of the old installation.
If the file exists, it means SSL was set up and you should follow
the migration instructions in this section. If the file does not exist,
skip this section.
Copy keys, CAstore,
and keys.passphrase files from
old-server-rootto
new-server-root
In Java Web Server 1.1.3, the CAstore file might be in
the machine's root directory (/ or C:\). For Solaris only, it might
instead be in the user's home directory* such as /home/$user
CAstore file should be there only
if you imported root certificates and keys.passphrase
file should be there only if you created this file to contain password
of passphrase.
* This bug, ID 4198423, has been fixed in 2.0 version.
CAstore should only be in server-root if you
imported root certificates. If you do copy over your CAstore file
from 1.1.3 version, it must be placed in 2.0 server-root.
keys.passphrase file should be in server-root only
if you created this file to contain password of passphrase
.
old-server-root/realms
to new-server-root/realms. For example: If you have modified any environment variables for use with Java Web Server 1.1.3, remove or revise those values to reflect the new Java Web Server 2.0 installation.
Typical examples of this include:
If you performed the steps in the Security section of this document, the file containing your old administration password was copied over to the new installation. That means your password on the new installation is the same as on the old.
If you did not perform the steps in the Security section of this document, you can change the default password to one of your choosing using the Administration Tool.
Removed in 2.0:The simple Proxy Service has been removed in Java Web Server 2.0.
If you customized session-tracking properties in your old installation, you'll probably want to perform those same customizations in the new installation.
To do so, copy the customizations from:
JWS1.1.3/properties/server/javawebserver/server.properties
to each of the following files:
JWS2.0/properties/server/javawebserver/sessionservice/session.properties
JWS2.0/properties/service_defaults/sessionservice/session.properties
Changed in 2.0: A session service has been added in Java Web Server 2.0, allowing sessions to be tracked server-wide, across services.
# cp /opt/JavaWebServer1.1.3/public_html/myHTMLfile /opt/JavaWebServer2.0/public_html/myHTMLfile
Changed in 2.0: In Java Web Server 1.1.3, the same default directory was used for both the webpage and secure services (although you could choose to use different ones). In Java Web Server 2.0, the default directory for the webpage service remains the same (public_html), but the default directory for the secure service is now secure_html.
Changed in 2.0: In Java Web Server 1.1.3, document files needed for the samples, such as sample.jhtml, were kept in the default document directory (public_html). In Java Web Server 2.0, document files needed for the samples are in the examples/ directory of the server installation, under the relevant sample.
If so, use new-server-root/bin/addservice
to add the new service to the Java Web Server 2.0. Once you have added the
additional service, follow the instructions under the service/server Properties
section to customize the services.
If so, don't forget to copy all the necessary classes for your custom realm from your old installation to you new.
An example on UNIX might be:
% cp /opt/JavaWebServer1.1.3/classes/myCustomRealm.class /opt/JavaWebServer2.0/classes/myCustomRealm.class
An example on Windows might be:
D:\> copy C:\JavaWebServer1.1.3\classes\myCustomRealm.class C:\JavaWebServer2.0\classes\myCustomRealm.class
Top
java-server-feedback@java.sun.com
|
Copyright © 1999
Sun Microsystems, Inc. All Rights Reserved. |