RE: jsp wont open unless port 8080 is specified in browser
Using port 8080 connects directly to Tomcat running in stand-alone mode. If you want to use port 80 (the web server standard/default), you must either use a web server and configure it to pass all *.jsp pages to Tomcat, or configure Tomcat to listen to port 80 instead of 8080. Connecting Tomcat to a web server is detailed in the documentation: http://jakarta.apache.org/tomcat/tomcat-3.2-doc/index.html (for version 3.2). This page has links detailing how to setup Tomcat with Netscape, Apache and IIS. To change the port Tomcat listens on to port 80, change the following section of your server.xml file as follows: Change the http connector section from: Connector className=org.apache.tomcat.service.PoolTcpConnector Parameter name=handler value=org.apache.tomcat.service.http.HttpConnectionHandler/ Parameter name=port value=8080/ /Connector To: Connector className=org.apache.tomcat.service.PoolTcpConnector Parameter name=handler value=org.apache.tomcat.service.http.HttpConnectionHandler/ Parameter name=port value=80/ /Connector Note this only works if you don't have another web server already listening on that port. You can't have both Tomcat and another web server on the same port. -Original Message- From: Martin Sujkowski [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 16, 2002 11:10 AM To: Tomcat Users List Subject: Re: jsp wont open unless port 8080 is specified in browser i get a similar thing except if i dont use 8080 i get page cannot be displayed screen. With 8080 i still am getting internal server error with bunch of other crap below it. Martin - Original Message - From: William Cheng [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, January 16, 2002 1:15 PM Subject: jsp wont open unless port 8080 is specified in browser hi all how can i get the my jsp files to open without specifying port 8080 on the browser. if i dont specify 8080 and login screen pops up. thanks for any information Will -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: jsp wont open unless port 8080 is specified in browser
It depends on which web server you are using. For Apache using mod_jk you use the JKMount directive in your mod_jk.conf-auto file like this: JkMount /*.jsp workername For IIS you modify the uriworkermap.properties file. Add something like this: /*.jsp=workername Both examples do the same thing, map all jsp files to the appropriate Tomcat worker for the root context. It's all explained in the web server setup docs I gave you a link to. -Original Message- From: Martin Sujkowski [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 16, 2002 1:09 PM To: Tomcat Users List Subject: Re: jsp wont open unless port 8080 is specified in browser Thanks a lot for your help Travis. I dont suppose you could tell me how to configure my windows 2000 server to pass all jsp files to tomcat would you? Thanks again. martin - Original Message - From: Travis Schmid [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Wednesday, January 16, 2002 3:54 PM Subject: RE: jsp wont open unless port 8080 is specified in browser Using port 8080 connects directly to Tomcat running in stand-alone mode. If you want to use port 80 (the web server standard/default), you must either use a web server and configure it to pass all *.jsp pages to Tomcat, or configure Tomcat to listen to port 80 instead of 8080. Connecting Tomcat to a web server is detailed in the documentation: http://jakarta.apache.org/tomcat/tomcat-3.2-doc/index.html (for version 3.2). This page has links detailing how to setup Tomcat with Netscape, Apache and IIS. To change the port Tomcat listens on to port 80, change the following section of your server.xml file as follows: Change the http connector section from: Connector className=org.apache.tomcat.service.PoolTcpConnector Parameter name=handler value=org.apache.tomcat.service.http.HttpConnectionHandler/ Parameter name=port value=8080/ /Connector To: Connector className=org.apache.tomcat.service.PoolTcpConnector Parameter name=handler value=org.apache.tomcat.service.http.HttpConnectionHandler/ Parameter name=port value=80/ /Connector Note this only works if you don't have another web server already listening on that port. You can't have both Tomcat and another web server on the same port. -Original Message- From: Martin Sujkowski [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 16, 2002 11:10 AM To: Tomcat Users List Subject: Re: jsp wont open unless port 8080 is specified in browser i get a similar thing except if i dont use 8080 i get page cannot be displayed screen. With 8080 i still am getting internal server error with bunch of other crap below it. Martin - Original Message - From: William Cheng [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, January 16, 2002 1:15 PM Subject: jsp wont open unless port 8080 is specified in browser hi all how can i get the my jsp files to open without specifying port 8080 on the browser. if i dont specify 8080 and login screen pops up. thanks for any information Will -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Mod-jk conf auto creation not happening question
H...I don't know what would stop Tomcat from generating that file. Have you checked the Tomcat logs and stdout to see if Tomcat is listing any error messages when it starts up? Double check c:/program files/apache group/tomcat-4.0/conf/mod_jk.conf to make sure it exists. Travis -Original Message- From: Mike Kelley [mailto:[EMAIL PROTECTED]] Sent: Friday, November 16, 2001 6:49 PM To: 'Tomcat Users List' Subject: RE: Mod-jk conf auto creation not happening question Good Eye! No, that's not it ... I added the space after try number 1 ... Thought exactly what you guessed ... (hummn , maybe it's a command...) I changed it ack and still get fopen: No such file or directory Apache.exe: could not open document config file c:/program files/apache group/to mcat-4.0/conf/mod_jk.conf-auto Note the errors or messages above, and press the ESC key to exit. 15... I'm going to dbl check environ variables -Original Message- From: Travis Schmid [mailto:[EMAIL PROTECTED]] Sent: Friday, November 16, 2001 5:11 PM To: 'Tomcat Users List' Subject: RE: Mod-jk conf question Check your include line in the httpd.conf file in apache. I think you have added an extra space in the name of the file. It should be: c:/program files/apache group/tomcat-4.0/conf/mod_jk.conf-auto not: c:/program files/apache group/tomcat-4.0/conf/mod_jk.conf -auto -auto is part of the file name, not a command line flag. Travis -Original Message- From: Mike Kelley [mailto:[EMAIL PROTECTED]] Sent: Friday, November 16, 2001 3:55 PM To: 'Tomcat Users List' Subject: RE: Mod-jk conf question That's my problem, When I try to restart/start apache I get the error ... fopen: No such file or directory Apache.exe: could not open document config file c:/program files/apache group/to mcat-4.0/conf/mod_jk.conf -auto Note the errors or messages above, and press the ESC key to exit. So I'm not getting the autobuild ... Without the build I can't start apache -Original Message- From: Travis Schmid [mailto:[EMAIL PROTECTED]] Sent: Friday, November 16, 2001 4:49 PM To: 'Tomcat Users List' Subject: RE: Mod-jk conf question Tomcat autogenerates that file. You need to start Tomcat first, the Apache. Travis -Original Message- From: Mike Kelley [mailto:[EMAIL PROTECTED]] Sent: Friday, November 16, 2001 3:20 PM To: 'Tomcat Users List' Subject: Mod-jk conf question Since I can't get webapp to work on a W2K to tie apache to TC I'm trying to use Mod-JK ... Apache doesn't seem to auto-gen the conf/mod_jk.conf file. How do I accomplish this? OS: W2K TC: 4.0 Apache 1.3.22 -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Mod-jk conf auto creation not happening question
I think most people using Tomcat 4.0 are using mod_webapp but I have noticed at least one other person on this list that said they got 4.0 to work with mod_jk. Perhaps if you scanned the entries on this list for the past week or so you will find someone who has done it. I'm using 3.2.3 so I can't help you. Travis -Original Message- From: Mike Kelley [mailto:[EMAIL PROTECTED]] Sent: Monday, November 19, 2001 8:51 AM To: 'Tomcat Users List' Subject: RE: Mod-jk conf auto creation not happening question Who else might one contact so we can get the auto gen done? -Original Message- From: keiths [mailto:[EMAIL PROTECTED]] Sent: Monday, November 19, 2001 9:48 AM To: Tomcat Users List Subject: Re: Mod-jk conf auto creation not happening question I have noticed that the mod_jk.conf-auto does not get created in 4.0, and certainly does in 3.2. I will be watching for any feedback on this one! Travis Schmid wrote: H...I don't know what would stop Tomcat from generating that file. Have you checked the Tomcat logs and stdout to see if Tomcat is listing any error messages when it starts up? Double check c:/program files/apache group/tomcat-4.0/conf/mod_jk.conf to make sure it exists. Travis -Original Message- From: Mike Kelley [mailto:[EMAIL PROTECTED]] Sent: Friday, November 16, 2001 6:49 PM To: 'Tomcat Users List' Subject: RE: Mod-jk conf auto creation not happening question Good Eye! No, that's not it ... I added the space after try number 1 ... Thought exactly what you guessed ... (hummn , maybe it's a command...) I changed it ack and still get fopen: No such file or directory Apache.exe: could not open document config file c:/program files/apache group/to mcat-4.0/conf/mod_jk.conf-auto Note the errors or messages above, and press the ESC key to exit. 15... I'm going to dbl check environ variables -Original Message- From: Travis Schmid [mailto:[EMAIL PROTECTED]] Sent: Friday, November 16, 2001 5:11 PM To: 'Tomcat Users List' Subject: RE: Mod-jk conf question Check your include line in the httpd.conf file in apache. I think you have added an extra space in the name of the file. It should be: c:/program files/apache group/tomcat-4.0/conf/mod_jk.conf-auto not: c:/program files/apache group/tomcat-4.0/conf/mod_jk.conf -auto -auto is part of the file name, not a command line flag. Travis -Original Message- From: Mike Kelley [mailto:[EMAIL PROTECTED]] Sent: Friday, November 16, 2001 3:55 PM To: 'Tomcat Users List' Subject: RE: Mod-jk conf question That's my problem, When I try to restart/start apache I get the error ... fopen: No such file or directory Apache.exe: could not open document config file c:/program files/apache group/to mcat-4.0/conf/mod_jk.conf -auto Note the errors or messages above, and press the ESC key to exit. So I'm not getting the autobuild ... Without the build I can't start apache -Original Message- From: Travis Schmid [mailto:[EMAIL PROTECTED]] Sent: Friday, November 16, 2001 4:49 PM To: 'Tomcat Users List' Subject: RE: Mod-jk conf question Tomcat autogenerates that file. You need to start Tomcat first, the Apache. Travis -Original Message- From: Mike Kelley [mailto:[EMAIL PROTECTED]] Sent: Friday, November 16, 2001 3:20 PM To: 'Tomcat Users List' Subject: Mod-jk conf question Since I can't get webapp to work on a W2K to tie apache to TC I'm trying to use Mod-JK ... Apache doesn't seem to auto-gen the conf/mod_jk.conf file. How do I accomplish this? OS: W2K TC: 4.0 Apache 1.3.22 -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- Keith Simpson Skillview Technologies [EMAIL PROTECTED] (603)-382-9882
RE: Mod-jk conf question
Tomcat autogenerates that file. You need to start Tomcat first, the Apache. Travis -Original Message- From: Mike Kelley [mailto:[EMAIL PROTECTED]] Sent: Friday, November 16, 2001 3:20 PM To: 'Tomcat Users List' Subject: Mod-jk conf question Since I can't get webapp to work on a W2K to tie apache to TC I'm trying to use Mod-JK ... Apache doesn't seem to auto-gen the conf/mod_jk.conf file. How do I accomplish this? OS: W2K TC: 4.0 Apache 1.3.22 -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Mod-jk conf question
Check your include line in the httpd.conf file in apache. I think you have added an extra space in the name of the file. It should be: c:/program files/apache group/tomcat-4.0/conf/mod_jk.conf-auto not: c:/program files/apache group/tomcat-4.0/conf/mod_jk.conf -auto -auto is part of the file name, not a command line flag. Travis -Original Message- From: Mike Kelley [mailto:[EMAIL PROTECTED]] Sent: Friday, November 16, 2001 3:55 PM To: 'Tomcat Users List' Subject: RE: Mod-jk conf question That's my problem, When I try to restart/start apache I get the error ... fopen: No such file or directory Apache.exe: could not open document config file c:/program files/apache group/to mcat-4.0/conf/mod_jk.conf -auto Note the errors or messages above, and press the ESC key to exit. So I'm not getting the autobuild ... Without the build I can't start apache -Original Message- From: Travis Schmid [mailto:[EMAIL PROTECTED]] Sent: Friday, November 16, 2001 4:49 PM To: 'Tomcat Users List' Subject: RE: Mod-jk conf question Tomcat autogenerates that file. You need to start Tomcat first, the Apache. Travis -Original Message- From: Mike Kelley [mailto:[EMAIL PROTECTED]] Sent: Friday, November 16, 2001 3:20 PM To: 'Tomcat Users List' Subject: Mod-jk conf question Since I can't get webapp to work on a W2K to tie apache to TC I'm trying to use Mod-JK ... Apache doesn't seem to auto-gen the conf/mod_jk.conf file. How do I accomplish this? OS: W2K TC: 4.0 Apache 1.3.22 -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Mod_Jk and Multiple Tomcats
David, We are using Tomcat 3.2.3 with mod_jk but it should be similar in 4.0. We set it up like this to utilize multiple processors and machines efficiently for better scalability. Here's what we did: We setup Apache to start 4 Ajp13 workers all communicating on a different port number. Then we setup 4 instances of Tomcat (as NT services) listening on those ports. All of the instances use the same webapps directory and serve the same files. Make sure you set your JkMounts to use the loadbalancer worker (or whatever you named it). Good luck Example workers.properties fragment: worker.list=loadbalancer, w8009, w8011, w8013, w8015 worker.w8009.port=8009 worker.w8009.host=localhost worker.w8009.type=ajp13 worker.w8009.cachesize=10 worker.w8009.lbfactor=10 worker.w8011.port=8011 worker.w8011.host=localhost worker.w8011.type=ajp13 worker.w8011.cachesize=10 worker.w8011.lbfactor=10 worker.w8013.port=8013 worker.w8013.host=localhost worker.w8013.type=ajp13 worker.w8013.cachesize=10 worker.w8013.lbfactor=10 worker.w8015.port=8015 worker.w8015.host=localhost worker.w8015.type=ajp13 worker.w8015.cachesize=10 worker.w8015.lbfactor=10 worker.loadbalancer.type=lb worker.loadbalancer.balanced_workers=w8009, w8011, w8013, w8015 Example 8009server.xml fragment: Connector className=org.apache.tomcat.service.PoolTcpConnector Parameter name=handler value=org.apache.tomcat.service.connector.Ajp13ConnectionHandler/ Parameter name=port value=8009/ /Connector Example 8011server.xml fragment: Connector className=org.apache.tomcat.service.PoolTcpConnector Parameter name=handler value=org.apache.tomcat.service.connector.Ajp13ConnectionHandler/ Parameter name=port value=8011/ /Connector Example 8009wrapper.properties fragment: wrapper.server_xml=$(wrapper.tomcat_home)\conf\8009server.xml Example 8011wrapper.properties fragment: wrapper.server_xml=$(wrapper.tomcat_home)\conf\8011server.xml Example 8009Tomcat NT service installation: jk_nt_service.exe -I 8009Tomcat c:\jakarta-tomcat-3.2.3\conf\8009wrapper.properties Example 8011Tomcat NT service installation: jk_nt_service.exe -I 8011Tomcat c:\jakarta-tomcat-3.2.3\conf\8009wrapper.properties -Original Message- From: David Wilson [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 15, 2001 10:57 AM To: Tomcat Users List Subject: Mod_Jk and Multiple Tomcats Does anyone know how to do the following: For testing purposes we want to have one Apache running and use multiple Tomcats. We are using mod_jk and I can only find information on multiple tomcats via JServ. But you cannot use jserv and mod_jk at the same time. Can I do this with mod_jk? We are running Apache 1.3 and Tomcat 4.0.1 Oh and if anyone asked me any questions over the last week on this users group I didn't get it b/c of email problems. Thx, David -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: mod_jk / Ajp13 config fix on heavily loaded system
-Original Message- From: Schulz, Sebastian, fiscus GmbH, Bonn [mailto:[EMAIL PROTECTED]] Sent: Wednesday, November 14, 2001 1:19 AM To: '[EMAIL PROTECTED]' Subject: AW: mod_jk / Ajp13 config fix on heavily loaded system what's about loadbalancing? say, we have defined local loadbalancing using 5 ajp13-worker at workers.properties, and we have at server.xml: Ajp13Connector port=8009 maxThreads=100 maxSpareThreads=50 minSpareThreads=10 / Does this mean, we can support through the loadbalancer 100 threads or 500 threads (100 * number of workers(5) = 500)? 500 threads total. 100 per worker/Tomcat b.t.w, another question: when using local loadbalancing, does every worker has its own VM or are they sharing all the same VM? I had this question myself. I think I have it figured out now but feel free to correct me anyone that understands this better. The workers are threads/groups of threads that are running within the web servers memory space. They seem to be threads communicating on a particular port with an open socket to a Tomcat instance. Each separate Tomcat instance has its own VM and is listening on a different port number/host combination. I don't think the workers actually do much work. They just take the information they are given, transmit it to the Tomcat instance, and hand the reply information from Tomcat back to the web server. All the real work is done within the Tomcat instances (each of which can have their own VM). Travis thank you, sebastian -Ursprüngliche Nachricht- Von: GOMEZ Henri [mailto:[EMAIL PROTECTED]] Gesendet: Dienstag, 13. November 2001 23:45 An: Tomcat Developers List Cc: [EMAIL PROTECTED] Betreff: mod_jk / Ajp13 config fix on heavily loaded system Hi to all, Some of you may have experienced problems on heavily loaded system with mod_jk and Tomcat 3.2/3.3 when using ajp13. As you may know, the Ajp13 connection is permanent and is created each time a WebServer task, for example an Apache child, have to forward a request to Tomcat. And in Apache server case, the child will stay alive, until the client requests load decrease, or when a child have passed 1000 requests (MaxRequestsPerChild 1000). And till the child close the connection, the Tomcat thread stay alive. By default Apache server support up to 150 childs : (MaxClients 150 in httpd.conf) But by default, the Ajp13 Interceptor won't use more than 100 threads, so you're stuck when the 101th Apache child want to forward a request and see the following infamous trace in mod_jk.log : [wed oct 31 11:03:21 2001] [jk_ajp13_worker.c (196)]: In jk_endpoint_t::connect_to_tomcat, failed errno = 111 [wed oct 31 11:03:21 2001] [jk_ajp13_worker.c (635)]: Error connecting to the Tomcat process. [wed oct 31 11:03:21 2001] [jk_ajp13_worker.c (848)]: In jk_endpoint_t::service, send_request failed in send loop 2 [wed oct 31 11:03:21 2001] [jk_ajp13_worker.c (228)]: connection_tcp_get_message: Error - jk_tcp_socket_recvfull failed [wed oct 31 11:03:21 2001] [jk_ajp13_worker.c (712)]: Error reading reply [wed oct 31 11:03:21 2001] [jk_ajp13_worker.c (845)]: In jk_endpoint_t::service, get_reply failed in send loop 0 [wed oct 31 11:03:21 2001] [jk_connect.c (143)]: jk_open_socket, connect() failed errno = 111 [wed oct 31 11:03:21 2001] [jk_ajp13_worker.c (196)]: In jk_endpoint_t::connect_to_tomcat, failed errno = 111 [wed oct 31 11:03:21 2001] [jk_ajp13_worker.c (635)]: Error connecting to the Tomcat process. In some case, Apache could be able to connect, since Tomcat listening thread will accept incoming connection, but will drop it later if it fail to give the socket to a new thread. In that case you'll see only in log : [wed oct 31 11:03:21 2001] [jk_ajp13_worker.c (848)]: In jk_endpoint_t::service, send_request failed in send loop 2 [wed oct 31 11:03:21 2001] [jk_ajp13_worker.c (228)]: connection_tcp_get_message: Error - jk_tcp_socket_recvfull failed [wed oct 31 11:03:21 2001] [jk_ajp13_worker.c (712)]: Error reading reply Fortunatly, the fix is easy, just configure Ajp13Connector in server.xml to support up to 150 threads (or whatever you define as MaxClients in Apache, didn't know how on IIS/iPlanet). Ajp13Connector port=8009 maxThreads=150 maxSpareThreads=50 minSpareThreads=10 / Also you should take care of the number of descriptors opened in your webapplication, which is : Tomcat used descriptors (sockets, files) + YouWebApp descriptors (files, sockets, jdbc...) The JVM, like any others process have a limit on the number of descriptors it could open (and of course on number of threads). So take care of closing no more used socket, files and so on. - Henri Gomez ___[_]
RE: Re: Jakarta NT Service
Thanks for the thought but it is neither of those things. I was using the -Xrs flag and was NOT encountering the shutdown bug. The additional services would shutdown immediately upon starting a second service. I didn't have to logout for the problem to occur. The services were installed using a batch script and each service had a unique name. The exact same configuration files were used successfully on Win2k server. Hence my conclusion that it has something to do with Win2k Pro. I'm no longer concerned that it doesn't work on Win2k Pro. I'm now only doing work on our Win2k Server development server where I don't have the problem. It was just my proof of concept environment on my laptop that I had the problem. Travis -Original Message- From: Frank Lawlor [mailto:[EMAIL PROTECTED]] Sent: Tuesday, November 13, 2001 12:47 PM To: Tomcat (E-mail) Subject: RE: Re: Jakarta NT Service I could install as many as I wanted but only one would run at a time. Some possibilities: - you didn't give each a unique service name - you are encountering the JVM 3.0 service shutdown bug, (see other posts: search on -Xrs) Frank Lawlor Athens Group, Inc. (512) 345-0600 x151 Athens Group, an employee-owned consulting firm integrating technology strategy and software solutions. -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Jakarta NT Service
We got around the shutdown when logging off issue by using SUN JDK 1.3.1.01 and including the -Xrs switch in the wrapper.properties file. This flag was readded to the JDK to address this issue. You can get the whole history of the bug on Sun's Java BugParade website. http://developer.java.sun.com/developer/bugParade/ Travis -Original Message- From: C Cayetano [mailto:[EMAIL PROTECTED]] Sent: Monday, November 12, 2001 1:13 PM To: Tomcat Users List Subject: RE: Jakarta NT Service With your NT4 install, were you able to get around the bug that shuts down the service when the user loggs off? I've experienced it in Win2k Server. Haven't found a solution. Had anyone else found a solution? Thanks. -Original Message- From: Whalland, Craig [mailto:[EMAIL PROTECTED]] Sent: Sunday, November 11, 2001 3:52 PM To: '[EMAIL PROTECTED]' Subject: Jakarta NT Service Hi there - first of all please excuse my lack of knowledge on this topic. I have been asked to have a quick look at a problem we are having on windows 2000 server installing Jakarta as an NT Service. I have followed the directions on the site http://jakarta.apache.org/tomcat/tomcat-3.2-doc/NT-Service-howto.html and the service has installed but it fails to start with the error Could Not Start Jakarta Service. The Service did not returm an error. First question - Are there any issues with Win2k as aopposed to NT4.0 ? As we have successfuly installed this service on an NT4.0 box. Otherwise I am at a loss as we are able to start Jakarta manually via cmd prompt - just not as the service. Look forward to anyhelp you can provide - and if this is not the forum to ask these questions any direction would be appreciated. Craig Whalland NT Server Team Vodafone Information Services Ph: (02) 9425 8961 Mob: 0414 208 961 Whalland, Craig.vcf ** This correspondence is for the named person's use only. It may contain confidential or legally privileged information or both. No confidentiality or privilege is waived or lost by any mistransmission. If you receive this correspondence in error, please immediately delete it from your system and notify the sender. You must not disclose, copy or rely on any part of this correspondence if you are not the intended recipient. Any views expressed in this message are those of the individual sender, except where the sender expressly, and with authority, states them to be the views of Vodafone. This email has been checked for viruses. ** -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Jakarta NT Service
I had a similar problem running Tomcat as an NT service on Win2k Pro. I could start one instance but when starting second the first would shut down with no error message. I could install as many as I wanted but only one would run at a time. I found that this problem doesn't exist with Win NT 4.0 or Win 2k Server (I now have four concurrently on Win2k Server). I don't know the reason why this is but this info may help you find where to look for an answer. Travis -Original Message- From: Whalland, Craig [mailto:[EMAIL PROTECTED]] Sent: Sunday, November 11, 2001 3:52 PM To: '[EMAIL PROTECTED]' Subject: Jakarta NT Service Hi there - first of all please excuse my lack of knowledge on this topic. I have been asked to have a quick look at a problem we are having on windows 2000 server installing Jakarta as an NT Service. I have followed the directions on the site http://jakarta.apache.org/tomcat/tomcat-3.2-doc/NT-Service-howto.html and the service has installed but it fails to start with the error Could Not Start Jakarta Service. The Service did not returm an error. First question - Are there any issues with Win2k as aopposed to NT4.0 ? As we have successfuly installed this service on an NT4.0 box. Otherwise I am at a loss as we are able to start Jakarta manually via cmd prompt - just not as the service. Look forward to anyhelp you can provide - and if this is not the forum to ask these questions any direction would be appreciated. Craig Whalland NT Server Team Vodafone Information Services Ph: (02) 9425 8961 Mob: 0414 208 961 Whalland, Craig.vcf ** This correspondence is for the named person's use only. It may contain confidential or legally privileged information or both. No confidentiality or privilege is waived or lost by any mistransmission. If you receive this correspondence in error, please immediately delete it from your system and notify the sender. You must not disclose, copy or rely on any part of this correspondence if you are not the intended recipient. Any views expressed in this message are those of the individual sender, except where the sender expressly, and with authority, states them to be the views of Vodafone. This email has been checked for viruses. ** -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
do loadbalanced workers have separate JVMs?
I am working with Tomcat 3.2.3 and Apache 1.3.2. I have configured Tomcat to use multiple Ajp13 workers and a loadbalancer worker to control them using the worker.properties file. After reading the documentation, I am unclear whether each worker has it's own instance of a JVM. Travis -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]