I am having some hanging issues, but it doesn't crash, seems to revive again and i look in mod_jk.log and this is what i see exactly every 15 minutes:
[Tue Feb 25 10:30:27 2003] [jk_ajp_common.c (681)]: ERROR: can't receive the response message from tomcat, network problems or tomcat is down. [Tue Feb 25 10:30:27 2003] [jk_ajp_common.c (1050)]: Error reading reply from tomcat. Tomcat is down or network problems. [Tue Feb 25 10:30:27 2003] [jk_ajp_common.c (1187)]: ERROR: Receiving from tomcat failed, recoverable operation. err=0 [Tue Feb 25 10:30:27 2003] [jk_connect.c (203)]: jk_open_socket, connect() failed errno = 111 [Tue Feb 25 10:30:27 2003] [jk_ajp_common.c (626)]: Error connecting to tomcat. Tomcat is probably not started or is listenning on the wrong port. Failed errno = 111 [Tue Feb 25 10:30:27 2003] [jk_ajp_common.c (874)]: Error connecting to the Tomcat process. [Tue Feb 25 10:30:27 2003] [jk_ajp_common.c (1190)]: sending request to tomcat failed in send loop. err=1 [Tue Feb 25 10:30:27 2003] [jk_connect.c (203)]: jk_open_socket, connect() failed errno = 111 REPEAT ---- Original Message ---- From: java <[EMAIL PROTECTED]> Sent: 2003-02-25 To: [EMAIL PROTECTED] Subject: Re: [cobalt-developers] Installing Tomcat 4.1.18 / jdk 1.4 on Raq 550 Today I would test my new setup and run in some trouble. So be carefull what you are doing. I needed to change servlet.pl and jsp-vsite.pl stuff in order to get things the way I want them. If some of you is interrested in the pl files let me know. I'm still working in them since I really want that when a user has a webapp this webapp logs to the logsdirectory of that website under the name of webappname_log.txt So I'm still working on some details. For the rest I just have some problems with JavaServerFaces and Some policy related stuff. But the basic it works and it works nice. Johan java wrote: > [EMAIL PROTECTED] wrote: > >> I didn't have as much luck. >> Coupel of questions, do you have to upgrade the mod_jk.so ? >> > It was nessecary for me. But first i installed the rpm. In this rpm > there was a mod_jk.conf. In this file I had to change some path names > and I removed the if statement (first and last line) because I got a > segmentation fault. After that I downloaded the connector source for > tomcat 4.1.18 and compiled it the way I told. This gave me a new > mod_jk.so (old one was 97k new one 332k big). after I put this one in > place it worked. > >> >> Do you have to put the appBase on the vhosts? And other than that, >> just copy them from the tomcat 3.2 server.xml? >> > Yes absolute. The appBase directive is calculated from the webapps > dir. So you need to set it complete. If CATALINE_HOME or CATALINA_BASE > is /usr/java/jakarta-tomcat then appBase="awebapp" this means > /usr/java/jakarta-tomcat/awebapp. so setting > appbase="/home/.sites/28/site1/web/awebapp" solves that problem. For > the rest just copy the vhosts from the old server.xml. Today I'm gonna > test if the scripts aren't broken. I changed the servlet.pl (somewhere > in /usr/sausalito) to add the appBase directly. Also I added JkMount > $web_app/*.do ajp13 to it for forwarding struts related do actions. > >> >> What did you put in teh mod_jk.conf file? >> > I took the one from the rpm and commented out all examples, admin, > manager and teststuff. If you install the rpm it puts the mod_jk.so > and jni_connect.so in /usr/libexec/apache and the mod_jk.conf and > workers.properties in /etc/httpd/conf dir. Just copy them to the > appropiate place. and don't use the mod_jk.so file from the rpm. In > the httpd conf file the include mod_jk.conf-auto must me commented out > to include the mod_jk.conf file. > > I think I need to write a small upgrade HowTo, so if I have time I > will, don't hold your breath though because I'm a lausy writer. > > Johan > >> >> Travis >> >> ---- Original Message ---- >> From: java <[EMAIL PROTECTED]> >> Sent: 2003-02-24 >> To: [EMAIL PROTECTED] >> Subject: Re: [cobalt-developers] Installing Tomcat 4.1.18 / jdk 1.4 >> on Raq >> 550 >> >> In last post I said I had a nasty segmentation fault. But the good >> news is I solved the problem. basically the solution is compile from >> the source. Not everything just the native jk that produces the >> mod_jk.so >> >> I downloaded the jakarta-tomcat-connectors-4.1.18-src.tar.gz. >> gunzip the package >> tar -xvf jakarta-tomcat-conectors-4.1.18-src.tar >> cd jk >> ./buildconf.sh >> Ignore error messages or warnings (I still don't know what they mean) >> make >> cd ./apache-1.3 >> cp mod_jk.so.0.0.0 /usr/lib/apache >> restarted the httpd >> And as a big suprise to me it worked. >> >> I hope you can use this information. I still have to test the >> uploading en unpacking of war-files and the creation of vhosts with >> tomcat enabled. Will do this tomorrow and if I run into problems you >> will be hearing of me. But for now the apache tomcat is working and >> my RaQ 550 is enabled with jdk 1.4.1 and tomcat 4.1.18. >> >> Oh the property of the saxparser is also set. Just copied the >> xercesImpl.jar and the xmlParserAPIs.jar from the xerces-2.2.1 distro >> into the <TOMCAT_HOME>/common/endorsed dir and that problem was >> solved. If you follow those steps I have taken big change you running >> into some security issues. I gave my webapp a bit to much room in the >> security. I have to try to make it a bit stricter. >> >> regards >> >> Johan C. St�ver >> >> >> >>> Michele Neylon :: Blacknight Solutions wrote: >>> >>> >>> >>>> Change the settings to give you a more verbose logfile >>>> >>>> >>> >>> I suppose you mean the settings for httpd, but I'm sorry I don't >>> know how. I must say that Tomcat runs now okay on port 8080. And >>> this led me to the next very minor problem. I need to set a property >>> for a sax parser. And I don't know where I need to set that property. >>> >>> If you let me know where I can set a setting to get a more verbose >>> output I am happy to post the results :-) >>> >>> So close and yet so far. >>> >>> Just for info: >>> I installed jdk 1.4.1 into /usr/java/j2sdk1.4.1 and linked this to >>> /usr/java/jdk >>> In /etc/profile.d/java.sh I changed the JAVA_HOME to /usr/java/jdk >>> and also the PATH I changed to use /usr/java/jdk >>> In httpd.conf I changed the line Include >>> /usr/java/jakarta-tomcat/conf/mod_jk.conf-auto to >>> /usr/java/jakarta-tomcat/conf/mod_jk.conf >>> I installed tomcat 4.1.18 in >>> /usr/java/jakarta-tomcat-4.1.18-LE-jdk1.4 and link this one to >>> /usr/java/jakarta-tomcat >>> In the conf/server.xml I added the virtual hosts and enabled the >>> ajp13 connector on port 8009 and a normal connector on 8080 >>> Very important for each virtualhost in server.xml I added a appBase >>> directive with the same value as docBase. This made the webapps >>> working. >>> I changed the JAVA_HOME in /usr/sausalito/sbin/java_load_war.pl to >>> use /usr/java/jdk >>> In /usr/sausalito/handlers/base/servlet.pl I changed the ajp12 lines >>> to ajp13 >>> Also I changed the sites in /etc/httpd/conf/vhosts to use ajp13 >>> instead of ajp12 >>> >>> I installed a mod_jk-1.3-1.0-7.i586.rpm. This gave me a mod_jk.so an >>> jni_connect.so both I copied to /usr/lib/apache (I back-up the old >>> mod_jk.so). >>> >>> Now one problem is the segmentation error which line is >>> [Mon Feb 24 14:30:15 2003] [notice] child pid 32112 exit signal >>> Segmentation fault (11). >>> >>> The other problem is that I want for virtual hosts in server.xml the >>> appBase directive automatically added. I think it's done from the >>> servlet.pl. I'm I rigth and how should I do it, because pl scripts >>> is something I don't know a lot about. >>> >>> regards >>> Johan C. St�ver >>> Nilling Software Design >>> >>> >>> >>>> >>>> >>>> >>> >>> _______________________________________________ >>> cobalt-developers mailing list >>> [EMAIL PROTECTED] >>> http://list.cobalt.com/mailman/listinfo/cobalt-developers >>> >>> >>> >> >> >> >> >> > > -- Nilling Software Design Postbus 43 2280 AA Rijswijk ZH w: http://www.nilling.nl _______________________________________________ cobalt-developers mailing list [EMAIL PROTECTED] http://list.cobalt.com/mailman/listinfo/cobalt-developers _______________________________________________ cobalt-developers mailing list [EMAIL PROTECTED] http://list.cobalt.com/mailman/listinfo/cobalt-developers
