RE: Apache + Tomcat with Mod_jk
Hi Justin, Thanks for the reply ... I have already downloaded all the files from the location you suggested ( i.e. the Linux Version ). But its giving me the following error ... Syntax error on line 235 of /etc/httpd/conf/httpd.conf: Cannot load /usr/local/apache2/lib/mod_jk.so into server: /usr/local/apache2/lib/mod_jk.so: ELF file data encoding not little-endian. Steve has suggested not to use the PPC module. I'm gng to try with i386 and will get back to you. Thanks a lot again ... Shailendra -Original Message- From: Justin Crabtree [mailto:[EMAIL PROTECTED] Sent: Friday, July 08, 2005 7:37 PM To: Tomcat Users List; [EMAIL PROTECTED] Subject: Re: Apache + Tomcat with Mod_jk Shailendra Gatade wrote: Hi All, I am trying to connect Apache 2 ( Linux ) with Tomcat 5.0 ( Win2K ) using mod_jk. I'm facing several problems regarding this ... Initially i was using mod_jk2.so which is deprecated and also not recomended for Production Environment. I am not able to find the proper mod_jk.so for Apache. I downloaded ... jakarta-tomcat-connectors-jk-1.2.10-linux-sles8-ppc-apache-2.0.53-prefork.so and jakarta-tomcat-connectors-jk-1.2.10-linux-sles8-ppc-apache-2.0.53-worker.so Which file should i rename to mod_jk.so ? When i rename the first one and use it, i am getting the following error ... Cannot load /usr/local/apache2/lib/mod_jk.so into server: /usr/local/apache2/lib/mod_jk.so: ELF file data encoding not little-endian. Can somebody point me to a location where i can find the proper mod_jk.so for my setup ? Also there is no extensive tutorial available on the same issue ... Is anyone aware of a tutorial which guides you step by step in configuring Apache 2 + Tomcat 5.0 using mod_jk.so ? Thanks in advance ... Shailendra Try here. http://www.apache.org/dist/jakarta/tomcat-connectors/jk/binaries/win32/ And here for docs. http://jakarta.apache.org/tomcat/connectors-doc/ -- Justin Crabtree Java Programmer Ozarks Technical Community College 447-7533 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Apache + Tomcat with Mod_jk
Hi Steve, Thanks for your reply ... I WAS using the PPC Module. I'll change it to I386, check once again and get back ... Thanks a lot again ... Regards, Shailendra -Original Message- From: Steve Ochani [mailto:[EMAIL PROTECTED] Sent: Friday, July 08, 2005 10:10 PM To: Tomcat Users List; [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Re: Apache + Tomcat with Mod_jk Shailendra Gatade wrote: Hi All, I am trying to connect Apache 2 ( Linux ) with Tomcat 5.0 ( Win2K ) using mod_jk. I'm facing several problems regarding this ... Initially i was using mod_jk2.so which is deprecated and also not recomended for Production Environment. I am not able to find the proper mod_jk.so for Apache. I downloaded ... jakarta-tomcat-connectors-jk-1.2.10-linux-sles8-ppc-apache-2.0.53-pr efork.so and jakarta-tomcat-connectors-jk-1.2.10-linux-sles8-ppc-apache-2.0.53-wo rker.so Which file should i rename to mod_jk.so ? When i rename the first one and use it, i am getting the following error ... Cannot load /usr/local/apache2/lib/mod_jk.so into server: /usr/local/apache2/lib/mod_jk.so: ELF file data encoding not little-endian. Can somebody point me to a location where i can find the proper mod_jk.so for my setup ? Also there is no extensive tutorial available on the same issue ... Is anyone aware of a tutorial which guides you step by step in configuring Apache 2 + Tomcat 5.0 using mod_jk.so ? Thanks in advance ... Shailendra Try here. http://www.apache.org/dist/jakarta/tomcat-connectors/jk/binaries/win32 / Those are for windows, he is running linux (for the webserver at least). http://www.apache.org/dist/jakarta/tomcat-connectors/jk/binaries/linux/ If you are not running a ppc (power pc) architecture based machine don't use the ppc module. -Steve O. «¤»¥«¤»§«¤»¥«¤»§«¤»¥«¤»§«¤»¥«¤»§«¤»¥«¤»§«¤»¥«¤»§«¤»¥«¤» Education is what remains after one has forgotten everything he learned in school. -Albert Einstein Steve O. http://www.steveo.us - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Apache + Tomcat with Mod_jk
Shailendra Gatade wrote: Hi All, I am trying to connect Apache 2 ( Linux ) with Tomcat 5.0 ( Win2K ) using mod_jk. I'm facing several problems regarding this ... Initially i was using mod_jk2.so which is deprecated and also not recomended for Production Environment. I am not able to find the proper mod_jk.so for Apache. I downloaded ... jakarta-tomcat-connectors-jk-1.2.10-linux-sles8-ppc-apache-2.0.53-prefork.so and jakarta-tomcat-connectors-jk-1.2.10-linux-sles8-ppc-apache-2.0.53-worker.so Which file should i rename to mod_jk.so ? When i rename the first one and use it, i am getting the following error ... Cannot load /usr/local/apache2/lib/mod_jk.so into server: /usr/local/apache2/lib/mod_jk.so: ELF file data encoding not little-endian. Can somebody point me to a location where i can find the proper mod_jk.so for my setup ? Also there is no extensive tutorial available on the same issue ... Is anyone aware of a tutorial which guides you step by step in configuring Apache 2 + Tomcat 5.0 using mod_jk.so ? Thanks in advance ... Shailendra Try here. http://www.apache.org/dist/jakarta/tomcat-connectors/jk/binaries/win32/ And here for docs. http://jakarta.apache.org/tomcat/connectors-doc/ -- Justin Crabtree Java Programmer Ozarks Technical Community College 447-7533 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Apache + Tomcat with Mod_jk
Shailendra Gatade wrote: Hi All, I am trying to connect Apache 2 ( Linux ) with Tomcat 5.0 ( Win2K ) using mod_jk. I'm facing several problems regarding this ... Initially i was using mod_jk2.so which is deprecated and also not recomended for Production Environment. I am not able to find the proper mod_jk.so for Apache. I downloaded ... jakarta-tomcat-connectors-jk-1.2.10-linux-sles8-ppc-apache-2.0.53-pr efork.so and jakarta-tomcat-connectors-jk-1.2.10-linux-sles8-ppc-apache-2.0.53-wo rker.so Which file should i rename to mod_jk.so ? When i rename the first one and use it, i am getting the following error ... Cannot load /usr/local/apache2/lib/mod_jk.so into server: /usr/local/apache2/lib/mod_jk.so: ELF file data encoding not little-endian. Can somebody point me to a location where i can find the proper mod_jk.so for my setup ? Also there is no extensive tutorial available on the same issue ... Is anyone aware of a tutorial which guides you step by step in configuring Apache 2 + Tomcat 5.0 using mod_jk.so ? Thanks in advance ... Shailendra Try here. http://www.apache.org/dist/jakarta/tomcat-connectors/jk/binaries/win32 / Those are for windows, he is running linux (for the webserver at least). http://www.apache.org/dist/jakarta/tomcat-connectors/jk/binaries/linux/ If you are not running a ppc (power pc) architecture based machine don't use the ppc module. -Steve O. «¤»¥«¤»§«¤»¥«¤»§«¤»¥«¤»§«¤»¥«¤»§«¤»¥«¤»§«¤»¥«¤»§«¤»¥«¤» Education is what remains after one has forgotten everything he learned in school. -Albert Einstein Steve O. http://www.steveo.us - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Apache + Tomcat with Mod_jk
Hi Shailendra, What your Apache MPM are you using? I think you should use JK_module that accord with Apcahe MPM. Thanks, -Toshio -Original Message- From: Shailendra Gatade [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 06, 2005 11:25 PM To: tomcat-user@jakarta.apache.org Subject: Apache + Tomcat with Mod_jk Hi All, I am trying to connect Apache 2 ( Linux ) with Tomcat 5.0 ( Win2K ) using mod_jk. I'm facing several problems regarding this ... Initially i was using mod_jk2.so which is deprecated and also not recomended for Production Environment. I am not able to find the proper mod_jk.so for Apache. I downloaded ... jakarta-tomcat-connectors-jk-1.2.10-linux-sles8-ppc-apache-2.0.53- prefork.so and jakarta-tomcat-connectors-jk-1.2.10-linux-sles8-ppc-apache-2.0.53- worker.so Which file should i rename to mod_jk.so ? When i rename the first one and use it, i am getting the following error ... Cannot load /usr/local/apache2/lib/mod_jk.so into server: /usr/local/apache2/lib/mod_jk.so: ELF file data encoding not little-endian. Can somebody point me to a location where i can find the proper mod_jk.so for my setup ? Also there is no extensive tutorial available on the same issue ... Is anyone aware of a tutorial which guides you step by step in configuring Apache 2 + Tomcat 5.0 using mod_jk.so ? Thanks in advance ... Shailendra __ Save the earth http://pr.mail.yahoo.co.jp/ondanka/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Apache-tomcat via mod_jk configuration
Are you sure you meant httpd1? The daemon script on my site is httpd. The website explains a setup for Tomcat 4, not Tomcat 5. I don't know if there's any difference, but there may be. I'm also confused as you apparently didn't copy your configuration into this post, you just copied most of the contents of my web page into it. Oscar http://daydream.stanford.edu/tomcat/install_web_services.html On Wed, 17 Dec 2003 [EMAIL PROTECTED] wrote: Hi all, I've read a configuration of tomcat and apache (http://daydream.stanford.edu/tomcat/install_web_services.html ) over the last 4 days, and I've found much of what I need to be lacking After reading full documentation on the jakarta website about how the server.xml is organized for tomcat 4, I still have some questions... I will first explain the desired setup, then I will show what I have. If you gracious folks can help me set this up, I will GLADLY set up a complete HOW-TO replicating the solution on my website for all the world to see. you knows you probably get a lot of questions about this. My hope is to guide the user by the hand step by step for this complex process. I have been using Tomcat 3 for a long time with mod_jk and have been very happy, but I now need the newer features of Tomcat 4. Here's the setup (everywhere hereafter, I've replaced the actual domain names with domainname for privacy...just know that everytime you see that, its actually a domain name, and ignore the brackets Redhat Linux 9 httpd-2.0.48 / usr/loca/apache2 Java JDK 1.4.2_03 ---/usr/lcoal/java Tomcat 5.0.16 Light Edition (since I have jdk 1.4.2_03) .--/usr/local/tomcat mod_jk /usr/lcoal/src/mod_jk my question is there is httpd in linux 9 and postgresql and i installed apache and tomcat and psotgresql i added the httpd1 and tomcat in sbin/chkconfig --add httpd1 amd tomcatd by using the configuration given in http://daydream.stanford.edu/tomcat/install_web_services.html site fullythen i started the catalina_home /bin/startup.sh which was started in command line but i am not able to get test page in Browser it tells that connection refused i start by using httpd1 and tomcatd it shows that unreconized service please help to solve the problem as soon as possible Thakning You Dhayalan.G # Configure Environment Variables Edit and add the lines below to /etc/profile Make sure you logout and login for this to take effect. If you're in XWindow you might need to quit out of XWindow and exit primary shell. Then login again and start XWindow again (startx). It's really good to get this straight from the beginning. JAVA_HOME=/usr/local/java/java CATALINA_HOME=/usr/local/tomcat PATH=$JAVA_HOME/bin:$PATH:$HOME/bin:/sbin:/usr/sbin CLASSPATH=$CATALINA_HOME/bin/bootstrap.jar:$JAVA_HOME/lib/tools.jar:$CATALINA_HOME/common/lib/servlet.jar:/usr/local/pgsql/share/java/postgresql.jar:../lib/struts.jar:. Now add the PATH JAVA_HOME CATALINA_HOME CLASSPATH if any aren't in the export line export PATH USER LOGNAME MAIL HOSTNAME HISTSIZE INPUTRC JAVA_HOME CATALINA_HOME CLASSPATH This will output your environment variables env Install JAVA mkdir /usr/local/java cd /usr/local/java sh j2sdk-1_4_2-linux-i586.bin The jdk directory is then extracted mv j2sdk-1.4.2 /usr/local/java ln -s j2sdk1.4.2 java Now the java directory will be in /usr/local/java/java. I do it like this so I can keep all my different JDKs/JREs in one directory and then just change the symbolic link to point to the current one. Install Jakarta TOMCAT tar xvfz jakarta-tomcat-4.1.27.tar.gz mv jakarta-tomcat-4.1.27 /usr/local/ cd /usr/local ln -s jakarta-tomcat-4.1.27 tomcat Install Jakarta ANT tar xvfz jakarta-ant-1.5.4 mv jakarta-ant-1.5.4 /usr/local cd /usr/local ln -s jakarta-ant-1.5.4 ant ln -s /usr/local/ant/bin/ant /usr/local/bin/ant Install OPENSSL tar xvfz openssl-0.9.7c.tar.gz mv openssl-0.9.7c /usr/local/src/ cd /usr/local/src/ ln -s /usr/local/openssl-0.9.7c openssl cd openssl-0.9.7c ./config make make test make install #This will install in /usr/local/ssl Install APACHE tar xvfz httpd-2.0.47.tar.Z cd httpd-2.0.47 ./configure --prefix=/usr/local/apache2 --enable-so --enable-rewrite \ --enable-ssl --with-ssl=/usr/local/ssl --enable-proxy make make install #(places in /usr/local/apache2) Build/Install MOD_JK Connector Build mod_jk cd /usr/local/src/jakarta-tomcat-connectors-jk-1.2.4-src/jk/native ./buildconf.sh ./configure --with-apxs=/usr/local/apache2/bin/apxs make cp apache-2.0/mod_jk.so /usr/local/apache2/modules Installs mod_jk in correct
RE: [SPAM] Re: Apache-tomcat via mod_jk configuration
Thats fine Rethat hava its own httpd that why i added in services httpd1 in /sbib/chkconfig and tomcatd but it tells that unregaconized service . what can i do that for Can i delete httpd i can start in terminal $CATALINA/bin/startup.sh but i am not able to do service httpd1 start and service tomcatd start which gives unregconzied services pls help me resolve the problem Thaking You Dhayalan Original Message Subject: [SPAM] Re: Apache-tomcat via mod_jk configuration From: Oscar Carrillo [EMAIL PROTECTED] Date: Wed, December 17, 2003 11:42 pm To: Tomcat Users List [EMAIL PROTECTED] Are you sure you meant httpd1? The daemon script on my site is httpd. The website explains a setup for Tomcat 4, not Tomcat 5. I don't know if there's any difference, but there may be. I'm also confused as you apparently didn't copy your configuration into this post, you just copied most of the contents of my web page into it. Oscar http://daydream.stanford.edu/tomcat/install_web_services.html On Wed, 17 Dec 2003 [EMAIL PROTECTED] wrote: Hi all, I've read a configuration of tomcat and apache (http://daydream.stanford.edu/tomcat/install_web_services.html ) over the last 4 days, and I've found much of what I need to be lacking After reading full documentation on the jakarta website about how the server.xml is organized for tomcat 4, I still have some questions... I will first explain the desired setup, then I will show what I have. If you gracious folks can help me set this up, I will GLADLY set up a complete HOW-TO replicating the solution on my website for all the world to see. you knows you probably get a lot of questions about this. My hope is to guide the user by the hand step by step for this complex process. I have been using Tomcat 3 for a long time with mod_jk and have been very happy, but I now need the newer features of Tomcat 4. Here's the setup (everywhere hereafter, I've replaced the actual domain names with domainname for privacy...just know that everytime you see that, its actually a domain name, and ignore the brackets Redhat Linux 9 httpd-2.0.48 / usr/loca/apache2 Java JDK 1.4.2_03 ---/usr/lcoal/java Tomcat 5.0.16 Light Edition (since I have jdk 1.4.2_03) .--/usr/local/tomcat mod_jk /usr/lcoal/src/mod_jk my question is there is httpd in linux 9 and postgresql and i installed apache and tomcat and psotgresql i added the httpd1 and tomcat in sbin/chkconfig --add httpd1 amd tomcatd by using the configuration given in http://daydream.stanford.edu/tomcat/install_web_services.html site fullythen i started the catalina_home /bin/startup.sh which was started in command line but i am not able to get test page in Browser it tells that connection refused i start by using httpd1 and tomcatd it shows that unreconized service please help to solve the problem as soon as possible Thakning You Dhayalan.G # Configure Environment Variables Edit and add the lines below to /etc/profile Make sure you logout and login for this to take effect. If you're in XWindow you might need to quit out of XWindow and exit primary shell. Then login again and start XWindow again (startx). It's really good to get this straight from the beginning. JAVA_HOME=/usr/local/java/java CATALINA_HOME=/usr/local/tomcat PATH=$JAVA_HOME/bin:$PATH:$HOME/bin:/sbin:/usr/sbin CLASSPATH=$CATALINA_HOME/bin/bootstrap.jar:$JAVA_HOME/lib/tools.jar:$CATALINA_HOME/common/lib/servlet.jar:/usr/local/pgsql/share/java/postgresql.jar:../lib/struts.jar:. Now add the PATH JAVA_HOME CATALINA_HOME CLASSPATH if any aren't in the export line export PATH USER LOGNAME MAIL HOSTNAME HISTSIZE INPUTRC JAVA_HOME CATALINA_HOME CLASSPATH This will output your environment variables env Install JAVA mkdir /usr/local/java cd /usr/local/java sh j2sdk-1_4_2-linux-i586.bin The jdk directory is then extracted mv j2sdk-1.4.2 /usr/local/java ln -s j2sdk1.4.2 java Now the java directory will be in /usr/local/java/java. I do it like this so I can keep all my different JDKs/JREs in one directory and then just change the symbolic link to point to the current one. Install Jakarta TOMCAT tar xvfz jakarta-tomcat-4.1.27.tar.gz mv jakarta-tomcat-4.1.27 /usr/local/ cd /usr/local ln -s jakarta-tomcat-4.1.27 tomcat Install Jakarta ANT tar xvfz jakarta-ant-1.5.4 mv jakarta-ant-1.5.4 /usr/local cd /usr/local ln -s jakarta-ant-1.5.4 ant ln -s /usr/local/ant/bin/ant /usr/local/bin/ant Install OPENSSL tar xvfz openssl
Re: Apache+Tomcat with mod_jk on OS X
At 10:52 -0600 2003/10/11, Matt Raible wrote: I'm trying to get Apache (1.3.27) integrated with Tomcat (4.1.27) on OS X. [...] I downloaded mod_jk.so (for 1.3.27) from http://tinyurl.com/qkh6. Currently, the issue I'm having is with Apache, hopefully someone can help. When I restart Apache, I get: Invalid command 'JkWorkersFile' have you LoadModule jk_module modules/mod_jk.so haven't you? (clearly with the correct location for your mod_jk.so) Giuliano - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Apache+Tomcat with mod_jk on OS X
Yep, and that appears to work just fine. On Saturday, October 11, 2003, at 02:54 PM, Giuliano Gavazzi wrote: At 10:52 -0600 2003/10/11, Matt Raible wrote: I'm trying to get Apache (1.3.27) integrated with Tomcat (4.1.27) on OS X. [...] I downloaded mod_jk.so (for 1.3.27) from http://tinyurl.com/qkh6. Currently, the issue I'm having is with Apache, hopefully someone can help. When I restart Apache, I get: Invalid command 'JkWorkersFile' have you LoadModule jk_module modules/mod_jk.so haven't you? (clearly with the correct location for your mod_jk.so) Giuliano - 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: Apache+Tomcat with mod_jk on OS X
HELP ever since the big virus ive been plagued with emails from thei comapny or whatever it is.. i get at least 800 a day and i can t make them stop.. i dont know what you are all are talkingabout and i really dont care.. i cant seem to unsubscribe successfully HELP!! i want my email inbox back! Trinity Jacobs. __ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Apache + Tomcat with mod_jk and Virtual Hosts
Yes. See the mail archive for a generic version of my setup: http://mikal.org/interests/java/tomcat/archive/view?mesg=24718 http://mikal.org/interests/java/tomcat/archive/view?mesg=24420 http://mikal.org/interests/java/tomcat/archive/view?mesg=24256 Thanks, --jeff - Original Message - From: Adrian Almenar [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, May 31, 2001 7:03 AM Subject: Apache + Tomcat with mod_jk and Virtual Hosts Please i need help with this can anyone anwser me about this issue ?? With Apache and tomcat working with mod_jk: Its possible to map every virtual host (On Apache) to a different webapp on tomcat ??? I.E. Apache Virtual Host: 123.myhost.com ip: 10.0.0.2 Tomcat Webbapp : tomcat33\webapps\123 Apache Virtual Host: 789.myhost.com ip: 10.0.0.2 Tomcat Webbapp : tomcat33\webapps\789 thanks in advance !!!
Re: Apache, tomcat and mod_jk
I think that you can resolve the problem by compiling mod_jk.so from source. See mod_jk-howto.html in $TOMCAT_HOME/docs. -- john Olivier Tourdes wrote: Hello, I'm attempting to install a 3.2 version of tomcat with Apache 1.3.14. When I try to start apache I get this: "Starting httpd: Syntax error on line 1 of /usr/local/apache/conf/httpd.conf:API module structure `jk_module' in file /usr/local/apache/libexec/mod_jk.so is garbled - perhaps this is not an Apache module DSO?" Any ideas ? Olivier Tourdes E-mail: [EMAIL PROTECTED] Site: http://www.i-tipi.fr -- === John Cartwright Professional Research Assistant / Associate Scientist CIRES, SEG/NGDC/NOAA (303) 497-6284 [EMAIL PROTECTED] ===