GLAST Infrastructure How-to-Fix : HTF Tomcat Servers
This page last changed on Oct 13, 2008 by chuckp.
How to Fix Tomcat ServersOwned by: Tony Johnson Apache Tomcat is a web container that specifes a runtime environment for web components, including services such as: security, concurrency, life-cycle management, transaction, deployment, etc. It implements Sun Microsystem's specifications for Java Servlet and Java Servlet pages, and it also includes its own internal http server. Tomcat runs on a number of the glastlnx machines. Notes:
1. Tomcat Server
2. IIS (glast-win01/02)Note: IIS refers to Microsoft's Internet Information Services (IIS) server software.
Key InformationImportant Locations
Symbolic links cannot be stored in CVS; therefore, a SYMLINKS file is maintained in each directory. Running the script ~/tomcat/scripts/symlinks will create/delete symlinks based on the contents of the SYMLINKS files. By default the symlinks script works on any directories at or below the current working directory. Code file systems
All permanent code on AFS also exists in CVS module tomcat for configuration control and emergency recovery purposes. If any of this code is modified it should be committed back to CVS with a suitable comment. Tomcat ConnectorAn ISAPI connector is used to bridge between the glast-ground IIS server and a Tomcat 5 instance running the system tests backend. Configuration FilesThe current configuration on glast05 is: (note these are currently in c:\tony\jakartato keep them distinct from similar files Matt has installed elsewhere, but should probably be moved to somewhere more appropriate).\bin\isapi_redirect.dll The files are: isapi_redirect.dllThis is the core of the ISAPI connector. I have been using this particular version for many years without problems. Some other versions I have tried have not worked. I believe it originally came from the tomcat 3 distribution (currently at http://archive.apache.org/dist/jakarta/tomcat-3/bin/win32/i386/). It does not appear to have a version #. isapi_redirect.propertiesUsed to configure the isapi_redirect.dll. By putting this file in the same directory as the isapi_redirect.dll its configuration is read from here rather than from the windows registry. This makes it possible to use more than one connector with the same server if necessary. Currently the file contains: isapi_redirect.propertiesextension_uri=/jakarta/isapi_redirect.dll uriworkermap.propertiesThis file maps areas of the glast-ground namespace to (potentially different) tomcat servers. Currently only the /SystemTests/* space is mapped: uriworkermap.propertiesdefault.worker=ajp13 /SystemTests/=$(default.worker) web007-tomcat5.propertiesThis file is contains many comments and unused entries, but the relevant lines are: web007-tomcat5.propertiesworker.ajp13.port=8019 IIS6 SetupThree things need to be done to get the ISAPI filter installed under IIS6.
Unresolved/Confusing issuesMaterial on the web recommends switching the service to "IIS 5.0 isolation mode". I did not do this since I wasn't sure what this does, and since it was a global setting that might cause problems for other applications. Things seem to work without this, but there may be some hidden issues we need to worry about later. When making changes to the dll or the configuration files it is unclear exactly when the changes take effect. To be safe restart the entire web server, although it also appears to (sometimes) work to just start and stop the virtual server in question (which is much faster). Best is just to get them right first time! Background InfoThere is plenty of background info available at: http://wiki.apache.org/jakarta-tomcat/Tomcat_2fLinks much of it refers to the (no longer supported) jk2, but most of it is also relevant for jk1.2 ![]() ![]() ![]() ![]() |
![]() |
Document generated by Confluence on Jan 21, 2010 11:37 |