mod_jk2 binary for Apache 2.0.47/Win
Hi, I am trying to integrate Tomcat with Apache2 via the mod_jk2 module and CoyoteConnector on the Java side. Nothing experimental here, so far. Problem is 1) the module needs to be compiled against exactly the same Apache version into which it is to be deployed later 2) the only binary Apache2 is 2.0.47 3) the only binary mod_jk2 is against 2.0.43 4) I don't have a MSVC compiler suite 5) The jakarta-connector documents say that only MSVC is possible, so I conclude MinGW or Cygwin won't be helpful here If anybody could point me to a solution to this it would be very helpful. Thanks and regards, -Florian - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: mod_jk2 binary for Apache 2.0.47/Win
Hi, Apache 2.0.47 will work with mod_jk2 connector. I have it working on my machine. In apache httpd.conf LoadModule jk2_module modules/mod_jk2.dll (I named it mod_jk2.dll) workers2.properties file in your apache2/conf/ directory #For the first tomcat listening on port 8009 First instance of Web Services listening on port 9000 [channel.socket:machine1:8009] info=Ajp13 forwarding over socket debug=20 tomcatId=tomcat1 #Load Balancing Tomcat on port 9000 lb_factor=20 #Second tomcat on machine 2 port 9300 #[channel.socket:machine2:8009] #info=Ajp13 forwarding over socket debug=20 #tomcatId=tomcat2 #Load Balancing tomcat port 9300 lb_factor=10 [status:] info=Status worker,displays run time informations [uri:/jkstatus/*] info=Displaystatusinformationandcheckstheconfigfileforchanges. group=status: [uri:/examples/*] info=Examplewebappinthedefaultcontext. context=/examples debug=20 #Configure the shared memory file [shm] file=C:/apache/apache2/logs/shm.file size=1048576 debug=0 #End of Workers2.properties. In server.xml !-- Define a Coyote/JK2 AJP 1.3 Connector on port 8009 -- Connector className=org.apache.coyote.tomcat4.CoyoteConnector port=8009 minProcessors=5 maxProcessors=75 enableLookups=true redirectPort=8443 acceptCount=10 debug=0 connectionTimeout=2 useURIValidationHack=false protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler / Engine name=Standalone defaultHost=localhost debug=0 jvmRoute=tomcat1 This is all you need to configure Asif -Original Message- From: Florian Ebeling [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 28, 2003 7:32 AM To: Tomcat Users List Subject: mod_jk2 binary for Apache 2.0.47/Win Hi, I am trying to integrate Tomcat with Apache2 via the mod_jk2 module and CoyoteConnector on the Java side. Nothing experimental here, so far. Problem is 1) the module needs to be compiled against exactly the same Apache version into which it is to be deployed later 2) the only binary Apache2 is 2.0.47 3) the only binary mod_jk2 is against 2.0.43 4) I don't have a MSVC compiler suite 5) The jakarta-connector documents say that only MSVC is possible, so I conclude MinGW or Cygwin won't be helpful here If anybody could point me to a solution to this it would be very helpful. Thanks and regards, -Florian - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: mod_jk2 binary for Apache 2.0.47/Win
Hi Jean-Max, this won't work, Apache accepts only modules with exactly matching version numbers. I tried the mod_jk module, because this one is in sync with the Apache2 release. You can get it here: http://www.apache.de/dist/jakarta/tomcat-connectors/jk/binaries/win32/ mod_jk is deprecated, I know. But it has been in production for a faily long time, so it shouldn't be too daring to use this. To get it running, one has to do configuration in several places: First, I created a file workers.peroperties in $TOMCAT_HOME/conf like this: --- worker.list=worker1 worker.worker1.host=127.0.0.1 worker.worker1.port=8009 worker.worker1.type=ajp13 --- Then I added this to $APACHE_HOME/conf/httpd.conf, behind the section where all the othher LoadModule ... directives get listed. --- LoadModule jk_module modules/mod_jk_1.2.5_2.0.47.dll #AddModule mod_jk_1.2.5_2.0.47.c #AddModule jk_module.c #AddModule mod_jk.c JkWorkersFile c:/jakarta-tomcat-4.1.24/conf/workers.properties JkLogFile C:/Programme/Apache Group/Apache2/logs/mod_jk.log JkLogLevel debug JkLogStampFormat [%a %b %d %H:%M:%S %Y] --- - adjust path to your workers.properties here - add path for a log file for the module here (eg. mod_jk.log) Then, add this snippet to httpd.conf VirtualHost * ServerAdmin [EMAIL PROTECTED] DocumentRoot C:/Programme/Apache Group/Apache2/htdocs_javaroom ServerName javaroom ErrorLog logs/javaroom-error.log CustomLog logs/javaroom-access.log common JkMount /*.jsp worker1 JkMount /javaroom/* worker1 /VirtualHost - replace the virtual host server name with your server name - replace JkMount /javaroom/* so that it specifies some webapp context of yours And, finally, add the neccessary Tomcat Connector to your server.xml: Connector className=org.apache.ajp.tomcat4.Ajp13Connector port=8009 minProcessors=5 maxProcessors=250 / - I put it just behind Service ... Then restart Tomcat and Apache2 and ping your app. One question remains: All the documentation, I consulted said one has to use a AddModule ... directive in the httpd.conf. But all the commented variants above prevent the apache from starting up at all. Do you have any idea what this might happen to mean? -Florian Jean-Max Estay wrote: Hello, I think we are in the same lock. I don't know if you saw my mail in this thread. In a nutshell, I try to connect Apache 2.0.47 (win32) with Tomcat via JK2 and use the only module I identify : mod_jk2-1.3.27.dll. And Apache can't load this module from this dll ! If you resolve your pb, please send me the trick. I will do if I find it first. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: mod_jk2 binary for Apache 2.0.47/Win
Hi Asif, thanks for your answere. I didn't try the module with the non-matching number. In fact, it does load. I read it several times, so I didn't question this. However, are you sure you do not have a jk2.properties file in your Tomcat /conf? The mod_jk2 documentation suggests there should be two file. -Florian Asif Chowdhary wrote: Hi, Apache 2.0.47 will work with mod_jk2 connector. I have it working on my machine. In apache httpd.conf LoadModule jk2_module modules/mod_jk2.dll (I named it mod_jk2.dll) workers2.properties file in your apache2/conf/ directory #For the first tomcat listening on port 8009 First instance of Web Services listening on port 9000 [channel.socket:machine1:8009] info=Ajp13 forwarding over socket debug=20 tomcatId=tomcat1 #Load Balancing Tomcat on port 9000 lb_factor=20 #Second tomcat on machine 2 port 9300 #[channel.socket:machine2:8009] #info=Ajp13 forwarding over socket debug=20 #tomcatId=tomcat2 #Load Balancing tomcat port 9300 lb_factor=10 [status:] info=Status worker,displays run time informations [uri:/jkstatus/*] info=Displaystatusinformationandcheckstheconfigfileforchanges. group=status: [uri:/examples/*] info=Examplewebappinthedefaultcontext. context=/examples debug=20 #Configure the shared memory file [shm] file=C:/apache/apache2/logs/shm.file size=1048576 debug=0 #End of Workers2.properties. In server.xml !-- Define a Coyote/JK2 AJP 1.3 Connector on port 8009 -- Connector className=org.apache.coyote.tomcat4.CoyoteConnector port=8009 minProcessors=5 maxProcessors=75 enableLookups=true redirectPort=8443 acceptCount=10 debug=0 connectionTimeout=2 useURIValidationHack=false protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler / Engine name=Standalone defaultHost=localhost debug=0 jvmRoute=tomcat1 This is all you need to configure Asif -Original Message- From: Florian Ebeling [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 28, 2003 7:32 AM To: Tomcat Users List Subject: mod_jk2 binary for Apache 2.0.47/Win Hi, I am trying to integrate Tomcat with Apache2 via the mod_jk2 module and CoyoteConnector on the Java side. Nothing experimental here, so far. Problem is 1) the module needs to be compiled against exactly the same Apache version into which it is to be deployed later 2) the only binary Apache2 is 2.0.47 3) the only binary mod_jk2 is against 2.0.43 4) I don't have a MSVC compiler suite 5) The jakarta-connector documents say that only MSVC is possible, so I conclude MinGW or Cygwin won't be helpful here If anybody could point me to a solution to this it would be very helpful. Thanks and regards, -Florian - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: mod_jk2 binary for Apache 2.0.47/Win
No I dont have that file in the conf directory. The documentation is very confusing. It works fine -Original Message- From: Florian Ebeling [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 28, 2003 10:56 AM To: Tomcat Users List Subject: Re: mod_jk2 binary for Apache 2.0.47/Win Hi Asif, thanks for your answere. I didn't try the module with the non-matching number. In fact, it does load. I read it several times, so I didn't question this. However, are you sure you do not have a jk2.properties file in your Tomcat /conf? The mod_jk2 documentation suggests there should be two file. -Florian Asif Chowdhary wrote: Hi, Apache 2.0.47 will work with mod_jk2 connector. I have it working on my machine. In apache httpd.conf LoadModule jk2_module modules/mod_jk2.dll (I named it mod_jk2.dll) workers2.properties file in your apache2/conf/ directory #For the first tomcat listening on port 8009 First instance of Web Services listening on port 9000 [channel.socket:machine1:8009] info=Ajp13 forwarding over socket debug=20 tomcatId=tomcat1 #Load Balancing Tomcat on port 9000 lb_factor=20 #Second tomcat on machine 2 port 9300 #[channel.socket:machine2:8009] #info=Ajp13 forwarding over socket debug=20 #tomcatId=tomcat2 #Load Balancing tomcat port 9300 lb_factor=10 [status:] info=Status worker,displays run time informations [uri:/jkstatus/*] info=Displaystatusinformationandcheckstheconfigfileforchanges. group=status: [uri:/examples/*] info=Examplewebappinthedefaultcontext. context=/examples debug=20 #Configure the shared memory file [shm] file=C:/apache/apache2/logs/shm.file size=1048576 debug=0 #End of Workers2.properties. In server.xml !-- Define a Coyote/JK2 AJP 1.3 Connector on port 8009 -- Connector className=org.apache.coyote.tomcat4.CoyoteConnector port=8009 minProcessors=5 maxProcessors=75 enableLookups=true redirectPort=8443 acceptCount=10 debug=0 connectionTimeout=2 useURIValidationHack=false protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler / Engine name=Standalone defaultHost=localhost debug=0 jvmRoute=tomcat1 This is all you need to configure Asif -Original Message- From: Florian Ebeling [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 28, 2003 7:32 AM To: Tomcat Users List Subject: mod_jk2 binary for Apache 2.0.47/Win Hi, I am trying to integrate Tomcat with Apache2 via the mod_jk2 module and CoyoteConnector on the Java side. Nothing experimental here, so far. Problem is 1) the module needs to be compiled against exactly the same Apache version into which it is to be deployed later 2) the only binary Apache2 is 2.0.47 3) the only binary mod_jk2 is against 2.0.43 4) I don't have a MSVC compiler suite 5) The jakarta-connector documents say that only MSVC is possible, so I conclude MinGW or Cygwin won't be helpful here If anybody could point me to a solution to this it would be very helpful. Thanks and regards, -Florian - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: mod_jk2 binary for Apache 2.0.47/Win
Hi Asif, I get it up and running, finally. Many thanks for your help. I wonder: you don't know of a resource on configuring this strange animal, workers2.properties, by any chance? I found my current configuration by rather poking in the fog, tweaking your file here and there. This is not the most predictable of all methods, perhaps. Regards, -Florian Asif Chowdhary wrote: No I dont have that file in the conf directory. The documentation is very confusing. It works fine -Original Message- From: Florian Ebeling [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 28, 2003 10:56 AM To: Tomcat Users List Subject: Re: mod_jk2 binary for Apache 2.0.47/Win Hi Asif, thanks for your answere. I didn't try the module with the non-matching number. In fact, it does load. I read it several times, so I didn't question this. However, are you sure you do not have a jk2.properties file in your Tomcat /conf? The mod_jk2 documentation suggests there should be two file. -Florian Asif Chowdhary wrote: Hi, Apache 2.0.47 will work with mod_jk2 connector. I have it working on my machine. In apache httpd.conf LoadModule jk2_module modules/mod_jk2.dll (I named it mod_jk2.dll) workers2.properties file in your apache2/conf/ directory #For the first tomcat listening on port 8009 First instance of Web Services listening on port 9000 [channel.socket:machine1:8009] info=Ajp13 forwarding over socket debug=20 tomcatId=tomcat1 #Load Balancing Tomcat on port 9000 lb_factor=20 #Second tomcat on machine 2 port 9300 #[channel.socket:machine2:8009] #info=Ajp13 forwarding over socket debug=20 #tomcatId=tomcat2 #Load Balancing tomcat port 9300 lb_factor=10 [status:] info=Status worker,displays run time informations [uri:/jkstatus/*] info=Displaystatusinformationandcheckstheconfigfileforchanges. group=status: [uri:/examples/*] info=Examplewebappinthedefaultcontext. context=/examples debug=20 #Configure the shared memory file [shm] file=C:/apache/apache2/logs/shm.file size=1048576 debug=0 #End of Workers2.properties. In server.xml !-- Define a Coyote/JK2 AJP 1.3 Connector on port 8009 -- Connector className=org.apache.coyote.tomcat4.CoyoteConnector port=8009 minProcessors=5 maxProcessors=75 enableLookups=true redirectPort=8443 acceptCount=10 debug=0 connectionTimeout=2 useURIValidationHack=false protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler / Engine name=Standalone defaultHost=localhost debug=0 jvmRoute=tomcat1 This is all you need to configure Asif -Original Message- From: Florian Ebeling [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 28, 2003 7:32 AM To: Tomcat Users List Subject: mod_jk2 binary for Apache 2.0.47/Win Hi, I am trying to integrate Tomcat with Apache2 via the mod_jk2 module and CoyoteConnector on the Java side. Nothing experimental here, so far. Problem is 1) the module needs to be compiled against exactly the same Apache version into which it is to be deployed later 2) the only binary Apache2 is 2.0.47 3) the only binary mod_jk2 is against 2.0.43 4) I don't have a MSVC compiler suite 5) The jakarta-connector documents say that only MSVC is possible, so I conclude MinGW or Cygwin won't be helpful here If anybody could point me to a solution to this it would be very helpful. Thanks and regards, -Florian - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: mod_jk2 binary for Apache 2.0.47/Win
There is tomcat book from Oreilly which is very helpful. I am using that Tomcat the Definite guide. Asif -Original Message- From: Florian Ebeling [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 28, 2003 11:59 AM To: Tomcat Users List Subject: Re: mod_jk2 binary for Apache 2.0.47/Win Hi Asif, I get it up and running, finally. Many thanks for your help. I wonder: you don't know of a resource on configuring this strange animal, workers2.properties, by any chance? I found my current configuration by rather poking in the fog, tweaking your file here and there. This is not the most predictable of all methods, perhaps. Regards, -Florian Asif Chowdhary wrote: No I dont have that file in the conf directory. The documentation is very confusing. It works fine -Original Message- From: Florian Ebeling [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 28, 2003 10:56 AM To: Tomcat Users List Subject: Re: mod_jk2 binary for Apache 2.0.47/Win Hi Asif, thanks for your answere. I didn't try the module with the non-matching number. In fact, it does load. I read it several times, so I didn't question this. However, are you sure you do not have a jk2.properties file in your Tomcat /conf? The mod_jk2 documentation suggests there should be two file. -Florian Asif Chowdhary wrote: Hi, Apache 2.0.47 will work with mod_jk2 connector. I have it working on my machine. In apache httpd.conf LoadModule jk2_module modules/mod_jk2.dll (I named it mod_jk2.dll) workers2.properties file in your apache2/conf/ directory #For the first tomcat listening on port 8009 First instance of Web Services listening on port 9000 [channel.socket:machine1:8009] info=Ajp13 forwarding over socket debug=20 tomcatId=tomcat1 #Load Balancing Tomcat on port 9000 lb_factor=20 #Second tomcat on machine 2 port 9300 #[channel.socket:machine2:8009] #info=Ajp13 forwarding over socket debug=20 #tomcatId=tomcat2 #Load Balancing tomcat port 9300 lb_factor=10 [status:] info=Status worker,displays run time informations [uri:/jkstatus/*] info=Displaystatusinformationandcheckstheconfigfileforchanges. group=status: [uri:/examples/*] info=Examplewebappinthedefaultcontext. context=/examples debug=20 #Configure the shared memory file [shm] file=C:/apache/apache2/logs/shm.file size=1048576 debug=0 #End of Workers2.properties. In server.xml !-- Define a Coyote/JK2 AJP 1.3 Connector on port 8009 -- Connector className=org.apache.coyote.tomcat4.CoyoteConnector port=8009 minProcessors=5 maxProcessors=75 enableLookups=true redirectPort=8443 acceptCount=10 debug=0 connectionTimeout=2 useURIValidationHack=false protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler / Engine name=Standalone defaultHost=localhost debug=0 jvmRoute=tomcat1 This is all you need to configure Asif -Original Message- From: Florian Ebeling [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 28, 2003 7:32 AM To: Tomcat Users List Subject: mod_jk2 binary for Apache 2.0.47/Win Hi, I am trying to integrate Tomcat with Apache2 via the mod_jk2 module and CoyoteConnector on the Java side. Nothing experimental here, so far. Problem is 1) the module needs to be compiled against exactly the same Apache version into which it is to be deployed later 2) the only binary Apache2 is 2.0.47 3) the only binary mod_jk2 is against 2.0.43 4) I don't have a MSVC compiler suite 5) The jakarta-connector documents say that only MSVC is possible, so I conclude MinGW or Cygwin won't be helpful here If anybody could point me to a solution to this it would be very helpful. Thanks and regards, -Florian - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: mod_jk2 binary for Apache 2.0.47/Win
Jean-Max, I was wrong assuming that one needs a mod_jk2 needs to bear the exactly same version number as the Apache2. I didn't even give it a try, because I read it at several places in the apache docs. I got mod_jk2 running now, with kind assistance of Asif Chowdhary, as you probably hab been able to read in the list. I installed the mod_jk2-2.0.43.dll in apache/modules. Here is what I put into the diffrent config files: httpd.conf: just one single row like this: LoadModule jk2_module modules/mod_jk2-2.0.43.dll Then I added a worker2.properties in Apache/conf/ like this: [logger] level=DEBUG file=c:/programme/apache group/apache2/logs/jk2.log [config] file=c:/programme/apache group/apache2/conf/workers2.properties debug=0 debugEnv=0 # Shared memory handling. Needs to be set. [shm] file=c:/programme/apache group/apache2/logs/shm.file size=1048576 debug=0 #disabled=0 [channel.socket:localhost:8010] port=8010 host=127.0.0.1 debug=0 # Example socket channel, explicitly set port and host. # [channel.socket:localhost:8009] # port=8009 # host=127.0.0.1 # Example UNIX domain socket # [channel.un:/usr/local/tomcat/work/jk2.socket] # tomcatId=localhost:8009 # debug=0 # define the worker [ajp13:localhost:8010] #channel=channel.un:/usr/local/pds/tomcat/work/jk2.socket # To use the TCP/IP socket instead, just comment out the above # line, and uncomment the one below channel=channel.socket:localhost:8010 # define the worker # Announce a status worker # Uri mapping [uri:/examples/*] worker=ajp13:localhost:8010 [uri:/javaroom/*] worker=ajp13:localhost:8010 [status:status] [status:] info=Status worker,displays run time informations [uri:/jkstatus/*] info=Display status information and checks the config file for changes. worker=status:status [uri:/status/*] worker=status:status # end of workers2.properties Finally, I configured this Connector in the Tomcat server.xml: --- Connector className=org.apache.coyote.tomcat4.CoyoteConnector port=8010 minProcessors=5 maxProcessors=250 acceptCount=10 debug=0 protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler / I hope this helps you get it running. Regards, -Florian Jean-Max Estay wrote: Florian, What a good news ! And where did you find this specif. ? Many many many thanks And much more thanks [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] http://www.ima.uco.fr/personnes/estay Institut de Mathematiques Appliquees Universite Catholique de l'Ouest 44,46 rue Rabelais BP 808 49008 ANGERS Cedex 01 France tel +33 2 41 81 67 05 fax +33 2 41 81 67 00 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]