Advertisment

Tomcat on PCQ Linux 7.1

author-image
PCQ Bureau
New Update

With July 2001 issue of PCQuest we gave PCQLinux 7.1 based on Red Hat Linux 7.1. If you have been following our series on Tomcat and JSP articles from April 2001 issue, and have now installed PCQLinux 7.1 then the following are the changes that must be substituted to set up Tomcat and the /jsp context on PCQLinux 7.1:

  1. To make the JDK provided with our April 2001 CD work on PCQLinux 7.1, you have to do two things. First copy the file “cut” from /bin directory to /usr/bin as:



    cp /bin/cut /usr/bin


    Next, set an environment variable LD_ASSUME_KERNEL as:


    export LD_ASSUME_KERNEL=2.2.14


    You may put this line in the file “profile” found in /etc directory to make the setting persistent across reboots.


  2. While setting up Tomcat as an Apache module, you will require the Apache development libraries (named apache-devel-1.3.19-5.i386.rpm). You will find this on our July 2001 CD (CD 2).
  3. In the article Customizing Tomcat (page158, PCQuest, May 2001), we define a /jsp context in server.xml. The document root of Apache Web server on PCQLinux 7.1 has changed from /home/httpd/html to /var/www/ html. Hence change the “docbase” to /var/www/html/ jsp. Next create a directory “jsp” under /var/www/ html and put all your jsp files in this directory. Remember to restart Tomcat and subsequently Apache.

Shekhar Govindarajan

Advertisment