Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@apache.org Received: (qmail 44302 invoked from network); 7 Oct 2002 15:23:16 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 7 Oct 2002 15:23:16 -0000 Received: (qmail 28057 invoked by uid 97); 7 Oct 2002 15:23:36 -0000 Delivered-To: qmlist-jakarta-archive-tomcat-user@jakarta.apache.org Received: (qmail 28032 invoked by uid 97); 7 Oct 2002 15:23:35 -0000 Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Tomcat Users List" Reply-To: "Tomcat Users List" Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 28018 invoked by uid 98); 7 Oct 2002 15:23:35 -0000 X-Antivirus: nagoya (v4218 created Aug 14 2002) Message-ID: <3DA1A996.2E49C8E2@telemako.com> Date: Mon, 07 Oct 2002 17:34:46 +0200 From: Marc X-Mailer: Mozilla 4.72 [en] (Windows NT 5.0; U) X-Accept-Language: en MIME-Version: 1.0 To: Tomcat Users List Subject: Re: Is ajp13 connector running? References: <3DA0E13D.94FD179F@telemako.com> <3DA14092.3080108@emerging-trade.com> <3DA165AB.331B1CE6@telemako.com> <3DA16E2C.9050202@emerging-trade.com> Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Hi Raj, I've defined an application on apache (without using virtual hosting (I've tried using it, with the same results)) with: DocumentRoot "/var/www/html/" JkMount /*.jsp ajp13 There I've placed a jsp page, that just writes something in the browser. In my server.xml, I've defined a Context with docBase="/var/www/html" and path="" (the host is localhost) Marc Raj Saini wrote: > What is the URL you are using? Your Jk worker will only root the *.jsp > requests to tomcat. > > Try changing your jkMount directive to: > > JkMount /* ajp13 > > Raj > > Marc wrote: > > Hi Raj, here is my workers.properties, it's located in > > $CATALINA_HOME/conf > > > > ps=/ > > worker.list=ajp13 > > > > worker.ajp13.port=8009 > > worker.ajp13.host=localhost > > worker.ajp13.type=ajp13 > > > > and in my httpd.conf: > > > > > > ########## Tomcat setup ########## > > > > > > LoadModule jk_module modules/mod_jk.so > > > > > > JkWorkersFile "/usr/local/jakarta-tomcat-4.1.12/conf/workers.properties" > > JkLogFile "/usr/local/jakarta-tomcat-4.1.12/logs/mod_jk.log" > > > > JkLogLevel debug > > > > ########## End Tomcat setup ########## > > > > > > JkMount /*.jsp ajp13 > > > > (I've defined a in my server.xml) > > > > Thanks!!!! > > > > Marc > > > > Raj Saini wrote: > > > > > >>There must be some thing wrong with your worker.properties or the > >>configuration of apache. > >> > >>Please post your worker.properties and relevent part of the apache > >>configuration. Your apache configuration may be in mod_jk.conf which > > > > is > > > >>generally included in http.conf. > >> > >>Raj Saini > >> > >>Marc Vila P�rez wrote: > >> > >>>Hi!!! > >>>I'm using tomcat 4.1.12, apache 1.3.22 and jdk 1.4.1, on Linux Red > >> > > Hat. > > > >>>I cannot connect to execute jsp pages via apache. I've configured > >> > > tomcat > > > >>>and apache to connect them simultaneously. To use ajp13 protocol, > >> > > I've > > > >>>uncommented the next connector on server.xml (and commented the > >> > > default > > > >>>Coyote connector listening on port 8009, jk2, i think): > >>> > >>> > >>> >>> port="8009" minProcessors="5" maxProcessors="75" > >>> acceptCount="10" debug="9"/> > >>> > >>>When I start tomcat, using ./catalina.sh run, I can see this on the > >>>screen: > >>> > >>>[root@telemako bin]# ./catalina.sh run > >>>Using CATALINA_BASE: /usr/local/jakarta-tomcat-4.1.12 > >>>Using CATALINA_HOME: /usr/local/jakarta-tomcat-4.1.12 > >>>Using CATALINA_TMPDIR: /usr/local/jakarta-tomcat-4.1.12/temp > >>>Using JAVA_HOME: /usr/local/jdk > >>> > >>>(after 2 or 3 minutes ...) > >>> > >>>Oct 7, 2002 2:22:05 AM org.apache.coyote.http11.Http11Protocol init > >>>INFO: Initializing Coyote HTTP/1.1 on port 8080 > >>>Starting service Tomcat-Standalone > >>>Apache Tomcat/4.1.12 > >>>Oct 7, 2002 2:22:12 AM org.apache.coyote.http11.Http11Protocol start > >>>INFO: Starting Coyote HTTP/1.1 on port 8080 > >>> > >>>(after a few minutes more ...) > >>> > >>>=================================== > >>>Ajp13Connector active threads=6 > >>>java.lang.ThreadGroup[name=Ajp13Connector[8009],maxpri=10] > >>> Thread[Ajp13Connector[8009],5,Ajp13Connector[8009]] > >>> Thread[Ajp13Processor[8009][0],5,Ajp13Connector[8009]] > >>> Thread[Ajp13Processor[8009][1],5,Ajp13Connector[8009]] > >>> Thread[Ajp13Processor[8009][2],5,Ajp13Connector[8009]] > >>> Thread[Ajp13Processor[8009][3],5,Ajp13Connector[8009]] > >>> Thread[Ajp13Processor[8009][4],5,Ajp13Connector[8009]] > >>>=================================== > >>> > >>>(And this is repeated every few minutes ...) > >>> > >>>=================================== > >>>Ajp13Connector active threads=6 > >>>java.lang.ThreadGroup[name=Ajp13Connector[8009],maxpri=10] > >>> Thread[Ajp13Connector[8009],5,Ajp13Connector[8009]] > >>> Thread[Ajp13Processor[8009][0],5,Ajp13Connector[8009]] > >>> Thread[Ajp13Processor[8009][1],5,Ajp13Connector[8009]] > >>> Thread[Ajp13Processor[8009][2],5,Ajp13Connector[8009]] > >>> Thread[Ajp13Processor[8009][3],5,Ajp13Connector[8009]] > >>> Thread[Ajp13Processor[8009][4],5,Ajp13Connector[8009]] > >>>=================================== > >>>... > >>> > >>>If I execute netstat: > >>> > >>>bash-2.05$ netstat > >>>Active Internet connections (w/o servers) > >>>Proto Recv-Q Send-Q Local Address Foreign Address > >>>State > >>>tcp 0 1 telemako:33000 telemako:8009 > >>>SYN_SENT > >>>tcp 0 0 telemako:telnet 217-126-67-42.uc.:62839 > >>>ESTABLISHED > >>>tcp 0 0 telemako:10000 217-126-67-42.uc.:61040 > >>>ESTABLISHED > >>>tcp 0 0 telemako:telnet 217-126-67-42.uc.:60082 > >>>ESTABLISHED > >>>tcp 0 133 telemako:telnet 217-126-67-42.uc.:60410 > >>>ESTABLISHED > >>>Active UNIX domain sockets (w/o servers) > >>>Proto RefCnt Flags Type State I-Node Path > >>>unix 8 [ ] DGRAM 1011462860 > >> > > /dev/log > > > >>>unix 2 [ ] DGRAM 1553906393 > >>>unix 2 [ ] DGRAM 1553556776 > >>>unix 2 [ ] DGRAM 1553481826 > >>>unix 2 [ ] DGRAM 1011466541 > >>>unix 2 [ ] DGRAM 1011466462 > >>>unix 2 [ ] DGRAM 1011463525 > >>>bash-2.05$ > >>> > >>> > >>> > >>>Seems than the connector is listening on port 8009, but if I try to > >>>connect to a jsp page using apache (on port 80), after a lot of time > >> > > I > > > >>>receive an 'Internal Server Error', apache receives the request, but > >>>cannot connect with tomcat, tries it a few times, and finaly returns > >> > > the > > > >>>error. > >>> > >>>Am I using the correct connector? how can I know if it is running > >> > > ok? > > > >>>anybody knows what is the problem?? > >>> > >>>Thank you all!!!! > >>> > >>>Bye! > >>> > >>>Marc > >>> > >>> > >>> > >> > >>-- > >>To unsubscribe, e-mail: > > > > > > > >>For additional commands, e-mail: > > > > > > > > -- > To unsubscribe, e-mail: > For additional commands, e-mail: -- To unsubscribe, e-mail: For additional commands, e-mail: