RE: John Turner or someone who responsible for Posting -- Re: How to Apache2, Tomcat4.1.2, JK2 ?
Hi - I don't use JK2. Best bet for help is the tomcat-user mailing list, [EMAIL PROTECTED] John -Original Message- From: Shreehari Manikarnika [mailto:[EMAIL PROTECTED] Sent: Monday, January 12, 2004 1:58 AM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Re: John Turner or someone who responsible for Posting -- Re: How to Apache2, Tomcat4.1.2, JK2 ? Hi, Is this possible? - connecting Tomcat 4 to Apache 2 via mod_jk2 under Linux, in any_of_the_JNI_modes. Any sort of help or even a reference to any available information will be great! Thanks, Shreehari. Technical Yahoo!, Yahoo! Software Development India Pvt. Ltd. -Original Message- From: Jerry Birchler [mailto:[EMAIL PROTECTED] Sent: Sunday, October 20, 2002 1:46 AM To: Tomcat Users List Subject: RE: RE: John Turner or someone who responsible for Posting -- Re: How to Apache2, Tomcat4.1.2, JK2 ? I have a working example of Apache 2.0.43 with Tomcat 4.1.2 using JK2 on Red Hat Linux 8.0. I had to fallback to methods used on a previous integration of Apache 1.3.24 with Tomcat 4.0.4 after looking at the Howtos that came with the 4.1.2 documentaton. That enabled me to quickly put together a workers.properties file. I can see why people might want to have some examples. Please let me know if you're interested in a separate post with what I did. After rebuilding apache, I was up and running in just a few minutes.
RE: Internal Server Error
What happens if you delete the lbfactor line? It's not necessary, and may be confusing things. John -Original Message- From: Adam Denenberg [mailto:[EMAIL PROTECTED] Sent: Saturday, March 01, 2003 9:51 AM To: Tomcat Users List Subject: Re: Internal Server Error Still tested this 100 times and it still only works directly to tomcat at 8080 but not through mod_jk. Are there any additions to the server.xml file that need to be made to make this work properly? It doesn¹t appear the connection even gets to tomcat since the logs don¹t show anything. I am still unlcear why mod_jk is unable to find a worker as it complains about? Anyone know what would cause that? thanks Adam On 2/28/03 5:29 PM, Adam Denenberg [EMAIL PROTECTED] wrote: Hey , I am using apache 1.3.X with tomcat 4.1.18 on solaris 7 and sun JDK 1.4. I am getting an internal server error with the folloing jk error in my mod_jk.log file [Fri Feb 28 17:15:43 2003] [jk_uri_worker_map.c (558)] jk_uri_worker_map_t::map_uri_to_worker, Found a suffix match ajp13 - *.jsp [Fri Feb 28 17:15:43 2003] [jk_worker.c (132)]: Into wc_get_worker_for_name ajp13 [Fri Feb 28 17:15:43 2003] [jk_worker.c (136)]: wc_get_worker_for_name, done did not found a worker My workers.properties file is workers.tomcat_home=/usr/local/tomcat workers.java_home=/usr/local/java ps=/ worker.list=ajp13 worker.ajp13.port=8009 worker.ajp13.host=localhost worker.ajp13.type=ajp13 worker.ajp13.lbfactor=1 and my httpd.conf section is JkWorkersFile /usr/local/apache/conf/workers.properties Alias /examples /usr/local/tomcat/webapps/examples JkLogFile logs/jk.log JkLogLevel debug JkMount /examples/*.jsp ajp13 JkMount /*.jsp ajp13 And server.xml relevant is .. Connector className=org.apache.ajp.tomcat4.Ajp13Connector port=8009 minProcessors=5 maxProcessors=75 acceptCount=10 debug=0/ The jk2/coyote on 8009 connector was commented out. Static content looks fine, however when trying to access a .jsp file, it fails with an internal server error and the message above. Anyone seen this problem or can diagnose why I would get it? I cant figure it for the life of me. thanks Adam - 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: HELP ! RE:RE: RE:setting up tomcat 4.1
If you can see Tomcat on port 8080 then it is running. John -Original Message- From: Curtis Seyfried [mailto:[EMAIL PROTECTED] Sent: Saturday, March 01, 2003 1:10 PM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: HELP ! RE:RE: RE:setting up tomcat 4.1 __ ___ I have been trying to setup Tomcat 4.1 I have entered all class and other paths. When I run Startup it goes through a whole set of operations then finishes with can not find file or directory or one of its components -Djava.endorsed.dirs= If someone can help I'd appreciate it. If a log of the startup would help I would create one if I knew how, so if someone can tell me I'd appreciates that also. I am running Dell Dimension XPS t700r PIII-700mHz. 256meg RAM Win2K pro sp3 with all security and other patches. Both j2sdk and j2se1.4.1_01 reside on my D:\ Tomcat is located in E:\program files_jakarta_libraries\Tomcat 4.1 I have Sun's Java j2sdk1.4.1 set as JAVA_HOME j2sdk1.4.1 is exactly the way the directory is written. I have numerous other Java apps that use the same JAVA_HOME and have no problems. After receiving the below responses I did a search on my entire HD : C:\ ; D:\ and E:\ there is NOTHING called -Djava.endorsed.dirs= ANYWHERE on my HD, nor is there any variation of this name. What is the bloody thing ? Where is it supposed to be ? Can I download it from somewhere and stick it wherever it is supposed to be? Startup designates and finds CATALINA_HOME OK and all of its subs. in E:\program files_jakarta_libraries\Tomcat 4.1 One other piece of info. At another time I started Abyss Web Server to start looking at it, and on a lark went to http://localhost:8080 in my browser, and the You have successfully setup Tomcat page appeared. I was able to open and login on the administration page and manager page . __ _ Message-ID: [EMAIL PROTECTED] From: Tam, Michael [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Subject: RE: RE:setting up tomcat 4.1 Date: Fri, 28 Feb 2003 18:37:44 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 This only happens when tomcat can't find JAVA_HOME. I just tested it a moment ago when I removed my environment variable. Did you verify the variable by typing %JAVA_HOME% in the CMT prompt?? -Original Message- From: Curtis Seyfried [mailto:[EMAIL PROTECTED] Sent: Friday, February 28, 2003 3:25 PM To: [EMAIL PROTECTED] Subject: RE:RE:setting up tomcat 4.1 Message-ID: [EMAIL PROTECTED] From: Tam, Michael [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Subject: RE: setting up Tomcat 4.1 Date: Fri, 28 Feb 2003 13:18:15 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Did you set JAVA_HOME in your environment variable? i.e. JAVA_HOME=C:\j2sdk1.4.1 Yes I have JAVA_HOME=D:\j2sdk1.4.1 which is where my Javasdk is located. -Original Message- From: Curtis Seyfried [mailto:[EMAIL PROTECTED] Sent: Friday, February 28, 2003 9:41 AM To: [EMAIL PROTECTED] Subject: setting up Tomcat 4.1 I have been trying to setup Tomcat 4.1 I have entered all class and other paths. When I run Startup it goes through a whole set of operations then finishes with can not find -Djava.endorsed.dirs= I someone can help I'd appreciate it. If you need a log of the startup operations I would create one if I knew how, so if someone can tell me I'd appreciates that also. I am running Dell Dimension XPS t700r PIII-700mHz. 256meg RAM Win2K pro sp3 with all security and other patches. I have Sun's Java j2sdk1.4.1 -- All Outgoing mail, downloaded files and e-mail attachments are certified Virus Free. Checked by Symantec Norton Anti-virus 2003 using the latest virus definition list. All Incoming mail, downloaded files and e-mail attachments are certified Virus Free. Checked by Symantec Norton Anti-virus 2003 using the latest virus definition list. Curtis Seyfried mailto:[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_jk error
Try deleting the lbfactor line from your workers.properties file. It's not necessary when you only have one worker defined, and it may be causing confusion to mod_jk.so. John -Original Message- From: Adam Denenberg [mailto:[EMAIL PROTECTED] Sent: Saturday, March 01, 2003 8:36 PM To: [EMAIL PROTECTED] Subject: mod_jk error I have been digging everywhere and can not find the answer to this error that I am getting. Has anyone seen this error, and resolved it, or found the root of its cause? [Fri Feb 28 21:13:27 2003] [jk_worker.c (136)]: wc_get_worker_for_name, done did not found a worker Thanks Adam - 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_jk error
No other ideas, really. In the past, problems like this have come down to something really simple, such as using an el (l) instead of a one (1) in ajp13 and other typo-related problems (or permission problems). My eyesight isn't as good as it used to be, but it looks like you have ajp13 typed out correctly in all the places where it needs to be. John -Original Message- From: Adam Denenberg [mailto:[EMAIL PROTECTED] Sent: Monday, March 03, 2003 8:24 AM To: Tomcat Users List Subject: Re: mod_jk error Hmm, tried that but still no luck. I still get the following [Mon Mar 03 08:16:00 2003] [jk_uri_worker_map.c (477)]: Attempting to map URI '/examples/jsp/dates/date.jsp' [Mon Mar 03 08:16:00 2003] [jk_uri_worker_map.c (558)]: jk_uri_worker_map_t::map_uri_to_worker, Found a suffix match ajp13 - *.jsp [Mon Mar 03 08:16:00 2003] [jk_worker.c (132)]: Into wc_get_worker_for_name ajp13 [Mon Mar 03 08:16:00 2003] [jk_worker.c (136)]: wc_get_worker_for_name, done did not found a worker Using a very simple workers.properties file. worker.list=ajp13 worker.ajp13.port=8009 worker.ajp13.host=localhost worker.ajp13.type=ajp13 any other suggestions? I am totally out of ideas as to what is causing this error.. thanks Adam On 3/3/03 8:06 AM, Turner, John [EMAIL PROTECTED] wrote: Try deleting the lbfactor line from your workers.properties file. It's not necessary when you only have one worker defined, and it may be causing confusion to mod_jk.so. John -Original Message- From: Adam Denenberg [mailto:[EMAIL PROTECTED] Sent: Saturday, March 01, 2003 8:36 PM To: [EMAIL PROTECTED] Subject: mod_jk error I have been digging everywhere and can not find the answer to this error that I am getting. Has anyone seen this error, and resolved it, or found the root of its cause? [Fri Feb 28 21:13:27 2003] [jk_worker.c (136)]: wc_get_worker_for_name, done did not found a worker Thanks Adam - 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: Mime-Type
JSPs are never served to a browser as JSP. They generate output. That output has the appropriate MIME type, such as text/html for typical scenarios. Other MIME types used are image MIME types and MIME types for things like spreadsheets, word processors, and other external applications. If JSP source code is served to a browser with the intention of displaying the JSP code, such as in a tutorial or HOWTO document, the MIME type would typically be standard text. John -Original Message- From: Anthony Smith [mailto:[EMAIL PROTECTED] Sent: Monday, March 03, 2003 10:36 AM To: Tomcat Users List Subject: Mime-Type I did not know where ask to else this question. Is there a mime-type for a jsp? If so, what is it? - 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: Installing Tomcat on WinXP with Apache/PHP/mySQL setup
Off the top of my head I would say change httpd.conf to load mod_jk.so, add your JkMounts and the other JK stuff, and you should be good to go. Unless, of coures, the httpd that came with that package won't except dynamically loaded modules. John -Original Message- From: Denise Mangano [mailto:[EMAIL PROTECTED] Sent: Monday, March 03, 2003 11:08 AM To: 'Tomcat Users List' Subject: Installing Tomcat on WinXP with Apache/PHP/mySQL setup Hi all :) I have a *simple* question. I want to set up Tomcat on my local machine for testing / playing around. I'm not sure if anyone is familiar with phpdev - but phpdev is basically a pre configured version of apache/PHP/MySQL. I have this installed, and it comes packaged with Apache version 1.3.27. I did this primarily because I wanted to use Apache as the web server, and wanted the ability to create PHP applications - but without the headaches of trying to configure everything manually. Now I want to integrate Tomcat into the picture, and I am just wondering if there is anything special I need to do so nothing conflicts or do I proceed with the Tomcat installation as normal. Thanks! Denise Mangano Help Desk Analyst Complus Data Innovations, Inc. - 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: Installing Tomcat on WinXP with Apache/PHP/mySQL setup
I use the EXE, which will run an installer when you execute it. That way, you can choose to run Tomcat as a service or not just by checking the option in the installer instead of having to get medieval on the command line later. John -Original Message- From: Denise Mangano [mailto:[EMAIL PROTECTED] Sent: Monday, March 03, 2003 11:44 AM To: 'Tomcat Users List' Subject: RE: Installing Tomcat on WinXP with Apache/PHP/mySQL setup John - it appears that the httpd that came with the program accepts dynamically loaded modules, so I think I will be OK with the mod_jk connector. I've only installed tomcat on a linux machine. For the WinXP machine is it better to go with the Tomcat binary that comes in the zip file, or the executable? Thanks :) Denise Mangano Help Desk Analyst Complus Data Innovations, Inc. -Original Message- From: Turner, John [mailto:[EMAIL PROTECTED] Sent: Monday, March 03, 2003 11:11 AM To: 'Tomcat Users List' Subject: RE: Installing Tomcat on WinXP with Apache/PHP/mySQL setup Off the top of my head I would say change httpd.conf to load mod_jk.so, add your JkMounts and the other JK stuff, and you should be good to go. Unless, of coures, the httpd that came with that package won't except dynamically loaded modules. John -Original Message- From: Denise Mangano [mailto:[EMAIL PROTECTED] Sent: Monday, March 03, 2003 11:08 AM To: 'Tomcat Users List' Subject: Installing Tomcat on WinXP with Apache/PHP/mySQL setup Hi all :) I have a *simple* question. I want to set up Tomcat on my local machine for testing / playing around. I'm not sure if anyone is familiar with phpdev - but phpdev is basically a pre configured version of apache/PHP/MySQL. I have this installed, and it comes packaged with Apache version 1.3.27. I did this primarily because I wanted to use Apache as the web server, and wanted the ability to create PHP applications - but without the headaches of trying to configure everything manually. Now I want to integrate Tomcat into the picture, and I am just wondering if there is anything special I need to do so nothing conflicts or do I proceed with the Tomcat installation as normal. Thanks! Denise Mangano Help Desk Analyst Complus Data Innovations, Inc. - 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: Tomcat as Linux Service
If you're using Red Hat, look here: http://daydream.stanford.edu/tomcat/tomcatd Then, also if you are using Red Hat, you would want to use chkconfig to set it up for the appropriate runlevels (3 and 5). chkconfig will create all of the correct symbolic links, etc. for you so that all you need to do is put the tomcatd script in /etc/init.d and run chkconfig. John -Original Message- From: Jeremy Whitlock [mailto:[EMAIL PROTECTED] Sent: Monday, March 03, 2003 1:40 PM To: 'Tomcat Users List' Subject: RE: Tomcat as Linux Service Yes. Right now I use the earlier posted script to start/stop/reload apache via /sbin/service httpd start and I'd like to do the same with tomcat. Here's how it would work: Case 1) Start - It would check to see if Tomcat is already running. If it's not running, start it. If it's running already, echo a message. Case2) Stop - It would check to see if Tomcat is running. If it's running, stop it. If it's not, echo a message. Case 3) Restart/Reload - It would check to see if Tomcat is running. If it is, stop the service then start it. If it's not running, echo a message. How can I do this? I see items in the Apache start script that would do this but I don't know what some of the others are. Can someone help me achieve this? This file would be /etc/init.d/tomcat after it's completed. I would then chkconfig --add tomcat and boom, I have a service. Any help would be greatly appreciated. Thanks, Jeremy -Original Message- From: p2 - apache [mailto:[EMAIL PROTECTED] Sent: Monday, March 03, 2003 11:35 AM To: 'Tomcat Users List' Subject: RE: Tomcat as Linux Service You mean create a service to start/shutdown a daemon? -Original Message- From: Jeremy Whitlock [mailto:[EMAIL PROTECTED] Sent: March 3, 2003 1:11 PM To: Tomcat Subject: Tomcat as Linux Service Tomcat List, Does anyone know how to get Tomcat to be a service on a Linux Box? Thanks, Jeremy Whitlock --- MCP/MCSA IT Manager for Star Precision, Inc. Phone: (970) 535-4795 Metro: (303) 926-0559 Fax: (970) 535-0780 Metro Fax: (303) 926-0559 http://www.starprecision.com - 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_jk
No, there are HOWTOs there for Win2K/XP, Solaris 8, and RH 7.2/7.3. Three total. John -Original Message- From: Jeremy Whitlock [mailto:[EMAIL PROTECTED] Sent: Monday, March 03, 2003 3:14 PM To: 'Tomcat Users List' Subject: RE: mod_jk John, I went to your page and it's for a Windows machine. I'm running Linux. Can someone help me configure mod_jk? I have downloaded it, changed the name to mod_jk.so and I have put it into the APACHE/modules folder. What next? Thanks, Jeremy -Original Message- From: Turner, John [mailto:[EMAIL PROTECTED] Sent: Friday, February 28, 2003 9:25 AM To: 'Tomcat Users List' Subject: RE: mod_jk Yes, .44 is module compatible with .43. For more info, check out my RH HOWTO for Apache + JK + Tomcat: http://www.johnturner.com/howto John -Original Message- From: Jeremy Whitlock [mailto:[EMAIL PROTECTED] Sent: Friday, February 28, 2003 11:11 AM To: Tomcat Subject: mod_jk Tomcat-List, I have just built a new Red Hat machine and I installed it with no preinstalled Web Server or Databases so that I could install them myself. I have Apache 2.0.44 and I wanted to integrate Tomcat. I downloaded mod_jk-2.0.43 and I need to know if it will work with Apache 2.0.44. Thanks, Jeremy Whitlock --- MCP/MCSA IT Manager for Star Precision, Inc. Phone: (970) 535-4795 Metro: (303) 926-0559 Fax: (970) 535-0780 Metro Fax: (303) 926-0559 http://www.starprecision.com - 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: get apache-tomcat virtual host
What are the contents of mod_jk.conf? Did you restart Apache so that it could pick up the changes? Is there a VirtualHost container in mod_jk.conf for www.host2.com? In your Host container in server.xml, you list the name as host2.com, not www.host2.com. Is this a typo? The two are different. Either change it to www.host2.com or use Alias within the Host container to alias www.host2.com to host2.com. John -Original Message- From: Xiongfei Wang [mailto:[EMAIL PROTECTED] Sent: Thursday, February 27, 2003 11:35 PM To: Tomcat Users List Subject: get apache-tomcat virtual host On Thu, 27 Feb 2003, Xiongfei Wang wrote: I have redhat linux 7.3 i have two virtual host in my machine www.host1.com and www.host2.com www.host1.com is the default one. apache-tomcat runs fine with the default one. i mean both http://www.host1.com:8080/examples and http://www.host1.com/examples come to same result whick is good. i want www.host2.com work same way as www.host1.com in term of runing apache servlet, i did following to server.xml I add host dirctive like this *** Host name=host2.com debug=0 appBase=/home/www/zhujp98 unpackWARs=true Listener className=org.apache.ajp.tomcat4.config.ApacheConfig append=true / !-- Normally, users must authenticate themselves to each web app individually. Uncomment the following entry if you would like a user to be authenticated the first time they encounter a resource protected by a security constraint, and then have that user identity maintained across *all* web applications contained in this virtual host. -- !-- Valve className=org.apache.catalina.authenticator.SingleSignOn debug=0/ -- !-- Access log processes all requests for this virtual host. By default, log files are created in the logs directory relative to $CATALINA_HOME. If you wish, you can specify a different directory with the directory attribute. Specify either a relative (to $CATALINA_HOME) or absolute path to the desired directory. -- Valve className=org.apache.catalina.valves.AccessLogValve directory=logs prefix=localhost_access_log. suffix=.txt pattern=common/ !-- Logger shared by all Contexts related to this virtual host. By default (when using FileLogger), log files are created in the logs directory relative to $CATALINA_HOME. If you wish, you can specify a different directory with the directory attribute. Specify either a relative (to $CATALINA_HOME) or absolute path to the desired directory.-- Logger className=org.apache.catalina.logger.FileLogger directory=logs prefix=localhost_log. suffix=.txt timestamp=true/ !-- Define properties for each web application. This is only needed if you want to set non-default properties, or have web application document roots in places other than the virtual host's appBase directory. -- !-- Tomcat Root Context -- !-- Context path= docBase=ROOT debug=0/ -- Context path=/servlets docBase=/home/www/zhujp98/servlets debug=0 reloadable=true/ /Host ** after that I can access servlets using http://www.host2.com:8080/servlets but fails when i use http://www.host2.com/servlets it seems that apache did not connect to tomcat in terms of www.host2.com how can i fix this problem? Thanks j.p - 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: how to get apache-tomcat virtual host work?
Is this a glitch? Did my first reply to this post get lost? John -Original Message- From: Xiongfei Wang [mailto:[EMAIL PROTECTED] Sent: Friday, February 28, 2003 10:53 AM To: Tomcat Users List Subject: how to get apache-tomcat virtual host work? I have redhat linux 7.3 i have two virtual host in my machine www.host1.com and www.host2.com www.host1.com is the default one. I have installed apache-tomcat on my machine apache-tomcat runs fine with the www.host1.com one. i mean both http://www.host1.com:8080/examples and http://www.host1.com/examples come to same result which is good. i want www.host2.com work same way as www.host1.com in term of running apache-tomcat i did following to server.xml I add host dirctive like this ** * Host name=host2.com debug=0 appBase=/home/www/zhujp98 unpackWARs=true Listener className=org.apache.ajp.tomcat4.config.ApacheConfig append=true / !-- Normally, users must authenticate themselves to each web app individually. Uncomment the following entry if you would like a user to be authenticated the first time they encounter a resource protected by a security constraint, and then have that user identity maintained across *all* web applications contained in this virtual host. -- !-- Valve className=org.apache.catalina.authenticator.SingleSignOn debug=0/ -- !-- Access log processes all requests for this virtual host. By default, log files are created in the logs directory relative to $CATALINA_HOME. If you wish, you can specify a different directory with the directory attribute. Specify either a relative (to $CATALINA_HOME) or absolute path to the desired directory. -- Valve className=org.apache.catalina.valves.AccessLogValve directory=logs prefix=localhost_access_log. suffix=.txt pattern=common/ !-- Logger shared by all Contexts related to this virtual host. By default (when using FileLogger), log files are created in the logs directory relative to $CATALINA_HOME. If you wish, you can specify a different directory with the directory attribute. Specify either a relative (to $CATALINA_HOME) or absolute path to the desired directory.-- Logger className=org.apache.catalina.logger.FileLogger directory=logs prefix=localhost_log. suffix=.txt timestamp=true/ !-- Define properties for each web application. This is only needed if you want to set non-default properties, or have web application document roots in places other than the virtual host's appBase directory. -- !-- Tomcat Root Context -- !-- Context path= docBase=ROOT debug=0/ -- Context path=/servlets docBase=/home/www/zhujp98/servlets debug=0 reloadable=true/ /Host ** after that I can access servlets using http://www.host2.com:8080/servlets but fails when i use http://www.host2.com/servlets it seems that apache did not connect to tomcat in terms of www.host2.com how can i fix this problem? Thanks j.p - 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_jk
Yes, .44 is module compatible with .43. For more info, check out my RH HOWTO for Apache + JK + Tomcat: http://www.johnturner.com/howto John -Original Message- From: Jeremy Whitlock [mailto:[EMAIL PROTECTED] Sent: Friday, February 28, 2003 11:11 AM To: Tomcat Subject: mod_jk Tomcat-List, I have just built a new Red Hat machine and I installed it with no preinstalled Web Server or Databases so that I could install them myself. I have Apache 2.0.44 and I wanted to integrate Tomcat. I downloaded mod_jk-2.0.43 and I need to know if it will work with Apache 2.0.44. Thanks, Jeremy Whitlock --- MCP/MCSA IT Manager for Star Precision, Inc. Phone: (970) 535-4795 Metro: (303) 926-0559 Fax: (970) 535-0780 Metro Fax: (303) 926-0559 http://www.starprecision.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: mod_jk
Nope, in my opinion you made the right choice. That's how I do it; I never use the Apache that comes with RH. The HOWTO covers installing the JDK, installing Apache from source (2.0.44), installing Tomcat 4.1.18 from binary, and installing and configuring the JK connector (mod_jk.so). John -Original Message- From: Jeremy Whitlock [mailto:[EMAIL PROTECTED] Sent: Friday, February 28, 2003 11:28 AM To: 'Tomcat Users List' Subject: RE: mod_jk John, Thanks for your help. Do you think that since I didn't install apache via Red Hat installer that the document might not work for me? They use an older version of Apache. Thanks, Jeremy -Original Message- From: Turner, John [mailto:[EMAIL PROTECTED] Sent: Friday, February 28, 2003 9:25 AM To: 'Tomcat Users List' Subject: RE: mod_jk Yes, .44 is module compatible with .43. For more info, check out my RH HOWTO for Apache + JK + Tomcat: http://www.johnturner.com/howto John -Original Message- From: Jeremy Whitlock [mailto:[EMAIL PROTECTED] Sent: Friday, February 28, 2003 11:11 AM To: Tomcat Subject: mod_jk Tomcat-List, I have just built a new Red Hat machine and I installed it with no preinstalled Web Server or Databases so that I could install them myself. I have Apache 2.0.44 and I wanted to integrate Tomcat. I downloaded mod_jk-2.0.43 and I need to know if it will work with Apache 2.0.44. Thanks, Jeremy Whitlock --- MCP/MCSA IT Manager for Star Precision, Inc. Phone: (970) 535-4795 Metro: (303) 926-0559 Fax: (970) 535-0780 Metro Fax: (303) 926-0559 http://www.starprecision.com - 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: how to get apache-tomcat virtual host work?
What are the contents of mod_jk.conf? Did you restart Apache so that it could pick up the changes? Is there a VirtualHost container in mod_jk.conf for www.host2.com? In your Host container in server.xml, you list the name as host2.com, not www.host2.com. Is this a typo? The two are different. Either change it to www.host2.com or use Alias within the Host container to alias www.host2.com to host2.com. John -Original Message- From: Hostmaster of the day [mailto:[EMAIL PROTECTED] Sent: Friday, February 28, 2003 11:36 AM To: [EMAIL PROTECTED] Subject: RE: how to get apache-tomcat virtual host work? John, where is your reply ? how to get apache-tomcat virtual host work? is an easy question as long as you are using Tomcat 3.2.3 or Tomcat 3.3.1. Although I'm working very successfully with virtual hosts and Tomcat 3.2.3 + 3.3.1 I was up to now unable to get virtual hosts running with Tomcat 4. Only the default virtual host is running. It doesn't matter which virtual host I'm using. I'm not alone and still working on it. --Dave Is this a glitch? Did my first reply to this post get lost? John I have redhat linux 7.3 i have two virtual host in my machine www.host1.com and www.host2.com www.host1.com is the default one. I have installed apache-tomcat on my machine apache-tomcat runs fine with the www.host1.com one. i mean both http://www.host1.com:8080/examples and http://www.host1.com/examples come to same result which is good. i want www.host2.com work same way as www.host1.com in term of running apache-tomcat i did following to server.xml I add host dirctive like this ** * Host name=host2.com debug=0 appBase=/home/www/zhujp98 unpackWARs=true Listener className=org.apache.ajp.tomcat4.config.ApacheConfig append=true / !-- Normally, users must authenticate themselves to each web app individually. Uncomment the following entry if you would like a user to be authenticated the first time they encounter a resource protected by a security constraint, and then have that user identity maintained across *all* web applications contained in this virtual host. -- !-- Valve className=org.apache.catalina.authenticator.SingleSignOn debug=0/ -- !-- Access log processes all requests for this virtual host. By default, log files are created in the logs directory relative to $CATALINA_HOME. If you wish, you can specify a different directory with the directory attribute. Specify either a relative (to $CATALINA_HOME) or absolute path to the desired directory. -- Valve className=org.apache.catalina.valves.AccessLogValve directory=logs prefix=localhost_access_log. suffix=.txt pattern=common/ !-- Logger shared by all Contexts related to this virtual host. By default (when using FileLogger), log files are created in the logs directory relative to $CATALINA_HOME. If you wish, you can specify a different directory with the directory attribute. Specify either a relative (to $CATALINA_HOME) or absolute path to the desired directory.-- Logger className=org.apache.catalina.logger.FileLogger directory=logs prefix=localhost_log. suffix=.txt timestamp=true/ !-- Define properties for each web application. This is only needed if you want to set non-default properties, or have web application document roots in places other than the virtual host's appBase directory. -- !-- Tomcat Root Context -- !-- Context path= docBase=ROOT debug=0/ -- Context path=/servlets docBase=/home/www/zhujp98/servlets debug=0 reloadable=true/ /Host ** after that I can access servlets using http://www.host2.com:8080/servlets but fails when i use http://www.host2.com/servlets it seems that apache did not connect to tomcat in terms of www.host2.com how can i fix this problem? Thanks j.p - To unsubscribe, e-mail: [EMAIL
RE: Running outside of localhost
Basically, everywhere you see localhost, change it to my.domain.com. ;) The alternative, or if you have more than one virtual host, is to copy the entire localhost Host container in server.xml, and change localhost to my.domain.com. This will preserve the localhost configuration. John -Original Message- From: Chris Fowler [mailto:[EMAIL PROTECTED] Sent: Friday, February 28, 2003 11:47 AM To: [EMAIL PROTECTED] Subject: Running outside of localhost Hi all, I am a complete newbie to tomcat and apache. I have followed John's excellent Windows 2000/XP - Apache + JK + Tomcat HOWTO and all works well. AS sugested I have used localhost throughout the installation. What do I need to do so I can serve .jsp's to clients outside my machine. For example if I use: http://localhost/examples/jsp/index.html All works well. But if I replace local host with machine_name.domain I get a 404 error. This is probably a really dumb question to ask, but can somebody point me in the right direction. Thanks, - 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: how to get apache-tomcat virtual host work?
Is that something you created by hand? That's not output from ApacheConfig. Are there entries in httpd.conf for things like JkWorkersFile, etc.? John -Original Message- From: Xiongfei Wang [mailto:[EMAIL PROTECTED] Sent: Friday, February 28, 2003 12:58 PM To: Tomcat Users List Subject: RE: how to get apache-tomcat virtual host work? John, Thank you very much for your response. after i chang host2.com to www.host2.com and restart tomacat apache My mod_jk.conf is like: *** VirtualHost www.host2.com ServerName www.host2.com JkMount /servlets ajp13 JkMount /servlets/* ajp13 JkMount /manager ajp13 JkMount /manager/* ajp13 /VirtualHost VirtualHost www.host1.com ServerName www.host1.com JkMount /webdav ajp13 JkMount /webdav/* ajp13 JkMount /mlogin ajp13 JkMount /mlogin/* ajp13 JkMount /login ajp13 JkMount /login/* ajp13 JkMount /examples ajp13 JkMount /examples/* ajp13 JkMount /tomcat-docs ajp13 JkMount /tomcat-docs/* ajp13 JkMount /manager ajp13 JkMount /manager/* ajp13 /VirtualHost But it still not working. Thanks for any futher suggestion. On Fri, 28 Feb 2003, Turner, John wrote: What are the contents of mod_jk.conf? Did you restart Apache so that it could pick up the changes? Is there a VirtualHost container in mod_jk.conf for www.host2.com? In your Host container in server.xml, you list the name as host2.com, not www.host2.com. Is this a typo? The two are different. Either change it to www.host2.com or use Alias within the Host container to alias www.host2.com to host2.com. John -Original Message- From: Hostmaster of the day [mailto:[EMAIL PROTECTED] Sent: Friday, February 28, 2003 11:36 AM To: [EMAIL PROTECTED] Subject: RE: how to get apache-tomcat virtual host work? John, where is your reply ? how to get apache-tomcat virtual host work? is an easy question as long as you are using Tomcat 3.2.3 or Tomcat 3.3.1. Although I'm working very successfully with virtual hosts and Tomcat 3.2.3 + 3.3.1 I was up to now unable to get virtual hosts running with Tomcat 4. Only the default virtual host is running. It doesn't matter which virtual host I'm using. I'm not alone and still working on it. --Dave Is this a glitch? Did my first reply to this post get lost? John I have redhat linux 7.3 i have two virtual host in my machine www.host1.com and www.host2.com www.host1.com is the default one. I have installed apache-tomcat on my machine apache-tomcat runs fine with the www.host1.com one. i mean both http://www.host1.com:8080/examples and http://www.host1.com/examples come to same result which is good. i want www.host2.com work same way as www.host1.com in term of running apache-tomcat i did following to server.xml I add host dirctive like this ** * Host name=host2.com debug=0 appBase=/home/www/zhujp98 unpackWARs=true Listener className=org.apache.ajp.tomcat4.config.ApacheConfig append=true / !-- Normally, users must authenticate themselves to each web app individually. Uncomment the following entry if you would like a user to be authenticated the first time they encounter a resource protected by a security constraint, and then have that user identity maintained across *all* web applications contained in this virtual host. -- !-- Valve className=org.apache.catalina.authenticator.SingleSignOn debug=0/ -- !-- Access log processes all requests for this virtual host. By default, log files are created in the logs directory relative to $CATALINA_HOME. If you wish, you can specify a different directory with the directory attribute. Specify either a relative (to $CATALINA_HOME) or absolute path to the desired directory. -- Valve className=org.apache.catalina.valves.AccessLogValve directory=logs prefix=localhost_access_log. suffix=.txt pattern=common/ !-- Logger shared by all Contexts related
RE: how to get apache-tomcat virtual host work?
Take out the lines that look like this: JkMount /someURL ajp13 The typical setup is something like this: JkMount /*.jsp ajp13 JkMount /servlet/* ajp13 John -Original Message- From: Xiongfei Wang [mailto:[EMAIL PROTECTED] Sent: Friday, February 28, 2003 2:36 PM To: Tomcat Users List Subject: RE: how to get apache-tomcat virtual host work? I did create it by hand. I just delete mod_jk.conf and restart tomcat and mod_jk.conf has same thing inside as before. In httpd.conf I have Include /usr/local/tomcat/conf/auto/mod_jk.conf IfModule mod_jk.c JkWorkersFile /usr/local/tomcat/conf/jk/workers.properties JkLogFile /usr/local/tomcat/logs/mod_jk.log JkLogLevel debug JkMount /examples ajp13 JkMount /examples/* ajp13 /IfModule Any more advices? Thanks On Fri, 28 Feb 2003, Turner, John wrote: Is that something you created by hand? That's not output from ApacheConfig. Are there entries in httpd.conf for things like JkWorkersFile, etc.? John -Original Message- From: Xiongfei Wang [mailto:[EMAIL PROTECTED] Sent: Friday, February 28, 2003 12:58 PM To: Tomcat Users List Subject: RE: how to get apache-tomcat virtual host work? John, Thank you very much for your response. after i chang host2.com to www.host2.com and restart tomacat apache My mod_jk.conf is like: *** VirtualHost www.host2.com ServerName www.host2.com JkMount /servlets ajp13 JkMount /servlets/* ajp13 JkMount /manager ajp13 JkMount /manager/* ajp13 /VirtualHost VirtualHost www.host1.com ServerName www.host1.com JkMount /webdav ajp13 JkMount /webdav/* ajp13 JkMount /mlogin ajp13 JkMount /mlogin/* ajp13 JkMount /login ajp13 JkMount /login/* ajp13 JkMount /examples ajp13 JkMount /examples/* ajp13 JkMount /tomcat-docs ajp13 JkMount /tomcat-docs/* ajp13 JkMount /manager ajp13 JkMount /manager/* ajp13 /VirtualHost But it still not working. Thanks for any futher suggestion. On Fri, 28 Feb 2003, Turner, John wrote: What are the contents of mod_jk.conf? Did you restart Apache so that it could pick up the changes? Is there a VirtualHost container in mod_jk.conf for www.host2.com? In your Host container in server.xml, you list the name as host2.com, not www.host2.com. Is this a typo? The two are different. Either change it to www.host2.com or use Alias within the Host container to alias www.host2.com to host2.com. John -Original Message- From: Hostmaster of the day [mailto:[EMAIL PROTECTED] Sent: Friday, February 28, 2003 11:36 AM To: [EMAIL PROTECTED] Subject: RE: how to get apache-tomcat virtual host work? John, where is your reply ? how to get apache-tomcat virtual host work? is an easy question as long as you are using Tomcat 3.2.3 or Tomcat 3.3.1. Although I'm working very successfully with virtual hosts and Tomcat 3.2.3 + 3.3.1 I was up to now unable to get virtual hosts running with Tomcat 4. Only the default virtual host is running. It doesn't matter which virtual host I'm using. I'm not alone and still working on it. --Dave Is this a glitch? Did my first reply to this post get lost? John I have redhat linux 7.3 i have two virtual host in my machine www.host1.com and www.host2.com www.host1.com is the default one. I have installed apache-tomcat on my machine apache-tomcat runs fine with the www.host1.com one. i mean both http://www.host1.com:8080/examples and http://www.host1.com/examples come to same result which is good. i want www.host2.com work same way as www.host1.com in term of running apache-tomcat i did following to server.xml I add host dirctive like this ** * Host name=host2.com debug=0 appBase=/home/www/zhujp98 unpackWARs=true Listener className=org.apache.ajp.tomcat4.config.ApacheConfig append=true / !-- Normally, users must authenticate themselves to each web app individually. Uncomment the following entry if you would like a user to be authenticated
RE: how to get apache-tomcat virtual host work?
OK, then the Listener directives you have in server.xml are not correct. Here is how mod_jk.conf looks, from a completely default Tomcat install (localhost is the only virtual host in this case), with the addition of the two Listener elements in server.xml: http://www.johnturner.com/howto/mod_jk_conf.html If yours doesn't look like that, I would review server.xml and verify that my Listener directives/elements are positioned correctly and are complete, as described in the Final Configuration section of my RH 7.x HOWTO: http://www.johnturner.com/howto/rh72-howto.html John -Original Message- From: Xiongfei Wang [mailto:[EMAIL PROTECTED] Sent: Friday, February 28, 2003 2:54 PM To: Tomcat Users List Subject: RE: how to get apache-tomcat virtual host work? my previous email should be I did NOT create mod_jk.conf by hand. because i do not know how to creat mod_jk.conf by hand. On Fri, 28 Feb 2003, Turner, John wrote: Take out the lines that look like this: JkMount /someURL ajp13 The typical setup is something like this: JkMount /*.jsp ajp13 JkMount /servlet/* ajp13 John -Original Message- From: Xiongfei Wang [mailto:[EMAIL PROTECTED] Sent: Friday, February 28, 2003 2:36 PM To: Tomcat Users List Subject: RE: how to get apache-tomcat virtual host work? I did create it by hand. I just delete mod_jk.conf and restart tomcat and mod_jk.conf has same thing inside as before. In httpd.conf I have Include /usr/local/tomcat/conf/auto/mod_jk.conf IfModule mod_jk.c JkWorkersFile /usr/local/tomcat/conf/jk/workers.properties JkLogFile /usr/local/tomcat/logs/mod_jk.log JkLogLevel debug JkMount /examples ajp13 JkMount /examples/* ajp13 /IfModule Any more advices? Thanks - 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: how to get apache-tomcat virtual host work?
Also, if you are using the mod_jk.conf style, the only thing in httpd.conf should be: Include /usr/local/tomcat/conf/auto/mod_jk.conf Also, are you loading the mod_jk.so module in httpd.conf? John -Original Message- From: Xiongfei Wang [mailto:[EMAIL PROTECTED] Sent: Friday, February 28, 2003 2:54 PM To: Tomcat Users List Subject: RE: how to get apache-tomcat virtual host work? my previous email should be I did NOT create mod_jk.conf by hand. because i do not know how to creat mod_jk.conf by hand. On Fri, 28 Feb 2003, Turner, John wrote: Take out the lines that look like this: JkMount /someURL ajp13 The typical setup is something like this: JkMount /*.jsp ajp13 JkMount /servlet/* ajp13 John -Original Message- From: Xiongfei Wang [mailto:[EMAIL PROTECTED] Sent: Friday, February 28, 2003 2:36 PM To: Tomcat Users List Subject: RE: how to get apache-tomcat virtual host work? I did create it by hand. I just delete mod_jk.conf and restart tomcat and mod_jk.conf has same thing inside as before. In httpd.conf I have Include /usr/local/tomcat/conf/auto/mod_jk.conf IfModule mod_jk.c JkWorkersFile /usr/local/tomcat/conf/jk/workers.properties JkLogFile /usr/local/tomcat/logs/mod_jk.log JkLogLevel debug JkMount /examples ajp13 JkMount /examples/* ajp13 /IfModule Any more advices? Thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: how to get apache-tomcat virtual host work?
That's it, but your mod_jk.conf file doesn't look right. Host in server.xml = virtual host For every virtual host you want Tomcat to server content for, you need a Host/Host container with an appropriate name. If you're still having problems after that, the best thing would be for you to post your mod_jk.conf file (don't copy and paste, but attach the actual file), along with workers.properties and server.xml. The mod_jk.conf file you are getting from the ApacheConfig class in server.xml doesn't look like anything I have seen before. John -Original Message- From: Xiongfei Wang [mailto:[EMAIL PROTECTED] Sent: Friday, February 28, 2003 3:18 PM To: Tomcat Users List Subject: RE: how to get apache-tomcat virtual host work? Thanks for your email in httpd.conf I have IfModule !mod_jk.c LoadModule jk_module modules/mod_jk.so /IfModule to load mod_jk.so Because for my default host apache-tomcat works seem fine. in order to let apache-tomcat workd for host2 what else should i make change beside adding host/host to server.xml? Thanks. On Fri, 28 Feb 2003, Turner, John wrote: Also, if you are using the mod_jk.conf style, the only thing in httpd.conf should be: Include /usr/local/tomcat/conf/auto/mod_jk.conf Also, are you loading the mod_jk.so module in httpd.conf? John -Original Message- From: Xiongfei Wang [mailto:[EMAIL PROTECTED] Sent: Friday, February 28, 2003 2:54 PM To: Tomcat Users List Subject: RE: how to get apache-tomcat virtual host work? my previous email should be I did NOT create mod_jk.conf by hand. because i do not know how to creat mod_jk.conf by hand. On Fri, 28 Feb 2003, Turner, John wrote: Take out the lines that look like this: JkMount /someURL ajp13 The typical setup is something like this: JkMount /*.jsp ajp13 JkMount /servlet/* ajp13 John -Original Message- From: Xiongfei Wang [mailto:[EMAIL PROTECTED] Sent: Friday, February 28, 2003 2:36 PM To: Tomcat Users List Subject: RE: how to get apache-tomcat virtual host work? I did create it by hand. I just delete mod_jk.conf and restart tomcat and mod_jk.conf has same thing inside as before. In httpd.conf I have Include /usr/local/tomcat/conf/auto/mod_jk.conf IfModule mod_jk.c JkWorkersFile /usr/local/tomcat/conf/jk/workers.properties JkLogFile /usr/local/tomcat/logs/mod_jk.log JkLogLevel debug JkMount /examples ajp13 JkMount /examples/* ajp13 /IfModule Any more advices? Thanks - 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_jk problems on Apache 2.0
RH 8 ships with Apache 2.0.40, and if you've applied RPM updates to your RH installation, the 2.0.40 is further munged from a standard 2.0.40, as RH has gone and backported all of the security and other fixes between .40 and .44 to their .40 instead of just distributing .44. Depending on where you got your mod_jk.so file, it's probably not the correct .so file for your version of Apache. The binaries available from the Jakarta site are for .43 and .44. Either: - build your own connector from source against the .40 you probably have installed OR - uninstall/remove the version of Apache you have, install Apache .44 from an Apache mirror, and use the JK binary from the Jakarta site See my HOWTO for 7.2. It's not for 8, but I never use the Apache that comes with RH, I always roll my own from source, so the steps in the HOWTO do apply to you, that is, getting .44 and installing it: http://www.johnturner.com/howto If you look at the Solaris HOWTO on that page, there are also steps for building the JK connector from source. The steps are identical on RH 7.x/8. John -Original Message- From: Robert Abbate [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 26, 2003 8:28 PM To: [EMAIL PROTECTED] Subject: mod_jk problems on Apache 2.0 I am trying to get mod_jk working on Apache 2.0, but keep running into some problems. I have tried everything in the documentation, and I even have looked through the mailing list, but no help was available. Does anyone have experience with this? Syntax error on line 214 of /etc/httpd/conf/httpd.conf: Cannot load /etc/httpd/modules/mod_jk.so into server: /etc/httpd/modules/mod_jk.so: undefined symbol: ap_table_get RedHat 8.0, Apache 2.0, Tomcat 4.1.18 - 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: Manual servlet deployment problems on 4.1.18
There are examples of how to setup servlets in web.xml in the web.xml file in the /examples webapp that comes with Tomcat. There's other good stuff in the examples webapp as well. John -Original Message- From: Steve Hole [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 26, 2003 11:40 PM To: Tomcat Users List Subject: RE: Manual servlet deployment problems on 4.1.18 In otherwords, I assumed the servlet-name element linked the servlet and servlet-mapping elements. Is that true? The documentation for the servlet-mapping functionality is not exactly great and there is no documentation on the default mapping rules at all that I could find. Anyway, thanks for the help. Cheers. --- Steve Hole Chief Technology Officer - Billing and Payment Systems ACI Worldwide mailto:[EMAIL PROTECTED] Phone: 780-424-4922 - 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: Manual servlet deployment problems on 4.1.18
Yes, the Invoker servlet is disabled by default. You need to either: - enable the Invoker servlet (not recommended) OR - explicitly declare your servlet in your web application's web.xml file John -Original Message- From: Ray Tayek [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 26, 2003 9:25 PM To: Tomcat Users List Subject: RE: Manual servlet deployment problems on 4.1.18 i can not get 4.1.18-le to run on win98se and i get at a 404 on linux when i try to put Hello.class manually in .../jakarta-tomcat-4.1.18-LE-jdk14/webapps/ROOT\WEB-INF/classes and using localhost:8080/servlet/Hello (without adding to the web.xml) could the servlet option be turned off by default? (does anyone know where to look?) also, running the sample in .../jakarta-tomcat-4.1.18-LE-jdk14/webapps/tomcat-docs/appdev/sample fails with 401 when doing the ant install. if you get 4.1.18 to work, please let me know how you did it. thanks --- ray tayek http://tayek.com/ actively seeking mentoring or telecommuting work vice chair orange county java users group http://www.ocjug.org/ hate spam? http://samspade.org/ssw/ - 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: Four questions (about logging, connectors and manager)
A #2: I don't feel the connectors are complex. JK is easy to configure, easy to get working (once you understand how it works), and stable. If you don't want to use a connector, don't even deal with mod_rewrite or mod_proxy, just run Tomcat on port 80 and be done with it. Or better yet, run it on 8080 and use iptables/ipchains to redirect 80 to 8080. John -Original Message- From: Tomasz Nowak [mailto:[EMAIL PROTECTED] Sent: Thursday, February 27, 2003 9:33 AM To: [EMAIL PROTECTED] Subject: Four questions (about logging, connectors and manager) Hello. I have four questions for which I could not find any good answers in web, usenet gruops or this mailing-list archive. Q #1 Tomcat logs HTTP errors (ie 404 File Not Found) in access_log with other regulary HTTP status codes. It does it in: a) its own access_log (org.apache.catalina.valves.AccessLogValve) as well as b) in Apache HTTPD's access_log when connected via mod_jk/jk2 But is there any facility to split errors to separate error_log file in the manner that Apache HTTPd does? a) in inner-Tomcat error_log, or b) in Apache HTTPD's error_log when connected via mod_jk/jk2 (even better) Q #2 Why exectly are connectors used to redirect requests from webserver to Tomcat and why are they so complex not to say complicated? I now that load balancing is sometimes important, but I believe in most cases people use one-to-one connection (one worker, one tomcat). So what about mod_rewriting 8080 to 80 instead of a connector then? What are pros and cons of rewriting instead of using a connector? What justifies its complexibility? Q #3 Is there any possibility to manage (with built-in manager webapp) all engine's webapps (contexts)? I mean not specific vhost webapps, but all vhosts and their webapps at once? Q #4 What alternative software (maybe dekstop-type?) would you recommend for managing webapps? Thank you in advance. -- Tomasz Nowak - 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: Four questions (about logging, connectors and manager)
I'm sorry, I didn't realize you were going to argue with me and criticize my reply. I thought you were asking for an opinion. First, Ajp13Connector is not the recommended connector to use for 4.1.18. CoyoteConnector is the recommended connector. Second, the compatibility problems between Ajp13Connector and JMX are well-known, at least on this list. Since you seem so adept at searching the list, I'm sure you would have seen this. Third, we have several production sites right now with 4.1.18, Apache 2, and mod_jk. We have a couple dozen more with Apache 1.3, mod_jserv, and Tomcat 3.x. All are under fairly heavy load, approx. 100,000 page views per day during the week. The apps are all heavily graphic-intensive, that is, lots of file I/O, lots of RAM, lots of CPU. We don't have any problems with mod_jserv or mod_jk. Uptime is in the many months timeframe, each and every site and webapp is monitored for availability every 60 seconds, 24/7 and there have been no alerts that weren't initiated by us for maintenance...I consider that stable. You may not. You may have problems, I can only reply to your questions with comments and opinions based on my personal experience. If you don't like that, my advice is to refrain from posting the question in the first place, or, if you must post, clearly state in your post the parameters within which you will consider a reply to be valid such as I want your opinion, but only if you agree with me. Fourth, you've got some Charset errors in there. Our apps don't use anything but standard Western charsets (our apps are all in English except for a few that are in French), so I am not familiar with those errors. I don't think I would blame them on JK, though. Fifth, I'm not a developer. I'm a systems administrator. It's simple: if you don't want to use a connector, THEN DON'T. Nobody is twisting your arm, and the use of Apache with Tomcat is NOT REQUIRED. Arguing about connector stability or problems is a waste of time...they're open source. Either pitch in and fix them to your heart's content, help others to do so, or be quiet. If you must use Apache with Tomcat for some reason, there are a number of ways to do this, all of which have been discussed to death on this list, and if I had to rank them I would rank them thusly: 1) JK, 2) JK2, 3) mod_proxy/mod_rewrite, 4) external redirection (ipchains, for example, or some other software). I doubt anyone will tell you differently, but I've been wrong plenty of times before and you are certainly welcome to disagree. Perhaps others will answer your other questions. Arguing is a waste of my time, I apologize for replying in the first place and wasting yours. John -Original Message- From: Tomasz Nowak [mailto:[EMAIL PROTECTED] Sent: Thursday, February 27, 2003 10:28 AM To: Tomcat Users List Subject: Re: Four questions (about logging, connectors and manager) Turner, John [EMAIL PROTECTED] wrote: A #2: I don't feel the connectors are complex. JK is easy to configure, easy to get working (once you understand how it works), and stable. Hi, John. Browsing the archive I've remebered you as a very competent developer/user, so I'm really very glad you answered my letter :) I would like to tell you about mod_jk complexibility and stability from my point of view. 1. Starting Tomcat 4.1.18 with org.apache.ajp.tomcat4.Ajp13Connector, catalina.out: ServerLifecycleListener: createMBeans: MBeanException java.lang.Exception: ManagedBean is not found with Ajp13Connector at org.apache.catalina.mbeans.MBeanUtils.createMBean(MBeanUtils.java:224) at org.apache.catalina.mbeans.ServerLifecycleListener.createMBean s(ServerLifecycleListener.java:369) at org.apache.catalina.mbeans.ServerLifecycleListener.createMBean s(ServerLifecycleListener.java:777) at org.apache.catalina.mbeans.ServerLifecycleListener.createMBean s(ServerLifecycleListener.java:751) at org.apache.catalina.mbeans.ServerLifecycleListener.createMBean s(ServerLifecycleListener.java:339) at org.apache.catalina.mbeans.ServerLifecycleListener.lifecycleEv ent(ServerLifecycleListener.java:206) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(L ifecycleSupport.java:166) at org.apache.catalina.core.StandardServer.start(StandardServer.j ava:2182) at org.apache.catalina.startup.Catalina.start(Catalina.java:512) at org.apache.catalina.startup.Catalina.execute(Catalina.java:400) at org.apache.catalina.startup.Catalina.process(Catalina.java:180) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccess orImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMeth odAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324
RE: Manual servlet deployment problems on 4.1.18
Tomcat doesn't follow symbolic links by default. You have to enable this in server.xml for each Context where you want to use symbolic links. I'm not saying 100% that that was the problem, just that symlink support is not available out of the box with recent versions of Tomcat. John -Original Message- From: Steve Hole [mailto:[EMAIL PROTECTED] Sent: Thursday, February 27, 2003 11:06 AM To: Tomcat Users List Subject: RE: Manual servlet deployment problems on 4.1.18 On Wed, 26 Feb 2003 22:04:56 -0800 (PST) Steve Guo [EMAIL PROTECTED] wrote: Steve Hole [EMAIL PROTECTED] wrote: This implies that the element defines the name of the web application? -- what do you mean? the webapp is defined by the name of the folder (test) Ah! Which explains the problem. I will suggest that there is a problem somewhere in the JVM dealing with symbolic links to files held on a SAN. I'll have to try this on something other than Linux and see if I still see the problem. That's why it suddenly worked when I moved it locally and I thought it was because I had made a corresponding change in the web.xml file. Thanks for your help Steve. Cheers. --- Steve Hole Chief Technology Officer - Billing and Payment Systems ACI Worldwide mailto:[EMAIL PROTECTED] Phone: 780-424-4922 - 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: build-unix.sh error for mod_jk.so
I have zero experience with Tru64. The only thing I would try, if it were me, is statically linking JK into Apache, instead of using DSO. Something isn't jiving in your current configuration, if I had to guess I would say that your Apache version is too old and doesn't support something that JK is trying to do. John -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, February 27, 2003 11:27 AM To: Tomcat Users List Subject: RE: build-unix.sh error for mod_jk.so Ok, I know Tru64 Unix has a limited life, but has anyone successfully gotten apache1.3 and tomcat 3.3 to work together on Tru64 5.1? After searching the archives it doesn't look like it. I think I'm close to a resolution, but continue with the below problem. Can anyone help or am I fighting a losing battle? Sincerely, David Vann Martha Jefferson Hospital 459 Locust Avenue Charlottesville, VA 22902 [EMAIL PROTECTED] Phone (434) 244-5911 Fax (434) 982-7351 [EMAIL PROTECTED] 02/27/2003 07:39 AM Please respond to Tomcat Users List To: Tomcat Users List [EMAIL PROTECTED] cc: Subject:RE: build-unix.sh error for mod_jk.so I went ahead and ignored the warnings and now I get: # cd /usr/local/apache/bin # apachectl start Syntax error on line 4 of /usr/local/tomcat/conf/auto/mod_jk.conf: Cannot load /usr/local/apache/libexec/mod_jk.so into server: dlopen: /usr/local/ apache/libexec/mod_jk.so: symbol __pthread_mutex_init unresolved apachectl start: httpd could not be started Sincerely, David Vann Martha Jefferson Hospital 459 Locust Avenue Charlottesville, VA 22902 [EMAIL PROTECTED] Phone (434) 244-5911 Fax (434) 982-7351 [EMAIL PROTECTED] 02/26/2003 04:56 PM Please respond to Tomcat Users List To: Tomcat Users List [EMAIL PROTECTED] cc: Subject:RE: build-unix.sh error for mod_jk.so Thanks for the help , but now I get: cc -pthread -DOSF1 -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite -DSHARE D_MODULE -I/usr/local/apache/include -I../common -I/usr/opt/java131/include -I/u sr/opt/java131/include/alpha -c ../common/jk_jni_worker.c 19 cc: Warning: ../common/jk_jni_worker.c, line 751: In this statement, the referenced type of the pointer value dlsym(...) is void, which is not compa tible with function (pointer to pointer to pointer to const struct JNIInvokeInt erface_, pointer to pointer to pointer to const struct JNINativeInterface_, poin ter to void) returning int. (ptrmismatch) 20 jni_create_java_vm = dlsym(handle, JNI_CreateJavaVM); 21 ^ 22 cc: Warning: ../common/jk_jni_worker.c, line 752: In this statement, the referenced type of the pointer value dlsym(...) is void, which is not compa tible with function (pointer to pointer to pointer to const struct JNIInvokeInt erface_, int, pointer to int) returning int. (ptrmismatch) 23 jni_get_created_java_vms = dlsym(handle, JNI_GetCreatedJavaVMs ); 24 ^ 25 cc: Warning: ../common/jk_jni_worker.c, line 753: In this statement, the referenced type of the pointer value dlsym(...) is void, which is not compa tible with function (pointer to void) returning int. (ptrmismatch) @ Any ideas would be greatly appreciated. Sincerely, David Vann Martha Jefferson Hospital 459 Locust Avenue Charlottesville, VA 22902 [EMAIL PROTECTED] Phone (434) 244-5911 Fax (434) 982-7351 Mike Jackson [EMAIL PROTECTED] 02/26/2003 04:23 PM Please respond to Tomcat Users List To: Tomcat Users List [EMAIL PROTECTED] cc: Subject:RE: build-unix.sh error for mod_jk.so I don't see the that thread option set, so it must not be using it. That option should probably appear after cc, somewhere prior to the -c and the source file. --mikej -=- mike jackson [EMAIL PROTECTED] -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 26, 2003 12:05 PM To: Tomcat Users List Subject: build-unix.sh error for mod_jk.so When trying to build mod_jk.so on Tru64 Unix 5.1 using Apache 1.3.27 and tomcat 3.3.1a I get the following error, can someone guild me in the correct direction: Compiling mod_jk 13 cc -DOSF1 -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite -DSHARED_MODULE -I/usr/local/apache/include -I../common -I/usr/opt/java131/include -I/usr/opt/ja va131/include/alpha -c mod_jk.c 14 cc -DOSF1 -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite -DSHARED_MODULE -I/usr/local/apache/include -I../common -I/usr/opt/java131/include -I/usr/opt/ja va131/include/alpha -c ../common/jk_ajp12_worker.c 15 cc -DOSF1 -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite -DSHARED_MODULE -I/usr/local/apache/include -I../common
RE: build-unix.sh error for mod_jk.so
No, that's the latest I think. Sorry, I just couldn't remember what you were using. Did you build that Apache from source? If so, I might try statically linking JK instead of using DSO. John -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, February 27, 2003 11:37 AM To: Tomcat Users List Subject: RE: build-unix.sh error for mod_jk.so I'm using apache 1.3.27--Should I upgrade, if so which version would you recommend? Sincerely, David Vann Martha Jefferson Hospital 459 Locust Avenue Charlottesville, VA 22902 [EMAIL PROTECTED] Phone (434) 244-5911 Fax (434) 982-7351 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: New startup
JSP pages do need to be compiled, they are compiled into servlets before being executed, but this is handled automatically by Tomcat. Do you have a Context for myWork in server.xml? If you have a Context, do you also have a web.xml file for your web application? There are some specific steps you have to take in order to create a web application and have Tomcat serve content contained within it, it isn't like a traditional webserver where you can just put files in a directory and call them. The Deployment section of the Application Developer's Guide can provide more info: http://jakarta.apache.org/tomcat/tomcat-4.1-doc/appdev/deployment.html John -Original Message- From: Tim Laly Huffman [mailto:[EMAIL PROTECTED] Sent: Thursday, February 27, 2003 11:41 AM To: Tomcat Users List Subject: New startup I have Tomcat installed, along with JDK1.3.1. As far as I know, all variables are set. When I start up Tomcat, I am able to see the default index page from Apache. I can maneuver through all pages using port 8080. The problem lies in that when I create a html page, or a jsp page, I place them in the webapps/myWork folder. Then, when I try to view them using the localhost:8080, the browser (and I suppose Tomcat) tells me the page can't be found. What am I doing wrong? A simple html page should just come right up, I would think. Do jsp pages need to be compiled? All help is appreciated. Thanks. - 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: Four questions (about logging, connectors and manager)
My point about the connectors was that, in server.xml, you should DISABLE Ajp13Connector and ENABLE CoyoteConnector on port 8009. CoyoteConnector supports both JK and JK2 *and HTTP and HTTPS). So, you can use Apache 1.3, mod_jk, but then on the Tomcat side choose CoyoteConnector instead of Ajp13Connector. CoyoteConnector is enabled by default...just reverse the change you made in server.xml. John -Original Message- From: Tomasz Nowak [mailto:[EMAIL PROTECTED] Sent: Thursday, February 27, 2003 12:12 PM To: Tomcat Users List Subject: Re: Four questions (about logging, connectors and manager) Turner, John [EMAIL PROTECTED] wrote: First, Ajp13Connector is not the recommended connector to use for 4.1.18. CoyoteConnector is the recommended connector. But on the other hand mod_jk2 is not the recommended connector to use for Apache 1.3. mod_jk is the recommended, isn't it? ;) There are some reasons I can't upgrade Apache HTTPd to ver 2 right now. But OK, I will try to use mod_jk2 if you recommend it. Tomasz Nowak - 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: Four questions (about logging, connectors and manager)
If it works, I say go for it and call it good...you've got an unusual beast there (Unixware). Common setups for other operating systems might not work for you, so you should go with what works. John -Original Message- From: Mike Jackson [mailto:[EMAIL PROTECTED] Sent: Thursday, February 27, 2003 12:24 PM To: Tomcat Users List Subject: RE: Four questions (about logging, connectors and manager) Should I be using the AJP1.3 connector for the mod_jk and apache I just setup (1.3.27), or should I be using the coyote connector? I did try the coyote connector, but couldn't seem to get it to connect. The AJP1.3 connector seems to work perfectly for me once I disabled the JMX stuff. --mikej -=- mike jackson [EMAIL PROTECTED] -Original Message- From: Turner, John [mailto:[EMAIL PROTECTED] Sent: Thursday, February 27, 2003 9:20 AM To: 'Tomcat Users List' Subject: RE: Four questions (about logging, connectors and manager) My point about the connectors was that, in server.xml, you should DISABLE Ajp13Connector and ENABLE CoyoteConnector on port 8009. CoyoteConnector supports both JK and JK2 *and HTTP and HTTPS). So, you can use Apache 1.3, mod_jk, but then on the Tomcat side choose CoyoteConnector instead of Ajp13Connector. CoyoteConnector is enabled by default...just reverse the change you made in server.xml. John -Original Message- From: Tomasz Nowak [mailto:[EMAIL PROTECTED] Sent: Thursday, February 27, 2003 12:12 PM To: Tomcat Users List Subject: Re: Four questions (about logging, connectors and manager) Turner, John [EMAIL PROTECTED] wrote: First, Ajp13Connector is not the recommended connector to use for 4.1.18. CoyoteConnector is the recommended connector. But on the other hand mod_jk2 is not the recommended connector to use for Apache 1.3. mod_jk is the recommended, isn't it? ;) There are some reasons I can't upgrade Apache HTTPd to ver 2 right now. But OK, I will try to use mod_jk2 if you recommend it. Tomasz Nowak - 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: Need a basic configuration for Tomcat 4.1.18, Apache 2.0.39, mod_jk under Solaris.
workers.properties, server.xml: http://www.johnturner.com/howto/apache2-tomcat4112-sol8-howto.html mod_jk.conf: http://www.johnturner.com/howto/mod_jk_conf.html John -Original Message- From: Julio César Mejia Vergara [mailto:[EMAIL PROTECTED] Sent: Thursday, February 27, 2003 1:59 PM To: Tomcat Users List Subject: Need a basic configuration for Tomcat 4.1.18, Apache 2.0.39, mod_jk under Solaris. Hello, I have a SunBlade 100 (SPARC) with Solaris 8 running Apache 2.0.39 (Compiled) and Tomcat 4.1.18 (Binary) , i just finished compiling mod_jk.so yesterday whit no errors and everything looks good when a start Tomcat and Apache but when i try to run the jsp and servelt examples http://localhost/examples/jsp/num/numguess.jsp i get error 404 NOT FOUND, i can access the examples directory http://147.15.81.14/examples/jsp/num/ and i can see 3 archives, the web server can open the text and source files, but when apache trays to open the jsp file it returns that error. If a try to access the same examples directly from tomcat http://147.15.81.14:8080/examples/jsp/num/numguess.jsp it executs is whit no problems. So i think it must a comunication problems bettewn Apache and Tomcat, probably i have not configured something right. Can some one send me some basic configuration files (server.xml, workers.properties, httpd.conf or mod_jk.conf) so i can compare them to mine and get this thing working. Thanks Julio [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: Need a basic configuration for Tomcat 4.1.18, Apache 2.0.39, mod_jk under Solaris.
FYI, Apache is fairly redundant with a JkMount of /*...that means all content is being served by Tomcat. John -Original Message- From: Mark Strecker [mailto:[EMAIL PROTECTED] Sent: Thursday, February 27, 2003 2:15 PM To: Tomcat Users List Subject: Re: Need a basic configuration for Tomcat 4.1.18, Apache 2.0.39, mod_jk under Solaris. I had/have the same problem with the examples using mod_jk ... but the applications I care about work fine ... I think I changed the examples/*.jsp to examples/* in httpd.conf and got better results. This is in fact how I setup my apps : JkMount /app1/* worker1 Also, why not use the jni connector instead? It looks to me that you are running them both on the same machine and the jni connector will be faster for you. Mark - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: crontab problems
Agreed. I put it there because some commercial monitoring apps I've worked with in the past got cranky if the response was malformed. Wget and other homegrown methods don't care. John -Original Message- From: Ralph Einfeldt [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 26, 2003 2:46 AM To: Tomcat Users List Subject: RE: crontab problems Just a side note: If the sole reason for this jsp is the automatic check then your example can be stripped down to: SUCCESS The rest is just to be a little bit more friendly to a browser. -Original Message- From: Turner, John [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 25, 2003 9:17 PM To: 'Tomcat Users List' Subject: RE: crontab problems html head titleAPP Monitor/title /head body % String myMonitor = SUCCESS; out.println(myMonitor); % /body /html - 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: crontab problems
Yikes, that really stinks. That's an incorrect implementation of the DNS protocol...the TTL should be honored at all times. John -Original Message- From: Tim Funk [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 26, 2003 6:57 AM To: Tomcat Users List Subject: Re: crontab problems It doesn't matter. Its a JDK issue. (IIRC) Successful (and unsucessful?) DNS lookups are cached forever during the life of the JVM. So if you start tomcat on Jan 1, 2003 and tomcat looks up foo.com that day - the lookup (across the network) is not done again. So if the address changes Jan 2 tomcat will have the wrong answer. And continue to have the wrong answer until the JVM is restarted. Yes - this stinks for long running servers. I do not know if this is still an issue in JDK 1.4. Once way to get around this is to find a class which re-implements the DNS protocols. (ICK) -Tim Ron Day wrote: Do you know which class cache the negative response -Original Message- From: Ralph Einfeldt [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 26, 2003 2:07 AM To: Tomcat Users List Subject: RE: crontab problems Because the underlying classes sometimes cache a negative response, so you have to restart tomcat to enable a new lookup. (That's not specific to tomcat) -Original Message- From: Hannes Schmidt [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 26, 2003 3:02 AM To: Tomcat Users List Subject: Re: crontab problems Regarding your problem: I don't understand why bouncing Tomcat would resolve a DNS problem. The UnknownHostException is a indication that something is wrong with DNS or the resolver library. - 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: crontab problems
Better, but still not correct. That's a shame...it's not up to the client to determine how long a DNS response should be cached, its up to the zone file on the server doing the replying. Thanks for the pointers, this really bothers me for some reason, I want to investigate the rationale behind this, as it doesn't make any sense. I'm surprised Sun would do this. John -Original Message- From: Ralph Einfeldt [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 26, 2003 7:36 AM To: Tomcat Users List Subject: RE: crontab problems It's the java implementation that does the caching, as java implements the lookup on it's own and doesn't use the operating system functions for that. (That doesn't mean that the operating system or the resolver lib is not caching, but that is independent of the java problem.) The lookup behaviour can be configured, have a look at: http://java.sun.com/j2se/1.4/docs/guide/net/properties.html#nct http://java.sun.com/j2se/1.4/docs/guide/net/properties.html#ncnt -Original Message- From: Hannes Schmidt [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 26, 2003 1:01 PM To: Tomcat Users List Subject: Re: crontab problems Where do you get your excepetion? My guts is telling me that the lookup result is cached by the operating system rather than a Java class. On the other hand, caching a negative result should never be done by anything. - 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]
[OFFTOPIC] RE: Multiple Apache Instances
First answer: yes. Permission denied is self-explanatory...the permissions for a directory or file that Apache is trying to access are incorrect. An Apache mailing list would be more appropriate for this question. John -Original Message- From: Ramkumar Krishnan [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 26, 2003 1:18 AM To: Tomcat Users List Subject: Multiple Apache Instances Hi, My team wants to have two instances of Apache1.3 in the same mahcine.They changed the port of one instance.When they tried to run, they are getting Permission Denied error.Why is it so?..My first question is can we have two instances in a single machine???.. Any help would be appreciated.. thanks, Ramkumar - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: mod_jk-2.0.43.so
As far as I know, these are harmless, but I don't use JK2. JK2 is still in active development, as far as I know, and the last official post I saw on this list from anyone on the dev team was that the Apache side of mod_jk2 (mod_jk.so) was pretty much ready for production. That implies to me that there will be some loose ends for awhile. John -Original Message- From: Charles A Jordan [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 26, 2003 8:24 AM To: [EMAIL PROTECTED] Subject: RE: mod_jk-2.0.43.so I am seeing the following in the apache2 error_log file: [Wed Feb 26 08:21:39 2003] [error] jk2_init() Can't find child 1678 in scoreboard [Wed Feb 26 08:21:39 2003] [error] mod_jk child init 1 0 [Wed Feb 26 08:21:39 2003] [error] mod_jk child init 1 -2 [Wed Feb 26 08:21:39 2003] [error] jk2_init() Can't find child 1680 in scoreboard [Wed Feb 26 08:21:39 2003] [error] mod_jk child init 1 -2 [Wed Feb 26 08:21:39 2003] [notice] Apache/2.0.44 (Unix) mod_jk2/2.0.3-dev configured -- resuming normal operations Nope, that's it. Sorry, I wasn't following your thread, so I am not sure what is it that you are looking for, or what it is that is wrong with 2.0.2. John -Original Message- From: Charles A Jordan [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 25, 2003 4:55 PM To: [EMAIL PROTECTED] Subject: RE: mod_jk-2.0.43.so If this is jakarta-tomcat-connectors-jk2-2.0.2-src.tar.gz then I have already compiled and using this one. Am I looking at the wrong source? http://jakarta.apache.org/builds/jakarta-tomcat-connectors/ John -Original Message- From: Charles A Jordan [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 25, 2003 4:45 PM To: [EMAIL PROTECTED] Subject: mod_jk-2.0.43.so Exactly where do I get the mod_jk-2.0.43.so source? I've looked all over the jakarta site. Thanks Then, get the mod_jk2´s source and build it for your system, if the same error happen again tell us. -- De: Charles A Jordan[SMTP:[EMAIL PROTECTED] Responder:Tomcat Users List Enviada: terça-feira, 25 de fevereiro de 2003 17:50 Para: [EMAIL PROTECTED] Assunto: RE: Need help - jk2_init() Can't find child I tried this but I get the exact same results Try to use mod_jk-2.0.43.so -- De: Charles A Jordan[SMTP:[EMAIL PROTECTED] Responder:Tomcat Users List Enviada: terça-feira, 25 de fevereiro de 2003 17:26 Para: [EMAIL PROTECTED] Assunto: Need help - jk2_init() Can't find child I am using jakarta-tomcat-4.1.18, apache 2.0.44, on Solaris 9 using mod_jk2.so. tomcat starts with no errors but when I start apache I see the following in the error_log file: [Tue Feb 25 14:24:51 2003] [error] jk2_init() Can't find child 813 in scoreboard [Tue Feb 25 14:24:51 2003] [error] mod_jk child init 1 0 [Tue Feb 25 14:24:51 2003] [error] mod_jk child init 1 -2 [Tue Feb 25 14:24:51 2003] [error] jk2_init() Can't find child 815 in scoreboard [Tue Feb 25 14:24:51 2003] [error] mod_jk child init 1 -2 [Tue Feb 25 14:24:51 2003] [notice] Apache/2.0.44 (Unix) mod_jk2/2.0.3-dev confi gured -- resuming normal operations Any help would be appreciated. Thanks. Charles (Allen) Jordan [EMAIL PROTECTED] System Administrator(407)771-8919 Convergys 285 International Parkway, Lake Mary, FL 32746-5007 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Charles (Allen) Jordan [EMAIL PROTECTED] System Administrator(407)771-8919 Convergys 285 International Parkway, Lake Mary, FL 32746-5007 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Charles (Allen) Jordan [EMAIL PROTECTED] System Administrator(407)771-8919 Convergys 285 International Parkway, Lake Mary, FL 32746-5007 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: building just one connector module?
CONNECTOR_HOME = /usr/local/src/jakarta-tomcat-connectors-jk-1.2.0-src cd CONNECTOR_HOME/jk/native ./buildconf.sh ./configure --with-apxs=/some/path/to/apache/bin/apxs make The mod_jk.so file will be in CONNECTOR_HOME/jk/native/apache-1.3. Copy it to your Apache modules directory. John -Original Message- From: Albert Lunde [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 26, 2003 11:08 AM To: [EMAIL PROTECTED] Subject: building just one connector module? I'd like to to build mod_jk for use with an existing build of Apache 1.3.27 and the binary distribution of Tomcat 4.1.18. But I've like to avoid building from source all the connectors for all Apache versions. I'm not sure that I need anything beyond the apache module for 1.3.x. Is it feasible to build such a limited subset of stuff? My initial experiments suggested two approaches: setting some properties in a build.properties file to empty strings, and plugging in jar files from the binary distribution where the build process expects to find them. Any advice on how to do this, other than trial and error? (I'm presently working on Red Hat Linux 7.0 but will need to do this again for Solaris 8 and/or a later version of Red Hat.) -- Albert Lunde [EMAIL PROTECTED] (new address) [EMAIL PROTECTED] (old address) - 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: problems compiling and using mod_jk
That's munged up somehow. I've never had to do Step #7, the file that I get resulting from make is called mod_jk.so. John -Original Message- From: Mike Jackson [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 26, 2003 11:33 AM To: Tomcat Users List Subject: problems compiling and using mod_jk Ok, here's what I've done: 1) grab latest connector sources 2) cd $SRC/jk/native 3) ./buildconf.sh 4) ./configure --with-apxs=/usr/local/apache2/bin/apxs 5) make 6) cd apache-2.0 7) cp libmod_jk.so.0.0.0 /usr/local/apache2/modules 8) cd /usr/local/apache2/modules 9) ln -s libmod_jk.so.0.0.0. mod_jk.so 10) /usr/local/apache2/bin/apachectl start And what I got was: 1) bunch of libtoolizer errors, but according to http://www.johnturner.com/howto I don't have to worry about that. 2) # bin/apachectl start Syntax error on line 232 of /usr/local/apache2/conf/httpd.conf: Cannot load /usr/local/apache2/modules/mod_jk.so into server: dynamic linker: /usr/local/apache2/bin/httpd: relocation error: symbol not found: ap_content_type_tolower; referenced from: /usr/local/apache2/modules/mod_jk.so --mikej -=- mike jackson [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: problems compiling and using mod_jk
Maybe we should revisit the bunch of libtoolize errors...I was able to ignore them, but perhaps they meant something on your OS. You're using UnixWare, right? What does the configure log/status file say? Anything suspicious? John -Original Message- From: Mike Jackson [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 26, 2003 11:46 AM To: Tomcat Users List Subject: RE: problems compiling and using mod_jk How should I proceed? --mikej -=- mike jackson [EMAIL PROTECTED] -Original Message- From: Turner, John [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 26, 2003 8:37 AM To: 'Tomcat Users List' Subject: RE: problems compiling and using mod_jk That's munged up somehow. I've never had to do Step #7, the file that I get resulting from make is called mod_jk.so. John -Original Message- From: Mike Jackson [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 26, 2003 11:33 AM To: Tomcat Users List Subject: problems compiling and using mod_jk Ok, here's what I've done: 1) grab latest connector sources 2) cd $SRC/jk/native 3) ./buildconf.sh 4) ./configure --with-apxs=/usr/local/apache2/bin/apxs 5) make 6) cd apache-2.0 7) cp libmod_jk.so.0.0.0 /usr/local/apache2/modules 8) cd /usr/local/apache2/modules 9) ln -s libmod_jk.so.0.0.0. mod_jk.so 10) /usr/local/apache2/bin/apachectl start And what I got was: 1) bunch of libtoolizer errors, but according to http://www.johnturner.com/howto I don't have to worry about that. 2) # bin/apachectl start Syntax error on line 232 of /usr/local/apache2/conf/httpd.conf: Cannot load /usr/local/apache2/modules/mod_jk.so into server: dynamic linker: /usr/local/apache2/bin/httpd: relocation error: symbol not found: ap_content_type_tolower; referenced from: /usr/local/apache2/modules/mod_jk.so --mikej -=- mike jackson [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: problems compiling and using mod_jk
configure:876: checking for working automake configure:889: checking for working autoheader configure:902: checking for working makeinfo configure:994: checking host system type configure:1015: checking build system type configure:1035: checking for ranlib configure:1065: checking for gcc configure:1178: checking whether the C compiler (gcc ) works configure:1194: gcc -o conftestconftest.c 15 configure:1220: checking whether the C compiler (gcc ) is a cross-compiler configure:1225: checking whether we are using GNU C configure:1253: checking whether gcc accepts -g configure:1296: checking for ld used by GCC configure:1358: checking if the linker (/usr/ccs/bin/ld) is GNU ld configure:1374: checking for BSD-compatible nm configure:1410: checking whether ln -s works ltconfig:603: checking for object suffix ltconfig:604: gcc -c -g -O2 conftest.c 15 ltconfig:776: checking if gcc PIC flag -fPIC works ltconfig:777: gcc -c -g -O2 -fPIC -DPIC conftest.c 15 ltconfig:829: checking if gcc supports -c -o file.o ltconfig:830: gcc -c -g -O2 -o out/conftest2.o conftest.c 15 ltconfig:862: checking if gcc supports -c -o file.lo ltconfig:863: gcc -c -g -O2 -c -o conftest.lo conftest.c 15 ltconfig:914: checking if gcc supports -fno-rtti -fno-exceptions ltconfig:915: gcc -c -g -O2 -fno-rtti -fno-exceptions -c conftest.c conftest.c 15 ltconfig:958: checking if gcc static flag -static works ltconfig:959: gcc -o conftest -g -O2 -static conftest.c 15 ltconfig:1653: checking if global_symbol_pipe works ltconfig:1654: gcc -c -g -O2 conftest.c 15 ltconfig:1657: eval /usr/bin/nm -p conftest.o | sed -n -e *[ ]\([BCDEGRST]\)[][ ]*\(\ )\([_A-Za-z][_A-Za-z0-9]*\)$/\1 \2\3 \3/p' conftest.nm ltconfig:1709: gcc -o conftest -g -O2 -fno-builtin -fno-rtti -fno-exceptions conftest.c conftstm.o 15 ltconfig:2488: checking for dlfcn.h ltconfig:2526: checking whether a program can dlopen itself configure:1598: checking for gcc configure:1711: checking whether the C compiler (gcc -g -O2 ) works configure:1727: gcc -o conftest -g -O2 conftest.c 15 configure:1753: checking whether the C compiler (gcc -g -O2 ) is a cross-compiler configure:1758: checking whether we are using GNU C configure:1786: checking whether gcc accepts -g configure:1830: checking for ld used by GCC configure:1892: checking if the linker (/usr/ccs/bin/ld) is GNU ld configure:1911: checking for test configure:1948: checking for rm configure:1985: checking for grep configure:2022: checking for echo configure:2059: checking for sed configure:2096: checking for cp configure:2133: checking for mkdir configure:2170: checking for libtool configure:2224: checking for perl configure:2339: checking for target platform -- -- --mikej -=- mike jackson [EMAIL PROTECTED] -Original Message- From: Turner, John [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 26, 2003 8:48 AM To: 'Tomcat Users List' Subject: RE: problems compiling and using mod_jk Maybe we should revisit the bunch of libtoolize errors...I was able to ignore them, but perhaps they meant something on your OS. You're using UnixWare, right? What does the configure log/status file say? Anything suspicious? John -Original Message- From: Mike Jackson [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 26, 2003 11:46 AM To: Tomcat Users List Subject: RE: problems compiling and using mod_jk How should I proceed? --mikej -=- mike jackson [EMAIL PROTECTED] -Original Message- From: Turner, John [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 26, 2003 8:37 AM To: 'Tomcat Users List' Subject: RE: problems compiling and using mod_jk That's munged up somehow. I've never had to do Step #7, the file that I get resulting from make is called mod_jk.so. John -Original Message- From: Mike Jackson [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 26, 2003 11:33 AM To: Tomcat Users List Subject: problems compiling and using mod_jk Ok, here's what I've done: 1) grab latest connector sources 2) cd $SRC/jk/native 3) ./buildconf.sh 4) ./configure --with-apxs=/usr/local/apache2/bin/apxs 5) make 6) cd apache-2.0 7) cp libmod_jk.so.0.0.0 /usr/local/apache2/modules 8) cd /usr/local/apache2/modules 9) ln -s libmod_jk.so.0.0.0. mod_jk.so 10) /usr/local/apache2/bin/apachectl start And what I got was: 1) bunch of libtoolizer errors, but according to http://www.johnturner.com/howto I don't have to worry about that. 2) # bin/apachectl start Syntax error on line 232 of /usr/local/apache2/conf
RE: JAVA-Tomcat
What is on drive C that your application needs? Distribute it with your application. John -Original Message- From: Alberto A C A S Magalhães [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 26, 2003 11:52 AM To: Tomcat Users List Subject: JAVA-Tomcat ** Este email assim como os ficheiros que possa ter em anexo são confidenciais e para uso exclusivo da pessoa ou organização para o qual foi enviado. Se recebeu este email por engano por favor notifique [EMAIL PROTECTED] Esta nota confirma que esta mensagem foi verificada pelo MIMEsweeper não tendo sido encontrados virus. www.mimesweeper.com ** * I have my applicattion ready do distribuite in my network, but the computers in my network don't have access to drive C:, then when I want to install JAVA, it gives an error? What can I do? Thanks Best Regards - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: problems compiling and using mod_jk
I got the same thing just now. Looks like --with-apxs2 isn't valid. It apparently picks up the Apache version automagically from apxs. John -Original Message- From: Mike Jackson [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 26, 2003 12:09 PM To: Tomcat Users List Subject: RE: problems compiling and using mod_jk I tried that, here's the output. For some reason it can't find the webserver. I was playing with the version in native2, it required the --with-apxs2 option, but I haven't got that one to compile yet, I'm getting make errors. Configure output... -- -- --- # ./configure --with-apxs2=/usr/local/apache2/bin/apxs loading cache ./config.cache checking for a BSD compatible install... scripts/build/unix/install-sh -c checking whether build environment is sane... yes checking whether make sets ${MAKE}... (cached) yes checking for working aclocal... found checking for working autoconf... found checking for working automake... found checking for working autoheader... found checking for working makeinfo... missing checking host system type... i586-sco-sysv5uw7.1.1 checking build system type... i586-sco-sysv5uw7.1.1 checking for ranlib... (cached) : checking for gcc... (cached) gcc checking whether the C compiler (gcc ) works... yes checking whether the C compiler (gcc ) is a cross-compiler... no checking whether we are using GNU C... (cached) yes checking whether gcc accepts -g... (cached) yes checking for ld used by GCC... (cached) /usr/ccs/bin/ld checking if the linker (/usr/ccs/bin/ld) is GNU ld... (cached) no checking for BSD-compatible nm... (cached) /usr/bin/nm -p checking whether ln -s works... (cached) yes loading cache ./config.cache within ltconfig checking for object suffix... o checking for executable suffix... (cached) no checking for gcc option to produce PIC... -fPIC checking if gcc PIC flag -fPIC works... yes checking if gcc supports -c -o file.o... yes checking if gcc supports -c -o file.lo... yes checking if gcc supports -fno-rtti -fno-exceptions ... yes checking if gcc static flag -static works... -static checking if the linker (/usr/ccs/bin/ld) is GNU ld... no checking whether the linker (/usr/ccs/bin/ld) supports shared libraries... yes checking command to parse /usr/bin/nm -p output... ok checking how to hardcode library paths into programs... immediate checking for /usr/ccs/bin/ld option to reload object files... -r checking dynamic linker characteristics... sysv5uw7.1.1 ld.so checking if libtool supports shared libraries... yes checking whether to build shared libraries... yes checking whether to build static libraries... yes checking for objdir... .libs checking for dlfcn.h... (cached) yes checking whether a program can dlopen itself... (cached) no creating libtool loading cache ./config.cache checking for gcc... (cached) gcc checking whether the C compiler (gcc -g -O2 ) works... yes checking whether the C compiler (gcc -g -O2 ) is a cross-compiler... no checking whether we are using GNU C... (cached) yes checking whether gcc accepts -g... (cached) yes checking for ld used by GCC... (cached) /usr/ccs/bin/ld checking if the linker (/usr/ccs/bin/ld) is GNU ld... (cached) no checking for test... (cached) /usr/bin/test checking for rm... (cached) /sbin/rm checking for grep... (cached) /sbin/grep checking for echo... (cached) /usr/local/bin/echo checking for sed... (cached) /usr/bin/sed checking for cp... (cached) /sbin/cp checking for mkdir... (cached) /usr/bin/mkdir checking for libtool... (cached) /usr/local/bin/libtool no apxs given checking for target platform... unix no apache given configure: error: Cannot find the WebServer -- -- --- --mikej -=- mike jackson [EMAIL PROTECTED] -Original Message- From: Turner, John [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 26, 2003 9:02 AM To: 'Tomcat Users List' Subject: RE: problems compiling and using mod_jk I think the culprit is the --with-apxs option, now that I think about it. Apache 1.3: --with-apxs=/path/to/apache/bin/apxs Apache 2.0: --with-apxs2=/path/to/apache2/bin/apxs I'm going to try it right now on RH 7.2 for apache 2.0 and see what's what...its been several weeks since I did it and I need a refresher. John -Original Message- From: Mike Jackson [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 26, 2003 11:53 AM To: Tomcat Users List Subject: RE: problems compiling and using mod_jk I don't see anything in particular, but I might be missing something. The only thing that looked worrisome was the no apache given message output from the configure script. But maybe one of you folks will have a clue that I don't. Here's
RE: problems compiling and using mod_jk
buildconf.sh told me this: libtoolize --force --automake --copy aclocal automake -a --foreign -i --copy autoconf configure.in:24: AC_PROG_CPP was called before AC_PROG_CC Then I ran: ./configure --with-apxs=/usr/local/apache2/bin/apxs Everything went OK, then I ran make. Everything went OK, with the final result being: /usr/local/src/jakarta-tomcat-connectors-jk-1.2.2-src/jk/native/apache-2.0/. libs/mod_jk.so /usr/local/src/jakarta-tomcat-connectors-jk-1.2.2-src/jk/native/apache-2.0/m od_jk.so John -Original Message- From: Mike Jackson [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 26, 2003 12:09 PM To: Tomcat Users List Subject: RE: problems compiling and using mod_jk I tried that, here's the output. For some reason it can't find the webserver. I was playing with the version in native2, it required the --with-apxs2 option, but I haven't got that one to compile yet, I'm getting make errors. Configure output... -- -- --- # ./configure --with-apxs2=/usr/local/apache2/bin/apxs loading cache ./config.cache checking for a BSD compatible install... scripts/build/unix/install-sh -c checking whether build environment is sane... yes checking whether make sets ${MAKE}... (cached) yes checking for working aclocal... found checking for working autoconf... found checking for working automake... found checking for working autoheader... found checking for working makeinfo... missing checking host system type... i586-sco-sysv5uw7.1.1 checking build system type... i586-sco-sysv5uw7.1.1 checking for ranlib... (cached) : checking for gcc... (cached) gcc checking whether the C compiler (gcc ) works... yes checking whether the C compiler (gcc ) is a cross-compiler... no checking whether we are using GNU C... (cached) yes checking whether gcc accepts -g... (cached) yes checking for ld used by GCC... (cached) /usr/ccs/bin/ld checking if the linker (/usr/ccs/bin/ld) is GNU ld... (cached) no checking for BSD-compatible nm... (cached) /usr/bin/nm -p checking whether ln -s works... (cached) yes loading cache ./config.cache within ltconfig checking for object suffix... o checking for executable suffix... (cached) no checking for gcc option to produce PIC... -fPIC checking if gcc PIC flag -fPIC works... yes checking if gcc supports -c -o file.o... yes checking if gcc supports -c -o file.lo... yes checking if gcc supports -fno-rtti -fno-exceptions ... yes checking if gcc static flag -static works... -static checking if the linker (/usr/ccs/bin/ld) is GNU ld... no checking whether the linker (/usr/ccs/bin/ld) supports shared libraries... yes checking command to parse /usr/bin/nm -p output... ok checking how to hardcode library paths into programs... immediate checking for /usr/ccs/bin/ld option to reload object files... -r checking dynamic linker characteristics... sysv5uw7.1.1 ld.so checking if libtool supports shared libraries... yes checking whether to build shared libraries... yes checking whether to build static libraries... yes checking for objdir... .libs checking for dlfcn.h... (cached) yes checking whether a program can dlopen itself... (cached) no creating libtool loading cache ./config.cache checking for gcc... (cached) gcc checking whether the C compiler (gcc -g -O2 ) works... yes checking whether the C compiler (gcc -g -O2 ) is a cross-compiler... no checking whether we are using GNU C... (cached) yes checking whether gcc accepts -g... (cached) yes checking for ld used by GCC... (cached) /usr/ccs/bin/ld checking if the linker (/usr/ccs/bin/ld) is GNU ld... (cached) no checking for test... (cached) /usr/bin/test checking for rm... (cached) /sbin/rm checking for grep... (cached) /sbin/grep checking for echo... (cached) /usr/local/bin/echo checking for sed... (cached) /usr/bin/sed checking for cp... (cached) /sbin/cp checking for mkdir... (cached) /usr/bin/mkdir checking for libtool... (cached) /usr/local/bin/libtool no apxs given checking for target platform... unix no apache given configure: error: Cannot find the WebServer -- -- --- --mikej -=- mike jackson [EMAIL PROTECTED] -Original Message- From: Turner, John [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 26, 2003 9:02 AM To: 'Tomcat Users List' Subject: RE: problems compiling and using mod_jk I think the culprit is the --with-apxs option, now that I think about it. Apache 1.3: --with-apxs=/path/to/apache/bin/apxs Apache 2.0: --with-apxs2=/path/to/apache2/bin/apxs I'm going to try it right now on RH 7.2 for apache 2.0 and see what's what...its been several weeks since I did it and I need a refresher. John -Original Message- From: Mike Jackson [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 26, 2003 11
RE: problems compiling and using mod_jk
What happens if you run make in that directory again? John -Original Message- From: Mike Jackson [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 26, 2003 12:21 PM To: Tomcat Users List Subject: RE: problems compiling and using mod_jk I didn't get the configure AC_PROG_CPP error, but here's what was output in apache-2.0 # ls -l total 3462 -rw-r--r--1 root sys2243 Feb 26 09:19 Makefile -rw-r--r--1 root sys 736 Feb 26 09:19 Makefile.apxs -rw-r--r--1 root root661 Dec 19 05:52 Makefile.apxs.in -rw-r--r--1 root root 2131 Dec 19 05:52 Makefile.in -rw-r--r--1 root root 15020 Dec 19 05:52 bldjk.qclsrc -rw-r--r--1 root root448 Dec 19 05:52 config.m4 -rw-r--r--1 root sys 777044 Feb 26 09:20 libmod_jk.a lrwxrwxrwx1 root sys 18 Feb 26 09:20 libmod_jk.so - libmod_jk.so.0.0.0 lrwxrwxrwx1 root sys 18 Feb 26 09:20 libmod_jk.so.0 - libmod_jk.so.0.0.0 -rw-r--r--1 root sys 689252 Feb 26 09:20 libmod_jk.so.0.0.0 -rw-r--r--1 root root 70552 Dec 19 05:52 mod_jk.c -rw-r--r--1 root root 7129 Dec 19 05:52 mod_jk.dsp -rw-r--r--1 root sys 729 Feb 26 09:20 mod_jk.la -rw-r--r--1 root sys 102128 Feb 26 09:20 mod_jk.lo -rw-r--r--1 root sys 98392 Feb 26 09:20 mod_jk.o I've got a mod_jk.o, but that's not the correct file. It looks to me like the right one should be libmod_jk.so.0.0.0, but I could be mistaken. --mikej -=- mike jackson [EMAIL PROTECTED] -Original Message- From: Turner, John [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 26, 2003 9:15 AM To: 'Tomcat Users List' Subject: RE: problems compiling and using mod_jk buildconf.sh told me this: libtoolize --force --automake --copy aclocal automake -a --foreign -i --copy autoconf configure.in:24: AC_PROG_CPP was called before AC_PROG_CC Then I ran: ./configure --with-apxs=/usr/local/apache2/bin/apxs Everything went OK, then I ran make. Everything went OK, with the final result being: /usr/local/src/jakarta-tomcat-connectors-jk-1.2.2-src/jk/native/ap ache-2.0/. libs/mod_jk.so /usr/local/src/jakarta-tomcat-connectors-jk-1.2.2-src/jk/native/ap ache-2.0/m od_jk.so John -Original Message- From: Mike Jackson [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 26, 2003 12:09 PM To: Tomcat Users List Subject: RE: problems compiling and using mod_jk I tried that, here's the output. For some reason it can't find the webserver. I was playing with the version in native2, it required the --with-apxs2 option, but I haven't got that one to compile yet, I'm getting make errors. Configure output... -- -- --- # ./configure --with-apxs2=/usr/local/apache2/bin/apxs loading cache ./config.cache checking for a BSD compatible install... scripts/build/unix/install-sh -c checking whether build environment is sane... yes checking whether make sets ${MAKE}... (cached) yes checking for working aclocal... found checking for working autoconf... found checking for working automake... found checking for working autoheader... found checking for working makeinfo... missing checking host system type... i586-sco-sysv5uw7.1.1 checking build system type... i586-sco-sysv5uw7.1.1 checking for ranlib... (cached) : checking for gcc... (cached) gcc checking whether the C compiler (gcc ) works... yes checking whether the C compiler (gcc ) is a cross-compiler... no checking whether we are using GNU C... (cached) yes checking whether gcc accepts -g... (cached) yes checking for ld used by GCC... (cached) /usr/ccs/bin/ld checking if the linker (/usr/ccs/bin/ld) is GNU ld... (cached) no checking for BSD-compatible nm... (cached) /usr/bin/nm -p checking whether ln -s works... (cached) yes loading cache ./config.cache within ltconfig checking for object suffix... o checking for executable suffix... (cached) no checking for gcc option to produce PIC... -fPIC checking if gcc PIC flag -fPIC works... yes checking if gcc supports -c -o file.o... yes checking if gcc supports -c -o file.lo... yes checking if gcc supports -fno-rtti -fno-exceptions ... yes checking if gcc static flag -static works... -static checking if the linker (/usr/ccs/bin/ld) is GNU ld... no checking whether the linker (/usr/ccs/bin/ld) supports shared libraries... yes checking command to parse /usr/bin/nm -p output... ok checking how to hardcode library paths into programs... immediate checking for /usr/ccs/bin/ld option to reload object files... -r checking dynamic linker
RE: problems compiling and using mod_jk
Do you still get the Apache errors now? -Original Message- From: Mike Jackson [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 26, 2003 12:35 PM To: Tomcat Users List Subject: RE: problems compiling and using mod_jk I just did a make all, it output the follow messages: # make all /bin/ksh /usr/local/apache2/build/libtool --silent --mode=install cp mod_jk.la `pwd`/mod_jk.so libtool: install: warning: remember to run `libtool --finish /usr/local/apache2/modules' Files in the directory are: # ls -l total 3462 -rw-r--r--1 root sys2243 Feb 26 09:19 Makefile -rw-r--r--1 root sys 736 Feb 26 09:19 Makefile.apxs -rw-r--r--1 root root661 Dec 19 05:52 Makefile.apxs.in -rw-r--r--1 root root 2131 Dec 19 05:52 Makefile.in -rw-r--r--1 root root 15020 Dec 19 05:52 bldjk.qclsrc -rw-r--r--1 root root448 Dec 19 05:52 config.m4 -rw-r--r--1 root sys 777044 Feb 26 09:34 libmod_jk.a lrwxrwxrwx1 root sys 18 Feb 26 09:34 libmod_jk.so - libmod_jk.so.0.0.0 lrwxrwxrwx1 root sys 18 Feb 26 09:34 libmod_jk.so.0 - libmod_jk.so.0.0.0 -rw-r--r--1 root sys 689252 Feb 26 09:34 libmod_jk.so.0.0.0 -rw-r--r--1 root root 70552 Dec 19 05:52 mod_jk.c -rw-r--r--1 root root 7129 Dec 19 05:52 mod_jk.dsp -rw-r--r--1 root sys 729 Feb 26 09:34 mod_jk.la -rw-r--r--1 root sys 102128 Feb 26 09:20 mod_jk.lo -rw-r--r--1 root sys 98392 Feb 26 09:20 mod_jk.o When I run that libtool command it says: # libtool --finish /usr/local/apache2/modules -- Libraries have been installed in: /usr/local/apache2/modules If you ever happen to want to link against installed libraries in a given directory, LIBDIR, you must either use libtool, and specify the full pathname of the library, or use `-LLIBDIR' flag during linking and do at least one of the following: - add LIBDIR to the `LD_LIBRARY_PATH' environment variable during execution - add LIBDIR to the `LD_RUN_PATH' environment variable during linking See any operating system documentation about shared libraries for more information, such as the ld(1) and ld.so(8) manual pages. -- And that directory /usr/local/apache2/modules looks like this: # ls -l /usr/local/apache2/modules total 1364 -rw-r--r--1 root sys8035 Feb 5 16:33 httpd.exp -rw-r--r--1 root sys 689252 Feb 26 08:28 libmod_jk.so.0.0.0 lrwxrwxrwx1 root sys 18 Feb 26 08:29 mod_jk.so - libmod_jk.so.0.0.0 Which doesn't make alot of sense, the libmod_jk.so.0.0.0 in my apache-2.0 directory is newer than the one in the modules directory. But the file size is the same and the cksums match. --mikej -=- mike jackson [EMAIL PROTECTED] -Original Message- From: Turner, John [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 26, 2003 9:25 AM To: 'Tomcat Users List' Subject: RE: problems compiling and using mod_jk What happens if you run make in that directory again? John -Original Message- From: Mike Jackson [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 26, 2003 12:21 PM To: Tomcat Users List Subject: RE: problems compiling and using mod_jk I didn't get the configure AC_PROG_CPP error, but here's what was output in apache-2.0 # ls -l total 3462 -rw-r--r--1 root sys2243 Feb 26 09:19 Makefile -rw-r--r--1 root sys 736 Feb 26 09:19 Makefile.apxs -rw-r--r--1 root root661 Dec 19 05:52 Makefile.apxs.in -rw-r--r--1 root root 2131 Dec 19 05:52 Makefile.in -rw-r--r--1 root root 15020 Dec 19 05:52 bldjk.qclsrc -rw-r--r--1 root root448 Dec 19 05:52 config.m4 -rw-r--r--1 root sys 777044 Feb 26 09:20 libmod_jk.a lrwxrwxrwx1 root sys 18 Feb 26 09:20 libmod_jk.so - libmod_jk.so.0.0.0 lrwxrwxrwx1 root sys 18 Feb 26 09:20 libmod_jk.so.0 - libmod_jk.so.0.0.0 -rw-r--r--1 root sys 689252 Feb 26 09:20 libmod_jk.so.0.0.0 -rw-r--r--1 root root 70552 Dec 19 05:52 mod_jk.c -rw-r--r--1 root root 7129 Dec 19 05:52 mod_jk.dsp -rw-r--r--1 root sys 729 Feb 26 09:20 mod_jk.la -rw-r--r--1 root sys 102128 Feb 26 09:20 mod_jk.lo -rw-r--r--1 root sys 98392 Feb 26 09:20 mod_jk.o I've got a mod_jk.o, but that's not the correct file. It looks to me like
RE: problems compiling and using mod_jk
I'm stumped. John -Original Message- From: Mike Jackson [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 26, 2003 12:45 PM To: Tomcat Users List Subject: RE: problems compiling and using mod_jk I changed my LD_LIBRARY_PATH, thinking maybe it wasn't finding something, but it didn't help either. --mikej -=- mike jackson [EMAIL PROTECTED] -Original Message- From: Turner, John [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 26, 2003 9:25 AM To: 'Tomcat Users List' Subject: RE: problems compiling and using mod_jk What happens if you run make in that directory again? John -Original Message- From: Mike Jackson [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 26, 2003 12:21 PM To: Tomcat Users List Subject: RE: problems compiling and using mod_jk I didn't get the configure AC_PROG_CPP error, but here's what was output in apache-2.0 # ls -l total 3462 -rw-r--r--1 root sys2243 Feb 26 09:19 Makefile -rw-r--r--1 root sys 736 Feb 26 09:19 Makefile.apxs -rw-r--r--1 root root661 Dec 19 05:52 Makefile.apxs.in -rw-r--r--1 root root 2131 Dec 19 05:52 Makefile.in -rw-r--r--1 root root 15020 Dec 19 05:52 bldjk.qclsrc -rw-r--r--1 root root448 Dec 19 05:52 config.m4 -rw-r--r--1 root sys 777044 Feb 26 09:20 libmod_jk.a lrwxrwxrwx1 root sys 18 Feb 26 09:20 libmod_jk.so - libmod_jk.so.0.0.0 lrwxrwxrwx1 root sys 18 Feb 26 09:20 libmod_jk.so.0 - libmod_jk.so.0.0.0 -rw-r--r--1 root sys 689252 Feb 26 09:20 libmod_jk.so.0.0.0 -rw-r--r--1 root root 70552 Dec 19 05:52 mod_jk.c -rw-r--r--1 root root 7129 Dec 19 05:52 mod_jk.dsp -rw-r--r--1 root sys 729 Feb 26 09:20 mod_jk.la -rw-r--r--1 root sys 102128 Feb 26 09:20 mod_jk.lo -rw-r--r--1 root sys 98392 Feb 26 09:20 mod_jk.o I've got a mod_jk.o, but that's not the correct file. It looks to me like the right one should be libmod_jk.so.0.0.0, but I could be mistaken. --mikej -=- mike jackson [EMAIL PROTECTED] -Original Message- From: Turner, John [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 26, 2003 9:15 AM To: 'Tomcat Users List' Subject: RE: problems compiling and using mod_jk buildconf.sh told me this: libtoolize --force --automake --copy aclocal automake -a --foreign -i --copy autoconf configure.in:24: AC_PROG_CPP was called before AC_PROG_CC Then I ran: ./configure --with-apxs=/usr/local/apache2/bin/apxs Everything went OK, then I ran make. Everything went OK, with the final result being: /usr/local/src/jakarta-tomcat-connectors-jk-1.2.2-src/jk/native/ap ache-2.0/. libs/mod_jk.so /usr/local/src/jakarta-tomcat-connectors-jk-1.2.2-src/jk/native/ap ache-2.0/m od_jk.so John -Original Message- From: Mike Jackson [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 26, 2003 12:09 PM To: Tomcat Users List Subject: RE: problems compiling and using mod_jk I tried that, here's the output. For some reason it can't find the webserver. I was playing with the version in native2, it required the --with-apxs2 option, but I haven't got that one to compile yet, I'm getting make errors. Configure output... -- -- --- # ./configure --with-apxs2=/usr/local/apache2/bin/apxs loading cache ./config.cache checking for a BSD compatible install... scripts/build/unix/install-sh -c checking whether build environment is sane... yes checking whether make sets ${MAKE}... (cached) yes checking for working aclocal... found checking for working autoconf... found checking for working automake... found checking for working autoheader... found checking for working makeinfo... missing checking host system type... i586-sco-sysv5uw7.1.1 checking build system type... i586-sco-sysv5uw7.1.1 checking for ranlib... (cached) : checking for gcc... (cached) gcc checking whether the C compiler (gcc ) works... yes checking whether the C compiler (gcc ) is a cross-compiler... no checking whether we are using GNU C... (cached) yes checking whether gcc accepts -g... (cached) yes checking for ld used by GCC... (cached) /usr/ccs/bin/ld checking if the linker (/usr/ccs/bin/ld) is GNU ld... (cached) no checking for BSD-compatible nm... (cached) /usr/bin/nm -p checking whether ln -s works
RE: problems compiling and using mod_jk
No, never even thought about it. Worth a shot, I guess. John -Original Message- From: Mike Jackson [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 26, 2003 1:04 PM To: Tomcat Users List Subject: RE: problems compiling and using mod_jk No, don't say that, I need help! :) Perhaps I should try and to the build mod_jk into apache static route. Do you happen to have notes on that? --mikej -=- mike jackson [EMAIL PROTECTED] -Original Message- From: Turner, John [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 26, 2003 9:56 AM To: 'Tomcat Users List' Subject: RE: problems compiling and using mod_jk I'm stumped. John -Original Message- From: Mike Jackson [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 26, 2003 12:45 PM To: Tomcat Users List Subject: RE: problems compiling and using mod_jk I changed my LD_LIBRARY_PATH, thinking maybe it wasn't finding something, but it didn't help either. --mikej -=- mike jackson [EMAIL PROTECTED] -Original Message- From: Turner, John [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 26, 2003 9:25 AM To: 'Tomcat Users List' Subject: RE: problems compiling and using mod_jk What happens if you run make in that directory again? John -Original Message- From: Mike Jackson [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 26, 2003 12:21 PM To: Tomcat Users List Subject: RE: problems compiling and using mod_jk I didn't get the configure AC_PROG_CPP error, but here's what was output in apache-2.0 # ls -l total 3462 -rw-r--r--1 root sys2243 Feb 26 09:19 Makefile -rw-r--r--1 root sys 736 Feb 26 09:19 Makefile.apxs -rw-r--r--1 root root661 Dec 19 05:52 Makefile.apxs.in -rw-r--r--1 root root 2131 Dec 19 05:52 Makefile.in -rw-r--r--1 root root 15020 Dec 19 05:52 bldjk.qclsrc -rw-r--r--1 root root448 Dec 19 05:52 config.m4 -rw-r--r--1 root sys 777044 Feb 26 09:20 libmod_jk.a lrwxrwxrwx1 root sys 18 Feb 26 09:20 libmod_jk.so - libmod_jk.so.0.0.0 lrwxrwxrwx1 root sys 18 Feb 26 09:20 libmod_jk.so.0 - libmod_jk.so.0.0.0 -rw-r--r--1 root sys 689252 Feb 26 09:20 libmod_jk.so.0.0.0 -rw-r--r--1 root root 70552 Dec 19 05:52 mod_jk.c -rw-r--r--1 root root 7129 Dec 19 05:52 mod_jk.dsp -rw-r--r--1 root sys 729 Feb 26 09:20 mod_jk.la -rw-r--r--1 root sys 102128 Feb 26 09:20 mod_jk.lo -rw-r--r--1 root sys 98392 Feb 26 09:20 mod_jk.o I've got a mod_jk.o, but that's not the correct file. It looks to me like the right one should be libmod_jk.so.0.0.0, but I could be mistaken. --mikej -=- mike jackson [EMAIL PROTECTED] -Original Message- From: Turner, John [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 26, 2003 9:15 AM To: 'Tomcat Users List' Subject: RE: problems compiling and using mod_jk buildconf.sh told me this: libtoolize --force --automake --copy aclocal automake -a --foreign -i --copy autoconf configure.in:24: AC_PROG_CPP was called before AC_PROG_CC Then I ran: ./configure --with-apxs=/usr/local/apache2/bin/apxs Everything went OK, then I ran make. Everything went OK, with the final result being: /usr/local/src/jakarta-tomcat-connectors-jk-1.2.2-src/jk/native/ap ache-2.0/. libs/mod_jk.so /usr/local/src/jakarta-tomcat-connectors-jk-1.2.2-src/jk/native/ap ache-2.0/m od_jk.so John -Original Message- From: Mike Jackson [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 26, 2003 12:09 PM To: Tomcat Users List Subject: RE: problems compiling and using mod_jk I tried that, here's the output. For some reason it can't find the webserver. I was playing with the version in native2, it required the --with-apxs2 option, but I haven't got that one to compile yet, I'm getting make errors. Configure output... -- -- --- # ./configure --with-apxs2=/usr/local/apache2/bin/apxs loading cache ./config.cache checking for a BSD compatible install... scripts/build/unix/install-sh -c checking whether build
RE: Connection refused question
Do you have an AJP13-compatible connector listening on port 8009? John -Original Message- From: Charles A Jordan [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 26, 2003 1:05 PM To: [EMAIL PROTECTED] Subject: Connection refused question I am not able to get to http://localhost/examples I get the following errors in my apache error_log file. Any ideas? Where does it look for the examples directory and what sets it? [Wed Feb 26 11:35:10 2003] [error] channelSocket.open() connect failed localhost :8009 146 Connection refused [Wed Feb 26 11:35:10 2003] [error] ajp13.connect() failed ajp13:localhost:8009 [Wed Feb 26 11:35:10 2003] [error] ajp13.service() failed to connect endpoint er rno=146 Connection refused [Wed Feb 26 11:35:10 2003] [error] ajp13.service() Error forwarding ajp13:local host:8009 1 1 [Wed Feb 26 11:35:10 2003] [error] lb.service() worker failed 12 for ajp13:l ocalhost:8009 Charles (Allen) Jordan [EMAIL PROTECTED] System Administrator(407)771-8919 Convergys 285 International Parkway, Lake Mary, FL 32746-5007 - 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: Connection refused question
You look in server.xml for a Connector on port 8009. It's there by default, so unless you changed it or your server.xml file was otherwised munged up, it should be there. John -Original Message- From: Charles A Jordan [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 26, 2003 1:20 PM To: [EMAIL PROTECTED] Subject: RE: Connection refused question How do I tell? Do you have an AJP13-compatible connector listening on port 8009? John -Original Message- From: Charles A Jordan [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 26, 2003 1:05 PM To: [EMAIL PROTECTED] Subject: Connection refused question I am not able to get to http://localhost/examples I get the following errors in my apache error_log file. Any ideas? Where does it look for the examples directory and what sets it? [Wed Feb 26 11:35:10 2003] [error] channelSocket.open() connect failed localhost :8009 146 Connection refused [Wed Feb 26 11:35:10 2003] [error] ajp13.connect() failed ajp13:localhost:8009 [Wed Feb 26 11:35:10 2003] [error] ajp13.service() failed to connect endpoint er rno=146 Connection refused [Wed Feb 26 11:35:10 2003] [error] ajp13.service() Error forwarding ajp13:local host:8009 1 1 [Wed Feb 26 11:35:10 2003] [error] lb.service() worker failed 12 for ajp13:l ocalhost:8009 Charles (Allen) Jordan [EMAIL PROTECTED] System Administrator(407)771-8919 Convergys 285 International Parkway, Lake Mary, FL 32746-5007 - 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] Charles (Allen) Jordan [EMAIL PROTECTED] System Administrator(407)771-8919 Convergys 285 International Parkway, Lake Mary, FL 32746-5007 - 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: problems compiling and using mod_jk
I would say Yes. ;) Could it be a permissions problem? There aren't many reasons for a failed copy. John -Original Message- From: Mike Jackson [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 26, 2003 1:26 PM To: Tomcat Users List Subject: RE: problems compiling and using mod_jk Ok I've got the latest versions (again), removed any lingering build and installed files, and unpacked the srcs and binaries (tomcat is binary). Apache2 seems to have compiled and installed successfully. I haven't tried to start it yet, but I'll do that after I get the connector built. Anyway, I ran buildconf.sh and got the following: # ./buildconf.sh libtoolize --force --automake --copy aclocal automake -a --foreign -i --copy automake: configure.in: installing `scripts/build/unix/install-sh' error while copying automake: configure.in: installing `scripts/build/unix/mkinstalldirs' error while copying automake: configure.in: installing `scripts/build/unix/missing' error while copying autoconf Do I already have a problem? --mikej -=- mike jackson [EMAIL PROTECTED] -Original Message- From: Mike Jackson [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 26, 2003 10:08 AM To: Tomcat Users List Subject: RE: problems compiling and using mod_jk Hmm, ok, then: # find / -name apxs -print /home/mjackson/new-apache/httpd-2.0.44/support/apxs the build directory for apache2 /usr/local/apache/bin/apxs the apache 1.3 install /usr/local/apache2/bin/apxs the apache 2.0.44 install I didn't find any others out there. I'll remove and re-setup the apache install. I run some production code on the old version of apache (with tomcat 3.3.1a), but I can remove it temporarily and see if that helps. I'll just go some fresh archives for the source again. --mikej -=- mike jackson [EMAIL PROTECTED] -Original Message- From: Jake Robb [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 26, 2003 9:59 AM To: Tomcat Users List Subject: Re: problems compiling and using mod_jk I had a similar problem trying to build mod_jk2, where it didn't create the .so file. I don't remember it very well, but I believe the problem was that I had upgraded Apache, but had missed the copy of apxs in /usr/bin. By removing /usr/bin/apxs and /usr/bin/apachectl, plus my entire Apache2 installation, and then rebuilding from source, I was able to rebuild apxs, which then solved the problem. John: by the way, the --with-apxs2 argument is only for jk2. Mike: the no apache given message is okay. The script looks for both apache and apache2 (you could specify both, if for whatever reason you have both installed). It didn't find a 1.3.x version of Apache, and that's not a problem. -Jake - Original Message - From: Mike Jackson [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Wednesday, February 26, 2003 12:20 PM Subject: RE: problems compiling and using mod_jk I didn't get the configure AC_PROG_CPP error, but here's what was output in apache-2.0 # ls -l total 3462 -rw-r--r--1 root sys2243 Feb 26 09:19 Makefile -rw-r--r--1 root sys 736 Feb 26 09:19 Makefile.apxs -rw-r--r--1 root root661 Dec 19 05:52 Makefile.apxs.in -rw-r--r--1 root root 2131 Dec 19 05:52 Makefile.in -rw-r--r--1 root root 15020 Dec 19 05:52 bldjk.qclsrc -rw-r--r--1 root root448 Dec 19 05:52 config.m4 -rw-r--r--1 root sys 777044 Feb 26 09:20 libmod_jk.a lrwxrwxrwx1 root sys 18 Feb 26 09:20 libmod_jk.so - libmod_jk.so.0.0.0 lrwxrwxrwx1 root sys 18 Feb 26 09:20 libmod_jk.so.0 - libmod_jk.so.0.0.0 -rw-r--r--1 root sys 689252 Feb 26 09:20 libmod_jk.so.0.0.0 -rw-r--r--1 root root 70552 Dec 19 05:52 mod_jk.c -rw-r--r--1 root root 7129 Dec 19 05:52 mod_jk.dsp -rw-r--r--1 root sys 729 Feb 26 09:20 mod_jk.la -rw-r--r--1 root sys 102128 Feb 26 09:20 mod_jk.lo -rw-r--r--1 root sys 98392 Feb 26 09:20 mod_jk.o I've got a mod_jk.o, but that's not the correct file. It looks to me like the right one should be libmod_jk.so.0.0.0, but I could be mistaken. --mikej -=- mike jackson [EMAIL PROTECTED] -Original Message- From: Turner, John [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 26, 2003 9:15 AM To: 'Tomcat Users List' Subject: RE: problems compiling and using mod_jk buildconf.sh told me this: libtoolize
RE: problems compiling and using mod_jk
Sounds good to me, I really have no idea. My experience with build tools is pretty minimal. John -Original Message- From: Mike Jackson [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 26, 2003 2:02 PM To: Tomcat Users List Subject: RE: problems compiling and using mod_jk I found an install-sh in /usr/local/share/automake/install-sh, is that where it ought to get getting it from? --mikej -=- mike jackson [EMAIL PROTECTED] -Original Message- From: Mike Jackson [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 26, 2003 10:59 AM To: Tomcat Users List Subject: RE: problems compiling and using mod_jk It looks like there's an ac_aux_dir that isn't begin set properly, where does that come from and what should it look like? The ac_aux_dir is referenced in aclocal.m4. It says Actually configure libtool. ac_aux_dir is where install-sh is found. in a comment in the area I think that the problem might be at, but I can't seem to figure out what it should be and where it ought to be set. --mikej -=- mike jackson [EMAIL PROTECTED] -Original Message- From: Mike Jackson [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 26, 2003 10:46 AM To: Tomcat Users List Subject: RE: problems compiling and using mod_jk I'm root, I don't see how there could be a permissions problem. :) --mikej -=- mike jackson [EMAIL PROTECTED] -Original Message- From: Turner, John [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 26, 2003 10:34 AM To: 'Tomcat Users List' Subject: RE: problems compiling and using mod_jk I would say Yes. ;) Could it be a permissions problem? There aren't many reasons for a failed copy. John -Original Message- From: Mike Jackson [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 26, 2003 1:26 PM To: Tomcat Users List Subject: RE: problems compiling and using mod_jk Ok I've got the latest versions (again), removed any lingering build and installed files, and unpacked the srcs and binaries (tomcat is binary). Apache2 seems to have compiled and installed successfully. I haven't tried to start it yet, but I'll do that after I get the connector built. Anyway, I ran buildconf.sh and got the following: # ./buildconf.sh libtoolize --force --automake --copy aclocal automake -a --foreign -i --copy automake: configure.in: installing `scripts/build/unix/install-sh' error while copying automake: configure.in: installing `scripts/build/unix/mkinstalldirs' error while copying automake: configure.in: installing `scripts/build/unix/missing' error while copying autoconf Do I already have a problem? --mikej -=- mike jackson [EMAIL PROTECTED] -Original Message- From: Mike Jackson [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 26, 2003 10:08 AM To: Tomcat Users List Subject: RE: problems compiling and using mod_jk Hmm, ok, then: # find / -name apxs -print /home/mjackson/new-apache/httpd-2.0.44/support/apxs the build directory for apache2 /usr/local/apache/bin/apxs the apache 1.3 install /usr/local/apache2/bin/apxs the apache 2.0.44 install I didn't find any others out there. I'll remove and re-setup the apache install. I run some production code on the old version of apache (with tomcat 3.3.1a), but I can remove it temporarily and see if that helps. I'll just go some fresh archives for the source again. --mikej -=- mike jackson [EMAIL PROTECTED] -Original Message- From: Jake Robb [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 26, 2003 9:59 AM To: Tomcat Users List Subject: Re: problems compiling and using mod_jk I had a similar problem trying to build mod_jk2, where it didn't create the .so file. I don't remember it very well, but I believe the problem was that I had upgraded Apache, but had missed the copy of apxs in /usr/bin. By removing /usr/bin/apxs and /usr/bin/apachectl, plus my entire Apache2 installation, and then rebuilding from source, I was able to rebuild apxs, which then solved the problem. John: by the way, the --with-apxs2 argument is only for jk2. Mike: the no apache given message is okay. The script looks for both apache and apache2 (you could specify both, if for whatever reason you have both installed). It didn't find a 1.3.x
RE: problems compiling and using mod_jk
Just comment out the ManagedBean elements in server.xml. That will get rid of those error messages, they are not compatible with Ajp13Connector. John -Original Message- From: Mike Jackson [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 26, 2003 2:40 PM To: Tomcat Users List Subject: RE: problems compiling and using mod_jk Ok, I've got mod_jk to compile and work with apache 1.3.27 and tomcat 3.3.x. However I can't get it to work with tomcat 4.1.18. The module loads, but it doesn't seem like it can talk to tomcat. I tried to change the server.xml file to use the older apj13 connector, but it fails to load, gets a java.lang.Exception: ManagedBean is not found with Ajp13Connector. So my question is, where to go, should I switch back to the coyote connector and try to get it working? Or is there something I can do to fix that ManagedBean exception? --mikej -=- mike jackson [EMAIL PROTECTED] -Original Message- From: Turner, John [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 26, 2003 11:04 AM To: 'Tomcat Users List' Subject: RE: problems compiling and using mod_jk Sounds good to me, I really have no idea. My experience with build tools is pretty minimal. John -Original Message- From: Mike Jackson [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 26, 2003 2:02 PM To: Tomcat Users List Subject: RE: problems compiling and using mod_jk I found an install-sh in /usr/local/share/automake/install-sh, is that where it ought to get getting it from? --mikej -=- mike jackson [EMAIL PROTECTED] -Original Message- From: Mike Jackson [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 26, 2003 10:59 AM To: Tomcat Users List Subject: RE: problems compiling and using mod_jk It looks like there's an ac_aux_dir that isn't begin set properly, where does that come from and what should it look like? The ac_aux_dir is referenced in aclocal.m4. It says Actually configure libtool. ac_aux_dir is where install-sh is found. in a comment in the area I think that the problem might be at, but I can't seem to figure out what it should be and where it ought to be set. --mikej -=- mike jackson [EMAIL PROTECTED] -Original Message- From: Mike Jackson [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 26, 2003 10:46 AM To: Tomcat Users List Subject: RE: problems compiling and using mod_jk I'm root, I don't see how there could be a permissions problem. :) --mikej -=- mike jackson [EMAIL PROTECTED] -Original Message- From: Turner, John [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 26, 2003 10:34 AM To: 'Tomcat Users List' Subject: RE: problems compiling and using mod_jk I would say Yes. ;) Could it be a permissions problem? There aren't many reasons for a failed copy. John -Original Message- From: Mike Jackson [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 26, 2003 1:26 PM To: Tomcat Users List Subject: RE: problems compiling and using mod_jk Ok I've got the latest versions (again), removed any lingering build and installed files, and unpacked the srcs and binaries (tomcat is binary). Apache2 seems to have compiled and installed successfully. I haven't tried to start it yet, but I'll do that after I get the connector built. Anyway, I ran buildconf.sh and got the following: # ./buildconf.sh libtoolize --force --automake --copy aclocal automake -a --foreign -i --copy automake: configure.in: installing `scripts/build/unix/install-sh' error while copying automake: configure.in: installing `scripts/build/unix/mkinstalldirs' error while copying automake: configure.in: installing `scripts/build/unix/missing' error while copying autoconf Do I already have a problem? --mikej -=- mike jackson [EMAIL PROTECTED] -Original Message- From: Mike Jackson [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 26, 2003 10:08 AM To: Tomcat Users List Subject: RE: problems compiling and using mod_jk Hmm, ok, then: # find / -name apxs -print /home/mjackson/new-apache/httpd-2.0.44/support/apxs the build directory for apache2 /usr/local/apache/bin/apxs the apache 1.3 install /usr/local/apache2/bin/apxs
RE: problems compiling and using mod_jk
Yup. John -Original Message- From: Mike Jackson [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 26, 2003 2:53 PM To: Tomcat Users List Subject: RE: problems compiling and using mod_jk You mean the JMX MBeans lines? --mikej -=- mike jackson [EMAIL PROTECTED] -Original Message- From: Turner, John [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 26, 2003 11:45 AM To: 'Tomcat Users List' Subject: RE: problems compiling and using mod_jk Just comment out the ManagedBean elements in server.xml. That will get rid of those error messages, they are not compatible with Ajp13Connector. John -Original Message- From: Mike Jackson [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 26, 2003 2:40 PM To: Tomcat Users List Subject: RE: problems compiling and using mod_jk Ok, I've got mod_jk to compile and work with apache 1.3.27 and tomcat 3.3.x. However I can't get it to work with tomcat 4.1.18. The module loads, but it doesn't seem like it can talk to tomcat. I tried to change the server.xml file to use the older apj13 connector, but it fails to load, gets a java.lang.Exception: ManagedBean is not found with Ajp13Connector. So my question is, where to go, should I switch back to the coyote connector and try to get it working? Or is there something I can do to fix that ManagedBean exception? --mikej -=- mike jackson [EMAIL PROTECTED] -Original Message- From: Turner, John [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 26, 2003 11:04 AM To: 'Tomcat Users List' Subject: RE: problems compiling and using mod_jk Sounds good to me, I really have no idea. My experience with build tools is pretty minimal. John -Original Message- From: Mike Jackson [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 26, 2003 2:02 PM To: Tomcat Users List Subject: RE: problems compiling and using mod_jk I found an install-sh in /usr/local/share/automake/install-sh, is that where it ought to get getting it from? --mikej -=- mike jackson [EMAIL PROTECTED] -Original Message- From: Mike Jackson [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 26, 2003 10:59 AM To: Tomcat Users List Subject: RE: problems compiling and using mod_jk It looks like there's an ac_aux_dir that isn't begin set properly, where does that come from and what should it look like? The ac_aux_dir is referenced in aclocal.m4. It says Actually configure libtool. ac_aux_dir is where install-sh is found. in a comment in the area I think that the problem might be at, but I can't seem to figure out what it should be and where it ought to be set. --mikej -=- mike jackson [EMAIL PROTECTED] -Original Message- From: Mike Jackson [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 26, 2003 10:46 AM To: Tomcat Users List Subject: RE: problems compiling and using mod_jk I'm root, I don't see how there could be a permissions problem. :) --mikej -=- mike jackson [EMAIL PROTECTED] -Original Message- From: Turner, John [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 26, 2003 10:34 AM To: 'Tomcat Users List' Subject: RE: problems compiling and using mod_jk I would say Yes. ;) Could it be a permissions problem? There aren't many reasons for a failed copy. John -Original Message- From: Mike Jackson [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 26, 2003 1:26 PM To: Tomcat Users List Subject: RE: problems compiling and using mod_jk Ok I've got the latest versions (again), removed any lingering build and installed files, and unpacked the srcs and binaries (tomcat is binary). Apache2 seems to have compiled and installed successfully. I haven't tried to start it yet, but I'll do that after I get the connector built. Anyway, I ran buildconf.sh and got the following: # ./buildconf.sh libtoolize --force --automake --copy aclocal automake -a --foreign -i --copy automake: configure.in: installing `scripts/build/unix/install-sh' error while copying automake: configure.in: installing `scripts/build/unix/mkinstalldirs' error while copying automake: configure.in
RE: problems compiling and using mod_jk
I'd have to see the files. John -Original Message- From: Mike Jackson [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 26, 2003 2:59 PM To: Tomcat Users List Subject: RE: problems compiling and using mod_jk Hmm, I'm still having problems. I took my mod_jk.conf from tomcat 3 and striped out everything except for the examples webapp and put in the minimal workers.properties file from the web site. I can access the nbrguess.jsp file from tomcat if I go to 8080, but when I try to get to it via apache it gives me a error. There's nothing in the log file to point me anywhere, it looks like things on the tomcat side are running, I've got startup messages from apj13 threads, but I don't seem to be talking to them. Any ideas? --mikej -=- mike jackson [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: problems compiling and using mod_jk
Is this in a VirtualHost container? Does the ServerName match what's being used in the URL and what is in server.xml as a Host? John -Original Message- From: Mike Jackson [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 26, 2003 4:22 PM To: Tomcat Users List Subject: RE: problems compiling and using mod_jk Here's the mod_jk.conf file -- - LoadModule jk_module libexec/mod_jk.so JkWorkersFile /usr/local/tomcat/conf/workers.properties JkLogFile /usr/local/tomcat/logs/mod_jk.log JkLogLevel error JkMount /*.jsp ajp13 JkMount /servlet/* ajp13 Alias /admin /usr/local/tomcat/webapps/admin Directory /usr/local/tomcat/webapps/admin Options Indexes FollowSymLinks /Directory JkMount /admin/servlet/* ajp13 JkMount /admin/*.jsp ajp13 Alias /examples /usr/local/tomcat/webapps/examples Directory /usr/local/tomcat/webapps/examples Options Indexes FollowSymLinks /Directory JkMount /examples/servlet/* ajp13 JkMount /examples/*.jsp ajp13 Location /examples/WEB-INF/ AllowOverride None deny from all /Location Location /examples/META-INF/ AllowOverride None deny from all /Location -- - Here's the worker.properties file -- - # Define 1 real worker using ajp13 worker.list=worker1 # Set properties for worker1 (ajp13) worker.worker1.type=ajp13 worker.worker1.host=127.0.0.1 worker.worker1.port=8009 worker.worker1.lbfactor=50 worker.worker1.cachesize=10 worker.worker1.cache_timeout=600 worker.worker1.socket_keepalive=1 worker.worker1.socket_timeout=300 -- - --mikej -=- mike jackson [EMAIL PROTECTED] -Original Message- From: Turner, John [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 26, 2003 12:03 PM To: 'Tomcat Users List' Subject: RE: problems compiling and using mod_jk I'd have to see the files. John - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: problems compiling and using mod_jk
Who's going to sign the birth certificate for this baby? LOL John -Original Message- From: Mike Jackson [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 26, 2003 4:30 PM To: Tomcat Users List Subject: RE: problems compiling and using mod_jk I got things working, copied the workers.properties file from my older tomcat3 install. Things are working now. Thanks for all the assistance. Since I have a working box now I'll go back and play with apache2 and jk2 at later time. --mikej -=- mike jackson [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: help: mod_jk fails after restart of apache - admin tool
The admin app maintains tomcat-users.xml, there's really no way around it. John -Original Message- From: Rob Cartier [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 26, 2003 5:38 PM To: [EMAIL PROTECTED] Subject: RE: help: mod_jk fails after restart of apache - admin tool problem. Also when updating the tomcat-user.xml file directly it appears that these changes are over-written when using the admin tool and once used you can only keep changes using the admin tool for userid and passwords thanks in advance for any help you can provide Rob - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: How to verify SSL/HTTPS behind Tomcat via AJP13
The return from getProtocol() is correct, AFAIK. I don't believe there is a HTTPS/1.1 or similar, but I could be wrong. By check protocol type in the docs (agreed, it is unclear), I believe it means to do one (or all) of the following: - check the URL for https - check the port number for the request - use HttpServletRequest.isSecure(), though I think that will return false when you use Tomcat via a connector with ApacheI've never tried it to be sure. John -Original Message- From: Ian Hunter [mailto:[EMAIL PROTECTED] Sent: Monday, February 24, 2003 9:26 PM To: Tomcat Users List Subject: How to verify SSL/HTTPS behind Tomcat via AJP13 From http://jakarta.apache.org/tomcat/tomcat-4.1-doc/ssl-howto.html -- Any pages which absolutely require a secure connection should check the protocol type associated with the page request and take the appropriate action of https is not specified. Also, When running Tomcat primarily as a Servlet/JSP container behind another web server, such as Apache or Microsoft IIS, it is usually necessary to configure the primary web server to handle the SSL connections from users. Typically, this server will negotiate all SSL-related functionality, then pass on any requests destined for the Tomcat container only after decrypting those requests. Likewise, Tomcat will return cleartext responses, that will be encrypted before being returned to the user's browser. In this environment, Tomcat knows that communications between the primary web server and the client are taking place over a secure connection (because your application needs to be able to ask about this), but it does not participate in the encryption or decryption itself. However, when I check request.getProtocol() I get HTTP/.1.1 even when I'm connecting via SSL (url shows https: and browser shows lock and confirms 128 bit SSL) -- what gives? - 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: Problem compiling mod_jk2 connector in Solaris 8 Apache 2.0.39
Yowzer, that was a lot of scrolling. I had lots of problems with gcc 3.2 on Solaris 8. I ended up going back to 2.95. The library it can't find is the APR library. On my Solaris 8 development server: bash-2.03# find / -name libapr* -print /usr/local/apache2/lib/libapr-0.so.0.9.2 /usr/local/apache2/lib/libapr-0.so.0 /usr/local/apache2/lib/libapr-0.so /usr/local/apache2/lib/libapr-0.la /usr/local/apache2/lib/libapr-0.a /usr/local/apache2/lib/libaprutil-0.so /usr/local/apache2/lib/libaprutil-0.so.0.9.2 /usr/local/apache2/lib/libaprutil-0.so.0 /usr/local/apache2/lib/libaprutil-0.la /usr/local/apache2/lib/libaprutil-0.a /usr/local/apache2/lib/libapr.so bash-2.03# John -Original Message- From: Julio César Mejia Vergara [mailto:[EMAIL PROTECTED] Sent: Monday, February 24, 2003 10:44 PM To: [EMAIL PROTECTED] Subject: Problem compiling mod_jk2 connector in Solaris 8 Apache 2.0.39 Hello, I have a Sun Blade 100 (SPARC) running Solaris 8 with all its bundled patches. I'm traing to configure Apache HTTP 2.0.39 with Tomcat 4.1.18, i got Apache and Tomcat working seperatly but i'm traing to make it work together via Coyote mod_jk2, but when i try to compile mod_jk2 connectors a get an error. Can any one help I dont now if i'm missing a package that i need to install or is something else that i'm missing. It traid the compiled mod_jk2 thats in http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk2 /release/v2.0.2/bin/solaris8/ but its compiled for Apache HTTPD 2.0.43 and it dosent let apache version of apache start. In the Solaris Machine i have installed: - Solaris 8 (SPARC) - Apache HTTP 2.0.39 (i need to make it work whit this version) - Tomcat 4.1.18 - Tomcat Connectors 4.1.18 - GNU gcc 3.2.2 - GNUmake 3.80 - Perl 5.8.0 - Jakarta ant 1.5.1 - autocong 2.57 - expect 5.38 - gd 1.8.3 - j2sdk 1.4.1 - libtool 1.4 - GNU tar 1.13. - tcl 8.4.1 - tk 8.4.1 - openssl 0.9.6g Here is the what i'm doing to compile the connectors and at the end the error message # pwd /opt/jakarta-tomcat-connectors-4.1.18-src/jk/native2 #*sh ./buildconf.sh* libtoolize --force --automake --copy aclocal automake --copy --add-missing configure.in: installing `scripts/build/unix/install-sh' configure.in: installing `scripts/build/unix/mkinstalldirs' configure.in: installing `scripts/build/unix/missing' autoconf # cp /usr/j2se/include/solaris/* /usr/java/include/ # pwd /opt/jakarta-tomcat-connectors-4.1.18-src/jk/native2 #*CPPFLAGS=-DBSD_COMP ./configure --with-apxs2=/usr/local/apache/bin/apxs --with-tomcat41=/opt/jakarta-tomcat-4.1.18 --with-java-home=/usr/j2se --with-java-platform=2 --with-jni* checking for a BSD-compatible install... scripts/build/unix/install-sh -c checking whether build environment is sane... yes checking for gawk... no checking for mawk... no checking for nawk... nawk checking whether make sets $(MAKE)... yes checking for gcc... gcc checking for C compiler default output... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ANSI C... none needed checking for style of include used by make... GNU checking dependency style of gcc... none checking build system type... sparc-sun-solaris2.8 checking host system type... sparc-sun-solaris2.8 checking for ld used by GCC... /usr/ccs/bin/ld checking if the linker (/usr/ccs/bin/ld) is GNU ld... no checking for /usr/ccs/bin/ld option to reload object files... -r checking for BSD-compatible nm... /usr/ccs/bin/nm -p checking whether ln -s works... yes checking how to recognise dependant libraries... pass_all checking command to parse /usr/ccs/bin/nm -p output... ok checking how to run the C preprocessor... gcc -E checking for egrep... Broken Pipe egrep checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... no checking for unistd.h... yes checking dlfcn.h usability... yes checking dlfcn.h presence... yes checking for dlfcn.h... yes checking for ranlib... ranlib checking for strip... strip checking for objdir... .libs checking for gcc option to produce PIC... -fPIC checking if gcc PIC flag -fPIC works... yes checking if gcc static flag -static works... yes checking if gcc supports -c -o file.o... yes checking if gcc supports -c -o file.lo... checking if gcc supports -fno-rtti -fno-exceptions... yes checking whether the linker (/usr/ccs/bin/ld) supports shared libraries... yes checking how to hardcode library paths into programs... immediate checking whether
RE: running tomcat under unix
Your CATALINA_HOME is borked up. It should point to the parent directory of Tomcat, not any of the subdirectories. If you have your server.xml file in /usr/local/tomcat/conf, for example, and a logs directory at /usr/local/tomcat/logs, then CATALINA_HOME is /usr/local/tomcat, not any of the directories below it. John -Original Message- From: Swapneel Dange [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 25, 2003 2:31 AM To: [EMAIL PROTECTED] Subject: running tomcat under unix i am trying to run TOMCAT 4.0 under unix, but i get the following messages when i try to start the TOMCAT : [EMAIL PROTECTED] ./startup.sh Using CATALINA_BASE: /home/grad12/sdange/tomcat/jakarta-tomcat-4.1.18-src/catalina/src Using CATALINA_HOME: /home/grad12/sdange/tomcat/jakarta-tomcat-4.1.18-src/catalina/src Using CATALINA_TMPDIR: /home/grad12/sdange/tomcat/jakarta-tomcat-4.1.18-src/catalina/src/temp Using JAVA_HOME: /local/jdk1.3.1 touch: creating `/home/grad12/sdange/tomcat/jakarta-tomcat-4.1.18-src/catalina /src/logs/catalina.out': No such file or directory [EMAIL PROTECTED] /home/grad12/sdange/tomcat/jakarta-tomcat-4.1.18-src/catalina/ src/bin/catalina.sh: /home/grad12/sdange/tomcat/jakarta-tomcat-4.1.18-src/catalina/ src/logs/catalina.out: No such file or directory yeah its true that there is no file known as 'catalina.out' in my folders and there is no directory such as 'logs' inside the directory 'src'. do i need to create a directory such as 'logs' or somethign like that. and i have set the following inside .cshrc - setenv JAVA_HOME /local/jdk1.3.1 setenv CATALINA_HOME /home/grad12/sdange/tomcat/jakarta-tomcat-4.1.18-src/catalina/src i am literally CLUELESS as to whats going on there. do commment ! Swapneel Dange 505-642-4126 http://www.cs.nmsu.edu/~sdange _ Tired of spam? Get advanced junk mail protection with MSN 8. http://join.msn.com/?page=features/junkmail - 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: crontab problems
Agreed...using a Java program to watch Tomcat seems a little circular. Plus, I don't see any sort of delay or sleep in the poster's JAva code...it looks like it just keeps hammering at Tomcat, as the cron job is * * * * *. Creating all those Runtime objects over and over can't be helping performance any. A simple shell script using wget would be fine...sure, you can watch the output of ps -ef, but that doesn't tell you if Tomcat is accepting requests or not. There could be an entry for Tomcat in the process table, but Tomcat could be refusing requests. I just write a simple JSP page that outputs the contents of a variable, like ***SUCCESS*** or something like that, then use wget to grab that page every so often and check for the string in the output...if it's there, things should be OK (there are no guarantees). If it's not, you have a problem. This way, the JSP page is compiled and cached by Tomcat, it uses very little memory, and doesn't bog down the server. There are plenty of other alternatives much more robust than a simple shell script...you could use Netsaint/Nagios, Big Brother, and a whole bunch of others. John -Original Message- From: Hannes Schmidt [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 25, 2003 6:29 AM To: Tomcat Users List Subject: Re: crontab problems Right, you might also just put JAVA_HOME=... at the beginning of your crontab. I assume you have good reasons to use a Java program to watch Tomcat. Personally, I would have written a shell script. If you really want to use Java, you might want to use a different, more reliable approach to detect (un)availability of Tomcat, something like import java.net.*; URL url = new URL( http://localhost:8080/examples; ); URLConnection con = url.openConnection(); con.setUseCaches( false ); con.connect(); if( con.getContentLength() 0 ) { // restart tomcat } But I just wrote this out of my head ... - Original Message - From: Ralph Einfeldt [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Tuesday, February 25, 2003 10:43 AM Subject: RE: crontab problems You have to make shure that your script retstart_tomcat sets and exports all needed environment variables before calling ./startup.sh: JAVA_HOME=/usr/local/java/jdk1.3.1 CATALINA_HOME=path to tomcat installation CATALINA_BASE=path to tomcat instance or $CATALINA_HOME # JAVA_OPTS='-client -v' export JAVA_HOME CATALINA_HOME CATALINA_BASE JAVA_OPTS ./startup.sh -Original Message- From: Ayhan Peker [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 25, 2003 10:30 AM To: [EMAIL PROTECTED] Subject: crontab problems but the last two lines returns / The JAVA_HOME environment variable is not defined message.. / my retstart_tomcat scrip is #!/bin/sh cd /usr/local/tomcat/bin ./startup.sh - 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: running servlet on Tomcat
This is a FAQ. By default, the Invoker servlet is disabled for everything but the /examples webapp for security reasons. It really shouldn't be enabled for the /examples webapp, either, but I'm sure that's a low priority for the dev team. If you want your servlet to be available, you need to either: - enable the Invoker servlet (not recommended) - explicitly map your servlet in web.xml using servlet and servlet-mapping elements: servlet servlet-nameMyServlet/servlet-name servlet-classcom.myApp.MyServlet/servlet-class /servlet servlet-mapping servlet-nameMyServlet/servlet-name url-pattern/MyServlet/url-pattern /servlet-mapping Check the docs, check the release notes for more info. John -Original Message- From: Tan van Nguyen [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 25, 2003 5:05 AM To: [EMAIL PROTECTED] Subject: running servlet on Tomcat Hi, I have a problem about running servlet in Tomcat. My system information: Apache Tomcat v4.1.18 Java 2 SDK 1.3.1_07 The problem is that I can't run my servlet program placed in ROOT/WEB-INF/classes directory with the url: http://localhost:8080/servlet/Myprogram I have done everything and read a lot of documentation, but still the same error appear: The 404 Error:The requested resource (/servlet/Myprogram) is not available. But when I place my program source and class files in the webapps/examples/WEB-INF/classes directory, it ran properly.. It seems like something wrong with the classloader.. I really appriciate your reply! Thanks in advance! - Tan Nguyen - - 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: how to access the server from another computer
And if you want to access that URL using a FQDN instead of an IP address, you'll need to register a domain name and have somebody do DNS for you, or use one of the dynamic DNS services. In addition, you will need to modify server.xml to setup the correct virtual host instead of localhost. John -Original Message- From: Peng Tuck Kwok [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 25, 2003 4:00 AM To: Tomcat Users List Subject: Re: how to access the server from another computer You need a public ip for that machine you are running tomcat on. So after you have got the public ip (assuming everything is setup properly) the url can be accessed at http://[ip that you just got]:8081/index.jsp You can change the port of tomcat to 80 (assuming nothing else is on 80)so you can do just this : http://[ip ]/index.jsp Sony Ho wrote: Hello, As simple as the subject goes, I've recently installed Tomcat4 on my windows2000 professional. I've able to access the Apache Tomcat Welcome page from http://localhost:8081/index.jsp My question is, how to access that same page from another computer connecting to internet?? Best Regards, Sony _ STOP MORE SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail - 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: crontab problems
Yes, Tomcat is generally very stable. But: Trust, but verify. ;) John -Original Message- From: Hannes Schmidt [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 25, 2003 9:23 AM To: Tomcat Users List Subject: Re: crontab problems Yes, using wget is probably the second best solution. The best one is to find the reason why Tomcat crashes at all, since it generally is a stable and reliable product. Cron doesn't execute more than once a minute (at least mine doesn't) which still is quite often. 5 or 10 minutes would be ok too. But that's a matter of taste, really. - Original Message - From: Turner, John [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Tuesday, February 25, 2003 3:00 PM Subject: RE: crontab problems Agreed...using a Java program to watch Tomcat seems a little circular. Plus, I don't see any sort of delay or sleep in the poster's JAva code...it looks like it just keeps hammering at Tomcat, as the cron job is * * * * *. Creating all those Runtime objects over and over can't be helping performance any. A simple shell script using wget would be fine...sure, you can watch the output of ps -ef, but that doesn't tell you if Tomcat is accepting requests or not. There could be an entry for Tomcat in the process table, but Tomcat could be refusing requests. I just write a simple JSP page that outputs the contents of a variable, like ***SUCCESS*** or something like that, then use wget to grab that page every so often and check for the string in the output...if it's there, things should be OK (there are no guarantees). If it's not, you have a problem. This way, the JSP page is compiled and cached by Tomcat, it uses very little memory, and doesn't bog down the server. There are plenty of other alternatives much more robust than a simple shell script...you could use Netsaint/Nagios, Big Brother, and a whole bunch of others. John -Original Message- From: Hannes Schmidt [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 25, 2003 6:29 AM To: Tomcat Users List Subject: Re: crontab problems Right, you might also just put JAVA_HOME=... at the beginning of your crontab. I assume you have good reasons to use a Java program to watch Tomcat. Personally, I would have written a shell script. If you really want to use Java, you might want to use a different, more reliable approach to detect (un)availability of Tomcat, something like import java.net.*; URL url = new URL( http://localhost:8080/examples; ); URLConnection con = url.openConnection(); con.setUseCaches( false ); con.connect(); if( con.getContentLength() 0 ) { // restart tomcat } But I just wrote this out of my head ... - Original Message - From: Ralph Einfeldt [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Tuesday, February 25, 2003 10:43 AM Subject: RE: crontab problems You have to make shure that your script retstart_tomcat sets and exports all needed environment variables before calling ./startup.sh: JAVA_HOME=/usr/local/java/jdk1.3.1 CATALINA_HOME=path to tomcat installation CATALINA_BASE=path to tomcat instance or $CATALINA_HOME # JAVA_OPTS='-client -v' export JAVA_HOME CATALINA_HOME CATALINA_BASE JAVA_OPTS ./startup.sh -Original Message- From: Ayhan Peker [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 25, 2003 10:30 AM To: [EMAIL PROTECTED] Subject: crontab problems but the last two lines returns / The JAVA_HOME environment variable is not defined message.. / my retstart_tomcat scrip is #!/bin/sh cd /usr/local/tomcat/bin ./startup.sh - 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: How to verify SSL/HTTPS behind Tomcat via AJP13
Nope. I think there are some SSL-specific Request variables that are sent along with a SSL request, you could always Enum through the list and look for them, but that is just as kludgy. The problem is that behind a connector like JK or JK2, there is no HTTP, and there is no HTTPS. The protocol being used is JK/JK2 (AJP13/14), so the only resources available to a developer at that point are the things that get sent along with typical requests. John -Original Message- From: Ian Hunter [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 25, 2003 9:31 AM To: Tomcat Users List Subject: Re: How to verify SSL/HTTPS behind Tomcat via AJP13 I've fallen back to seeing if getRequestURL().toString().startsWith(https) -- that seems pretty kludgy. Any other ideas? - Original Message - From: Turner, John [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Tuesday, February 25, 2003 8:41 AM Subject: RE: How to verify SSL/HTTPS behind Tomcat via AJP13 The return from getProtocol() is correct, AFAIK. I don't believe there is a HTTPS/1.1 or similar, but I could be wrong. By check protocol type in the docs (agreed, it is unclear), I believe it means to do one (or all) of the following: - check the URL for https - check the port number for the request - use HttpServletRequest.isSecure(), though I think that will return false when you use Tomcat via a connector with ApacheI've never tried it to be sure. John -Original Message- From: Ian Hunter [mailto:[EMAIL PROTECTED] Sent: Monday, February 24, 2003 9:26 PM To: Tomcat Users List Subject: How to verify SSL/HTTPS behind Tomcat via AJP13 From http://jakarta.apache.org/tomcat/tomcat-4.1-doc/ssl-howto.html -- Any pages which absolutely require a secure connection should check the protocol type associated with the page request and take the appropriate action of https is not specified. Also, When running Tomcat primarily as a Servlet/JSP container behind another web server, such as Apache or Microsoft IIS, it is usually necessary to configure the primary web server to handle the SSL connections from users. Typically, this server will negotiate all SSL-related functionality, then pass on any requests destined for the Tomcat container only after decrypting those requests. Likewise, Tomcat will return cleartext responses, that will be encrypted before being returned to the user's browser. In this environment, Tomcat knows that communications between the primary web server and the client are taking place over a secure connection (because your application needs to be able to ask about this), but it does not participate in the encryption or decryption itself. However, when I check request.getProtocol() I get HTTP/.1.1 even when I'm connecting via SSL (url shows https: and browser shows lock and confirms 128 bit SSL) -- what gives? - 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: running servlet on Tomcat
There isn't one, though there are a couple in the works and due soon. My point was that the topic comes up just about every day. Even without searching the list archives, being a member on the list for a day or two and reading the traffic (always a good thing to do when joining) would see this topic come up and get answered. If the Invoker servlet is enabled, you can use a specially-crafted URL to get the source of JSP pages. Maybe in some cases this is no big deal, but in some cases it can be a huge deal, as in a scenario where someone puts usernames, passwords, and connection URLs into their JSP source. In general, any exploit that allows the viewing of source in raw form, whether or not that source has anything valuable in it, is considered a security flaw that needs to be fixed. This is true regardless of the technology used: ASP, JSP, PHP, Cold Fusion, whatever. John -Original Message- From: Steve Guo [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 25, 2003 9:56 AM To: Tomcat Users List Subject: RE: running servlet on Tomcat I do not fully understand why they disable the servlet invoker by default. In general, Tomcat is used for learning purpose. Having to modify web.xml for each webapp seems a lot of work. You refered to FAQ, but when I tried to get it from the list server, I got, FAQ - Frequently asked questions of the [EMAIL PROTECTED] list. None available. Where is the FAQ? Thanks, Steve Turner, John [EMAIL PROTECTED] wrote: This is a FAQ. By default, the Invoker servlet is disabled for everything but the /examples webapp for security reasons. It really shouldn't be enabled for the /examples webapp, either, but I'm sure that's a low priority for the dev team. If you want your servlet to be available, you need to either: - enable the Invoker servlet (not recommended) - explicitly map your servlet in web.xml using servlet and servlet-mapping elements: MyServlet com.myApp.MyServlet MyServlet /MyServlet Check the docs, check the release notes for more info. John -Original Message- From: Tan van Nguyen [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 25, 2003 5:05 AM To: [EMAIL PROTECTED] Subject: running servlet on Tomcat Hi, I have a problem about running servlet in Tomcat. My system information: Apache Tomcat v4.1.18 Java 2 SDK 1.3.1_07 The problem is that I can't run my servlet program placed in ROOT/WEB-INF/classes directory with the url: http://localhost:8080/servlet/Myprogram I have done everything and read a lot of documentation, but still the same error appear: The 404 Error:The requested resource (/servlet/Myprogram) is not available. But when I place my program source and class files in the webapps/examples/WEB-INF/classes directory, it ran properly.. It seems like something wrong with the classloader.. I really appriciate your reply! Thanks in advance! - Tan Nguyen - - 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] - Do you Yahoo!? Yahoo! Tax Center - forms, calculators, tips, and more - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: crontab problems
Well, if the JVM is crashed, how can a program or application written in Java help you manage Tomcat? That was the point. John -Original Message- From: Ayhan Peker [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 25, 2003 9:43 AM To: Tomcat Users List Subject: RE: crontab problems I have no problems with tomcat... But sometimes under heavy load jvm 1.4 crashes... see the links: Ok this is the bug: http://developer.java.sun.com/developer/bugParade/bugs/4779653.html unfortunately it is closed, affects 1.4.1 and will not apparently be fixed. It oiccurs in large apps under load.on Linux and Solaris ( and most likely Windows ) It is related to / a copy of the following bug which http://developer.java.sun.com/developer/bugParade/bugs/4724356.html what is the best suggestion? just trying to determine if tomcat is running.. if not i will restart it .. (jvm just crashed last saturday nightI did not know anything until the sunday evening).. At 09:29 AM 2/25/03 -0500, you wrote: Yes, Tomcat is generally very stable. But: Trust, but verify. ;) John -Original Message- From: Hannes Schmidt [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 25, 2003 9:23 AM To: Tomcat Users List Subject: Re: crontab problems Yes, using wget is probably the second best solution. The best one is to find the reason why Tomcat crashes at all, since it generally is a stable and reliable product. Cron doesn't execute more than once a minute (at least mine doesn't) which still is quite often. 5 or 10 minutes would be ok too. But that's a matter of taste, really. - Original Message - From: Turner, John [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Tuesday, February 25, 2003 3:00 PM Subject: RE: crontab problems Agreed...using a Java program to watch Tomcat seems a little circular. Plus, I don't see any sort of delay or sleep in the poster's JAva code...it looks like it just keeps hammering at Tomcat, as the cron job is * * * * *. Creating all those Runtime objects over and over can't be helping performance any. A simple shell script using wget would be fine...sure, you can watch the output of ps -ef, but that doesn't tell you if Tomcat is accepting requests or not. There could be an entry for Tomcat in the process table, but Tomcat could be refusing requests. I just write a simple JSP page that outputs the contents of a variable, like ***SUCCESS*** or something like that, then use wget to grab that page every so often and check for the string in the output...if it's there, things should be OK (there are no guarantees). If it's not, you have a problem. This way, the JSP page is compiled and cached by Tomcat, it uses very little memory, and doesn't bog down the server. There are plenty of other alternatives much more robust than a simple shell script...you could use Netsaint/Nagios, Big Brother, and a whole bunch of others. John -Original Message- From: Hannes Schmidt [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 25, 2003 6:29 AM To: Tomcat Users List Subject: Re: crontab problems Right, you might also just put JAVA_HOME=... at the beginning of your crontab. I assume you have good reasons to use a Java program to watch Tomcat. Personally, I would have written a shell script. If you really want to use Java, you might want to use a different, more reliable approach to detect (un)availability of Tomcat, something like import java.net.*; URL url = new URL( http://localhost:8080/examples; ); URLConnection con = url.openConnection(); con.setUseCaches( false ); con.connect(); if( con.getContentLength() 0 ) { // restart tomcat } But I just wrote this out of my head ... - Original Message - From: Ralph Einfeldt [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Tuesday, February 25, 2003 10:43 AM Subject: RE: crontab problems You have to make shure that your script retstart_tomcat sets and exports all needed environment variables before calling ./startup.sh: JAVA_HOME=/usr/local/java/jdk1.3.1 CATALINA_HOME=path to tomcat installation CATALINA_BASE=path to tomcat instance or $CATALINA_HOME # JAVA_OPTS='-client -v' export JAVA_HOME CATALINA_HOME CATALINA_BASE JAVA_OPTS ./startup.sh -Original Message- From: Ayhan Peker [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 25, 2003 10:30 AM To: [EMAIL PROTECTED] Subject: crontab problems but the last two lines returns
RE: running servlet on Tomcat
More content is coming!! :) :) John -Original Message- From: Tim Funk [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 25, 2003 10:11 AM To: Tomcat Users List Subject: Re: running servlet on Tomcat I have an unofficial FAQ here: http://mywebpages.comcast.net/funkman/ and http://tomcatfaq.sourceforge.net/ I haven't been 'advertising' it much yet since content is still kind of lite and organization is not the greatest. Your particular question is not there yet - but it is addressed in TOMCAT's readme. The disabling of /servlet/ by default is due to a security hole. -Tim Steve Guo wrote: I do not fully understand why they disable the servlet invoker by default. In general, Tomcat is used for learning purpose. Having to modify web.xml for each webapp seems a lot of work. You refered to FAQ, but when I tried to get it from the list server, I got, FAQ - Frequently asked questions of the [EMAIL PROTECTED] list. None available. Where is the FAQ? Thanks, Steve - 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: crontab problems
No, I guess that would work. It just seems to be needlessly complicated and resource intensive. You normally don't consider a program crashing as normal behavior. The point of a monitoring application is for it to NEVER crash, and continually check some other application. Think about itcron launches your program to see if Tomcat is started. Well, Tomcat isn't. That's a given, considering that the JVM just crashed. A circle. See? Your application is Tomcat, not the JVM. My point is that if you can successfully retrieve output from Tomcat, generated by either a servlet or a JSP, all is well. Tomcat is happy, the JVM is happy, all is well. If you can't, something is wrong, and you have to restart anyway. Seems simpler to me, but I guess there will always be different ways to do things. Heck, if this happens alot, you'd probably just be better off profiling your application, finding out WHY it happens (maybe something could be rewritten or re-architected to avoid triggering those bugs), and possibly just determining that a restart every other day or something is sufficient. In that case, just set up a cron job to run at 4 AM your time 3 times a week that restarts Tomcat, without even bothering to check status. The typcial goal for a monitoring application is to alert you that something is wrong...not to treat something that goes wrong as a normal event. John -Original Message- From: Ayhan Peker [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 25, 2003 12:06 PM To: Tomcat Users List Subject: RE: crontab problems Am I right to think that if jvm crashes...Once writing to core file is finished, jvm can be restarted..(that is what we have been doing--jvm crashes, of course tomcat too) AND crontab say 5 min later..launches this java programme, which will restart tomcat..this is not a thread..just a java programme...that is the reason I am trying to launch it from crontab... When jvm crashes it writes its report..and goes away from the memory..You can still launch a java programme after this crash (like launching tomcat again after the crash).. .. --tomcat running --jvm crashes.. --crontab launches my watcher (written in java) --my application checks if tomcat is running...and restarts is necessary.. --if my programme is running at the time of crash..my programme crashes too...but 5 min later my programme is activated by crontab again.. Am I missing something here? Take care.. Ayhan At 10:12 AM 2/25/03 -0500, you wrote: Well, if the JVM is crashed, how can a program or application written in Java help you manage Tomcat? That was the point. John -Original Message- From: Ayhan Peker [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 25, 2003 9:43 AM To: Tomcat Users List Subject: RE: crontab problems I have no problems with tomcat... But sometimes under heavy load jvm 1.4 crashes... see the links: Ok this is the bug: http://developer.java.sun.com/developer/bugParade/bugs/4779653.html unfortunately it is closed, affects 1.4.1 and will not apparently be fixed. It oiccurs in large apps under load.on Linux and Solaris ( and most likely Windows ) It is related to / a copy of the following bug which http://developer.java.sun.com/developer/bugParade/bugs/4724356.html what is the best suggestion? just trying to determine if tomcat is running.. if not i will restart it .. (jvm just crashed last saturday nightI did not know anything until the sunday evening).. At 09:29 AM 2/25/03 -0500, you wrote: Yes, Tomcat is generally very stable. But: Trust, but verify. ;) John -Original Message- From: Hannes Schmidt [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 25, 2003 9:23 AM To: Tomcat Users List Subject: Re: crontab problems Yes, using wget is probably the second best solution. The best one is to find the reason why Tomcat crashes at all, since it generally is a stable and reliable product. Cron doesn't execute more than once a minute (at least mine doesn't) which still is quite often. 5 or 10 minutes would be ok too. But that's a matter of taste, really. - Original Message - From: Turner, John [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Tuesday, February 25, 2003 3:00 PM Subject: RE: crontab problems Agreed...using a Java program to watch Tomcat seems a little circular. Plus, I don't see any sort of delay or sleep in the poster's JAva code...it looks like it just keeps hammering at Tomcat, as the cron job is * * * * *. Creating all those Runtime objects over and over can't be helping performance any. A simple shell script using wget would be fine...sure
RE: Need to create two lists and add remove data between them.... ?
This is a Javascript question. http://www.google.com/search?hl=enie=UTF-8oe=UTF-8q=javascript+multiple+s elect+list John -Original Message- From: Mufaddal Khumri [mailto:[EMAIL PROTECTED] Sent: Monday, February 24, 2003 11:52 PM To: Tomcat List Subject: Need to create two lists and add remove data between them ? Hi, I have a JSP page on which i need to create two lists side by side and have two buttons between them - Add and Remove. I have other stuff on the same JSP page as well. like text boxes, check boxes etc. How do I get my add and remove buttons to work so that i can capture a mouse click on add to transfer the selected item from list1 to list2 ? (the same for the remove button .. remove a selected item from list2 and add it back to list1). Does anybody know how to solve this problem ? Sample code would be highly appreciated to. Thanks, Mufaddal. - 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: Need to create two lists and add remove data between them.... ?
No. Buttons are form elements. To dynamically change form elements as a result of user action, you need client-side scripting, not server-side. Javascript. Or a Java applet that executes on the client. John -Original Message- From: Mufaddal Khumri [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 25, 2003 12:09 AM To: Tomcat Users List Subject: Re: Need to create two lists and add remove data between them ? Is there a way to do this with using just java and html and not use Java Script ? On Tuesday, February 25, 2003, at 10:58 PM, Turner, John wrote: This is a Javascript question. http://www.google.com/search?hl=enie=UTF-8oe=UTF- 8q=javascript+multiple+s elect+list John -Original Message- From: Mufaddal Khumri [mailto:[EMAIL PROTECTED] Sent: Monday, February 24, 2003 11:52 PM To: Tomcat List Subject: Need to create two lists and add remove data between them ? Hi, I have a JSP page on which i need to create two lists side by side and have two buttons between them - Add and Remove. I have other stuff on the same JSP page as well. like text boxes, check boxes etc. How do I get my add and remove buttons to work so that i can capture a mouse click on add to transfer the selected item from list1 to list2 ? (the same for the remove button .. remove a selected item from list2 and add it back to list1). Does anybody know how to solve this problem ? Sample code would be highly appreciated to. Thanks, Mufaddal. - 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: Script for checking remote server
It wouldn't matter...if Apache is down, the entire application is down. John -Original Message- From: Ron Day [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 25, 2003 2:09 PM To: Tomcat Users List Subject: RE: Script for checking remote server Will you get a jsp if Apache is down ?? -Original Message- From: Mike Jackson [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 25, 2003 1:07 PM To: Tomcat Users List Subject: RE: Script for checking remote server I use a script that uses wget to retrieve pages from the server. If I can't get a jsp I know that tomcat is down, if I can't get an html I know apache is down. I'll post something in a bit. --mikej -=- mike jackson [EMAIL PROTECTED] -Original Message- From: tomcat guy [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 25, 2003 11:06 AM To: Tomcat Users List Subject: Script for checking remote server What does everyone use to check the status of a remote server? I am needing a script (or what have you) that will validate that my Tomcat server is up and running on timed intervals. If the server is down, I need to post to a web page that sends either (or both) an email a msg to my cell phone (think I have this part figured out). Anyone care to share some code? Or offer some ideas? It would be very much appreciated! Thanks, Chris - 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: Script for checking remote server
Monitoring the process table with ps doesn't tell you if your application is available. It just tells you if the OS thinks your application (Tomcat) is running. To remotely monitor/test a web application, your monitor application must make a full HTTP/HTTPS request and check the content returned as the response for an indicator that all is well. Anything else is false security. John -Original Message- From: Ron Day [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 25, 2003 2:07 PM To: Tomcat Users List Subject: RE: Script for checking remote server Use java code very similar to that in the recent post by Hannes Schmidt (see Tues 02/25/2003:5.29AM) I run something like this out of a thread that I initiate in the init method of my main servlet. It can call a java class to send email or whatever. ron -Original Message- From: tomcat guy [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 25, 2003 1:06 PM To: Tomcat Users List Subject: Script for checking remote server What does everyone use to check the status of a remote server? I am needing a script (or what have you) that will validate that my Tomcat server is up and running on timed intervals. If the server is down, I need to post to a web page that sends either (or both) an email a msg to my cell phone (think I have this part figured out). Anyone care to share some code? Or offer some ideas? It would be very much appreciated! Thanks, Chris - 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: The classical problem: Tomcat with Apache
Complete HOWTO, step by step: http://www.johnturner.com/howto John -Original Message- From: Victor Gonzalez [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 25, 2003 1:49 PM To: 'Tomcat Users List' Subject: The classical problem: Tomcat with Apache Importance: High Hi, I will believe I am dummy! Because I check different methods to implement it but never I can do! Well, I have the versions: Apache 2.0.44 and Tomcat 4.1.18 (both for Windows) in the same machine. Well, I need to know the module or dll to download (please, the link too) and how is it configure (please, step by step). Tnks so much!!! Regards Victor Gonzalez ** - 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: crontab problems
regularly by cron but once when the system starts (aka. init script). Aside from that, your primary goal should be to get rid of the crash. Ever tried downgrading to a 1.3 JDK? - Original Message - From: Turner, John [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Tuesday, February 25, 2003 6:16 PM Subject: RE: crontab problems No, I guess that would work. It just seems to be needlessly complicated and resource intensive. You normally don't consider a program crashing as normal behavior. The point of a monitoring application is for it to NEVER crash, and continually check some other application. Think about itcron launches your program to see if Tomcat is started. Well, Tomcat isn't. That's a given, considering that the JVM just crashed. A circle. See? Your application is Tomcat, not the JVM. My point is that if you can successfully retrieve output from Tomcat, generated by either a servlet or a JSP, all is well. Tomcat is happy, the JVM is happy, all is well. If you can't, something is wrong, and you have to restart anyway. Seems simpler to me, but I guess there will always be different ways to do things. Heck, if this happens alot, you'd probably just be better off profiling your application, finding out WHY it happens (maybe something could be rewritten or re-architected to avoid triggering those bugs), and possibly just determining that a restart every other day or something is sufficient. In that case, just set up a cron job to run at 4 AM your time 3 times a week that restarts Tomcat, without even bothering to check status. The typcial goal for a monitoring application is to alert you that something is wrong...not to treat something that goes wrong as a normal event. John -Original Message- From: Ayhan Peker [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 25, 2003 12:06 PM To: Tomcat Users List Subject: RE: crontab problems Am I right to think that if jvm crashes...Once writing to core file is finished, jvm can be restarted..(that is what we have been doing--jvm crashes, of course tomcat too) AND crontab say 5 min later..launches this java programme, which will restart tomcat..this is not a thread..just a java programme...that is the reason I am trying to launch it from crontab... When jvm crashes it writes its report..and goes away from the memory..You can still launch a java programme after this crash (like launching tomcat again after the crash).. .. --tomcat running --jvm crashes.. --crontab launches my watcher (written in java) --my application checks if tomcat is running...and restarts is necessary.. --if my programme is running at the time of crash..my programme crashes too...but 5 min later my programme is activated by crontab again.. Am I missing something here? Take care.. Ayhan At 10:12 AM 2/25/03 -0500, you wrote: Well, if the JVM is crashed, how can a program or application written in Java help you manage Tomcat? That was the point. John -Original Message- From: Ayhan Peker [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 25, 2003 9:43 AM To: Tomcat Users List Subject: RE: crontab problems I have no problems with tomcat... But sometimes under heavy load jvm 1.4 crashes... see the links: Ok this is the bug: http://developer.java.sun.com/developer/bugParade/bugs/4779653.html unfortunately it is closed, affects 1.4.1 and will not apparently be fixed. It oiccurs in large apps under load.on Linux and Solaris ( and most likely Windows ) It is related to / a copy of the following bug which http://developer.java.sun.com/developer/bugParade/bugs/4724356.html what is the best suggestion? just trying to determine if tomcat is running.. if not i will restart it .. (jvm just crashed last saturday nightI did not know anything until the sunday evening).. At 09:29 AM 2/25/03 -0500, you wrote: Yes, Tomcat is generally very stable. But: Trust, but verify. ;) John -Original Message- From: Hannes Schmidt [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 25, 2003 9:23 AM To: Tomcat Users List Subject: Re: crontab problems Yes, using wget is probably the second best solution. The best one is to find the reason why Tomcat crashes at all, since it generally is a stable and reliable product. Cron doesn't execute more than
RE: crontab problems
Well, to be paranoid, it would have to be on a remote machine. If it wasn't, a network outage would take your app down, but your monitor would keep right on merrily testing your web app. If you can't use a remote machine, then you have to get creative with your JSP, and have it make a connection to the world and look for an external website (Yahoo, Google, whatever). A dirty test would be a ping, but pings are unreliable because of firewalls and other restrictions that might be in the way. Even then its only a test of OUTBOUND network access, not INBOUND, which is what the users do. I have one machine that is my monitor. It's also my MRTG host, my web log processor, and other batch-type processing server. Any PC capable of running Linux will do. It monitors all my servers, and I have it setup so that it creates a single status page that I can reach via HTTP, in addition to sending out alerts. Truly paranoid is a separate monitoring server on a network completely distinct from your application's network (like across the country), and with a dial-out POTS line and a modem to use for sending pager alerts. You can also contract with third-party monitoring services, but my experience with those is that they irritate server admins like myself pretty quickly, as they always tend to err on the side of alert, which means the slightest delay (like net congestion out of your control) in getting a response triggers an alert, which in turn means lots of flapping, where the admin gets up/down alerts repeatedly, even though there is nothing wrong. John -Original Message- From: Oscar Carrillo [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 25, 2003 4:00 AM To: Tomcat Users List Subject: RE: crontab problems Good points. Where would you suggest putting this script? On the machine itself, or on another machine that has to get to it through the internet? I think this is a great idea for many widely deployed application. Oscar On Tue, 25 Feb 2003, Turner, John wrote: Sorry to be pedantic, but that example doesn't do anything at all. I think first that you would want ContentLength() to be less than or equal to zero, and even then it doesn't test the availability of your app, because a 404 or 500 Internal Server error will have a content length greater than zero and be a valid answer to the request as far as the monitor is concerned. If your app uses a database, and you want to monitor that your app is up, you must create a JSP page that queries a database for a known value, and either returns that value as the response (preferred) or determines if the value is correct and instead returns the value of a constant as the response, such as a string like SUCCESS or OK or APP UP or something else. The monitor must then check for that value. Anything else is not a test of your web app, and even then it is only a partial test, since a true test would be to emulate a user session exactly with some sort of robot script. If your web app does not use a database or other remote data source, you can get away with a servlet or JSP that does something like: html head titleAPP Monitor/title /head body % String myMonitor = SUCCESS; out.println(myMonitor); % /body /html Then your monitor needs to determine if the contents of the response contain SUCCESS or not. If yes, everything is OK. If not, something is wrong. John -Original Message- From: Hannes Schmidt [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 25, 2003 3:06 PM To: Tomcat Users List Subject: Re: crontab problems Would you expand on option 2. A Java thread is a sequence of execution of Java bytecode on a JVM. Obviously, there can be multiple threads per JVM. A JVM is a native operating system process interpreting (sometimes compiling on the fly) the bytecode of at least one Java thread. Since there can be multiple processes per machine, there can be multiple JVMs per machine. Ideally, these JVMs are completely separated, at least their address space (memory) is. Sometimes an operating system provides native threads. These are threads of execution of machine instructions on the real machine. There can be multiple native threads per native process. Thus, it is possible to map native threads to Java threads: the JVM process contains multiple real threads, each executing one thread of bytecode. I don't think the Sun's JVM does that, but I'm not sure. You just have to make sure that the monitoring thread is not executed inside the same JVM that runs the application to be monitored. Why is this a thread rather than a java app that is started on system startup ? Option 2 IS a Java application. It consists of a single Java thread (the one running the main() method
RE: Script for checking remote server
Try Big Brother...not too easy to setup, though. Or write an ASP page to do this...ASP has an HTTP client object that will accept the contents of a response, which you can then interrogate for a particular value and take particular action. Lots of options, just think outside the bun. John -Original Message- From: tomcat guy [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 25, 2003 3:45 PM To: Tomcat Users List Subject: Re: Script for checking remote server Whoops... I forgot to mention the machine checking the remote server is my roommates Win2k box! Any chance someone would have some code for that? I keep saying I'll learn Linux (not a big fan of Bill) but that darm problem with the Earth's rotation staying at a measly 24 hours/day is killin me! - Original Message - From: Mike Jackson [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Tuesday, February 25, 2003 1:12 PM Subject: RE: Script for checking remote server Ok, I've got an example, I cut out ip's and the SendMsg function, but you ought to be able to figure out where to go from here. Also it doesn't check tomcat via wget of a jsp, it does a rsh and checks for the process. This doesn't help if tomcat is hung up, but that hasn't been much of a problem as of yet. #!/bin/sh while [ true ] do # check the router first if [ $RTN -ne 0 ]; then if [ ! -f message.${ROUTER} ]; then SendMsg Something is wrong with ${ROUTER} ${ROUTER} fi sleep 60 continue elif [ -f message.${ROUTER} ]; then SendMsg ${ROUTER} is ok now ${ROUTER} REMOVE fi # Check the server(s), shouldn't do this if the router is down, but we'll set that up later for SERVER in real-ls-server real-ls-ctmc do LOOP=0 while [ $LOOP -lt 6 ] do #snmpstat -S $SERVER public /dev/null 21 ping $SERVER /dev/null 21 RTN=$? if [ $RTN = 0 ]; then break elif [ ! -f message.$SERVER -a $LOOP -gt 0 ]; then #echo ERROR: snmpstat failed on $SERVER ($LOOP) - `date` echo ERROR: ping failed on $SERVER ($LOOP) - `date` fi LOOP=`expr $LOOP + 1` #sleep 10 done # Check apache. LOOP=0 while [ $LOOP -lt 6 ] do wget http://$SERVER/ /dev/null 21 RTN=$? if [ $RTN = 0 ]; then break elif [ ! -f message.$SERVER.httpd -a $LOOP -gt 0 ]; then echo ERROR: wget failed on $SERVER ($LOOP) - `date` fi LOOP=`expr $LOOP + 1` sleep 10 done if [ $RTN -ne 0 ]; then # Sleep an extra 60 seconds if server just came back up if [ -f WAIT.$SERVER ]; then rm WAIT.$SERVER continue fi if [ ! -f message.$SERVER.httpd ]; then SendMsg Something is wrong with HTTPD on $SERVER $SERVER.httpd fi elif [ -f message.$SERVER.httpd ]; then SendMsg HTTPD on $SERVER is ok now $SERVER.httpd REMOVE fi rm index.html* 2 /dev/null rm WAIT.$SERVER 2 /dev/null # Check tomcat. CNT=`rsh $SERVER psfind tomcat |grep native_threads |wc -l` if [ $? = 0 ]; then if [ $CNT = 0 ]; then if [ ! -f message.$SERVER.tomcat -a ! -f message.$SERVER.httpd ]; then SendMsg Something is wrong with TOMCAT on $SERVER $SERVER.tomcat fi elif [ -f message.$SERVER.tomcat ]; then SendMsg TOMCAT on $SERVER is ok now $SERVER.tomcat REMOVE fi fi done sleep 60 done --mikej -=- mike jackson [EMAIL PROTECTED] -Original Message- From: tomcat guy [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 25, 2003 11:06 AM To: Tomcat Users List Subject: Script for checking remote server What does everyone use to check the status of a remote server? I am needing a script (or what have you) that will validate that my Tomcat server is up and running on timed intervals. If the server is down, I need to post to a web page that sends either (or both) an email a msg to my cell phone (think I have this part figured out). Anyone care to share some code? Or offer some ideas? It would be very much appreciated! Thanks, Chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Script for checking remote server
I don't think so...the last example I saw was making system calls to ps and looking for a particular entry in the process table, and the other one I saw was just checking to see if a response came back (a 404 or 500 or other error is a valid response but not the one you want). That doesn't do anything. Perhaps I missed another example that was posted. John -Original Message- From: Ron Day [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 25, 2003 3:37 PM To: Tomcat Users List Subject: RE: Script for checking remote server I assume you are agreeing with me, and Hannes ? -Original Message- From: Turner, John [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 25, 2003 1:59 PM To: 'Tomcat Users List' Subject: RE: Script for checking remote server Monitoring the process table with ps doesn't tell you if your application is available. It just tells you if the OS thinks your application (Tomcat) is running. To remotely monitor/test a web application, your monitor application must make a full HTTP/HTTPS request and check the content returned as the response for an indicator that all is well. Anything else is false security. John -Original Message- From: Ron Day [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 25, 2003 2:07 PM To: Tomcat Users List Subject: RE: Script for checking remote server Use java code very similar to that in the recent post by Hannes Schmidt (see Tues 02/25/2003:5.29AM) I run something like this out of a thread that I initiate in the init method of my main servlet. It can call a java class to send email or whatever. ron -Original Message- From: tomcat guy [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 25, 2003 1:06 PM To: Tomcat Users List Subject: Script for checking remote server What does everyone use to check the status of a remote server? I am needing a script (or what have you) that will validate that my Tomcat server is up and running on timed intervals. If the server is down, I need to post to a web page that sends either (or both) an email a msg to my cell phone (think I have this part figured out). Anyone care to share some code? Or offer some ideas? It would be very much appreciated! Thanks, Chris - 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: Script for checking remote server
Can you run scripts in Cygwin without being logged in? I didn't think so, but I am not that familiar with Cygwin, I only use it to run XWin -query hostname. ;) John -Original Message- From: Oscar Carrillo [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 25, 2003 4:11 AM To: Tomcat Users List Subject: Re: Script for checking remote server You could install cygwin. Then you can run this script, and get to learn a few common Linux tools too :-) Oscar On Tue, 25 Feb 2003, tomcat guy wrote: Whoops... I forgot to mention the machine checking the remote server is my roommates Win2k box! Any chance someone would have some code for that? I keep saying I'll learn Linux (not a big fan of Bill) but that darm problem with the Earth's rotation staying at a measly 24 hours/day is killin me! - Original Message - From: Mike Jackson [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Tuesday, February 25, 2003 1:12 PM Subject: RE: Script for checking remote server Ok, I've got an example, I cut out ip's and the SendMsg function, but you ought to be able to figure out where to go from here. Also it doesn't check tomcat via wget of a jsp, it does a rsh and checks for the process. This doesn't help if tomcat is hung up, but that hasn't been much of a problem as of yet. #!/bin/sh while [ true ] do # check the router first if [ $RTN -ne 0 ]; then if [ ! -f message.${ROUTER} ]; then SendMsg Something is wrong with ${ROUTER} ${ROUTER} fi sleep 60 continue elif [ -f message.${ROUTER} ]; then SendMsg ${ROUTER} is ok now ${ROUTER} REMOVE fi # Check the server(s), shouldn't do this if the router is down, but we'll set that up later for SERVER in real-ls-server real-ls-ctmc do LOOP=0 while [ $LOOP -lt 6 ] do #snmpstat -S $SERVER public /dev/null 21 ping $SERVER /dev/null 21 RTN=$? if [ $RTN = 0 ]; then break elif [ ! -f message.$SERVER -a $LOOP -gt 0 ]; then #echo ERROR: snmpstat failed on $SERVER ($LOOP) - `date` echo ERROR: ping failed on $SERVER ($LOOP) - `date` fi LOOP=`expr $LOOP + 1` #sleep 10 done # Check apache. LOOP=0 while [ $LOOP -lt 6 ] do wget http://$SERVER/ /dev/null 21 RTN=$? if [ $RTN = 0 ]; then break elif [ ! -f message.$SERVER.httpd -a $LOOP -gt 0 ]; then echo ERROR: wget failed on $SERVER ($LOOP) - `date` fi LOOP=`expr $LOOP + 1` sleep 10 done if [ $RTN -ne 0 ]; then # Sleep an extra 60 seconds if server just came back up if [ -f WAIT.$SERVER ]; then rm WAIT.$SERVER continue fi if [ ! -f message.$SERVER.httpd ]; then SendMsg Something is wrong with HTTPD on $SERVER $SERVER.httpd fi elif [ -f message.$SERVER.httpd ]; then SendMsg HTTPD on $SERVER is ok now $SERVER.httpd REMOVE fi rm index.html* 2 /dev/null rm WAIT.$SERVER 2 /dev/null # Check tomcat. CNT=`rsh $SERVER psfind tomcat |grep native_threads |wc -l` if [ $? = 0 ]; then if [ $CNT = 0 ]; then if [ ! -f message.$SERVER.tomcat -a ! -f message.$SERVER.httpd ]; then SendMsg Something is wrong with TOMCAT on $SERVER $SERVER.tomcat fi elif [ -f message.$SERVER.tomcat ]; then SendMsg TOMCAT on $SERVER is ok now $SERVER.tomcat REMOVE fi fi done sleep 60 done --mikej -=- mike jackson [EMAIL PROTECTED] -Original Message- From: tomcat guy [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 25, 2003 11:06 AM To: Tomcat Users List Subject: Script for checking remote server What does everyone use to check the status of a remote server? I am needing a script (or what have you) that will validate that my Tomcat server is up and running on timed intervals. If the server is down, I need to post to a web page that sends either (or both) an email a msg to my cell phone (think I have this part figured out). Anyone care to share some code? Or offer some ideas? It would be very much appreciated! Thanks, Chris
RE: crontab problems
Still won't work. A 404, 500, or other error will have a content length greater than 0. That's bad. John -Original Message- From: Ron Day [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 25, 2003 3:43 PM To: Tomcat Users List Subject: RE: crontab problems Thanks , two questions... 1) Does the URL creation have to be inside the while loop ? 2) Shouldn't the if statement test be: (! con.getContentLength() 0) rather than (con.getContentLength() 0) Ron -Original Message- From: Hannes Schmidt [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 25, 2003 2:06 PM To: Tomcat Users List Subject: Re: crontab problems Would you expand on option 2. A Java thread is a sequence of execution of Java bytecode on a JVM. Obviously, there can be multiple threads per JVM. A JVM is a native operating system process interpreting (sometimes compiling on the fly) the bytecode of at least one Java thread. Since there can be multiple processes per machine, there can be multiple JVMs per machine. Ideally, these JVMs are completely separated, at least their address space (memory) is. Sometimes an operating system provides native threads. These are threads of execution of machine instructions on the real machine. There can be multiple native threads per native process. Thus, it is possible to map native threads to Java threads: the JVM process contains multiple real threads, each executing one thread of bytecode. I don't think the Sun's JVM does that, but I'm not sure. You just have to make sure that the monitoring thread is not executed inside the same JVM that runs the application to be monitored. Why is this a thread rather than a java app that is started on system startup ? Option 2 IS a Java application. It consists of a single Java thread (the one running the main() method). But it is started only once and it repeats internally - note the infinite while() loop. A cronjob is a Unix process that is repeated externally. I use the term externally, because it is started all over again periodically by an 'higher power', i.e. CRON. Cronjobs don't usually contain infinite loops. Whether to use internal or external repetition depends on the situation: external repetetion is more time consuming but it releases all resources, e.g. memory after each iteration. Internal repetition is fast but it blocks resources forever, basically. So if something needs to be executed once every minute I would strongly suggest internal repetition. If it needs to run once a day only, I would suggest external repetition. import java.net.*; public class Main { public void main( String[] args ) { while(true) { URL url = new URL( http://localhost:8080/examples; ); URLConnection con = url.openConnection(); con.setUseCaches( false ); con.connect(); if( con.getContentLength() 0 ) { // restart tomcat } // cleanup Thread.getCurrentThread().sleep( 100 ); // or so, I'm not sure } } } - Original Message - From: Ron Day [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Tuesday, February 25, 2003 8:00 PM Subject: RE: crontab problems Ron -Original Message- From: Hannes Schmidt [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 25, 2003 12:50 PM To: Tomcat Users List Subject: Re: crontab problems There's not a single JVM per machine. Even if the JVM running Tomcat inside it is crashed, it's prefectly ok to start another one testing for the existence or availability of Tomcat and/or a webapp. That will work. It's just that this solution is a little awkward. Let me summarize the alternatives: 1) A cronjob shell script using wget as John suggested. 2) A Java Thread running in a different UNIX process, i.e. JVM which repeatedly tests the webapp's availability like I suggested in my first posting. That thread runs in a loop and is NOT started regularly by cron but once when the system starts (aka. init script). Aside from that, your primary goal should be to get rid of the crash. Ever tried downgrading to a 1.3 JDK? - Original Message - From: Turner, John [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Tuesday, February 25, 2003 6:16 PM Subject: RE: crontab problems No, I guess that would work. It just seems to be needlessly complicated and resource intensive. You normally don't consider a program crashing as normal behavior. The point of a monitoring application is for it to NEVER crash, and continually check some other application. Think about itcron launches your program to see if Tomcat is started. Well, Tomcat isn't. That's a given
RE: Script for checking remote server
Cool. Thanks. John -Original Message- From: Oscar Carrillo [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 25, 2003 4:27 AM To: Tomcat Users List Subject: RE: Script for checking remote server I believe so. Found this example below of launching Apache by using cygwin as a service. Looks pretty straight-forward. Oscar --- Running Apache for Cygwin as a Service Apache on Cygwin can be invoked as a Windows NT or Windows 2000 service. Cygwin has its own cygrunsrv.exe facility to define, remove, start, and stop services as follows: * Installing Apache as a new Service Use the following statement to install httpd.exe as a new service: $ cygrunsrv -I service_name-p /usr/local/apache/bin/httpd.exe [-a arguments] \ [-e VAR=VALUE] [-t auto|manual] [-u user] [-w passwd] Where -a is used to pass command line arguments (such as -DFOO defines) to httpd.exe, and -e is used to pass environment variables. If necessary you may use the -t options to set the autostart configuration for the service. If you want the new service to run under a different userid, you will have to supply the -u and -w options. * Starting Apache as a Service After the new service is installed it can be started using the following command: $ cygrunsrv -S service_name Check your process table and global error_log file to ensure Apache has started without any major problems. On Tue, 25 Feb 2003, Turner, John wrote: Can you run scripts in Cygwin without being logged in? I didn't think so, but I am not that familiar with Cygwin, I only use it to run XWin -query hostname. ;) John -Original Message- From: Oscar Carrillo [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 25, 2003 4:11 AM To: Tomcat Users List Subject: Re: Script for checking remote server You could install cygwin. Then you can run this script, and get to learn a few common Linux tools too :-) Oscar On Tue, 25 Feb 2003, tomcat guy wrote: Whoops... I forgot to mention the machine checking the remote server is my roommates Win2k box! Any chance someone would have some code for that? I keep saying I'll learn Linux (not a big fan of Bill) but that darm problem with the Earth's rotation staying at a measly 24 hours/day is killin me! - Original Message - From: Mike Jackson [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Tuesday, February 25, 2003 1:12 PM Subject: RE: Script for checking remote server Ok, I've got an example, I cut out ip's and the SendMsg function, but you ought to be able to figure out where to go from here. Also it doesn't check tomcat via wget of a jsp, it does a rsh and checks for the process. This doesn't help if tomcat is hung up, but that hasn't been much of a problem as of yet. #!/bin/sh while [ true ] do # check the router first if [ $RTN -ne 0 ]; then if [ ! -f message.${ROUTER} ]; then SendMsg Something is wrong with ${ROUTER} ${ROUTER} fi sleep 60 continue elif [ -f message.${ROUTER} ]; then SendMsg ${ROUTER} is ok now ${ROUTER} REMOVE fi # Check the server(s), shouldn't do this if the router is down, but we'll set that up later for SERVER in real-ls-server real-ls-ctmc do LOOP=0 while [ $LOOP -lt 6 ] do #snmpstat -S $SERVER public /dev/null 21 ping $SERVER /dev/null 21 RTN=$? if [ $RTN = 0 ]; then break elif [ ! -f message.$SERVER -a $LOOP -gt 0 ]; then #echo ERROR: snmpstat failed on $SERVER ($LOOP) - `date` echo ERROR: ping failed on $SERVER ($LOOP) - `date` fi LOOP=`expr $LOOP + 1` #sleep 10 done # Check apache. LOOP=0 while [ $LOOP -lt 6 ] do wget http://$SERVER/ /dev/null 21 RTN=$? if [ $RTN = 0 ]; then break elif [ ! -f message.$SERVER.httpd -a $LOOP -gt 0 ]; then echo ERROR: wget failed on $SERVER ($LOOP) - `date` fi LOOP=`expr $LOOP + 1` sleep 10 done if [ $RTN -ne 0 ]; then # Sleep an extra 60 seconds if server just came back up if [ -f WAIT.$SERVER
RE: The classical problem: Tomcat with Apache
No problem, glad to help. John -Original Message- From: Victor Gonzalez [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 25, 2003 4:24 PM To: 'Tomcat Users List' Subject: RE: The classical problem: Tomcat with Apache Importance: High Tnks so much John, it was a headache for me! Victor Gonzalez *** -Original Message- From: Turner, John [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 25, 2003 2:01 PM To: 'Tomcat Users List' Subject: RE: The classical problem: Tomcat with Apache Complete HOWTO, step by step: http://www.johnturner.com/howto John -Original Message- From: Victor Gonzalez [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 25, 2003 1:49 PM To: 'Tomcat Users List' Subject: The classical problem: Tomcat with Apache Importance: High Hi, I will believe I am dummy! Because I check different methods to implement it but never I can do! Well, I have the versions: Apache 2.0.44 and Tomcat 4.1.18 (both for Windows) in the same machine. Well, I need to know the module or dll to download (please, the link too) and how is it configure (please, step by step). Tnks so much!!! Regards Victor Gonzalez ** - 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_jk-2.0.43.so
http://jakarta.apache.org/builds/jakarta-tomcat-connectors/ John -Original Message- From: Charles A Jordan [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 25, 2003 4:45 PM To: [EMAIL PROTECTED] Subject: mod_jk-2.0.43.so Exactly where do I get the mod_jk-2.0.43.so source? I've looked all over the jakarta site. Thanks Then, get the mod_jk2´s source and build it for your system, if the same error happen again tell us. -- De: Charles A Jordan[SMTP:[EMAIL PROTECTED] Responder:Tomcat Users List Enviada: terça-feira, 25 de fevereiro de 2003 17:50 Para: [EMAIL PROTECTED] Assunto: RE: Need help - jk2_init() Can't find child I tried this but I get the exact same results Try to use mod_jk-2.0.43.so -- De: Charles A Jordan[SMTP:[EMAIL PROTECTED] Responder:Tomcat Users List Enviada: terça-feira, 25 de fevereiro de 2003 17:26 Para: [EMAIL PROTECTED] Assunto: Need help - jk2_init() Can't find child I am using jakarta-tomcat-4.1.18, apache 2.0.44, on Solaris 9 using mod_jk2.so. tomcat starts with no errors but when I start apache I see the following in the error_log file: [Tue Feb 25 14:24:51 2003] [error] jk2_init() Can't find child 813 in scoreboard [Tue Feb 25 14:24:51 2003] [error] mod_jk child init 1 0 [Tue Feb 25 14:24:51 2003] [error] mod_jk child init 1 -2 [Tue Feb 25 14:24:51 2003] [error] jk2_init() Can't find child 815 in scoreboard [Tue Feb 25 14:24:51 2003] [error] mod_jk child init 1 -2 [Tue Feb 25 14:24:51 2003] [notice] Apache/2.0.44 (Unix) mod_jk2/2.0.3-dev confi gured -- resuming normal operations Any help would be appreciated. Thanks. Charles (Allen) Jordan [EMAIL PROTECTED] System Administrator(407)771-8919 Convergys 285 International Parkway, Lake Mary, FL 32746-5007 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Charles (Allen) Jordan [EMAIL PROTECTED] System Administrator(407)771-8919 Convergys 285 International Parkway, Lake Mary, FL 32746-5007 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Charles (Allen) Jordan [EMAIL PROTECTED] System Administrator(407)771-8919 Convergys 285 International Parkway, Lake Mary, FL 32746-5007 - 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: is there a tag or some kind of mechanism that would do the following ...
Use StringBuffer, not String. Then call StringBuffer.append() repeatedly. I think you might want to consider a different architecture, and a framework such as Struts. John -Original Message- From: Mufaddal Khumri [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 25, 2003 4:19 AM To: Tomcat Users List Subject: Re: is there a tag or some kind of mechanism that would do the following ... I could use a giant String being returned from some static method .. but the problem is that i would have to do the following: static String getString() { String str = html +title +ding dong bells +/title +body/body/html; return str; } In the above code i will have to type in the quotes and + signs everywhere since if the string gets too long it will all be on one line and the html code from a developer stand point would not be maintainable. Are there any other better ideas to do this ? Mufaddal. On Tuesday, February 25, 2003, at 01:57 PM, Mufaddal Khumri wrote: Hi, Many times we come across a lot of out.println( ... ) statements in our servlets: public class MyServlet extends { doPost( ... ) { . . out.println(html); out.println(title); out.println(ding dong bells); out.println(/title); out.println(body); out.println(/body); out.println(/html); .. } } I do know that if your code has more html .. its better to write a .jsp file instead of a servlet.java file There are some cases where this is unavoidable and I was wondering if there was a way to do something like below in a .java file: public class MyServlet extends { doPost( ... ) { . . Some kind of tag that signals to the compiler that whatever follows is to be out.println(... ) html title ding dong bells /title body /body /html /end of the signalling tag .. } } - 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_jk-2.0.43.so
Nope, that's it. Sorry, I wasn't following your thread, so I am not sure what is it that you are looking for, or what it is that is wrong with 2.0.2. John -Original Message- From: Charles A Jordan [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 25, 2003 4:55 PM To: [EMAIL PROTECTED] Subject: RE: mod_jk-2.0.43.so If this is jakarta-tomcat-connectors-jk2-2.0.2-src.tar.gz then I have already compiled and using this one. Am I looking at the wrong source? http://jakarta.apache.org/builds/jakarta-tomcat-connectors/ John -Original Message- From: Charles A Jordan [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 25, 2003 4:45 PM To: [EMAIL PROTECTED] Subject: mod_jk-2.0.43.so Exactly where do I get the mod_jk-2.0.43.so source? I've looked all over the jakarta site. Thanks Then, get the mod_jk2´s source and build it for your system, if the same error happen again tell us. -- De: Charles A Jordan[SMTP:[EMAIL PROTECTED] Responder:Tomcat Users List Enviada: terça-feira, 25 de fevereiro de 2003 17:50 Para: [EMAIL PROTECTED] Assunto: RE: Need help - jk2_init() Can't find child I tried this but I get the exact same results Try to use mod_jk-2.0.43.so -- De: Charles A Jordan[SMTP:[EMAIL PROTECTED] Responder:Tomcat Users List Enviada: terça-feira, 25 de fevereiro de 2003 17:26 Para: [EMAIL PROTECTED] Assunto: Need help - jk2_init() Can't find child I am using jakarta-tomcat-4.1.18, apache 2.0.44, on Solaris 9 using mod_jk2.so. tomcat starts with no errors but when I start apache I see the following in the error_log file: [Tue Feb 25 14:24:51 2003] [error] jk2_init() Can't find child 813 in scoreboard [Tue Feb 25 14:24:51 2003] [error] mod_jk child init 1 0 [Tue Feb 25 14:24:51 2003] [error] mod_jk child init 1 -2 [Tue Feb 25 14:24:51 2003] [error] jk2_init() Can't find child 815 in scoreboard [Tue Feb 25 14:24:51 2003] [error] mod_jk child init 1 -2 [Tue Feb 25 14:24:51 2003] [notice] Apache/2.0.44 (Unix) mod_jk2/2.0.3-dev confi gured -- resuming normal operations Any help would be appreciated. Thanks. Charles (Allen) Jordan [EMAIL PROTECTED] System Administrator(407)771-8919 Convergys 285 International Parkway, Lake Mary, FL 32746-5007 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Charles (Allen) Jordan [EMAIL PROTECTED] System Administrator(407)771-8919 Convergys 285 International Parkway, Lake Mary, FL 32746-5007 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Charles (Allen) Jordan [EMAIL PROTECTED] System Administrator(407)771-8919 Convergys 285 International Parkway, Lake Mary, FL 32746-5007 - 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] Charles (Allen) Jordan [EMAIL PROTECTED] System Administrator(407)771-8919 Convergys 285 International Parkway, Lake Mary, FL 32746-5007 - 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: Subject: RE: Tomcat 4.1.18-LE re-writes tomcat-users.xml file; why?
1. Tomcat-dev is the place for that discussion 2. Submit a patch 3. Solved John -Original Message- From: nord ehacedod [mailto:[EMAIL PROTECTED] Sent: Friday, February 21, 2003 10:21 PM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: Subject: RE: Tomcat 4.1.18-LE re-writes tomcat-users.xml file; why? Yoav is correct - you can create users in the Admin webapp. ...and you could use the Fullname field for your comments. So users should put comments into the Fullname attribute because the file must be writeable for the admin app even if you don't run the admin app? This is likely to depress instead of impress Tomcat users. We make few changes to the tomcat-users.xml file and do not run the admin webapp, so it is natural for us to want this file to be configured read-only. It is fairly easy to find the few lines of code in org.apache.catalina.user.MemoryUserDatabase which do the rewriting, comment them out, rename the class ReadOnlyMemoryUserDatabase, compile it, put it in server/lib/, and edit server.xml to use the fixed class. It would be nice to have a configurable option instead. -- nord __ Do you Yahoo!? Yahoo! Tax Center - forms, calculators, tips, more http://taxes.yahoo.com/ - 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 modules with Tomcat
My point was that changing the output of a servlet stream, from an architectural and portability standpoint, is probably more appropriate while Tomcat still has control over the output. I'm sure there are a number of ways to get what you want, some requiring more work, some requiring less. John -Original Message- From: Jordan Hayes [mailto:[EMAIL PROTECTED] Sent: Sunday, February 23, 2003 12:55 AM To: Tomcat Users List Subject: Re: Apache modules with Tomcat Have you considered Tomcat filters instead? ... except that the modules I want to use are already written? Sure: it's software. I could just write something new. I take it the answer is 'no' then? :-) /jordan - 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: Problem with Tomcat Apache running on Different IPs
I don't use JK2, so I cant answer #2 and #3. The answer to #1 is: No, it is not required to run Tomcat and Apache on the same IP address, as long as the relevant properties files for your chosen connector point to the IP address where Tomcat listens. Looking at your URL, it looks like the problems you are having in #1 are virtual host related. If you don't have an Apache VirtualHost for that IP address, and a corresponding connector config, and a corresponding Tomcat Host container, you will get an error. By default, Tomcat is only configured to listen for requests for http://localhost;. If you want anything different, you have to set it up. John -Original Message- From: Santos Jha [mailto:[EMAIL PROTECTED] Sent: Sunday, February 23, 2003 12:21 PM To: Tomcat Users List Subject: Problem with Tomcat Apache running on Different IPs Hello all, After successfully configuring mod_jk2 to enable communication in between Apache and tomcat, I have couple of questions. I will love to know the answers.: 1. With Ajp13 is it necessary to run tomcat apache on same IP? Here is the scenario: For me Apache is running of real IP(192.168.0.200) and tomcat is listening on localhost at port 8009. If I goto http://192.168.0.200:80, I can see the output from Apache. but If I type http://192.168.0.200:80/examples I get HTTP 400 However, If I goto http://localhost/examples i can see the all outputs. I think if I make changes in server.xml and workers.properties(make same IP), I should be able to get the output even on 192.168.0.200. I have not tried though. 2. What is the use of mod_jk2.conf. The default file that comes with tomcat has all the lines commented. If I get any line uncomented I get following error: SEVERE: can't create apr. ( Is this apr related to WARP protocol?) java could not find some logging class.? I even tried to make changes in catalina.sh to alter CLASSPATH but no avail After reading the documentation, it seems mod_jk2.conf can be automatically generated. In case of mod_jk there are certain parameter that kept in server.xml will generate in file, should be follow same direction/ 3.It seems to me if I want to use Unix domain socket ( which should be faster), all I need to do is to uncommnent releted lines in mod_jk2.properties. But for me tomcat never created any socket file ? please let me know if anyone knows the trick. Thanks you. Santos - 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: Servlet deployment problems (Apache 2.0.44 / Jakarta-Tomcat 4.1.18)
Add servlet-mapping servlet-nameTesting/servlet-name url-pattern/servlet/MyServlet/url-pattern (change this as needed) /servlet-mapping to your web.xml below the entry you already made. The entry you have is incomplete, there is no URL map. That's the reason for the 404. John -Original Message- From: Lars Nielsen Lind [mailto:[EMAIL PROTECTED] Sent: Monday, February 24, 2003 6:56 AM To: Tomcat Users List Subject: Servlet deployment problems (Apache 2.0.44 / Jakarta-Tomcat 4.1.18) Hi. I have some problems with the deployment of servlets with Apahce / Jakarta-Tomcat. 1.) I have placed the servlet class in: .../webapps/application/WEB-INF/classes/servlet class 2.) I have added a web.xml file in: .../webapps/application/WEB-INF/web.xml 3.) I have added the following lines to the web.xml file: - servlet -servlet-nameTesting/servlet-name -servlet-classTesting/servlet-class - /servlet 4.) I have then tried to execute the servlet with this: - a href=/servlet/TestingTesting servlet/a and - a href=/application/servlet/TestingTesting servlet/a but I am always getting a HTTP Status 404 ERR: - The requested resource (path to servlet class) is not available. Any help is appriciated. Best regards, Lars Nielsen Lind - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Apache and Tomcat: a bad practice
Please don't troll the list. There are all sorts of reasons besides need CGI to use Apache. I can think of one right now (load balancing) that would pretty much make using Apache mandatory in many installations. Instead of bashing people for the software they choose to use, a more helpful response might be to help them use it easily. John -Original Message- From: Vic Cekvenich [mailto:[EMAIL PROTECTED] Sent: Monday, February 24, 2003 7:00 AM To: [EMAIL PROTECTED] Subject: Apache and Tomcat: a bad practice Lot's of Apache to Tomcat questions. In the past, (Hardware sales) people would say you need a html server (Apache) and a jsp server (Tomcat). Now Tomcat can server HTML pages very fast and can do SSL, etc. There is no reason to maintain and configure in operations communications between the two. Recomendation: It is *a good practice to deprecate Apache!, and use Tomcat* (or other J2EE, such as Resin) as your only server, SSL and HTML, etc. The speed is just fine. There are only a few exceptions, such as you need CGI, but you can save money, time now, but de-instaling Apache and put Tomcat on port 88 and 443. .V - 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 and Tomcat: a bad practice
Great! I'd love to see a HOWTO for load-balancing Tomcat instances across multiple hosts without spending any money for a dedicated hardware solution and doesn't use another software product besides Tomcat. Got a link for one? Newbies on this list are FREQUENTLY told that Apache is NOT required, and that in many cases Tomcat alone is sufficient. A search of the archives will validate this. My point was simply that good practice is relative. What works for you may not work for someone else, for various reasons. The reverse is also true. Implying that somebody who doesn't do exactly what you do is not doing the best they can do, or is not using the optimal solution, is rude. Feel free to contact me off the list if you're interested in debating. John -Original Message- From: Vic Cekvenich [mailto:[EMAIL PROTECTED] Sent: Monday, February 24, 2003 9:08 AM To: [EMAIL PROTECTED] Subject: Re: Apache and Tomcat: a bad practice No need to use big words. I was just giving you good practice, vs no so good practice. I take it you disagree. You can load balance Tomcat just fine. IMO: It's a good practice to try to avoid using Apache. Mostly newbies think that this is required. I am just saying, this is not required or possibly good. It makes operations and development easier not to have Apache, and my clients have removed it to great sucess. Take it into consideration a word to the wise. http://www.mail-archive.com/[EMAIL PROTECTED]/msg 85780.html .V Please don't troll the list. There are all sorts of reasons besides need CGI to use Apache. I can think of one right now (load balancing) that would pretty much make using Apache mandatory in many installations. Instead of bashing people for the software they choose to use, a more helpful response might be to help them use it easily. John -Original Message- From: Vic Cekvenich [mailto:[EMAIL PROTECTED] Sent: Monday, February 24, 2003 7:00 AM To: [EMAIL PROTECTED] Subject: Apache and Tomcat: a bad practice Lot's of Apache to Tomcat questions. In the past, (Hardware sales) people would say you need a html server (Apache) and a jsp server (Tomcat). Now Tomcat can server HTML pages very fast and can do SSL, etc. There is no reason to maintain and configure in operations communications between the two. Recomendation: It is *a good practice to deprecate Apache!, and use Tomcat* (or other J2EE, such as Resin) as your only server, SSL and HTML, etc. The speed is just fine. There are only a few exceptions, such as you need CGI, but you can save money, time now, but de-instaling Apache and put Tomcat on port 88 and 443. .V - 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_jk + ssl
Nope. The communications between Tomcat and Apache, via mod_jk, will be in the clear (non-SSL). Assuming you can configure your Apache for SSL correctly, and can configure the JK connection correctly, there's nothing else you have to do to Tomcat. John -Original Message- From: Adam Greene [mailto:[EMAIL PROTECTED] Sent: Monday, February 24, 2003 10:29 AM To: Tomcat Users List Subject: mod_jk + ssl I am getting ready to setup a Linux box running Apache 1.3.29, Tomcat 4.1.18, and mod_jk and I am wondering if there is anything special I need to do to my Tomcat config as the Apache HTTP is what will have the SSL running on it (via mod_ssl). - 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: NT Service for Tomcat 4.1
Tomcat 4.1.x can be run as a service in NT, 2000, and XP. John -Original Message- From: Anthony Shawver [mailto:[EMAIL PROTECTED] Sent: Monday, February 24, 2003 2:11 PM To: Tomcat Users List Subject: NT Service for Tomcat 4.1 Does the same functionality to load Tomcat as an NT service exist for 4.1 as it does for 3.2? Thanks, Tony - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: tomcat suddenly stopped reloading applications automatically..urgent
After stopping Tomcat, before restarting it, did you clean out (delete) all of the files in the work directory for that host? John -Original Message- From: runu rathi [mailto:[EMAIL PROTECTED] Sent: Monday, February 24, 2003 3:10 PM To: [EMAIL PROTECTED] Subject: tomcat suddenly stopped reloading applications automatically..urgent Hi all, I had configured Tomcat quite painstakingly. It was running as a WINNT service with the application being automatically reloaded on changes to any classes. Recently, I am working on an application using JDBC. And suddenly I find that Tomcat is taking one of the old classes which I have already deleted manually. I want to reiterate that it was working as desired before that. Even after explicitly shutting down Tomcat and restarting it(not as a service this time) or even after stopping the system and restarting it, it is taking some old classes. I put in all my newly compiled classes in /web-inf/classes as I used to do always. The JDBC code runs perfectly if run independently. But I cannot see its affect when I put it in my bean. Hope to get quick help on this. Thanks a lot, Runu __ Do you Yahoo!? Yahoo! Tax Center - forms, calculators, tips, more http://taxes.yahoo.com/ - 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: AJP13 encryption
That's what I would do. Much easier than hacking around with the source. John -Original Message- From: Ian McFarland [mailto:[EMAIL PROTECTED] Sent: Friday, February 21, 2003 9:29 PM To: Tomcat Users List Subject: Re: AJP13 encryption Can't you just tunnel your AJP connection using ssh or stunnel or similar? I suppose you could hack the AJP connector to use TLS, but of course then you'd have to also rewrite your plugin (IIS or NSAPI) to know about TLS, too. Do you need something more than a secure pipe to pass your data through? If not, why not just make the pipe secure through external means (i.e. with ssh?) -Ian On Friday, February 21, 2003, at 06:11 PM, Jean wrote: Ian Handle the encryption via SSL at the IIS/iPlanet point, then go unencrypted to Tomcat...? That's what I do with Apache. Sorry if my message was unclear: i do need encryption between the web server and Tomcat. jean - Original Message - From: Jean [EMAIL PROTECTED] To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Friday, February 21, 2003 7:16 PM Subject: AJP13 encryption Hi, I am looking for a solution to use IIS and/or iPlanet as reverse proxy connecting to Tomcat (and/or Jetty). AJP seems the most common solution but it does not seem to support any encryption between the webserver and Tomcat. I am looking for pointers on secure alternatives to AJP13. Thanks jean - 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: applying server.xml changes without restarting server
The admin app does work. If you're having problems with it, perhaps posting details of those problems will get you a resolution. AFAIK, there is no facility for dynamically changing Tomcat config without a restart in 4.x. I believe there is talk of this for Tomcat 5, but I don't know for sure or know any details...this topic comes up every couple of weeks here on -user. Perhaps -dev would have a better answer for you. John -Original Message- From: Simone Chiaretta [mailto:[EMAIL PROTECTED] Sent: Friday, February 21, 2003 7:05 PM To: Tomcat Users List Subject: R: applying server.xml changes without restarting server -Messaggio originale- Da: Rasputin [mailto:[EMAIL PROTECTED] Inviato: sabato 22 febbraio 2003 0.48 A: Tomcat Users List Oggetto: Re: applying server.xml changes without restarting server * Simone Chiaretta [EMAIL PROTECTED] [0223 23:23]: Hello all, I'd like to know if there is a way to apply server.xml changes without restarting Tomcat? I noticed that even changes to tomcat-user.xml need a server restart... it there a way to see the changes without restarting? It really depend swhat you want to do - most things in server.xml can be configured in other ways - for eaxmple, if you want tp be able to configure username and passwords without restarting tomcat, you could use a jdbcrealm to store the password info. Similarly you can add/remove contexts using the manager app. Most parts of the config you need to restart for will be things like virtual hosts. I know about jdbcrealm and i tried using admin app but it mess up everything and nothing seems to be working again. thx simone - 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 modules with Tomcat
Have you considered Tomcat filters instead? John -Original Message- From: Jordan Hayes [mailto:[EMAIL PROTECTED] Sent: Saturday, February 22, 2003 7:00 PM To: Tomcat Subject: Apache modules with Tomcat Is there a way to add modules to servlet processing? For instance, I'd like to add mod_headers to attach extra headers to the output of a servlet without changing the servlet itself. Can the filter functionality of Apache2 help me here? Thanks, /jordan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --- Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.454 / Virus Database: 253 - Release Date: 2/10/2003 --- Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.454 / Virus Database: 253 - Release Date: 2/10/2003 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]