![]() |
Java Web Server Installation![]() ![]() ![]() ![]() ![]()
Before installing Java Web Server let us take a look at the platforms supported, hardware and software requirements.
The Java Web Server can be run on any platform that supports the Java Development Kit (JDKTM) 1.1 or above. Solaris SPARC and Windows NT environments provide support for Java Web Server. Windows 95 is supported for development but is not recommended for deployment because Microsoft does not consider it as a server platform. Hardware Prerequisites As we have told already, Java Web Server will run on Windows NT or Windows 95. Hence we need a system capable of running Windows NT or Windows 95 with a minimum of 13 MB hard disk free space to load Java Web Server software which is approximately of 10 MB To use Java Web Server, we need a server environment and a client environment. The server environment is used to run the server itself and the client environment to run administrative tools. For the server environment, we need either: • JDK1.1 or above, OR • a JDK1. 1 (or above) compliant Java runtime environment (JRE) In addition, on Windows 95, we need: a Windows Sockets 2 (WinSock 2) WinSock2 may be downloaded from Microsoft's site at: http://www.microsoft.com/Win32dev/netwrk/winsock2/ws295sdk,htmi The Java Web Server is freely available at http .//java.sun.com/ For the client environment, we need: 9 a JDK 1.0.2 compatible browser. Installing the Java Web Server 1 . Double click on the executable file which you have downloaded from the site http://www.java.sun.com. 2. The install shield will pop up with the following screen. Click "Yes" to continue installing the Java Web Server. Diagram install1 4. In the final screen, click Finish to complete the installation. Environment Variables in Java Web Server We can use the default settings of runtime environment variables like CLASSPATH, JAVAHOME or existing settings as follows: Using the Default Java Runtime Environment The Java Web Server ships with a Java Runtime Environment. By default, the Java Web Server uses the included JRE, which means you don't have to be concerned about your CLASSPATH or JAVAHOME settings. (For this default situation, the Java Web Server uses the httpd startup script or the httpd.exe executable.) To use your existing runtime environment rather than the provided JRE, invoke the httpd.nojre startup script or httpdnjre.exe executable. If you are using the default JRE and its associated class path, create a /classes subdirectory to your Java Web Server install directory. The default class path will always have the classes subdirectory in the server root directory included. Note that these classes cannot be in jar Format. If you are using your existing runtime and class path, simply make sure the directory containing your servIets is in the CLASSPATH environment variable. Environment Variables with Quoted Strings Under Windows NT, environment variables set using quoted strings will cause the httpd program to exit without warning. For example, using the following setting will cause trouble for the startup scripts found in $SERVER HOME/bin . JAVA HOM E=C:"\PROG RAM FILESVAVA" The affected variables are PATH, JAVA HOME, and CLASSPATH. Java Web Server can be started on a windows platform either manually or automatically. Starting the Java Web Server on Windows platforms The following steps have to be followed to start Java Web Server on a Windows platform manually: I . Change to the bin directory under the Java Web Server installation. C> cd server_root\bin Invoke the server process. C> ./httpd 3. Connect to the server by entering the server/port address in your browser's locator field. During the installation of Java Web Server, if you clicked yes when the InstallShield utility asked you if you wanted the NT Service application installed, simply restart your system. The Windows NT service application $HTTP HOME/bin/jservsvc is generally installed during the Java Web Server installation using the InstallShield facility. Once it is installed, you can start it automatically by rebooting your machine. Rebooting sets up your system so that each subsequent reboot automatically starts the Java Web Server. 0 If you clicked no when install program asked you if you wanted to install the NT Service application, you can still set up for automatic starting by following these steps: 1 . Make sure you have administrator privileges. 2. Run the following command: a. C> cd server_root\bin b. C> jservsvc JavaWebServer install Displaying the Default Home Page After you have started the server, you can display the default Java Web Server home page by entering the following URL http .//Server Host Name: port/ where Serve r_Host_Na me is the name of your machine and port is 8080 by default. (For example, if your machine is named galaxy, http://galaxy:8080). On Windows 95 and Windows NT platforms, the Server Host Name is the name 1 . Open the Network control panel. 2. Click on Identification. Use the name supplied in the "Computer name" field for the Server_Host_Name. To set up your own web site, use your normal web authoring tools to change the contents of the default home page. Then tell your clients about your site! Java Web Server can be shut down using Administration Tool or from the command line. Shutting down through the Administration Tool is recommended. On all platforms, the recommended procedure for shutting down is through the Java Web Server GUI, as follows: 1 . Connect to the server through a browser Choose "Administer the Web Server" Choose "Start the Adminstration Tool" 4. Log in to the Java Server Administration Tool 5. Select the Java Web Server 6. Click the Shutdown button If shutting down the Java Web Server through the Administration Tool is not possible or desirable for some reason, the second choice is to shut it down f rom a command line prompt. Instructions for performing a shutdown from the commandline for the UNIX and Windows platforms provided in the following sections, From a command line On all platforms, a command line utility is provided to shut down the server and its services. 1 . Change to the bin directory under the Java Web Server installation. % cd server root/bin 2. Invoke the shutdown process. % ./jsadmin user/password stop For example, in the default username and password case, you would type: % ./jsadmin admin/admin stop Removing the Java Web Server Removing Java Web Server From a Windows Machine On Windows NT 4.0 1 . If you installed the NT service, manually remove it first as follows: a. C> cd server_root\bin b. C> server root\bin\iservsvc JavaWebServer remove 2. Then remove the Java Web Server itself either automatically as below a . Click on the Control Panel. b. Click on Add/Remove Programs. Highlight on the Java Web Server entry in the window and then click on Add/Remove. or remove it manually as follows: d. C> cd server root e. C> rm r * On Windows 95, remove it automatically by doing the following steps. a . Click on the Control Panel. b. Click on Add/Remove Programs. Highlight on the Java Web Server entry in the window and then click on Add/Remove.
|
|
Domain NamesJSP Java Web Server Installation Java Web Server Administration The Initial Screens The Setup Button The Monitoring Button The Security Button The Servlets Button JSP Technology Evolution of Dynamic Content Technologies Features of JSPJSP Versus Servlets JSP Versus ASP Defining JSP Implementation Life Cycle of JSP JSP Application Models Writing your First Java Server Pages File
JSP Directives
JSP Declarations
JSP Scriptlets
JSP Expressions
Standard ActionsWeb DesignWeb HostingE Commerce |
| Home | Web Hosting | Web Design | Sitemap |
| Copyright (C) 2007. Web Domain design hosting. All rights reserved. |