Hi! You are using Tomcat with Apache. So you must be using the Jserv adapter. The following are the steps that i had taken to install Tomcat on the various machines that I have tried out. 1. Download the *SOURCE* tomcat distribution, no the binary one. The source distribution has the code for the jserv apache adapter. You need it if you want to use apache with tomcat. You don't need it (and can do with the binary distrib) if you are using Tomcat as a HTTP server also. 2. Unzip the source distribution in some appropriate place.(I use /usr/local/tomcat for example). 3. Set the various environment variables like JAVA_HOME, TOMCAT_HOME etc. in /etc/profile. Relogin to use this variables. 4. Start Tomcat using TOMCAT_HOME/bin/start.sh and see if you land in any trouble using only Tomcat. Try the http://localhost:8080/servlets for example and see if there is any problem. In case there is any binding problem, change the port in the file server.xml. 5. If everything is ok, compile the mod_jserv.c file in TOMCAT_HOME/src/native/apache/jserv according to the instructions given in the Tomcat Users guide. 6. Tomcat would have automatically generated a tomcat.conf file. Copy it to your apache configuration directory and include it in httpd.conf. 7. Restart apache. If there is still any binding problem(If apache had been running all this while you would have faced problem earlier itself. So shutdown apache when you are trying out the last steps.), change BOTH the port numbers in tomcat.conf and server.xml in case you are fiddling with the apjvp ports. Turn off the httpconnector any way by commenting it out in server.xml. 8. Try out http://localhost/examples. ------------------------------- Some of the issues I faced. 1. If your using the apache that came with RHL6.1 beware that the apxs script used for compiling apache DSO modules is broken. DO NOT use it for compiling DSOs. You are better off downloading a fresh apache tar gzipped file, compiling it and using it's apxs. 2. DO NOT use the blackdown Linux port of jdk1.2. It simply does not work with Tomcat. Use the Sun or IBM jdks. I haven't used Kaffe but I heard people have used Tomcat with it too. If I have missed out anything I think some of my folks at Linux-Delhi or JUG-Delhi would point it out. Hope that helps. - Sandip --- Arvind Maheshwari <[EMAIL PROTECTED]> wrote: > Hello, > > I am facing some problem in installing Tomcat in > RHlinux 6.1, i am using > Apache 1.3.9 and jdk1.2.2 . > > I installed apache with DSO support, i copied the > source of Tomacat in > /usr/local/. i had also declare the path for Tomcat > and jdk1.2.2. > But when i run startup.sh from Tomacat/bin. > It gives me "BindException error", "port already in > use". > I am not getting this error, as my no application is > using this port, i tried > with port 20000 also, then also it given me same > error, i changed the port in > tomcat.conf file. > > If u can send the installation steps, it will be > great. > > Thanking u. > > Arvind > > ____________________________________________________________________ > Get free email and a permanent address at > http://www.netaddress.com/?N=1 > > > ===== =========================================================== SANDIP BHATTACHARYA Mail me @ Personal : [EMAIL PROTECTED] Official : [EMAIL PROTECTED] Home : http://come.to/sandipb __________________________________________________ Do You Yahoo!? Get Yahoo! Mail � Free email you can access from anywhere! http://mail.yahoo.com/ The mailing list archives are available at http://lists.linux-india.org/cgi-bin/wilma/linux-delhi/
