Re: TOMCAT 4.0 + APACHE + AJP 1.3 : look at this.
Thanks a lot for this page, I'll keep you informed on how it works for me Vendo - Original Message - From: Mike Kelley [EMAIL PROTECTED] To: Markus Baertschi [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Tuesday, December 04, 2001 11:34 PM Subject: FW: TOMCAT 4.0 + APACHE + AJP 1.3 : look at this. Markus, I got this HOW TO from a user who got TC 4.0.1 to work with Apache 1.3.22 on a W2K machine ... He also claims to have gotten it running under AIX It was Arnaud Héritier [mailto:[EMAIL PROTECTED]] that claims the success story, however I used the directions provided below and got my version of 1.3.22 + 4.0.1 + mod_jk + jdk1.3.1 working on a w2k platform -Original Message- From: Arnaud Héritier [mailto:[EMAIL PROTECTED]] Sent: Thursday, October 11, 2001 4:31 AM To: '[EMAIL PROTECTED]' Subject: RE: TOMCAT 4.0 + APACHE + AJP 1.3 : look at this. -Message d'origine- De: Curley, Thomas [SMTP:[EMAIL PROTECTED]] Date: jeudi 11 octobre 2001 12:05 À: [EMAIL PROTECTED] Objet: RE: TOMCAT 4.0 + APACHE + AJP 1.3 : look at this. I realise there has been alot of chat ref integration but I would appreciate clarification for Win2K platform Qu: -- I wish to integrate Apache 1.3 and Tomcat 4.0 for on Win 2000 (ie) static resources from apache, JSP and Servlets from TC a) Do I need to add AJP 1.3 support ? It seems that there's no release for windows of the other connector : mod_webapp. So I think that is the only connector available today except that you want and you can compile the mod_webapp connector under a Windows Plateform. I followed instructions from this documents and adapted them for TC 4.0. So here is what I done . 1) Tomcat 4.0 : - Be carefull to do not install TC4 in a path with spaces ! otherwise you should use the 8.3 directory names to configure TC - In the server/lib subdirectory of TC4 add the ajp.jar and the tomcat-util.jar - in the conf subdirectory copy the workers.properties from a TC 3.2. Edit it and fill the lines : workers.tomcat_home=C:\Programs\Tomcat4.0 workers.java_home=C:\Programs\jdk1.3.1 with your own configuration. - Edit the server.xml and add the AJP connector like this : !-- Connector for AJP 1.3 -- Connector className=org.apache.ajp.tomcat4.Ajp13Connector port=8009 minProcessors=5 maxProcessors=75 acceptCount=10 debug=0 connectionTimeout=0 / Now the tomcat server is ready 2) Apache - firstly copy the mod_jk.dll from the TC3 distrib in the apache modules subdirectory - Configure Apache Contrary to TC3, TC4 do not generate the Apache configuration. So you should do it yourself. At the end of your httpd.conf file you should add (and adapt) # TC 4.0 settings # # The following line instructs Apache to load the jk module # LoadModule jk_module modules/mod_jk.dll JkWorkersFile C:/Programs/Tomcat4.0/conf/workers.properties JkLogFile C:/Programs/Tomcat4.0/logs/mod_jk.log # # Log level to be used by mod_jk # JkLogLevel error # # Root context mounts for Tomcat # JkMount /*.jsp ajp13 JkMount /servlet/* ajp13 Then for each Context you had created in tomcat you should had a paragraph like this (it's the same thong as in TC3): Here my context is /pfe and the directory of the web-app is C:/Work/Dev/pfe/stock/gui/dist/pfe-gui # # The following line makes apache aware of the location of the /pfe context # Alias /pfe C:/Work/Dev/pfe/stock/gui/dist/pfe-gui Directory C:/Work/Dev/pfe/stock/gui/dist/pfe-gui Options Indexes FollowSymLinks /Directory # # The following line mounts all JSP files and the /servlet/ uri to tomcat # JkMount /pfe/servlet/* ajp13 JkMount /pfe/*.jsp ajp13 JkMount /pfe/*.do ajp13 # # The following line prohibits users from directly accessing WEB-INF # Location /pfe/WEB-INF/ AllowOverride None deny from all /Location # # Use Directory too. On Windows, Location doesn't work unless case matches # Directory C:/Work/Dev/pfe/stock/gui/dist/pfe-gui/WEB-INF/ AllowOverride None deny from all /Directory # # The following line prohibits users from directly accessing META-INF # Location /pfe/META-INF/ AllowOverride None deny from all /Location # # Use Directory too. On Windows, Location doesn't work unless case matches # Directory C:/Work/Dev/pfe/stock/gui/dist/pfe-gui/META-INF/ AllowOverride None deny from all /Directory You can also do the same type of things to deploy the web-app directly as the root of apache. To help you, I join my configuration files. Wishing that this explainations will help you. arno. (if yes the instructions below don't work - TC wont start - I guess the note applies only to linux build) b) Can I just follow the TC 3.3 doc for integrating Apache and mod_jk as outlined http://jakarta.apache.org/tomcat/tomcat-3.3-doc/tomcat-apache-howto.ht ml http://jakarta.apache.org/tomcat/tomcat-3.3-doc/mod_jk-howto.html many thanks for this clarification Thomas Curley -Original Message- From
Re: mod_webapp config
Hi Mike I'm encountering a few pb with mo_jk, but at least Apache httpd is starting without any pb. When I request http://localhost:8009, I get this error message in tomcat4 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | java.lang.ArrayIndexOutOfBoundsException at org.apache.ajp.Ajp13Packet.hexLine(Ajp13Packet.java:521) at org.apache.ajp.Ajp13Packet.dump(Ajp13Packet.java:539) at org.apache.ajp.Ajp13Packet.checkIn(Ajp13Packet.java:193) at org.apache.ajp.Ajp13.receive(Ajp13.java:914) at org.apache.ajp.Ajp13.receiveNextRequest(Ajp13.java:296) at org.apache.ajp.tomcat4.Ajp13Processor.process(Ajp13Processor.java:339 ) at org.apache.ajp.tomcat4.Ajp13Processor.run(Ajp13Processor.java:424) at java.lang.Thread.run(Unknown Source) = I guess there is something wrong somewhere: (I got the same result with all the lines about webinf ...) here is what I've added to httpd.conf # Tomcat 4.0 WebApp Connector # Tomcat 4.0 AJP13 Connector LoadModule jk_module modules/mod_jk.dll JkWorkersFile G:/Tomcat/conf/workers.properties JkLogFile G:/Tomcat/logs/mod_jk.log # # Log level to be used by mod_jk # JkLogLevel error # # Root context mounts for Tomcat # JkMount /*.jsp ajp13 JkMount /servlet/* ajp13 And I've added the correct lines in the properties file. If you have any idea about what is going wrong... Vendo - Original Message - From: Mike Kelley [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Tuesday, December 04, 2001 11:00 PM Subject: RE: mod_webapp config I gave up also I followed the steps set by a few others to use Mod_jk . Works wonderfully If you would like me to forward the steps just let me know -Original Message- From: vendo [mailto:[EMAIL PROTECTED]] Sent: Tuesday, December 04, 2001 2:20 PM To: Tomcat Users List Subject: Re: mod_webapp config yes, sorry, but for sure, mod_webapp at least doesn't work on win95, even with all the suggestions I kindly got from this list. I give up too. Vendo - Original Message - From: Endre Stølsvik [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Tuesday, December 04, 2001 8:53 AM Subject: Re: mod_webapp config On Tue, 4 Dec 2001, hanzo wrote: | | - Original Message - | From: William Tansill [EMAIL PROTECTED] | To: Tomcat Users List [EMAIL PROTECTED] | Sent: Monday, December 03, 2001 1:15 AM | Subject: RE: mod_webapp config | | | My guess is that if you want to create and run your own JSP's, you will need | to install them per the standard deployment mechanism, update server.xml to | reflect the new deployment context, and then restart Tomcat. At | least those | are the steps I'm planning on taking when I get an example up and running. | If you get your stuff working first, write back to the group and | let me know | how you did it. Thanks! | | I give up using mod_webapp.. mod_rewrite is -a lot easier- That is just such a cool idea! :) Just f*** that whole stupid mod_shitty_connectors_stuff_won't_ever_work_stable_anyway_because_noone_take s_- responsibility_even_though_both_projects_are_apache_and_it's_such_a_- blantantly_needed_piece_of_software.so and just go for something that'll rewrite the whole URL! Great idea! Really! ;) But I guess you loose a bit functionality, e.g. the Context|Request|Config.getSomeAttribute() returns the wrong values? -- Mvh, Endre -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: mod_webapp config
Thanks a lot I've seen a few pages, mainly about ajp13, I don't really know what it is. I'd appreciate if you could send me a few notes on how I should install mod_jk on Tomcat4 for Apache1.3.22 on win95. Thanks by advance. Vendo - Original Message - From: Mike Kelley [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Tuesday, December 04, 2001 11:00 PM Subject: RE: mod_webapp config I gave up also I followed the steps set by a few others to use Mod_jk . Works wonderfully If you would like me to forward the steps just let me know -Original Message- From: vendo [mailto:[EMAIL PROTECTED]] Sent: Tuesday, December 04, 2001 2:20 PM To: Tomcat Users List Subject: Re: mod_webapp config yes, sorry, but for sure, mod_webapp at least doesn't work on win95, even with all the suggestions I kindly got from this list. I give up too. Vendo - Original Message - From: Endre Stølsvik [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Tuesday, December 04, 2001 8:53 AM Subject: Re: mod_webapp config On Tue, 4 Dec 2001, hanzo wrote: | | - Original Message - | From: William Tansill [EMAIL PROTECTED] | To: Tomcat Users List [EMAIL PROTECTED] | Sent: Monday, December 03, 2001 1:15 AM | Subject: RE: mod_webapp config | | | My guess is that if you want to create and run your own JSP's, you will need | to install them per the standard deployment mechanism, update server.xml to | reflect the new deployment context, and then restart Tomcat. At | least those | are the steps I'm planning on taking when I get an example up and running. | If you get your stuff working first, write back to the group and | let me know | how you did it. Thanks! | | I give up using mod_webapp.. mod_rewrite is -a lot easier- That is just such a cool idea! :) Just f*** that whole stupid mod_shitty_connectors_stuff_won't_ever_work_stable_anyway_because_noone_take s_- responsibility_even_though_both_projects_are_apache_and_it's_such_a_- blantantly_needed_piece_of_software.so and just go for something that'll rewrite the whole URL! Great idea! Really! ;) But I guess you loose a bit functionality, e.g. the Context|Request|Config.getSomeAttribute() returns the wrong values? -- Mvh, Endre -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: mod_webapp config
yes, sorry, but for sure, mod_webapp at least doesn't work on win95, even with all the suggestions I kindly got from this list. I give up too. Vendo - Original Message - From: Endre Stølsvik [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Tuesday, December 04, 2001 8:53 AM Subject: Re: mod_webapp config On Tue, 4 Dec 2001, hanzo wrote: | | - Original Message - | From: William Tansill [EMAIL PROTECTED] | To: Tomcat Users List [EMAIL PROTECTED] | Sent: Monday, December 03, 2001 1:15 AM | Subject: RE: mod_webapp config | | | My guess is that if you want to create and run your own JSP's, you will need | to install them per the standard deployment mechanism, update server.xml to | reflect the new deployment context, and then restart Tomcat. At least those | are the steps I'm planning on taking when I get an example up and running. | If you get your stuff working first, write back to the group and let me know | how you did it. Thanks! | | I give up using mod_webapp.. mod_rewrite is -a lot easier- That is just such a cool idea! :) Just f*** that whole stupid mod_shitty_connectors_stuff_won't_ever_work_stable_anyway_because_noone_take s_- responsibility_even_though_both_projects_are_apache_and_it's_such_a_- blantantly_needed_piece_of_software.so and just go for something that'll rewrite the whole URL! Great idea! Really! ;) But I guess you loose a bit functionality, e.g. the Context|Request|Config.getSomeAttribute() returns the wrong values? -- Mvh, Endre -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: win95 mod_webapp cannot load
hi Using Apache 1.3.22 On win95 With Tomcat4.0.1 Error message: = Syntax error on line 193 of e:/program files/apache group/apache/conf/httpd.conf: Cannot load e:/program files/apache group/apache/modules/mod_webapp.so into server: (31) A device attached to the system is not functionning properly. [in french: Un pÚriphÚrique attachÚ au systÞme ne fonctionne pas correctement:] == No, I didn't put any space: The error message is giving the complete path, but in the httpd.conf, I've wrote: LoadModule webapp_module modules/mod_webapp.so and AddModule mod_webapp.c I've put libapr.dll in almost every directory to see if it works, and mod_webapp.so is well in the modules directory. But still doesn't work. I really think that the libapr.dll isn't for win95 or is it the mod_webapp.so? I guess it only works on NT4 Thanks for any suggestion. Vendo - Original Message - From: Ing. Gabriel Gajdos [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, December 03, 2001 11:54 AM Subject: RE: win95 mod_webapp cannot load | Thanks William | My libapr.dll wasn't in the above directory | Unfortunately, it only changed the error message. | Syntax error on line 193 of e:/program files/apache | group/apache/conf/httpd.conf : | Cannot load e:/program files/apache group/apache/modules/mod_webapp.so into | serv | er: (31) A device associated to the system doesn't work correctly. | (I've translated again) ;-) Could be that spaces in path are not parsed correctly: Try this: e:/ .. /mod_webapp.so or this LoadModule webapp_module modules/mod_webapp.so or try to copy mod_webapp.so to another directory. Just for control: Which version of Apache do you use? If less than 1.3.15 (guess), upgrade to current to have *.so modules support. | Could you tell me if there is a log file that would tell me more about this | device? | Thanks | Vendo -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
win95 mod_webapp cannot load
Hi Trying to get Apache1.3.22 and Tomcat4.01 to work together on win95, I've downloaded the mod_webapp from jakarta, but it doesn't seem to work: at each start I get a message saying: Syntax error on line 1036 of e:/program files/apachegroup/apache/conf/httpd.conf : Cannot load e:/program files/apache group/apache/libexec/mod_webapp.so into serv r: (1157) One of the necessary librairy of this application couldn't be found (the last line is in french, I translated as I could) [Une des librairies nÚcessaires Ó l'exÚcution de cette application n'a pu Ûtre trouvÚe:] Is my libapr.dll or mod_webapp.so a wrong version? Thanks for help Vendo