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... IfModule mod_jk.c Include [MyDestination]/mod_jk.conf /IfModule 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 m
AW: Problem with Tomcat as NT service
hiya, try to put your jdbc driver's zip/jar file in your workers.properties file. this must look something like this... worker.inprocess.class_path=my-jdbc-driver.jar i'm not sure whether you have to modify the worker.properties or the wrapper.properties file. so you also might try the following in your wrapper.properties file... wrapper.class_path=my-jdbc-driver.jar regards daniel haischt -- -Ursprüngliche Nachricht- Von: Vinod [mailto:[EMAIL PROTECTED]] Gesendet: Mittwoch, 3. Januar 2001 12:47 An: [EMAIL PROTECTED] Betreff: Problem with Tomcat as NT service Hi, I have jakarta-tomcat-3.2 running on Win NT4 and IIS. I have used jk_nt_service.exe to make tomcat as NT service and followed the steps as it is in the documentation. After that I have started the service, when I run a small jdbc example I got the sql exception 'No suitable jdbc driver found'. The same program runs fine when I start tomcat manually. Please provide solution. Thanx n Regards, Vinod - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
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... IfModule mod_jk.c Include [MyDestination]/mod_jk.conf /IfModule 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 VirtualHost 216.55.177.74 DocumentRoot /usr/local/www/rhoderunner ServerName www.rhoderunner.com JkMount /*.jsp ajp13rhoderunner JkMount /servlet/* ajp13rhoderunner /VirtualHost 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) !--enable AJP13 support -- Connector className="org.apache.tomcat.service.PoolTcpConnector" Parameter name="handler" value="org.apache.tomcat.service.connector.Ajp13ConnectionHandler"/ Parameter name="port" value="9001"/ /Connector Host name="www.rhoderunner.com" Context path="/" docBase="/usr/local/www/rhoderunner" debug="0"/ /Host --
mod_jserv/mod_jk http 200/302 error
hello, i tried to use apache with tomcat (3.3 dev) using mod_jserv or mod_jk which i downloaded from the jakarta page. if i try to access a page (jsp or servlet) which somehow utilizes session handling, i'm getting the following junk of text at the beginning of each page. -- Status: 200 OK Content-Type: text/html;charset=8859_1 Set-Cookie2: JSESSIONID=s8qo1mxna1;Version=1;Path="/pmweb";Discard Set-Cookie: JSESSIONID=s8qo1mxna1;Path=/pmweb Servlet-Engine: Tomcat Web Server/3.3 dev ( JSP 1.1; Servlet 2.2 ) Status: 200 OK Content-Type: text/html;charset=8859_1 Set-Cookie2: JSESSIONID=9vtwkmxr61;Version=1;Path="/examples";Discard Set-Cookie: JSESSIONID=9vtwkmxr61;Path=/examples Servlet-Engine: Tomcat Web Server/3.3 dev ( JSP 1.1; Servlet 2.2 ) -- if i hit the reload button the message text changes to... --- Status: 302 Found Content-Type: text/html Location: http://dblabor2.fh-reutlingen.de/pmweb/PMWEB_Overview_Page.jsp Content-Length: 195 Set-Cookie2: JSESSIONID=s8qo1mxna1;Version=1;Path="/pmweb";Discard Set-Cookie: JSESSIONID=s8qo1mxna1;Path=/pmweb Servlet-Engine: Tomcat Web Server/3.3 dev ( JSP 1.1; Servlet 2.2 ) --- finally if i access the pages through a direct tomcat call (using port 8080) everything just goes fine as it was meant to be. as i mentioned this behavior occurs if i'm using apache (1.3.14) in conjunction with mod_jserv or mod_jk. any help regarding this problem would be appreciated. thx in advance. daniel haischt --