RE: Tomcat dependency on application server
Thanks Chris for your answer. There were separate PID's on Linux for JBoss Tomcat and I killed the Tomcat process. Would killing a Tomcat process also kill the JVM process? I had another related question of how to know the number of JVM's running, I mean the count of the number of JVM's. I hope, my query has been put across correctly. Requesting a reply. Regards -Original Message- From: Christopher Schultz [mailto:ch...@christopherschultz.net] Sent: Saturday, May 17, 2014 1:59 AM To: Tomcat Users List Subject: Re: Tomcat dependency on application server -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Randhir, On 5/15/14, 3:17 AM, Randhir Singh wrote: Hi, We have JBoss as the application server Tomcat as the web server in our production developmental setup which is on Red Hat Linux 5.X. We have tomcat 6.X. My query is that if I need to restart tomcat, do I need to restart JBoss Tomcat both or just restarting Tomcat would be enough. I am asking this query because I had killed the tomcat process using kill -9 and while restarting tomcat it was not starting but when I killed JBoss tomcat and then restarted, Tomcat was up. I hope my query is clear whether Tomcat is dependent on JBoss. I'm fairly sure that there is only a single JVM for JBoss/Tomcat. If you killed one, you've killed the other. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1 Comment: GPGTools - http://gpgtools.org Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQIcBAEBCAAGBQJTdnUaAAoJEBzwKT+lPKRYnH8QALfeHn4XVXB6KANb0hmAPEL3 7pNRaUW0AypQQjujzr7X4DKv3MOnMwWfIaiVcazNbtC7j+W3Mi6khksZIq1cz0At o9K0CDdJhAg5be9a68T7E5ko4mdy+rjX2ZsuX2LDdp5wyQaYWEXRWd3+hfBL2Gk7 D+225vxnMUeB9gHLaVUQ4k/3TOZvO/DYT9TCnxOlviP1+QEek5chN6a9XDJpQKpg O/EVBudYmDMLu9QKbOJJ5jomKUUa/VPsjhwz4O32+2Zok5VWLIrct5joF3r2ej+p 5RfHLnijRcCX5QkZOAYM9mdvFuFb1+lNAUGKPJwZU47SI7delyJZwxqGJYmo495e Q2nGMqepgXlQhOtwuTMdSh9gFV6LqJeaWcW6ZpyMNXbkNSSRSIy3hgcZqRycsSUa dvBRg6j57MMhNiCDx9IVtxF+OqKbiiLNdb9tJRArSXdoSx3a1EYbRbmye3xWbrUv SYadbr14KBqTXxaK2qJBb7E3j/fn1J5NKEARQbM/ML5Q/0TaNIRMlmjbOt2yccYG pNRtC8FRkHWaN3eYtpM0vMNCZ/Cl/atzr3StoN/EX5bWjba6eaaXBaeKdG3FypyY jL0nQu7P0Ir1ASrcxlQeN5snLmI2G4AoFjenOhEsCDDQKixSiryzZRR6ZVqCPZ/k Bi3P3ZPYqngg8oU6s6b6 =bJS6 -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org -- *STL Disclaimer:* The content of this message may be legally privileged and confidential and are for the use of the intended recipient(s) only. It should not be read, copied and used by anyone other than the intended recipient(s). If you have received this message in error, please immediately notify the sender, preserve its confidentiality and delete it. Before opening any attachments please check them for viruses and defects. No employee or agent is authorised to conclude any binding agreement on behalf of Sterlite Technologies Limited with another party by email without express written confirmation by authorised person. Visit us at www.sterlitetechnologies.com Please consider environment before printing this email ! - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Tomcat dependency on application server
I have 1 observation. In our developmental environment, I killed the Tomcat process and started the Tomcat it worked. But in the production environment, starting Tomcat was not enough and I had to restart JBoss Tomcat in sequence for Tomcat to be up. Could it mean that JVM is crashing or something because of OOME in Tomcat. I could try to increase the heap Permgen memory in Tomcat, would that help? Requesting a reply. Regards -Original Message- From: Randhir Singh [mailto:randhir.si...@sterlite.com] Sent: Saturday, May 17, 2014 11:00 AM To: 'Tomcat Users List' Subject: RE: Tomcat dependency on application server Thanks Chris for your answer. There were separate PID's on Linux for JBoss Tomcat and I killed the Tomcat process. Would killing a Tomcat process also kill the JVM process? I had another related question of how to know the number of JVM's running, I mean the count of the number of JVM's. I hope, my query has been put across correctly. Requesting a reply. Regards -Original Message- From: Christopher Schultz [mailto:ch...@christopherschultz.net] Sent: Saturday, May 17, 2014 1:59 AM To: Tomcat Users List Subject: Re: Tomcat dependency on application server -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Randhir, On 5/15/14, 3:17 AM, Randhir Singh wrote: Hi, We have JBoss as the application server Tomcat as the web server in our production developmental setup which is on Red Hat Linux 5.X. We have tomcat 6.X. My query is that if I need to restart tomcat, do I need to restart JBoss Tomcat both or just restarting Tomcat would be enough. I am asking this query because I had killed the tomcat process using kill -9 and while restarting tomcat it was not starting but when I killed JBoss tomcat and then restarted, Tomcat was up. I hope my query is clear whether Tomcat is dependent on JBoss. I'm fairly sure that there is only a single JVM for JBoss/Tomcat. If you killed one, you've killed the other. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1 Comment: GPGTools - http://gpgtools.org Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQIcBAEBCAAGBQJTdnUaAAoJEBzwKT+lPKRYnH8QALfeHn4XVXB6KANb0hmAPEL3 7pNRaUW0AypQQjujzr7X4DKv3MOnMwWfIaiVcazNbtC7j+W3Mi6khksZIq1cz0At o9K0CDdJhAg5be9a68T7E5ko4mdy+rjX2ZsuX2LDdp5wyQaYWEXRWd3+hfBL2Gk7 D+225vxnMUeB9gHLaVUQ4k/3TOZvO/DYT9TCnxOlviP1+QEek5chN6a9XDJpQKpg O/EVBudYmDMLu9QKbOJJ5jomKUUa/VPsjhwz4O32+2Zok5VWLIrct5joF3r2ej+p 5RfHLnijRcCX5QkZOAYM9mdvFuFb1+lNAUGKPJwZU47SI7delyJZwxqGJYmo495e Q2nGMqepgXlQhOtwuTMdSh9gFV6LqJeaWcW6ZpyMNXbkNSSRSIy3hgcZqRycsSUa dvBRg6j57MMhNiCDx9IVtxF+OqKbiiLNdb9tJRArSXdoSx3a1EYbRbmye3xWbrUv SYadbr14KBqTXxaK2qJBb7E3j/fn1J5NKEARQbM/ML5Q/0TaNIRMlmjbOt2yccYG pNRtC8FRkHWaN3eYtpM0vMNCZ/Cl/atzr3StoN/EX5bWjba6eaaXBaeKdG3FypyY jL0nQu7P0Ir1ASrcxlQeN5snLmI2G4AoFjenOhEsCDDQKixSiryzZRR6ZVqCPZ/k Bi3P3ZPYqngg8oU6s6b6 =bJS6 -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org -- *STL Disclaimer:* The content of this message may be legally privileged and confidential and are for the use of the intended recipient(s) only. It should not be read, copied and used by anyone other than the intended recipient(s). If you have received this message in error, please immediately notify the sender, preserve its confidentiality and delete it. Before opening any attachments please check them for viruses and defects. No employee or agent is authorised to conclude any binding agreement on behalf of Sterlite Technologies Limited with another party by email without express written confirmation by authorised person. Visit us at www.sterlitetechnologies.com Please consider environment before printing this email ! - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: denying the request if it comes through IP address instead of DNS
dku...@ccilindia.co.in wrote: Hello All, We are using - Tomcat Version - 7.0.22 Operating System Version : Windows 2003 server To close a vulnerability, To denying the request if it comes through IP address instead of DNS, we have made below configuration changes in server.xml Engine name=Catalina defaultHost=server DNS name defaultHost was set to localhost prior to change Host name=server DNS name appBase=webapps unpackWARs=true autoDeploy=true Hostname was set to localhost prior to change But Due this change we are losing logging in localhost.log in logs folder of TOMCAT, Please suggest how to redirect console logging to a given file or how to retain the localhost.log file of tomcat. Kindly also let us know instead of above settings any other configuration setting will make denial of any request if it comes through IP address instead of DNS, Hi. What you really need first, is to understand how virtual hosting works, in HTTP webservers in general. HTTP requests do not come through DNS or come through IP address. They all come in the same way, through a TCP/IP connection established by the browser, to the IP address of your server. In short, what you did above was not the right way, for what you seem to want. What you should have done is this : 1) start from a standard configuration again 2) leave the Host name=localhost as it is (also in the Engine tag) 3) *add another* Host name=the DNS name appBase=(another path to the real webapps) That is where your real applications should be. (and a few more details not entered into here) Then what will happen is : - any request addressed to the DNS name will be processed by the second Host (the one that you added). That is where your real webapps should be. - any request with another hostname (or IP address) will be processed by the default host (the one named localhost). That one should then just have a default webapp, which answers forbidden or something like that. For more details, search Google for tomcat virtual hosts. I found a reasonable basic explanation here : http://www.ramkitech.com/2012/02/understanding-virtual-host-concept-in.html - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Application monitoring
Chris, On 5/16/2014 8:46 AM, Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Mark, On 5/14/14, 1:41 PM, Mark Eggers wrote: On Wed, 14 May 2014 12:28:46 -0400, David kerber wrote: I am working on a small Tomcat servlet to monitor other tomcat-based applications running on the same physical machine, and am trying to figure out the best way to communicate between the monitoring app, and the monitored apps. My setup has several tomcat instances of a single application, each running from its own directory, and listening on its own TCP port. So there is no direct communication between the instances. I'm trying to monitor various data about the application, not about tomcat itself or the JVM. So I want to collect such things as the number of requests it has processed, the last data received, etc, and not things like memory and cpu usage. It is my app, so I can (and expect to need to) add methods or servlets to return the information I want to collect. My question is, what is the best way to make the request to get the data? Would URL request from the monitoring app to the monitored app be appropriate, and then parse the response out for display in a browser? If so, what java class is likely to be useful for this communication? I will have all the information needed to connect to the application instance (server, port, etc), but want it to be portable across OS types. Thanks! http://wiki.apache.org/tomcat/FAQ/Monitoring In particular, item 3. Unfortunately, the sample code seems to be missing . . . Which is item 3? I'd be happy to fix whatever is missing. - -chris Example Application Exposing Internals Using JMX at the bottom of the page goes nowhere. More accurately, it goes to a placeholder page. . . . . just my two cents /mde/ - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Tomcat dependency on application server
On 5/17/2014 4:35 AM, Randhir Singh wrote: I have 1 observation. In our developmental environment, I killed the Tomcat process and started the Tomcat it worked. But in the production environment, starting Tomcat was not enough and I had to restart JBoss Tomcat in sequence for Tomcat to be up. Could it mean that JVM is crashing or something because of OOME in Tomcat. I could try to increase the heap Permgen memory in Tomcat, would that help? Requesting a reply. Regards -Original Message- From: Randhir Singh [mailto:randhir.si...@sterlite.com] Sent: Saturday, May 17, 2014 11:00 AM To: 'Tomcat Users List' Subject: RE: Tomcat dependency on application server Thanks Chris for your answer. There were separate PID's on Linux for JBoss Tomcat and I killed the Tomcat process. Would killing a Tomcat process also kill the JVM process? I had another related question of how to know the number of JVM's running, I mean the count of the number of JVM's. I hope, my query has been put across correctly. Requesting a reply. Regards -Original Message- From: Christopher Schultz [mailto:ch...@christopherschultz.net] Sent: Saturday, May 17, 2014 1:59 AM To: Tomcat Users List Subject: Re: Tomcat dependency on application server -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Randhir, On 5/15/14, 3:17 AM, Randhir Singh wrote: Hi, We have JBoss as the application server Tomcat as the web server in our production developmental setup which is on Red Hat Linux 5.X. We have tomcat 6.X. My query is that if I need to restart tomcat, do I need to restart JBoss Tomcat both or just restarting Tomcat would be enough. I am asking this query because I had killed the tomcat process using kill -9 and while restarting tomcat it was not starting but when I killed JBoss tomcat and then restarted, Tomcat was up. I hope my query is clear whether Tomcat is dependent on JBoss. I'm fairly sure that there is only a single JVM for JBoss/Tomcat. If you killed one, you've killed the other. - -chris From what I've read, JBoss is based on a forked version of Tomcat and shouldn't need a separate instance of Tomcat to function. Are you using them together to serve separate content? If so, why? -Terence Bandoian - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Tomcat dependency on application server
Really, there are about 1 gazzillion valid ways to setup an application consisting of n number of tomcats and m number of jbosses, running in same or separate processes/vms/datacenters and doing stuff. Maybe you should first find out, what your deployment architecture is, and what your app does. Probably ps is a good way to start to find out what is really running on your machine and where. Leon On Sat, May 17, 2014 at 11:35 AM, Randhir Singh randhir.si...@sterlite.comwrote: I have 1 observation. In our developmental environment, I killed the Tomcat process and started the Tomcat it worked. But in the production environment, starting Tomcat was not enough and I had to restart JBoss Tomcat in sequence for Tomcat to be up. Could it mean that JVM is crashing or something because of OOME in Tomcat. I could try to increase the heap Permgen memory in Tomcat, would that help? Requesting a reply. Regards -Original Message- From: Randhir Singh [mailto:randhir.si...@sterlite.com] Sent: Saturday, May 17, 2014 11:00 AM To: 'Tomcat Users List' Subject: RE: Tomcat dependency on application server Thanks Chris for your answer. There were separate PID's on Linux for JBoss Tomcat and I killed the Tomcat process. Would killing a Tomcat process also kill the JVM process? I had another related question of how to know the number of JVM's running, I mean the count of the number of JVM's. I hope, my query has been put across correctly. Requesting a reply. Regards -Original Message- From: Christopher Schultz [mailto:ch...@christopherschultz.net] Sent: Saturday, May 17, 2014 1:59 AM To: Tomcat Users List Subject: Re: Tomcat dependency on application server -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Randhir, On 5/15/14, 3:17 AM, Randhir Singh wrote: Hi, We have JBoss as the application server Tomcat as the web server in our production developmental setup which is on Red Hat Linux 5.X. We have tomcat 6.X. My query is that if I need to restart tomcat, do I need to restart JBoss Tomcat both or just restarting Tomcat would be enough. I am asking this query because I had killed the tomcat process using kill -9 and while restarting tomcat it was not starting but when I killed JBoss tomcat and then restarted, Tomcat was up. I hope my query is clear whether Tomcat is dependent on JBoss. I'm fairly sure that there is only a single JVM for JBoss/Tomcat. If you killed one, you've killed the other. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1 Comment: GPGTools - http://gpgtools.org Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQIcBAEBCAAGBQJTdnUaAAoJEBzwKT+lPKRYnH8QALfeHn4XVXB6KANb0hmAPEL3 7pNRaUW0AypQQjujzr7X4DKv3MOnMwWfIaiVcazNbtC7j+W3Mi6khksZIq1cz0At o9K0CDdJhAg5be9a68T7E5ko4mdy+rjX2ZsuX2LDdp5wyQaYWEXRWd3+hfBL2Gk7 D+225vxnMUeB9gHLaVUQ4k/3TOZvO/DYT9TCnxOlviP1+QEek5chN6a9XDJpQKpg O/EVBudYmDMLu9QKbOJJ5jomKUUa/VPsjhwz4O32+2Zok5VWLIrct5joF3r2ej+p 5RfHLnijRcCX5QkZOAYM9mdvFuFb1+lNAUGKPJwZU47SI7delyJZwxqGJYmo495e Q2nGMqepgXlQhOtwuTMdSh9gFV6LqJeaWcW6ZpyMNXbkNSSRSIy3hgcZqRycsSUa dvBRg6j57MMhNiCDx9IVtxF+OqKbiiLNdb9tJRArSXdoSx3a1EYbRbmye3xWbrUv SYadbr14KBqTXxaK2qJBb7E3j/fn1J5NKEARQbM/ML5Q/0TaNIRMlmjbOt2yccYG pNRtC8FRkHWaN3eYtpM0vMNCZ/Cl/atzr3StoN/EX5bWjba6eaaXBaeKdG3FypyY jL0nQu7P0Ir1ASrcxlQeN5snLmI2G4AoFjenOhEsCDDQKixSiryzZRR6ZVqCPZ/k Bi3P3ZPYqngg8oU6s6b6 =bJS6 -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org -- *STL Disclaimer:* The content of this message may be legally privileged and confidential and are for the use of the intended recipient(s) only. It should not be read, copied and used by anyone other than the intended recipient(s). If you have received this message in error, please immediately notify the sender, preserve its confidentiality and delete it. Before opening any attachments please check them for viruses and defects. No employee or agent is authorised to conclude any binding agreement on behalf of Sterlite Technologies Limited with another party by email without express written confirmation by authorised person. Visit us at www.sterlitetechnologies.com Please consider environment before printing this email ! - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
jsf validator not found when using maven tomcat 7 plugin
Hey guys, I'm developing a web application using latest version of spring 3.2 and latest version of jsf 2.2 (on Mac Mavericks). I defined a custom validator and give it an id using the faces exception annotation. If I run the application from Netbeans with the same tomcat version it works fine, if I run it from command line using mvn package tomcat7:run, the app starts and I get the javax.faces exception that my custom validator is not defined. Do you know if I have to do something different when running from maven? Thank you, Iulian