RE: RE: JSP on apache
Hi friends, First, thanks to warren. In my case workers.properties file is on Tomcat side, not on apache side. Its in /usr/local/tomcat-5/conf/jk. And I've followed the instructions. I am giving my entire configuration /usr/local/tomcat-5/conf/jk/workers.properties # Setting Tomcat Java Home workers.tomcat_home=/usr/local/tomcat-5 workers.java_home=/usr/local/jdk1.5.0_02 ps=/ worker.list=ajp13 worker.ajp13.port=8009 worker.ajp13.host=localhost worker.ajp13.type=ajp13 /usr/local/tomcat-5/conf/server.xml # #I have added following statements to server.xml at different places # Listener className=org.apache.jk.config.ApacheConfig modJk=/usr/local/apache/modules/mod_jk.so workersConfig=/usr/local/apache-tomcat-5.5.12/conf/jk/workers.properties/ #above line is under Server port=8005 shutdown=SHUTDOWN Listener className=org.apache.jk.config.ApacheConfig modJk=/usr/local/apache/modules/mod_jk.so / #above line is under Engine name=Catalina defaultHost=localhost Listener className=org.apache.jk.config.ApacheConfig append=true forwardAll=false modJk=/usr/local/apache/modules/mod_jk.so / # #above line is under Host name=localhost appBase=webapps unpackWARs=true autoDeploy=true xmlValidation=false xmlNamespaceAware=false # /usr/local/apache/conf/httpd.conf #added following line at end of this file Include /usr/local/tomcat-5/conf/jk/mod_jk.conf-auto Path of mod_jk.so file APACHE_HOME/modules/mod_jk.so Please not here, when I generated mod_jk.so by executing following commands cd CONNECTOR_HOME/jk/native ./buildconf.sh ./configure --with-apxs=/usr/local/apache/bin/apxs make make install then mod_jk.so was not present in CONNECTOR_HOME/jk/native/apache-2.0/ although I copied it from CONNECTOR_HOME/jk/native/apache-1.3/ and put it in APACHE_HOME/modules/ I am attaching the mod_jk.conf file contents which is being generated by tomcat web server on /usr/local/tomcat-5/conf/auto path. Again, I am running Tomcat version 5.5.12, Apache 2, Redhat Linux 7.0 and mod_jk 1.2.15 Please correct me where I am going wrong. Regards Mukesh -Original Message- From: Warren Pace [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 07, 2005 8:24 AM To: Tomcat Users List Subject: Re: RE: JSP on apache Mukesh, Did you also edit your httpd.conf file and workers.properties? I've attached some snippets from mine as text files. Once you've configured everything, restart the servers first tomcat and then apache. Regards Warren From: mukesh [EMAIL PROTECTED] Date: 2005/12/06 Tue PM 05:23:34 EST To: 'Tomcat Users List' users@tomcat.apache.org Subject: RE: JSP on apache Hi tim, Thanks for your help so far. Finally I've downloaded jakarta-tomcat-connectors-1.2.15-src.tar.gz and configured installed it using instruction from http://johnturner.com/howto/apache2-tomcat4127-jk-rh9-howto.html. Now when I start the tomcat then mod_jk.conf is being generated in /usr/local/tomcat/conf/auto directory and I am able access all the deployed services including http://tomcat ip addr:8080/jsp-examples. Apache is running on port 80. But I am not able to execute http://apache ip addr/jsp-examples. It gives me page notr found error. I have added Include /usr/local/tomcat/conf/auto/mod_jk.conf statement also though this statement is different in http://tomcat.apache.org/connectors-doc/howto/apache.html document. here it says Include /var/tomcat3/conf/jk/mod_jk.conf-auto where /var/tomcat3/ is TOMCAT installation directory. Both apache and tomcat server are running on same machine. Please guide. Regards, -Mukesh -Original Message- From: Tim Funk [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 06, 2005 5:37 PM To: Tomcat Users List Subject: Re: JSP on apache If you are using tomcat 5.5 - do not refer to the tomcat 3 docs ;) http://tomcat.apache.org/connectors-doc/ http://tomcat.apache.org/faq/ -Tim mukesh wrote: Hi, I have tried all the option given in http://tomcat.apache.org/tomcat-3.3-doc/mod_jk-howto.html#s2. FAQ But I could not build the jakarta-tomcat-connectors-jk-1.2.14-linux-sles9-x86_64-prefork.so (renamed as mod_jk.so). if I run make command then following message appears make: Nothing to be done for `mod_jk.so'. My installation paths are Tomcat: /usr/local/tomcat-5 Apache: /usr/local/apache (version is 2.0) JDK: /usr/local/jdk1.5.0_02 Everything is working fine but no success with mod_jk. I must tell that this is my first experience with apache and tomcat ( mod_jk too). Please guide me if someone has already done mod_jk installation on Linux. I am running Redhat 7.0 Please advice. Regards, Mukesh Kumar -Original Message- From: Tim Funk [mailto:[EMAIL PROTECTED] Sent: Friday
RE: JSP on apache
Hi, I have tried all the option given in http://tomcat.apache.org/tomcat-3.3-doc/mod_jk-howto.html#s2. FAQ But I could not build the jakarta-tomcat-connectors-jk-1.2.14-linux-sles9-x86_64-prefork.so (renamed as mod_jk.so). if I run make command then following message appears make: Nothing to be done for `mod_jk.so'. My installation paths are Tomcat: /usr/local/apache-tomcat-5.5.12 Apache: /usr/local/apache(version is 2.0) JDK: /usr/local/jdk1.5.0_02 Everything is working fine but no success with mod_jk. I must tell that this is my first experience with apache and tomcat ( mod_jk too). Please guide me if someone has already done mod_jk installation on Linux. I am running Redhat 7.0 Please advice. Regards, Mukesh Kumar -Original Message- From: Tim Funk [mailto:[EMAIL PROTECTED] Sent: Friday, December 02, 2005 7:43 PM To: Tomcat Users List Subject: Re: JSP on apache Both of those binaries look to be for apache2. My guess is to rename the version you are using (apache worker vs prefork) to mod_jk.so. Place the mod_jk.so libexec directory then add the appropriate so load module directives and othr jk config directives. The FAQ should have some links (some good, some possibly not so good now) to external how-tos. -Tim mukesh wrote: Tim, I have downloaded two files 1) jakarta-tomcat-connectors-jk-1.2.14-linux-sles9-x86_64-prefork.so 2) jakarta-tomcat-connectors-jk-1.2.14-linux-sles9-x86_64-worker.so I have gone through documentation. It says that I need mod_jk.so to complete the task which I could not find anywhere. And second documentation say that Tomcat has TOMCAT_HOME/native/mod_jk directory structure but its not true in case of Tomcat 5.5. Do I need to create the directories manually ? Third, which file I should use and where ? I have downloaded above file from http://archive.apache.org/dist/tomcat/tomcat-connectors/jk/binaries/linux/jk -1.2.14/ . - 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: JSP on apache
If you are using tomcat 5.5 - do not refer to the tomcat 3 docs ;) http://tomcat.apache.org/connectors-doc/ http://tomcat.apache.org/faq/ -Tim mukesh wrote: Hi, I have tried all the option given in http://tomcat.apache.org/tomcat-3.3-doc/mod_jk-howto.html#s2. FAQ But I could not build the jakarta-tomcat-connectors-jk-1.2.14-linux-sles9-x86_64-prefork.so (renamed as mod_jk.so). if I run make command then following message appears make: Nothing to be done for `mod_jk.so'. My installation paths are Tomcat: /usr/local/apache-tomcat-5.5.12 Apache: /usr/local/apache(version is 2.0) JDK: /usr/local/jdk1.5.0_02 Everything is working fine but no success with mod_jk. I must tell that this is my first experience with apache and tomcat ( mod_jk too). Please guide me if someone has already done mod_jk installation on Linux. I am running Redhat 7.0 Please advice. Regards, Mukesh Kumar -Original Message- From: Tim Funk [mailto:[EMAIL PROTECTED] Sent: Friday, December 02, 2005 7:43 PM To: Tomcat Users List Subject: Re: JSP on apache Both of those binaries look to be for apache2. My guess is to rename the version you are using (apache worker vs prefork) to mod_jk.so. Place the mod_jk.so libexec directory then add the appropriate so load module directives and othr jk config directives. The FAQ should have some links (some good, some possibly not so good now) to external how-tos. -Tim mukesh wrote: Tim, I have downloaded two files 1) jakarta-tomcat-connectors-jk-1.2.14-linux-sles9-x86_64-prefork.so 2) jakarta-tomcat-connectors-jk-1.2.14-linux-sles9-x86_64-worker.so I have gone through documentation. It says that I need mod_jk.so to complete the task which I could not find anywhere. And second documentation say that Tomcat has TOMCAT_HOME/native/mod_jk directory structure but its not true in case of Tomcat 5.5. Do I need to create the directories manually ? Third, which file I should use and where ? I have downloaded above file from http://archive.apache.org/dist/tomcat/tomcat-connectors/jk/binaries/linux/jk - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: RE: JSP on apache
Mukesh, Did you also edit your httpd.conf file and workers.properties? I've attached some snippets from mine as text files. Once you've configured everything, restart the servers first tomcat and then apache. Regards Warren From: mukesh [EMAIL PROTECTED] Date: 2005/12/06 Tue PM 05:23:34 EST To: 'Tomcat Users List' users@tomcat.apache.org Subject: RE: JSP on apache Hi tim, Thanks for your help so far. Finally I've downloaded jakarta-tomcat-connectors-1.2.15-src.tar.gz and configured installed it using instruction from http://johnturner.com/howto/apache2-tomcat4127-jk-rh9-howto.html. Now when I start the tomcat then mod_jk.conf is being generated in /usr/local/tomcat/conf/auto directory and I am able access all the deployed services including http://tomcat ip addr:8080/jsp-examples. Apache is running on port 80. But I am not able to execute http://apache ip addr/jsp-examples. It gives me page notr found error. I have added Include /usr/local/tomcat/conf/auto/mod_jk.conf statement also though this statement is different in http://tomcat.apache.org/connectors-doc/howto/apache.html document. here it says Include /var/tomcat3/conf/jk/mod_jk.conf-auto where /var/tomcat3/ is TOMCAT installation directory. Both apache and tomcat server are running on same machine. Please guide. Regards, -Mukesh -Original Message- From: Tim Funk [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 06, 2005 5:37 PM To: Tomcat Users List Subject: Re: JSP on apache If you are using tomcat 5.5 - do not refer to the tomcat 3 docs ;) http://tomcat.apache.org/connectors-doc/ http://tomcat.apache.org/faq/ -Tim mukesh wrote: Hi, I have tried all the option given in http://tomcat.apache.org/tomcat-3.3-doc/mod_jk-howto.html#s2. FAQ But I could not build the jakarta-tomcat-connectors-jk-1.2.14-linux-sles9-x86_64-prefork.so (renamed as mod_jk.so). if I run make command then following message appears make: Nothing to be done for `mod_jk.so'. My installation paths are Tomcat: /usr/local/apache-tomcat-5.5.12 Apache: /usr/local/apache(version is 2.0) JDK: /usr/local/jdk1.5.0_02 Everything is working fine but no success with mod_jk. I must tell that this is my first experience with apache and tomcat ( mod_jk too). Please guide me if someone has already done mod_jk installation on Linux. I am running Redhat 7.0 Please advice. Regards, Mukesh Kumar -Original Message- From: Tim Funk [mailto:[EMAIL PROTECTED] Sent: Friday, December 02, 2005 7:43 PM To: Tomcat Users List Subject: Re: JSP on apache Both of those binaries look to be for apache2. My guess is to rename the version you are using (apache worker vs prefork) to mod_jk.so. Place the mod_jk.so libexec directory then add the appropriate so load module directives and othr jk config directives. The FAQ should have some links (some good, some possibly not so good now) to external how-tos. -Tim mukesh wrote: Tim, I have downloaded two files 1) jakarta-tomcat-connectors-jk-1.2.14-linux-sles9-x86_64-prefork.so 2) jakarta-tomcat-connectors-jk-1.2.14-linux-sles9-x86_64-worker.so I have gone through documentation. It says that I need mod_jk.so to complete the task which I could not find anywhere. And second documentation say that Tomcat has TOMCAT_HOME/native/mod_jk directory structure but its not true in case of Tomcat 5.5. Do I need to create the directories manually ? Third, which file I should use and where ? I have downloaded above file from http://archive.apache.org/dist/tomcat/tomcat-connectors/jk/binaries/linux/jk - 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] # These lines need to be in your httpd.conf file LoadModule jk_module /usr/lib/apache2/mod_jk.so # workers.properties should be in the same directory as httpd.conf # I'm running Open SuSE 10. Config files are saved in /etc in folders # folders named to match the application. # Example: httpd.conf is saved in /etc/apache2/ # Not sure about RH. JkWorkersFile /etc/apache2/workers.properties JkLogFile /var/log/apache2/mod_jk.log JkLogLevel info JkLogStampFormat [%a %b %d %H:%M:%S %Y] JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories JkRequestLogFormat %w %V %T # The easiest way to mount your webapps is to use the JkAutoAlias directive. # Of course, this will need to point to your webapps folder. JkAutoAlias /usr/share/tomcat5/webapps # Or assign webapps to specific workers... JkMount /jsp-examples/* worker1 # Taken directly from
RE: JSP on apache
Thanks for your kind response. Well I am using tomcat 5.5 and I could not find any directory with name native as its mentioned in mod_jk documentation that aforementioned directory contains mod_jk module. Please suggest which version of mod_jk should I use and where I can get it from? Regards Mukesh -Original Message- From: Lists [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 30, 2005 12:41 AM To: Tomcat Users List Cc: mukesh Subject: Re: JSP on apache Mukesh, I would use tomcat with Apache to accomplish this... Or jetty. the links are below: To integrate the Tomcat server processes with the Apache HTTP server we need the mod_jk module, which implements the interface between Tomcat and Apache, combined with some small steps to configure Apache and Tomcat to our needs. found here : http://tomcat.apache.org/tomcat-3.3-doc/mod_jk-howto.html Jetty Rox: its raw baby!! But it roCKS http://jetty.mortbay.org/jetty/ On Nov 29, 2005, at 8:56, mukesh wrote: Hi friends, How can I run JSPs on apache server? My apache server is running on Linux. In fact I have developed some web services in Java (and JSP) and want to deploy on the same server. Is it possible to deploy them directly or is there some other way around? Please advice. Regards Mukesh - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JSP on apache
Now that apache 2.2 is just released - it comes with mod_ajp out of the box so there is no need for mod_jk -Tim mukesh wrote: Thanks for your kind response. Well I am using tomcat 5.5 and I could not find any directory with name native as its mentioned in mod_jk documentation that aforementioned directory contains mod_jk module. Please suggest which version of mod_jk should I use and where I can get it from? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: JSP on apache
Tim, I am working on a live server (apache 2.0) which is hosting a website. So I can not think of downloading any other server. I have to integrate my tomcat (version 5.5) with existing server only. -Mukesh -Original Message- From: Tim Funk [mailto:[EMAIL PROTECTED] Sent: Friday, December 02, 2005 5:30 PM To: Tomcat Users List Subject: Re: JSP on apache Now that apache 2.2 is just released - it comes with mod_ajp out of the box so there is no need for mod_jk -Tim mukesh wrote: Thanks for your kind response. Well I am using tomcat 5.5 and I could not find any directory with name native as its mentioned in mod_jk documentation that aforementioned directory contains mod_jk module. Please suggest which version of mod_jk should I use and where I can get it from? - 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: JSP on apache
In that case ... http://tomcat.apache.org/connectors-doc/ -Tim mukesh wrote: Tim, I am working on a live server (apache 2.0) which is hosting a website. So I can not think of downloading any other server. I have to integrate my tomcat (version 5.5) with existing server only. -Mukesh -Original Message- From: Tim Funk [mailto:[EMAIL PROTECTED] Sent: Friday, December 02, 2005 5:30 PM To: Tomcat Users List Subject: Re: JSP on apache Now that apache 2.2 is just released - it comes with mod_ajp out of the box so there is no need for mod_jk -Tim mukesh wrote: Thanks for your kind response. Well I am using tomcat 5.5 and I could not find any directory with name native as its mentioned in mod_jk documentation that aforementioned directory contains mod_jk module. Please suggest which version of mod_jk should I use and where I can get it from? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: JSP on apache
Tim, I have downloaded two files 1) jakarta-tomcat-connectors-jk-1.2.14-linux-sles9-x86_64-prefork.so 2) jakarta-tomcat-connectors-jk-1.2.14-linux-sles9-x86_64-worker.so I have gone through documentation. It says that I need mod_jk.so to complete the task which I could not find anywhere. And second documentation say that Tomcat has TOMCAT_HOME/native/mod_jk directory structure but its not true in case of Tomcat 5.5. Do I need to create the directories manually ? Third, which file I should use and where ? I have downloaded above file from http://archive.apache.org/dist/tomcat/tomcat-connectors/jk/binaries/linux/jk -1.2.14/ . Please correct me where I am wrong. -Mukesh -Original Message- From: Tim Funk [mailto:[EMAIL PROTECTED] Sent: Friday, December 02, 2005 5:55 PM To: Tomcat Users List Subject: Re: JSP on apache In that case ... http://tomcat.apache.org/connectors-doc/ -Tim mukesh wrote: Tim, I am working on a live server (apache 2.0) which is hosting a website. So I can not think of downloading any other server. I have to integrate my tomcat (version 5.5) with existing server only. -Mukesh -Original Message- From: Tim Funk [mailto:[EMAIL PROTECTED] Sent: Friday, December 02, 2005 5:30 PM To: Tomcat Users List Subject: Re: JSP on apache Now that apache 2.2 is just released - it comes with mod_ajp out of the box so there is no need for mod_jk -Tim mukesh wrote: Thanks for your kind response. Well I am using tomcat 5.5 and I could not find any directory with name native as its mentioned in mod_jk documentation that aforementioned directory contains mod_jk module. Please suggest which version of mod_jk should I use and where I can get it from? - 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: JSP on apache
Both of those binaries look to be for apache2. My guess is to rename the version you are using (apache worker vs prefork) to mod_jk.so. Place the mod_jk.so libexec directory then add the appropriate so load module directives and othr jk config directives. The FAQ should have some links (some good, some possibly not so good now) to external how-tos. -Tim mukesh wrote: Tim, I have downloaded two files 1) jakarta-tomcat-connectors-jk-1.2.14-linux-sles9-x86_64-prefork.so 2) jakarta-tomcat-connectors-jk-1.2.14-linux-sles9-x86_64-worker.so I have gone through documentation. It says that I need mod_jk.so to complete the task which I could not find anywhere. And second documentation say that Tomcat has TOMCAT_HOME/native/mod_jk directory structure but its not true in case of Tomcat 5.5. Do I need to create the directories manually ? Third, which file I should use and where ? I have downloaded above file from http://archive.apache.org/dist/tomcat/tomcat-connectors/jk/binaries/linux/jk -1.2.14/ . - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: JSP on apache (UNCLASSIFIED)
Classification: UNCLASSIFIED Caveats: NONE Well, I am assuming you're talking about TOMCAT. It is a JSP/Servlets container. You should be able to deploy your application without problems. Have you done that yet ? Fadi -Original Message- From: mukesh [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 29, 2005 9:56 AM To: users@tomcat.apache.org Subject: JSP on apache Hi friends, How can I run JSPs on apache server? My apache server is running on Linux. In fact I have developed some web services in Java (and JSP) and want to deploy on the same server. Is it possible to deploy them directly or is there some other way around? Please advice. Regards Mukesh Classification: UNCLASSIFIED Caveats: NONE - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JSP on apache
Mukesh, I would use tomcat with Apache to accomplish this... Or jetty. the links are below: To integrate the Tomcat server processes with the Apache HTTP server we need the mod_jk module, which implements the interface between Tomcat and Apache, combined with some small steps to configure Apache and Tomcat to our needs. found here : http://tomcat.apache.org/tomcat-3.3-doc/mod_jk-howto.html Jetty Rox: its raw baby!! But it roCKS http://jetty.mortbay.org/jetty/ On Nov 29, 2005, at 8:56, mukesh wrote: Hi friends, How can I run JSPs on apache server? My apache server is running on Linux. In fact I have developed some web services in Java (and JSP) and want to deploy on the same server. Is it possible to deploy them directly or is there some other way around? Please advice. Regards Mukesh - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]