Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@jakarta.apache.org Received: (qmail 23392 invoked by uid 500); 7 Sep 2001 07:02:23 -0000 Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk Reply-To: tomcat-user@jakarta.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 23381 invoked from network); 7 Sep 2001 07:02:22 -0000 Message-ID: <20010907070215.90265.qmail@web8005.mail.in.yahoo.com> Date: Fri, 7 Sep 2001 08:02:15 +0100 (BST) From: =?iso-8859-1?q?atif=20umar?= Subject: Re: how to connect tomcat with apache running on different m/c To: Scott Jones Cc: tomcat-user@jakarta.apache.org In-Reply-To: <999793344.4672.79.camel@bones.on-sitemanager.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N hi, thanks for mailing but i didnt fully understand what u meant do i have to set workers.properties file on the m/c wehich has apoache runnig on it bcos workers.properties file actualy is in the /tomcat/conf directory i have been able to connect the two but still whenever i try to call a servlet/jsp from apache which is placed in the /tomcat/examples then i get this error Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator, admin@sharda.mahindrabt.com and inform them of the time the error occurred, and anything you might have done that may have caused the error. More information about this error may be available in the server error log. Apache/1.3.20 Server at localhost Port 80 but the html/gif pages are served properly kindly suggest what to do now ? thanks --- Scott Jones wrote: > You need to set up server.xml on the machine that > will be running tomcat > so that it'll be listening on whatever port. For > example: > > className="org.apache.tomcat.service.PoolTcpConnector"> > > value="org.apache.tomcat.service.connector.Ajp13ConnectionHandler"/\> > > > > Then you need to set up a worker.properties file ON > THE APACHE box. This > isn't very clear in the documentation (I figured it > out yesterday. :)). > > Since my apache machine doesn't have tomcat on it, I > just made a > directory in /etc/tomcat/conf and stuck my > worker.properties file there. > It'll need to look something like this: > > # you can name these workers whatever you want, just > make sure you match > # it below in the worker.[worker name].port, etc > definitions > worker.list=worker1 > > # make sure this matches the port number you used in > your server.xml in > # the other machine > worker.worker1.port=8009 > # this is the IP address or host name of your tomcat > machine > worker.worker1.host=192.168.1.31 > worker.worker1.type=ajp13 > # I think that the lbfactor will be optional for you > -- I actually have > # tomcat running two instances and then use a load > balancer worker to > # use both. > #worker.worker1.lbfactor=1 > worker.worker1.cachesize=10 > > Then you'll need to set up your httpd.conf to use > mod_jk and redirect > the the appropriate things to your tomcat machine. > > For example: > > LoadModule jk_module modules/mod_jk-eapi.so > AddModule mod_jk.c > JkWorkersFile /etc/tomcat/conf/workers.properties > JkLogFile /var/log/mod_jk.log > JkLogLevel error > # use the worker name that you defined in > worker.properties > # if you decide to use a load balancing worker, then > send things > # to the load balacing worker, and it'll figure out > which instance > # to send it to. > JkMount /*.jsp worker1 > > That should do it. Good luck! :) > > Cheers, > > Scott > > On 05 Sep 2001 11:21:12 +0100, atif umar wrote: > > hi , > > guess this is a very dumb question but i am > > having some problems in running tomcat and apache > on > > different m/c's > > i guess that i have to make some changes in the > > > 1) server.xml > > 2) worker.properties > > > > and in httpd.conf > > > > could any one tell me exactly what changes i have > to > > make > > this configuration used to work fine when both > were on > > same m/c > > > > the configuration of my m/c's are > > > > - win98 > > - apache 1.3.20 > > - tomcat 3.2.3 > > > > pls do reply as i know this being easy might not > > interest many but still any suggestions will be > very > > helpful to me > > > > thanks in advance > > > > > > > > > ____________________________________________________________ > > Do You Yahoo!? > > Send a newsletter, share photos & files, conduct > polls, organize chat events. Visit http://in/ > groups.yahoo.com > > > > ____________________________________________________________ Do You Yahoo!? Send a newsletter, share photos & files, conduct polls, organize chat events. Visit http://in/ groups.yahoo.com