[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cobalt-developers] Installing Tomcat 4.1.18 / jdk 1.4 on Raq 550



travis@xxxxxxxxxxxxxxxx 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 <java@xxxxxxxxxx>
Sent: 2003-02-24
To: cobalt-developers@xxxxxxxxxxxxxxx
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
cobalt-developers@xxxxxxxxxxxxxxx
http://list.cobalt.com/mailman/listinfo/cobalt-developers






--
Nilling Software Design
Postbus 43
2280 AA  Rijswijk ZH
w: http://www.nilling.nl