If you have installed Tomcat 5.5 binaryProgramThe administration web app is not bound to the installer and needs to be downloaded (in tomcat4.1, the administration web app is installed together as part of the tomcat4.1 installation package by default ).
The following describes the installation content of the tomcat5.5 administration web app on Windows2000. Therefore, the installation path name varies slightly with the platform. In this example, Tomcat 5.5.17 is installed on
C: \ Program Files \ Apache Software Foundation \ Tomcat 5.5Directory (this is my ownCatalina_home).
-
decompress the downloaded administration web app file (for example, apache-tomcat-5.5.17-admin.zip ) to a temporary directory using the WinZip or tar command, for example: C: \ Temp .
-
copy C: \ temp \ apache-Tomcat-5.5.17 \ conf \ Catalina \ localhost \ ADMIN. XML file to this directory
C: \ Program Files \ Apache Software Foundation \ Tomcat 5.5 \ conf \ Catalina \ localhost .
-
copy the entire directory C: \ temp \ apache-Tomcat-5.5.17 \ Server \ webapps \ admin to the directory
C: \ Program Files \ Apache Software Foundation \ Tomcat 5.5 \ Server \ webapps . this is a overwriting operation. After overwriting, only the Admin directory and some files under the directory are left. (In actual cases, you can copy only the admin folder to the C: \ Program Files \ Apache Software Foundation \ Tomcat 5.5 \ Server \ webapps directory, in this way, some of the original files will not be overwritten.)
Add a role configurationC: \ Program Files \ Apache Software Foundation \ Tomcat 5.5 \ conf \ tomcat-users.xml
File so that you can use the admin role for management. For example, add the following line to the last line (containing</Tomcat-users>In front:
- Restart tomcat ..
Now you can useHttp: // localhost: 8080/adminYou may need to enter the username and password you just added before accessing the administration Web reference. If you still see the error message "no longer loaded" in the browser, You have to refresh the current page (in Firefox, click the "refresh" button and press the Shift key at the same time) or restart the entire browser.
Address: http://wiki.apache.org/tomcat/HowTo#How_do_ I _install_the_Administration_web_app.3F
How do I install the administration web app?
If you install Tomcat 5.5 binaries, the administration web app is not bundled with it; this describes how to add the administration web app to your Tomcat 5.5 installation. (Tomcat 4.1 comes with the administration web app as part of
Binary ).
The following refers to a tomcat 5.5 set up on Windows 2000, so your path names will be different on * nix platforms. In this example, Tomcat 5.5.17 in installed in
C: \ Program Files \ Apache Software Foundation \ Tomcat 5.5(This is my
Catalina_home).
-
unzip or untar (Be careful to use GNU Tar) the file containing the administration web app files (eg.
apache-tomcat-5.5.17-admin.zip ) to a temporary directory, eg. C: \ Temp .
-
copy C: \ temp \ apache-Tomcat-5.5.17 \ conf \ Catalina \ localhost \ ADMIN. XML to the directory
C: \ Program Files \ Apache Software Foundation \ Tomcat 5.5 \ conf \ Catalina \ localhost .
-
copy the entire directory tree C: \ temp \ apache-Tomcat-5.5.17 \ Server \ webapps \ ADMIN
to the directory C: \ Program Files \ Apache Software Foundation \ Tomcat 5.5 \ Server \ webapps . this is an overlay, SO \ Server \ webapps is just pointing you to the \ Server \ webapps, and the Admin directory with its contents will be the only
thing you see added there.
Add a line to yourC: \ Program Files \ Apache Software Foundation \ Tomcat 5.5 \ conf \ tomcat-users.xmlFile so that you have a user who has
AdminRole. For example, add this line just before the last line (containing
</Tomcat-users>) Of the file:
-
- Restart tomcat.
Now when you visitHttp: // localhost: 8080/adminYou shoshould see a page that asks for a user name and password. If you still see the "no longer loaded" error message in your browser,
You must either force a full reload of the web page (in Firefox, hold down SHIFT key while clicking on the reload button) or just restart your browser completely.