Date: Sat, 25 Aug 2001 02:43:20 -0700 From: "Alex M" <alex@myzona.net> To: <freebsd-ports@freebsd.org>, <freebsd-questions@freebsd.org> Subject: mod_jk and tomcat Message-ID: <000c01c12d4a$60a8f580$9601a8c0@parkson>
next in thread | raw e-mail | index | archive | help
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 <IfModule mod_jk.c> JkWorkersFile /usr/local/tomcat/conf/workers.properties JkLogFile /var/log/mod_jk.log JkLogLevel warn JkMount /*.jsp ajp13 JkMount /servlet/* ajp13 JkMount /examples/* ajp13 </IfModule> 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-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?000c01c12d4a$60a8f580$9601a8c0>