Re: test
At 04:53 PM 7/26/01 -0400, you wrote: test i didn't get this.. can you please resend it?
apj13 not working
My system: Tomcat/Apache+mod_ssl/RedHat 7.1 ---[Howto snippet]-- mod_jk can use either the original Ajpv12 protocol or the newer Ajpv13 protocol. Both protocols are enabled by default. The Ajp13 Connection Handler in Tomcat will give you the benefit of a faster protocol and the ability to identify requests made via HTTPS. The following block enables Ajpv13 in your TOMCAT_HOME/conf/server.xml file. RequestInterceptor className=org.apache.tomcat.modules.server.Ajp13Interceptor port=8009/ ---[Howto snippet]-- According to this, I can just put this block in with the rest of the Interceptors. I made sure not to put it after the LoadOnStartupInterceptor which loads last. When I do, I get the following at startup: ERROR reading /usr/local/jakarta/jakarta-tomcat-3.2.3/conf/server.xml At Line 188 /Server/ContextManager/RequestInterceptor/ className=org.apache.tomcat.modules.server.Ajp13Interceptor port=8009 FATAL: configuration error java.lang.ClassNotFoundException: org.apache.tomcat.modules.server.Ajp13Interceptor This installation works fine with Ajp12. Am I missing something? Why is Ajp12 an Interceptor while Ajp12 is Connector? Thanks, iod
Re: apj13 not working
At 09:17 AM 7/25/01 -0500, you wrote: What's your classpath look like? My first attempt at installing Tomcat was with the source code and it had me setting up all kinds of things in the classpath. This current install, the binary download, hasn't had me set up anything in the classpath. I did a find for Apj13Interceptor and didn't find it. I am assuming that its part of something else. Java is very new to me I'm not sure what exactly the classpath contents should be.
mod_jserv.so question
I am installing the latest binary version of Tomcat with Apache 1.3.19 on a Linux box. The user guide has the following in the mini Tomcat-Apache config file: # (1) Loading the jserv module that serves as Tomcat's apache adapter. LoadModule jserv_module libexec/mod_jserv.so I read in the FAQ that I should use the Tomcat shared object here. Where do I get that? It's not part of the binary download and I don't see it on the download page. Do I need to make my own? If so, which one do I make? iod
Re: mod_jserv.so question
mod_jserv.so is the old connector and is being replaced by mod_jk.so, which you can find here: http://jakarta.apache.org/builds/jakarta-tomcat/release/v3.2.3/bin/linux/ Thanks John. I have downloaded and installed it. I changed the config to read: --[config snippet]-- LoadModule jk_module /usr/lib/apache/mod_jk.so IfModule mod_jk.c ApJServManual on ApJServSecretKey DISABLED ApJServMountCopy on ApJServLogLevel notice ApJServDefaultProtocol ajpv12 ApJServDefaultHost localhost ApJServDefaultPort 8007 ApJServMount /examples /root ApJServMount /examples ajpv12://localhost:8007/root /IfModule --[config snippet]-- Now that I'm not using the mod_jserv.so the error I get is: Invalid command 'ApJServManual', perhaps mis-spelled or defined by a module not included in the server configuration I'm assuming that the ApJServ prefix here is not valid with this module. How should I define the Tomcat server with mod_jk.so? iod
re mod_jserv.so + New Question
At 04:19 AM 7/24/01 +0800, you wrote: Hi John, we have the same question. but: how to install using the binary ? any reqirement on the version of Apache? do we need to re build Apache? I've made a lot of progress. In my httpsd.com (im running a secure server) but this will work in httpd.conf I added the following: LoadModule jk_module /usr/lib/apache/mod_jk.so IfModule mod_jk.c Include /usr/local/jakarta/jakarta-tomcat-3.2.3/conf/mod_jk.conf-auto /IfModule From there you need to edit the tomcat config files. I can run the test servlets on 8080 running the tomcat server but when I try to run them on my apache+mod_ssl server I get: I am now getting the following error in the logs: # tail mod_jk.log [jk_connect.c (143)]: jk_open_socket, connect() failed errno = 111 [jk_ajp12_worker.c (152)]: In jk_endpoint_t::service, Error sd = -1 ... (In the browser) Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request. Anyone have any thoughts on why running servlets creates these errors? Thanks in advance, iod
problem solved
I now have apache+mod_ssl running and talking to port 8007 and running servlets w/o error. Based on the config I sent in my last message plus some cleaning done in the tomcat config files this is now working. Thanks especially to John to pointing me to the newest version of jk_mod iod