From owner-freebsd-ports Sat Aug 25 2:46:40 2001 Delivered-To: freebsd-ports@freebsd.org Received: from voyager.myzona.net (dsl027-179-063.sfo1.dsl.speakeasy.net [216.27.179.63]) by hub.freebsd.org (Postfix) with ESMTP id 2F80937B409; Sat, 25 Aug 2001 02:46:29 -0700 (PDT) (envelope-from alex@myzona.net) Received: from parkson (adsl-64-166-84-172.dsl.sntc01.pacbell.net [64.166.84.172]) by voyager.myzona.net with SMTP id f7P9gVR32304; Sat, 25 Aug 2001 02:42:31 -0700 (PDT) (envelope-from alex@myzona.net) Message-ID: <000c01c12d4a$60a8f580$9601a8c0@parkson> Reply-To: "Alex M" From: "Alex M" To: , Subject: mod_jk and tomcat Date: Sat, 25 Aug 2001 02:43:20 -0700 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2479.0006 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2479.0006 Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Hello all, i dont know if it should be posted to freebsd-java, but i hope you can help me, i have been struggling for over 2 weeks now. I am trying to run JSP support on Apache, i have apache-1.3.20 and tomcat 3.2.3 and mod_jk installed on my freebsd 4.3-stable machine. The directions to run mod_jk from port didnt help me, so i did the following. In order to run mod_jk properly, i added Include /usr/local/etc/apache/mod_jk.conf in httpd.conf # cat /usr/local/etc/apache/mod_jk.conf LoadModule jk_module /usr/local/libexec/apache/mod_jk.so JkWorkersFile /usr/local/tomcat/conf/workers.properties JkLogFile /var/log/mod_jk.log JkLogLevel warn JkMount /*.jsp ajp13 JkMount /servlet/* ajp13 JkMount /examples/* ajp13 ok... i have restarted apache, made sure tomcat is running (/usr/local/etc/rc.d/tomcat.sh start), telneted to localhost:80 and did GET HTTP/1.1 | grep Server to make sure mod_jk module is loaded. Now, everything seems ok... I go on and try http://www.blahlblah.com/test.jsp and get error 500. Heres what mod_jk.log says:[jk_connect.c (108)]: Into jk_open_socket [jk_connect.c (115)]: jk_open_socket, try to connect socket = 9 [jk_connect.c (124)]: jk_open_socket, after connect ret = -1 [jk_connect.c (143)]: jk_open_socket, connect() failed errno = 60 [jk_ajp13_worker.c (174)]: In jk_endpoint_t::connect_to_tomcat, failed errno = 60 [jk_ajp13_worker.c (587)]: Error connecting to the Tomcat process. [jk_ajp13_worker.c (492)]: Into jk_endpoint_t::done I have no idea why? Anyone? I have tried several ways before, such as ApacheJserv and GNUJSP, but all failed. I decided to turn back to using mod_jk because i have seen sites sucessfully using mod_jk module to run jsp on apache, and mod_jk seems to be more easier and powerful than jserv. Did anyone succeed in what i am trying to achieve? NOTE: i am not currently subscribed to freebsd-questions. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message