AW: pls help-freebsd,mod_jk,apache,up all night and turning psycho!
hello, 1st step use the makefile i've attached to this mail. the one which comes with the tomcat distribution ist crap (sorry, 'bout that). it defines symboles as c compiler flags which wont work on freebsd. note: i'm talking about freebsd 4.0 2nd step - configuring the module to work with apache --- take a look at the mod_jk.conf file i've attached to this mail. you can copy the example section and use it for your own webapps. finally you have to add this to the apache.conf file... Include [MyDestination]/mod_jk.conf 3rd step - what happens during compilation --- first of all - all files will be compiled! but u'll get some warnings. don't bother about them, for me mod_jk works even with those warnings. if you are experienced in c programming, you might take a look at the source code to fix the warnings. 4th step - what distribution do i use -- i'm using the 3.3 distribution. this distribution doesn't generate the mod_jk.conf-auto. finally i'm using the linux-jdk1.2.2 + linux-jdk1.3.0 freebsd port. hope this helps bye daniel haischt -- p.s. btw - can you send me the url to the native freebsd 1.2.2 jdk? -Ursprüngliche Nachricht- Von: Dave Smith [mailto:[EMAIL PROTECTED]] Gesendet: Freitag, 20. Oktober 2000 01:20 An: [EMAIL PROTECTED] Betreff: Re: pls help-freebsd,mod_jk,apache,up all night and turning psycho! Phillip, Question, did you compile mod_jk.so using the supplied makefile? If so, you didn't get the whole thing compiled. The makefile doesn't work correctly. So that is the first shibboleth. Your config files look pretty good, which is why I ask. The mod_jk.so will appear to compile and even load, but it won't work. What does the output look like for the compile? Are all the supplied files compiling? Second, I suggest you try and get things working "out of the box", I.e., with the mod_jk.conf-auto. Once things work you can then modify, add virtual hosts, etc with more assurance. Good Luck (it can be made to work), Dave - Original Message - From: "Phillip C Rhodes" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, January 03, 2001 12:34 PM Subject: pls help-freebsd,mod_jk,apache,up all night and turning psycho! > Well, getting past the point of frustration anyway. I read all the docs > and have set Athis up on NT fine with virtual hosting and apache...and put > JRun on 4 > different OS's but can't get this install to work. > > I am running Apache 1.3.9 on 3.4-RELEASE FreeBSD > Tomcat is 3.2.1. JDK is the native 1.2.2 for FreeBSD > > I built mod_jk.so from source. > I start up tomcat. 7001 for http, 8001 for ajp12, and 9001 for ajp13. I > can connect to the http port (7001) and jsp's run fine. However, if I > invoke a jsp from apache, apache is not sending the request to tomcat. I > know it is such a simple problem, but really, I been up all night and need > some help before I go crazy:) > > I start up apache, no problems. It works. No errors in mod_jk.log. It > creates the workers. No errors in servlet.log or jasper.log > > Here is some snippets of what I have done. If you see the error of my > ways, please feel free to punish me however you see fit. > Thanks! > > My apache file: > > LoadModulejk_module libexec/apache/mod_jk.so > AddModule mod_jk.c > > # Configure mod_jk > # > JkWorkersFile /usr/local/jakarta-tomcat-3.2.1/conf/workers.properties > JkLogFile /usr/local/etc/apache/mod_jk.log > JkLogLevelerror > > > > DocumentRoot /usr/local/www/rhoderunner > ServerName www.rhoderunner.com > JkMount /*.jsp ajp13rhoderunner > JkMount /servlet/* ajp13rhoderunner > > > > My worker.properties file: > > worker.list=ajp12rhoderunner,ajp13rhoderunner > > (left out ajp12rhoderunner worker...on port 8001) > # > # Defining a worker named ajp13 and of type ajp13 > # Note that the name and the type do not have to match. > # > worker.ajp13rhoderunner.port=9001 > worker.ajp13rhoderunner.host=localhost > worker.ajp13rhoderunner.type=ajp13 > # > # Specifies the load balance factor when used with > # a load balancing worker. > # Note: > # > lbfactor must be > 0 > # > Low lbfactor means less work done by the worker. > worker.ajp13rhoderunner.lbfactor=1 > > > My server.xml file: > (of course I have an AJP12 connector on 8001) > > > > value="org.apache.tomcat.service.connector.Ajp13ConnectionHandler"/> > > > > > > > > > > > > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, email: [EMAIL PROTECTED] > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] Makefile.freebsd mod_jk.conf workers.prope
AW: pls help-freebsd,mod_jk,apache,up all night and turning psycho!
hello, it took me also some days to get mod_jk to compile. unfortunatly mod_jk's behaviour during the compile process varies between plattform. freebsd is the only os i got a fully functional mod_jk. i think mod_jk needs some major rework, never had those problems with mod_jserv. that module even compiles with a single stupid apxs command line. so far... regards daniel haischt -- -Ursprüngliche Nachricht- Von: Phillip Rhodes [mailto:[EMAIL PROTECTED]] Gesendet: Freitag, 5. Januar 2001 06:28 An: Daniel Haischt Betreff: Re: pls help-freebsd,mod_jk,apache,up all night and turning psycho! The FreeBSD jdk is at http://www.freebsd.org/java/dists/12.html I could not get your make file to work. I changed things around and got it to compile without any errors or warnings, but if I tried to include it in my httpd.conf I would get the following: missing symbol error. Anyway, don't worry about it because it works now: I used the following commands to compile: /usr/local/sbin/apxs -c -I/usr/local/jdk1.2.2/include -I/usr/local/jdk1.2.2/ include/freebsd -DFREEBSD -I/usr/local/apache/include -I../jk mod_jk.c ../jk/*.c gcc -shared -o mod_jk.so *.o Thanks for your help! - Original Message - From: "Daniel Haischt" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Thursday, January 04, 2001 1:31 AM Subject: AW: pls help-freebsd,mod_jk,apache,up all night and turning psycho! > hello, > > 1st step > > > use the makefile i've attached to this mail. > the one which comes with the tomcat distribution > ist crap (sorry, 'bout that). it defines symboles > as c compiler flags which wont work on freebsd. > > note: i'm talking about freebsd 4.0 > > 2nd step - configuring the module to work with apache > --- > > take a look at the mod_jk.conf file i've attached to > this mail. you can copy the example section and use > it for your own webapps. > > finally you have to add this to the apache.conf file... > > > Include [MyDestination]/mod_jk.conf > > > 3rd step - what happens during compilation > --- > > first of all - all files will be compiled! > but u'll get some warnings. don't bother about them, > for me mod_jk works even with those warnings. > > if you are experienced in c programming, > you might take a look at the source code to fix > the warnings. > > 4th step - what distribution do i use > -- > > i'm using the 3.3 distribution. this distribution > doesn't generate the mod_jk.conf-auto. > > finally i'm using the linux-jdk1.2.2 + linux-jdk1.3.0 > freebsd port. > > hope this helps > > bye > > daniel haischt > -- > p.s. btw - can you send me the url to the > native freebsd 1.2.2 jdk? > > -Ursprüngliche Nachricht- > Von: Dave Smith [mailto:[EMAIL PROTECTED]] > Gesendet: Freitag, 20. Oktober 2000 01:20 > An: [EMAIL PROTECTED] > Betreff: Re: pls help-freebsd,mod_jk,apache,up all night and turning > psycho! > > > Phillip, > > Question, did you compile mod_jk.so using the supplied makefile? > If so, you didn't get the whole thing compiled. The makefile doesn't > work correctly. So that is the first shibboleth. > > Your config files look pretty good, which is why I ask. The mod_jk.so > will appear to compile and even load, but it won't work. > > What does the output look like for the compile? Are all the supplied > files compiling? > > Second, I suggest you try and get things working "out of the box", > I.e., with the mod_jk.conf-auto. Once things work you can then > modify, add virtual hosts, etc with more assurance. > > > Good Luck (it can be made to work), > > Dave > > - Original Message - > From: "Phillip C Rhodes" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Wednesday, January 03, 2001 12:34 PM > Subject: pls help-freebsd,mod_jk,apache,up all night and turning psycho! > > > > Well, getting past the point of frustration anyway. I read all the docs > > and have set Athis up on NT fine with virtual hosting and apache...and put > > JRun on 4 > > different OS's but can't get this install to work. > > > > I am running Apache 1.3.9 on 3.4-RELEASE FreeBSD > > Tomcat is 3.2.1. JDK is the native 1.2.2 for FreeBSD > > > > I built mod_jk.so from source. > > I start up tomcat. 7001 for http, 8001 for ajp12, and 9001 for ajp13. I > > can connect to the http port (7001) and jsp's run fine. However, if I > > invoke