Re: how to reload SSL certificates without restarting Tomcat
Jerry, On 3/11/24 14:51, Jerry Lin wrote: Hi Chris, There is also this: https://tomcat.apache.org/presentations.html#latest-lets-encrypt It's very LE-focused, but it shows you how to programmatically trigger a reload. Thanks for your presentation and script. We are using Let's Encrypt, so your material is quite relevant. If I were to present that material today, it would be a lot shorter. In fact, I was asked last-minute to fill-in for a missing speaker in Halifax and I updated that presentation a bit and made it more of a conversation with the audience. I hadn't included anything about the automatic-update feature Tomcat has added since the previous staging of that presentation and afterwards I went in and removed something like 40% of the material in the presentation. So it's all perfectly valid, but it's even easier to use LE with Tomcat, now. -chris - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: how to reload SSL certificates without restarting Tomcat
Hi Chris, There is also this: > https://tomcat.apache.org/presentations.html#latest-lets-encrypt > > It's very LE-focused, but it shows you how to programmatically trigger a > reload. > Thanks for your presentation and script. We are using Let's Encrypt, so your material is quite relevant. Jerry
Re: how to reload SSL certificates without restarting Tomcat
Jerry, On 3/10/24 16:00, Jerry Lin wrote: Hi Chuck, Presumably, you mean “not behind https", since “Apache” refers to the organization that develops and maintains a plethora of software products. Yes, “not behind https" (I meant not behind an Apache HTTP server) you can configure the TLS config listener: https://tomcat.apache.org/tomcat-10.1-doc/config/listeners.html#TLS_configuration_reload_listener_-_org.apache.catalina.security.TLSCertificateReloadListener Great, thanks! This is what I was looking for. There is also this: https://tomcat.apache.org/presentations.html#latest-lets-encrypt It's very LE-focused, but it shows you how to programmatically trigger a reload. Chuck's reference to the auto-reloading is even better if you don't mind the background process checking for you, instead of proactively-triggering the reload. -chris - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: how to reload SSL certificates without restarting Tomcat
> On Mar 10, 2024, at 15:00, Jerry Lin wrote: > > Hi Chuck, > > Presumably, you mean “not behind https", since “Apache” refers to the >> organization that develops and maintains a plethora of software products. >> > Spell checker got me - I meant “httpd”, not “https”. - Chuck - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: how to reload SSL certificates without restarting Tomcat
Hi Chuck, Presumably, you mean “not behind https", since “Apache” refers to the > organization that develops and maintains a plethora of software products. > Yes, “not behind https" (I meant not behind an Apache HTTP server) > you can configure the TLS config listener: > > > https://tomcat.apache.org/tomcat-10.1-doc/config/listeners.html#TLS_configuration_reload_listener_-_org.apache.catalina.security.TLSCertificateReloadListener Great, thanks! This is what I was looking for. Regards, Jerry
Re: how to reload SSL certificates without restarting Tomcat
> On Mar 10, 2024, at 12:39, Jerry Lin wrote: > > For those of us with a publicly accessible instance of Tomcat (e.g. not > behind Apache), is there a good way of having a renewed SSL/HTTPS > certificate take effect without restarting Tomcat? Presumably, you mean “not behind https", since “Apache” refers to the organization that develops and maintains a plethora of software products. If you’re running on a supported version of Tomcat (you didn’t tell us what level you’re using), you can configure the TLS config listener: https://tomcat.apache.org/tomcat-10.1-doc/config/listeners.html#TLS_configuration_reload_listener_-_org.apache.catalina.security.TLSCertificateReloadListener https://tomcat.apache.org/tomcat-9.0-doc/config/listeners.html#TLS_configuration_reload_listener_-_org.apache.catalina.security.TLSCertificateReloadListener https://tomcat.apache.org/tomcat-8.5-doc/config/listeners.html#TLS_configuration_reload_listener_-_org.apache.catalina.security.TLSCertificateReloadListener - Chuck
AW: how to reload SSL certificates without restarting Tomcat
I would have several parallel productive instances, and renew them in sequence to be always online -> on connection will be interrupted with the customer. Best Alex -Ursprüngliche Nachricht- Von: Jerry Lin Gesendet: Sonntag, 10. März 2024 18:40 An: users@tomcat.apache.org Betreff: how to reload SSL certificates without restarting Tomcat Hello, For those of us with a publicly accessible instance of Tomcat (e.g. not behind Apache), is there a good way of having a renewed SSL/HTTPS certificate take effect without restarting Tomcat? Thank you, Jerry - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
how to reload SSL certificates without restarting Tomcat
Hello, For those of us with a publicly accessible instance of Tomcat (e.g. not behind Apache), is there a good way of having a renewed SSL/HTTPS certificate take effect without restarting Tomcat? Thank you, Jerry
Re: Changing Sever.xml without restarting Tomcat 8.5
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Laurie, On 7/24/18 5:54 AM, Laurie Miller-Cook wrote: > Hi Chris > > You mentioned the below in your reply > > "You might also want to consider having separate Tomcat instances > per domain. That might be more manageable, though it will require > more memory on your server(s)." > > Is there a best practice guide to what we are trying to achieve, > multiple domains on one server, we are new to Tomcat, so we are > implementing what we can find in documentation on the web? The only best-practice advice I can give is "do what is best for your use-case". Completely un-helpful, I know. I can only tell you what my own experience has been. We've gotten a lot of mileage out of multi-instance Tomcat deployments. We deploy a single application to a single Tomcat instance, and we have 4 applications to deply. That means that every node in our deployments are running 4 JVMs each with Tomcat + a single application. We find that this gives us the most flexibility at the expense of a little memory. > We need to be able to supply each customer the same IP Port, say 80 > or 443, if we have multiple instances of Tomcat on one server > then would we need a proxy in front (for wants of better words) > which could then direct the customers to the correct websites and > hence get the same IP Port. We also use SSL so I assume wildcard > certificate would need to be applied to each Tomcat instance? You would need to have a reverse-proxy, yes. You should have this, anyway, because trusting a single JVM/Tomcat/application not to go down for any number of reasons is asking for trouble. So a proxy+multiple node deployment should already be in your plans. The TLS certificate issue should be handled at the proxy, using whatever strategy makes sense for you. I don't know what kinds of certificates you need, but any decent proxy should allow you to deploy (virtually) unlimited certificates for any number of domains. Wildcard certs aren't always the right approach, but this is outside the scope of our discussion, here. You can configure any certificates you may need at the proxy. You could do it with Tomcat, too, but ... see my previous assertion about *needing* a reverse-proxy. > Would each instance of Tomcat require its own JVM, hence your > comment about more memory on the servers, do you know of any > resourcing guide lines for multiple instances on Tomcat on one > server? Yes, each instance is a separate JVM. The overhead of a single JVM isn't much (where "much" is, of course, relative). If your application can run comfortably in a few MB of heap space then Tomcat's contribution to your memory footprint is going to be fairly large. But most Java web applications these days have multi-gigabyte heaps. JVM and Tomcat overhead is something like 32MiB. That's nothing compared to the huge amounts of memory your application is likely to require. Hope that helps, - -chris > -Original Message- From: Christopher Schultz > Sent: Monday, July 23, 2018 7:33 PM > To: users@tomcat.apache.org Subject: Re: Changing Sever.xml without > restarting Tomcat 8.5 > > Laurie, > > On 7/23/18 12:25 PM, Laurie Miller-Cook wrote: >> Hi there, > >> I have an issue where we have multiple virtual hosts in separate >> base directory's on a single Tomcat installation. If I need to >> change something within server.xml I need to restart Tomcat which >> means I need to do this within an outage window as it affects all >> of the Websites, is there a way of reloading the server.xml >> without restarting Tomcat? > >> As a bit of background we have a wildcard domain, so >> ..com so we have created multiple webapp >> directories with their own Manage and have multiple entries in >> the server.xml file for the different hosts. > >> What need to be able to do is, for example, is add another host >> to the xml site and get that to take effect automatically without >> the need to restarting Tomcat as this restarts all the other >> websites and hence gives outages to our customers. > >> Any help would be greatly appreciated. > > Tomcat won't reload server.xml. It's just too complicated to > determine what has changed and how to perform an in-place reinit > that only does what is "necessary". > > On the other hand, JMX is very powerful and you can make runtime > changes to Tomcat using that. Maybe you can consider performing two > operations whenever you need to add a virtual host: > > 1. Modify the conf/server.xml 2. Issue a JMX command to provision > the new virtual host in the running Tomcat > > You might also want to consider having separate Tomcat instanc
RE: Changing Sever.xml without restarting Tomcat 8.5
Hi Chris You mentioned the below in your reply "You might also want to consider having separate Tomcat instances per domain. That might be more manageable, though it will require more memory on your server(s)." Is there a best practice guide to what we are trying to achieve, multiple domains on one server, we are new to Tomcat, so we are implementing what we can find in documentation on the web? We need to be able to supply each customer the same IP Port, say 80 or 443, if we have multiple instances of Tomcat on one server then would we need a proxy in front (for wants of better words) which could then direct the customers to the correct websites and hence get the same IP Port. We also use SSL so I assume wildcard certificate would need to be applied to each Tomcat instance? Would each instance of Tomcat require its own JVM, hence your comment about more memory on the servers, do you know of any resourcing guide lines for multiple instances on Tomcat on one server? Sorry for all the questions. All the best Laurie Miller-Cook dd: +44 (0)1252 607220 e: laurie.miller-c...@larmerbrown.com -Original Message- From: Christopher Schultz Sent: Monday, July 23, 2018 7:33 PM To: users@tomcat.apache.org Subject: Re: Changing Sever.xml without restarting Tomcat 8.5 -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Laurie, On 7/23/18 12:25 PM, Laurie Miller-Cook wrote: > Hi there, > > I have an issue where we have multiple virtual hosts in separate base > directory's on a single Tomcat installation. If I need to change > something within server.xml I need to restart Tomcat which means I > need to do this within an outage window as it affects all of the > Websites, is there a way of reloading the server.xml without > restarting Tomcat? > > As a bit of background we have a wildcard domain, so > ..com so we have created multiple webapp > directories with their own Manage and have multiple entries in the > server.xml file for the different hosts. > > What need to be able to do is, for example, is add another host to > the xml site and get that to take effect automatically without the > need to restarting Tomcat as this restarts all the other websites and > hence gives outages to our customers. > > Any help would be greatly appreciated. Tomcat won't reload server.xml. It's just too complicated to determine what has changed and how to perform an in-place reinit that only does what is "necessary". On the other hand, JMX is very powerful and you can make runtime changes to Tomcat using that. Maybe you can consider performing two operations whenever you need to add a virtual host: 1. Modify the conf/server.xml 2. Issue a JMX command to provision the new virtual host in the running Tomcat You might also want to consider having separate Tomcat instances per domain. That might be more manageable, though it will require more memory on your server(s). - -chris -BEGIN PGP SIGNATURE- Comment: GPGTools - http://gpgtools.org Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQIzBAEBCAAdFiEEMmKgYcQvxMe7tcJcHPApP6U8pFgFAltWH1YACgkQHPApP6U8 pFif+xAAqBJLoPub6ZsICJGVp5N87IYUlhcsFXEULLkomOkDCHGROea91uhUOdu+ a9JRZbC6tQQmhopqGNb5HkZrkNvkPBT13/71TDB7faGzwLXOv1/V0dRPO7KscgTq PikAuyXhSNyfOYorv7xKq2MwUdT86dAovukf8ClEDE1mX/7CgtE/MjW64eQcTc59 HNB8CilW8bAs3ApZso1EQEaUYoE7EkCtyWlnEFAtbbPsgzDD3CTpp4iqiVDGXkYD LsXUvLM8DtVdslzLztX5rRRxDaPsYXd8g9IOfi4yLqOMeOeO0FogBc6VpuC1d7gD TOeQARm0k2Xf/RbUKbAbD1gV/8xFPI4bKtSJINSD/A5o1Qpvv/rtVz0pQYJA8fgb u8v485wpmEFSDN+tE9MXE6YQ6HBJRtGQJ8j2xhhqU+iTbXonYX+BbxW9sqhXvvua 5i6cMjuWBuu49HYreaVHdV9N2kfxEJ2wLzVKXE3BEsWnVGYJEFHYizqS3yNyj9qv cDw1Pc5jfYdfzFkn8oXZe1t1fHXRcxTN6XpwBKzmHxEkwCh+cvwwkZ10zaEjphs1 22X6xsi88e0ng/xdoQPKb+CPNq/13VYS0l1jlAcMc8DPeocSonMv20Y9pySep80h YioelFbIrdjH7teVKoR9GoR2f/vA22D7UV600GOi2nXiWVWkn2Y= =hB5A -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Changing Sever.xml without restarting Tomcat 8.5
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Laurie, On 7/23/18 12:25 PM, Laurie Miller-Cook wrote: > Hi there, > > I have an issue where we have multiple virtual hosts in separate > base directory's on a single Tomcat installation. If I need to > change something within server.xml I need to restart Tomcat which > means I need to do this within an outage window as it affects all > of the Websites, is there a way of reloading the server.xml without > restarting Tomcat? > > As a bit of background we have a wildcard domain, so > ..com so we have created multiple webapp > directories with their own Manage and have multiple entries in the > server.xml file for the different hosts. > > What need to be able to do is, for example, is add another host to > the xml site and get that to take effect automatically without the > need to restarting Tomcat as this restarts all the other websites > and hence gives outages to our customers. > > Any help would be greatly appreciated. Tomcat won't reload server.xml. It's just too complicated to determine what has changed and how to perform an in-place reinit that only does what is "necessary". On the other hand, JMX is very powerful and you can make runtime changes to Tomcat using that. Maybe you can consider performing two operations whenever you need to add a virtual host: 1. Modify the conf/server.xml 2. Issue a JMX command to provision the new virtual host in the running Tomcat You might also want to consider having separate Tomcat instances per domain. That might be more manageable, though it will require more memory on your server(s). - -chris -BEGIN PGP SIGNATURE- Comment: GPGTools - http://gpgtools.org Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQIzBAEBCAAdFiEEMmKgYcQvxMe7tcJcHPApP6U8pFgFAltWH1YACgkQHPApP6U8 pFif+xAAqBJLoPub6ZsICJGVp5N87IYUlhcsFXEULLkomOkDCHGROea91uhUOdu+ a9JRZbC6tQQmhopqGNb5HkZrkNvkPBT13/71TDB7faGzwLXOv1/V0dRPO7KscgTq PikAuyXhSNyfOYorv7xKq2MwUdT86dAovukf8ClEDE1mX/7CgtE/MjW64eQcTc59 HNB8CilW8bAs3ApZso1EQEaUYoE7EkCtyWlnEFAtbbPsgzDD3CTpp4iqiVDGXkYD LsXUvLM8DtVdslzLztX5rRRxDaPsYXd8g9IOfi4yLqOMeOeO0FogBc6VpuC1d7gD TOeQARm0k2Xf/RbUKbAbD1gV/8xFPI4bKtSJINSD/A5o1Qpvv/rtVz0pQYJA8fgb u8v485wpmEFSDN+tE9MXE6YQ6HBJRtGQJ8j2xhhqU+iTbXonYX+BbxW9sqhXvvua 5i6cMjuWBuu49HYreaVHdV9N2kfxEJ2wLzVKXE3BEsWnVGYJEFHYizqS3yNyj9qv cDw1Pc5jfYdfzFkn8oXZe1t1fHXRcxTN6XpwBKzmHxEkwCh+cvwwkZ10zaEjphs1 22X6xsi88e0ng/xdoQPKb+CPNq/13VYS0l1jlAcMc8DPeocSonMv20Y9pySep80h YioelFbIrdjH7teVKoR9GoR2f/vA22D7UV600GOi2nXiWVWkn2Y= =hB5A -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Changing Sever.xml without restarting Tomcat 8.5
Hi - This is the way that Tomcat is. You should think about your configuration. In these days of cheap VMs why are you overloading so many web apps onto a single server? Are you able to create a farm of servers? In other words have two or more? If so then you have a frontend load balancer of some kind managing where requests go. If you do then you should carefully shutdown and restart each server one at a time. (I started following this type of approach since Tomcat 3.3 on multiple top level domains.) Regards, Dave > On Jul 23, 2018, at 9:57 AM, M. Manna wrote: > > I am not sure if it's possible, and probably for a valid reasons. > Server.xml is the mother of server container config and messing things up > there means your servlet context/listeners etc. may need to be > reconfigured. Without a heavily customised/rewritten version of tomcat > config change listener, you cannot do it. > > Also check this - conf/server.xml file cannot be reloaded without > restarting Tomcat. > <https://tomcat.apache.org/tomcat-8.5-doc/config/context.html#Defining_a_context> > > By all means, confirm this by your research. > > On 23 July 2018 at 17:25, Laurie Miller-Cook < > laurie.miller-c...@larmerbrown.com> wrote: > >> Hi there, >> >> I have an issue where we have multiple virtual hosts in separate base >> directory's on a single Tomcat installation. If I need to change something >> within server.xml I need to restart Tomcat which means I need to do this >> within an outage window as it affects all of the Websites, is there a way >> of reloading the server.xml without restarting Tomcat? >> >> As a bit of background we have a wildcard domain, so >> ..com so we have created multiple webapp directories >> with their own Manage and have multiple entries in the server.xml file for >> the different hosts. >> >> What need to be able to do is, for example, is add another host to the xml >> site and get that to take effect automatically without the need to >> restarting Tomcat as this restarts all the other websites and hence gives >> outages to our customers. >> >> Any help would be greatly appreciated. >> >> All the best >> >> Laurie >> signature.asc Description: Message signed with OpenPGP
Re: Changing Sever.xml without restarting Tomcat 8.5
I am not sure if it's possible, and probably for a valid reasons. Server.xml is the mother of server container config and messing things up there means your servlet context/listeners etc. may need to be reconfigured. Without a heavily customised/rewritten version of tomcat config change listener, you cannot do it. Also check this - conf/server.xml file cannot be reloaded without restarting Tomcat. <https://tomcat.apache.org/tomcat-8.5-doc/config/context.html#Defining_a_context> By all means, confirm this by your research. On 23 July 2018 at 17:25, Laurie Miller-Cook < laurie.miller-c...@larmerbrown.com> wrote: > Hi there, > > I have an issue where we have multiple virtual hosts in separate base > directory's on a single Tomcat installation. If I need to change something > within server.xml I need to restart Tomcat which means I need to do this > within an outage window as it affects all of the Websites, is there a way > of reloading the server.xml without restarting Tomcat? > > As a bit of background we have a wildcard domain, so > ..com so we have created multiple webapp directories > with their own Manage and have multiple entries in the server.xml file for > the different hosts. > > What need to be able to do is, for example, is add another host to the xml > site and get that to take effect automatically without the need to > restarting Tomcat as this restarts all the other websites and hence gives > outages to our customers. > > Any help would be greatly appreciated. > > All the best > > Laurie >
Changing Sever.xml without restarting Tomcat 8.5
Hi there, I have an issue where we have multiple virtual hosts in separate base directory's on a single Tomcat installation. If I need to change something within server.xml I need to restart Tomcat which means I need to do this within an outage window as it affects all of the Websites, is there a way of reloading the server.xml without restarting Tomcat? As a bit of background we have a wildcard domain, so ..com so we have created multiple webapp directories with their own Manage and have multiple entries in the server.xml file for the different hosts. What need to be able to do is, for example, is add another host to the xml site and get that to take effect automatically without the need to restarting Tomcat as this restarts all the other websites and hence gives outages to our customers. Any help would be greatly appreciated. All the best Laurie
Re: Restarting Tomcat from within itself?
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Andrew, On 1/28/13 2:18 PM, Andrew Kujtan wrote: >> -Original Message- From: Christopher Schultz >> [mailto:ch...@christopherschultz.net] Sent: Monday, January 28, >> 2013 2:01 PM To: Tomcat Users List Subject: Re: Restarting Tomcat >> from within itself? >> > Andrew, > > On 1/28/13 1:49 PM, Andrew Kujtan wrote: >>>>> -Original Message- From: Christopher Schultz >>>>> [mailto:ch...@christopherschultz.net] Sent: Monday, January >>>>> 28, 2013 10:33 AM To: Tomcat Users List Subject: Re: >>>>> Restarting Tomcat from within itself? >>>>> >>>> Daniel, >>>> >>>> On 1/28/13 8:19 AM, Daniel Mikusa wrote: >>>>>>> On Jan 26, 2013, at 5:19 AM, Sunil Shevante wrote: >>>>>>> >>>>>>>> Hi, >>>>>>>> >>>>>>>> Is it possible to restart tomcat from within itself? >>>>>>>> >>>> >>>>> FWIW, It is possible to restart tomcat by calling, >>>> >>>>> org.apache.catalina.startup.Bootstrap.main(new String[] { >>>>> "stop" }); >>>> >>>>> then use a shutdown hook to start it up again, >>>> >>>>> But I really don't recommend it. > > What would your shutdown hook do, then? > > -chris > >> Just use a ProcessBuilder to call the startup script in a new >> process. This seems like a risky proposition (I suppose no less risky than using -XX:OnOutOfMemoryError). If you run Tomcat under jsvc (or as a Windows Service), I believe you can configure both of those strategies to re-start Tomcat if it stops for some reason. In that case, a simple System.exit() will shut-down Tomcat (or you can send a SHUTDOWN command to your own shutdown port) and the service-monitor can re-start it. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG/MacGPG2 v2.0.17 (Darwin) Comment: GPGTools - http://gpgtools.org Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iEYEAREIAAYFAlEG7REACgkQ9CaO5/Lv0PDDVgCfQHgkF6c1ohuWY20iFJuVkigs RewAnRLNVNwJye7t8YhlZoKx/C920bj7 =I1SP -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Restarting Tomcat from within itself?
To add information to the query - I dont have access to the server. So I cannot setup jobs or change tomcat startup parameters. I have hosted my site with a provider and I only have cpanel access. Hence I am looking for some code which would restart/reintialize tomcat from within. Website - www.investorschoolindia.com --- On Tue, 1/29/13, Andrew Kujtan wrote: From: Andrew Kujtan Subject: RE: Restarting Tomcat from within itself? To: "Tomcat Users List" Date: Tuesday, January 29, 2013, 12:48 AM > -Original Message- > From: Christopher Schultz [mailto:ch...@christopherschultz.net] > Sent: Monday, January 28, 2013 2:01 PM > To: Tomcat Users List > Subject: Re: Restarting Tomcat from within itself? > > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA256 > > Andrew, > > On 1/28/13 1:49 PM, Andrew Kujtan wrote: > >> -Original Message- From: Christopher Schultz > >> [mailto:ch...@christopherschultz.net] Sent: Monday, January 28, > >> 2013 10:33 AM To: Tomcat Users List Subject: Re: Restarting Tomcat > >> from within itself? > >> > > Daniel, > > > > On 1/28/13 8:19 AM, Daniel Mikusa wrote: > >>>> On Jan 26, 2013, at 5:19 AM, Sunil Shevante wrote: > >>>> > >>>>> Hi, > >>>>> > >>>>> Is it possible to restart tomcat from within itself? > >>>>> > > > >> FWIW, It is possible to restart tomcat by calling, > > > >> org.apache.catalina.startup.Bootstrap.main(new String[] { "stop" > >> }); > > > >> then use a shutdown hook to start it up again, > > > >> But I really don't recommend it. > > What would your shutdown hook do, then? > > - -chris Just use a ProcessBuilder to call the startup script in a new process. > -BEGIN PGP SIGNATURE- > Version: GnuPG/MacGPG2 v2.0.17 (Darwin) > Comment: GPGTools - http://gpgtools.org > Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ > > iEYEAREIAAYFAlEGyvkACgkQ9CaO5/Lv0PAYJACghkS1q1PS8twbUz2ITogaw6uW > oXoAoLD7TAO5YNi1+N4tcmEej0aBu1qr > =23Sy > -END PGP SIGNATURE- > > - > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Restarting Tomcat from within itself?
> -Original Message- > From: Christopher Schultz [mailto:ch...@christopherschultz.net] > Sent: Monday, January 28, 2013 2:01 PM > To: Tomcat Users List > Subject: Re: Restarting Tomcat from within itself? > > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA256 > > Andrew, > > On 1/28/13 1:49 PM, Andrew Kujtan wrote: > >> -Original Message- From: Christopher Schultz > >> [mailto:ch...@christopherschultz.net] Sent: Monday, January 28, > >> 2013 10:33 AM To: Tomcat Users List Subject: Re: Restarting Tomcat > >> from within itself? > >> > > Daniel, > > > > On 1/28/13 8:19 AM, Daniel Mikusa wrote: > >>>> On Jan 26, 2013, at 5:19 AM, Sunil Shevante wrote: > >>>> > >>>>> Hi, > >>>>> > >>>>> Is it possible to restart tomcat from within itself? > >>>>> > > > >> FWIW, It is possible to restart tomcat by calling, > > > >> org.apache.catalina.startup.Bootstrap.main(new String[] { "stop" > >> }); > > > >> then use a shutdown hook to start it up again, > > > >> But I really don't recommend it. > > What would your shutdown hook do, then? > > - -chris Just use a ProcessBuilder to call the startup script in a new process. > -BEGIN PGP SIGNATURE- > Version: GnuPG/MacGPG2 v2.0.17 (Darwin) > Comment: GPGTools - http://gpgtools.org > Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ > > iEYEAREIAAYFAlEGyvkACgkQ9CaO5/Lv0PAYJACghkS1q1PS8twbUz2ITogaw6uW > oXoAoLD7TAO5YNi1+N4tcmEej0aBu1qr > =23Sy > -END PGP SIGNATURE- > > - > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Restarting Tomcat from within itself?
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Andrew, On 1/28/13 1:49 PM, Andrew Kujtan wrote: >> -Original Message- From: Christopher Schultz >> [mailto:ch...@christopherschultz.net] Sent: Monday, January 28, >> 2013 10:33 AM To: Tomcat Users List Subject: Re: Restarting >> Tomcat from within itself? >> > Daniel, > > On 1/28/13 8:19 AM, Daniel Mikusa wrote: >>>> On Jan 26, 2013, at 5:19 AM, Sunil Shevante wrote: >>>> >>>>> Hi, >>>>> >>>>> Is it possible to restart tomcat from within itself? >>>>> > >> FWIW, It is possible to restart tomcat by calling, > >> org.apache.catalina.startup.Bootstrap.main(new String[] { "stop" >> }); > >> then use a shutdown hook to start it up again, > >> But I really don't recommend it. What would your shutdown hook do, then? - -chris -BEGIN PGP SIGNATURE- Version: GnuPG/MacGPG2 v2.0.17 (Darwin) Comment: GPGTools - http://gpgtools.org Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iEYEAREIAAYFAlEGyvkACgkQ9CaO5/Lv0PAYJACghkS1q1PS8twbUz2ITogaw6uW oXoAoLD7TAO5YNi1+N4tcmEej0aBu1qr =23Sy -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Restarting Tomcat from within itself?
> -Original Message- > From: Christopher Schultz [mailto:ch...@christopherschultz.net] > Sent: Monday, January 28, 2013 10:33 AM > To: Tomcat Users List > Subject: Re: Restarting Tomcat from within itself? > > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA256 > > Daniel, > > On 1/28/13 8:19 AM, Daniel Mikusa wrote: > > On Jan 26, 2013, at 5:19 AM, Sunil Shevante wrote: > > > >> Hi, > >> > >> Is it possible to restart tomcat from within itself? > >> FWIW, It is possible to restart tomcat by calling, org.apache.catalina.startup.Bootstrap.main(new String[] { "stop" }); then use a shutdown hook to start it up again, But I really don't recommend it. > >> I host a JSP website and somehow the memory utilization keeps on > >> increasing from time to time. I then have to manually restart > Tomcat. > >> > >> While I understand that in the long term, I should focus on fixing > >> the memory leaks, is there a way by which I can restart Tomcat after > >> the free memory goes below a threshold percentage? > > > > I wouldn't try to do this inside Tomcat. With the tools provided by > > the JVM (jmap or JMX), you can monitor just as easily from outside > > Tomcat. Instead, create a monitoring script to watch the Tomcat > > process. When memory usage hits a certain level, dump the heap (so > > you can analyze your memory problem later) and restart Tomcat. > > +1 > > If you want to chance it, you could set -XX:OnOutOfMemoryError= > and write a script that tries to dump your heap (or just have the JVM > do that for you) and then bounce Tomcat. > > Note that not all OOMEs are life-threatening for the JVM. > > I have experienced two kinds of OOMEs: > > 1) Truly out of memory: your app simply needs more heap. In these >cases, the JVM generally goes into GC panic for a short amount of >time trying to free-up memory and then finally throws OOME. >Nothing meaningful seems to work after that: DBCPs run dry, >etc. In these cases, I have had to restart my JVM completely >in order for any users to get anything meaningful done. > > 2. Transient memory exhaustion: this happens when we have some careless >code that loads 100,000 records from a single database query all >into a big java.util.List or something like that. In these cases, >a single thread gets an OOME, the List gets GC'd very quickly, and >the server (and JVM) are fine. We generally do restart our JVMs when >this happens, but we can wait until off-hours when fewer users are >likely to be impacted in any way. > > > Alternatively, you could use a preexisting tool to monitor your > Tomcat > > instance like Nagios or Hyperic. > > These solutions really only monitor. Yes, you can configure them to > "react" to certain situations by abusing the notification system, but > they are really meant for monitoring and notification, not for > automated tasks. > > >> I am using tomcat 6.0.14 on unix. > > > > This is really old, upgrade. > > +10 > > - -chris > -BEGIN PGP SIGNATURE- > Version: GnuPG/MacGPG2 v2.0.17 (Darwin) > Comment: GPGTools - http://gpgtools.org > Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ > > iEYEAREIAAYFAlEGmisACgkQ9CaO5/Lv0PAMeACfflakV2t8RT5kjF/wQf8joYl9 > swgAmgL1pwbvX5yLe2jUSGaOXXr5SDzf > =MaHM > -END PGP SIGNATURE- > > - > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Restarting Tomcat from within itself?
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Hassan, On 1/28/13 10:43 AM, Hassan Schroeder wrote: > On Mon, Jan 28, 2013 at 7:32 AM, Christopher Schultz > wrote: > >>> Alternatively, you could use a preexisting tool to monitor >>> your Tomcat instance like Nagios or Hyperic. >> >> These solutions really only monitor. Yes, you can configure them >> to "react" to certain situations by abusing the notification >> system, but they are really meant for monitoring and >> notification, not for automated tasks. > > Unlike, say, http://mmonit.com/monit/ :-) Hey, that's cool. Thanks for the reference. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG/MacGPG2 v2.0.17 (Darwin) Comment: GPGTools - http://gpgtools.org Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iEYEAREIAAYFAlEGpKEACgkQ9CaO5/Lv0PCsWgCcDl0zhBl76bANry7kINfPLI3u ObYAoLg3BGf3MDEkFzpHq2oLRqRxDUkG =XvkL -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Restarting Tomcat from within itself?
On Mon, Jan 28, 2013 at 7:32 AM, Christopher Schultz wrote: >> Alternatively, you could use a preexisting tool to monitor your >> Tomcat instance like Nagios or Hyperic. > > These solutions really only monitor. Yes, you can configure them to > "react" to certain situations by abusing the notification system, but > they are really meant for monitoring and notification, not for > automated tasks. Unlike, say, http://mmonit.com/monit/ :-) -- Hassan Schroeder hassan.schroe...@gmail.com http://about.me/hassanschroeder twitter: @hassan - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Restarting Tomcat from within itself?
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Daniel, On 1/28/13 8:19 AM, Daniel Mikusa wrote: > On Jan 26, 2013, at 5:19 AM, Sunil Shevante wrote: > >> Hi, >> >> Is it possible to restart tomcat from within itself? >> >> I host a JSP website and somehow the memory utilization keeps on >> increasing from time to time. I then have to manually restart >> Tomcat. >> >> While I understand that in the long term, I should focus on >> fixing the memory leaks, is there a way by which I can restart >> Tomcat after the free memory goes below a threshold percentage? > > I wouldn't try to do this inside Tomcat. With the tools provided > by the JVM (jmap or JMX), you can monitor just as easily from > outside Tomcat. Instead, create a monitoring script to watch the > Tomcat process. When memory usage hits a certain level, dump the > heap (so you can analyze your memory problem later) and restart > Tomcat. +1 If you want to chance it, you could set -XX:OnOutOfMemoryError= and write a script that tries to dump your heap (or just have the JVM do that for you) and then bounce Tomcat. Note that not all OOMEs are life-threatening for the JVM. I have experienced two kinds of OOMEs: 1) Truly out of memory: your app simply needs more heap. In these cases, the JVM generally goes into GC panic for a short amount of time trying to free-up memory and then finally throws OOME. Nothing meaningful seems to work after that: DBCPs run dry, etc. In these cases, I have had to restart my JVM completely in order for any users to get anything meaningful done. 2. Transient memory exhaustion: this happens when we have some careless code that loads 100,000 records from a single database query all into a big java.util.List or something like that. In these cases, a single thread gets an OOME, the List gets GC'd very quickly, and the server (and JVM) are fine. We generally do restart our JVMs when this happens, but we can wait until off-hours when fewer users are likely to be impacted in any way. > Alternatively, you could use a preexisting tool to monitor your > Tomcat instance like Nagios or Hyperic. These solutions really only monitor. Yes, you can configure them to "react" to certain situations by abusing the notification system, but they are really meant for monitoring and notification, not for automated tasks. >> I am using tomcat 6.0.14 on unix. > > This is really old, upgrade. +10 - -chris -BEGIN PGP SIGNATURE- Version: GnuPG/MacGPG2 v2.0.17 (Darwin) Comment: GPGTools - http://gpgtools.org Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iEYEAREIAAYFAlEGmisACgkQ9CaO5/Lv0PAMeACfflakV2t8RT5kjF/wQf8joYl9 swgAmgL1pwbvX5yLe2jUSGaOXXr5SDzf =MaHM -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Restarting Tomcat from within itself?
On Jan 26, 2013, at 5:19 AM, Sunil Shevante wrote: > Hi, > > Is it possible to restart tomcat from within itself? > > I host a JSP website and somehow the memory utilization keeps on increasing > from time to time. I then have to manually restart Tomcat. > > While I understand that in the long term, I should focus on fixing the memory > leaks, is there a way by which I can restart Tomcat after the free memory > goes below a threshold percentage? I wouldn't try to do this inside Tomcat. With the tools provided by the JVM (jmap or JMX), you can monitor just as easily from outside Tomcat. Instead, create a monitoring script to watch the Tomcat process. When memory usage hits a certain level, dump the heap (so you can analyze your memory problem later) and restart Tomcat. Alternatively, you could use a preexisting tool to monitor your Tomcat instance like Nagios or Hyperic. > > I am using tomcat 6.0.14 on unix. This is really old, upgrade. Dan > > Thanks, > Sunil - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Restarting tomcat 7.0.23 on MAC OS X 10.6
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Oliver, On 1/30/12 4:41 AM, Oliver Due Billing wrote: > Found some more details. > > INFO: Server startup in *151496* ms <-- This is my problem :) > My startup command is: sudo /Library/Tomcat/bin/startup.sh > > I Get alot of this stuff, but I do get DB access: > > The last packet sent successfully to the server was 0 milliseconds > ago. The driver has not received any packets from the server. > > [...] > > Caused by: java.net.ConnectException: Operation timed out at > java.net.PlainSocketImpl.socketConnect(Native Method) at > java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351) at > java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213) > > at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200) > at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:432) at > java.net.Socket.connect(Socket.java:529) at > java.net.Socket.connect(Socket.java:478) at > java.net.Socket.(Socket.java:375) at > java.net.Socket.(Socket.java:218) at > com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:253) > > at com.mysql.jdbc.MysqlIO.(MysqlIO.java:292) > ... 38 more Looks like your app can't connect to the database, and it's timing out - -- probably during a servlet context listener or something (stack trace is truncated a bit by the JVM, here). Any reason your DB wouldn't pick up the phone? - -chris -BEGIN PGP SIGNATURE- Version: GnuPG/MacGPG2 v2.0.17 (Darwin) Comment: GPGTools - http://gpgtools.org Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk8oUs0ACgkQ9CaO5/Lv0PDpjgCeMCFgW0sb5t9iSg+ZM3eS9fuW 3GMAoKqDHWJsrdzxCVT9gW3wBC0ghQLk =+Mge -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Restarting tomcat 7.0.23 on MAC OS X 10.6
Hey Found some more details. INFO: Server startup in *151496* ms <-- This is my problem My startup command is: sudo /Library/Tomcat/bin/startup.sh I Get alot of this stuff, but I do get DB access: The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:513) at com.mysql.jdbc.Util.handleNewInstance(Util.java:406) at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1119) at com.mysql.jdbc.MysqlIO.(MysqlIO.java:343) at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2178) ... 37 more Caused by: java.net.ConnectException: Operation timed out at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351) at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213) at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200) at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:432) at java.net.Socket.connect(Socket.java:529) at java.net.Socket.connect(Socket.java:478) at java.net.Socket.(Socket.java:375) at java.net.Socket.(Socket.java:218) at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:253) at com.mysql.jdbc.MysqlIO.(MysqlIO.java:292) ... 38 more 30-01-2012 10:34:08 org.apache.catalina.core.NamingContextListener addResource WARNING: Failed to register in JMX: javax.naming.NamingException: Cannot create PoolableConnectionFactory (Communications link failure) 2012/1/24 Christopher Schultz > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Francis, > > On 1/24/12 4:19 AM, Francis GALIEGUE wrote: > > On Mon, Jan 23, 2012 at 17:52, Caldarale, Charles R > > wrote: > >>> From: Oliver Due Billing [mailto:o...@watagame.com] Subject: > >>> Restarting tomcat 7.0.23 on MAC OS X 10.6 > >> > >>> I have a test-server on my macbook pro and it takes forever to > >>> restart the server do anyone have a clue to whats happening. > >> > >> It may be collecting entropy. Take a thread dump, and see what > >> the JVM is doing during the pause. > >> > >> You can try setting > >> > >> -Djava.security.egd=file:/dev/./urandom > >> > >> as a system property. Note that the apparently extra "/." is > >> required to trick the JVM into using the alternate random byte > >> source. > > > > I was about to suggest this but wasn't sure that the problem also > > existed for Mac OS X... > > OSX definitely has both /dev/random and /dev/urandom, so I suspect > their semantics are similar to what I've experienced on Linux systems > before. > > I'm running (on my Mac): > > $ java -version > Java version "1.6.0_29" > Java(TM) SE Runtime Environment (build 1.6.0_29-b11-402-11M3527) > Java HotSpot(TM) 64-Bit Server VM (build 20.4-b02-402, mixed mode) > > ... and this is in my java.security file: > > securerandom.source=file:/dev/urandom > # > # The entropy gathering device is described as a URL and can also > # be specified with the system property "java.security.egd". For example, > # -Djava.security.egd=file:/dev/urandom > # Specifying this system property will override the securerandom.source > # setting. > > There is no explicit setting for java.security.egd. > > I've never had a problem restarting my webapps, but I'm not using SSL > on my own machine, which is the most likely thing to require a bunch > of entropy on startup. > > - -chris > -BEGIN PGP SIGNATURE- > Version: GnuPG/MacGPG2 v2.0.17 (Darwin) > Comment: GPGTools - http://gpgtools.org > Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ > > iEYEARECAAYFAk8eywUACgkQ9CaO5/Lv0PBmLQCgq8O1XwpQTZ7z7hVR91PFVNgW > qCEAoKRI7vBFqHx3VA+6QcLJThbtY01l > =iR5k > -END PGP SIGNATURE- > > - > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > > -- *Oliver Billing* *Developer* watAgame ApS Kigkurren 8D, 1st 2300 Copenhagen S Denmark office +45 3536 4110 direct +45 8833 6288 mobile +45 2087 7341 o...@watagame.com www.goSupermodel.com www.watAgame.com
Re: Restarting tomcat 7.0.23 on MAC OS X 10.6
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Francis, On 1/24/12 4:19 AM, Francis GALIEGUE wrote: > On Mon, Jan 23, 2012 at 17:52, Caldarale, Charles R > wrote: >>> From: Oliver Due Billing [mailto:o...@watagame.com] Subject: >>> Restarting tomcat 7.0.23 on MAC OS X 10.6 >> >>> I have a test-server on my macbook pro and it takes forever to >>> restart the server do anyone have a clue to whats happening. >> >> It may be collecting entropy. Take a thread dump, and see what >> the JVM is doing during the pause. >> >> You can try setting >> >> -Djava.security.egd=file:/dev/./urandom >> >> as a system property. Note that the apparently extra "/." is >> required to trick the JVM into using the alternate random byte >> source. > > I was about to suggest this but wasn't sure that the problem also > existed for Mac OS X... OSX definitely has both /dev/random and /dev/urandom, so I suspect their semantics are similar to what I've experienced on Linux systems before. I'm running (on my Mac): $ java -version Java version "1.6.0_29" Java(TM) SE Runtime Environment (build 1.6.0_29-b11-402-11M3527) Java HotSpot(TM) 64-Bit Server VM (build 20.4-b02-402, mixed mode) ... and this is in my java.security file: securerandom.source=file:/dev/urandom # # The entropy gathering device is described as a URL and can also # be specified with the system property "java.security.egd". For example, # -Djava.security.egd=file:/dev/urandom # Specifying this system property will override the securerandom.source # setting. There is no explicit setting for java.security.egd. I've never had a problem restarting my webapps, but I'm not using SSL on my own machine, which is the most likely thing to require a bunch of entropy on startup. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG/MacGPG2 v2.0.17 (Darwin) Comment: GPGTools - http://gpgtools.org Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk8eywUACgkQ9CaO5/Lv0PBmLQCgq8O1XwpQTZ7z7hVR91PFVNgW qCEAoKRI7vBFqHx3VA+6QcLJThbtY01l =iR5k -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Restarting tomcat 7.0.23 on MAC OS X 10.6
On Mon, Jan 23, 2012 at 17:52, Caldarale, Charles R wrote: >> From: Oliver Due Billing [mailto:o...@watagame.com] >> Subject: Restarting tomcat 7.0.23 on MAC OS X 10.6 > >> I have a test-server on my macbook pro and it takes forever to >> restart the server do anyone have a clue to whats happening. > > It may be collecting entropy. Take a thread dump, and see what the JVM is > doing during the pause. > > You can try setting > > -Djava.security.egd=file:/dev/./urandom > > as a system property. Note that the apparently extra "/." is required to > trick the JVM into using the alternate random byte source. > I was about to suggest this but wasn't sure that the problem also existed for Mac OS X... -- Francis Galiegue ONE2TEAM Ingénieur système Mob : +33 (0) 683 877 875 Tel : +33 (0) 178 945 552 f...@one2team.com 40 avenue Raymond Poincaré 75116 Paris - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Restarting tomcat 7.0.23 on MAC OS X 10.6
prio=5 tid=10c422000 nid=0x12910 >>> waiting on condition [1290ff000] >>>java.lang.Thread.State: TIMED_WAITING (sleeping) >>> at java.lang.Thread.sleep(Native Method) >>> at >>> >> org.apache.tomcat.util.net.JIoEndpoint$AsyncTimeout.run(JIoEndpoint.java:136) >>> at java.lang.Thread.run(Thread.java:680) >>> >>>Locked ownable synchronizers: >>> - None >>> >>> "http-bio-80-Acceptor-0" daemon prio=5 tid=10c507800 nid=0x128ffd000 >>> runnable [128ffc000] >>>java.lang.Thread.State: RUNNABLE >>> at java.net.PlainSocketImpl.socketAccept(Native Method) >>> at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:408) >>> - locked <7f4558f10> (a java.net.SocksSocketImpl) >>> at java.net.ServerSocket.implAccept(ServerSocket.java:462) >>> at java.net.ServerSocket.accept(ServerSocket.java:430) >>> at >>> >> org.apache.tomcat.util.net.DefaultServerSocketFactory.acceptSocket(DefaultServerSocketFactory.java:60) >>> at >>> org.apache.tomcat.util.net.JIoEndpoint$Acceptor.run(JIoEndpoint.java:207) >>> at java.lang.Thread.run(Thread.java:680) >>> >>>Locked ownable synchronizers: >>> - None >>> >>> "Java2D Disposer" daemon prio=10 tid=10c3e5000 nid=0x112cd1000 in >>> Object.wait() [112cd] >>>java.lang.Thread.State: WAITING (on object monitor) >>> at java.lang.Object.wait(Native Method) >>> - waiting on <7f495e630> (a java.lang.ref.ReferenceQueue$Lock) >>> at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:118) >>> - locked <7f495e630> (a java.lang.ref.ReferenceQueue$Lock) >>> at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:134) >>> at sun.java2d.Disposer.run(Disposer.java:127) >>> at java.lang.Thread.run(Thread.java:680) >>> >>>Locked ownable synchronizers: >>> - None >>> >>> "AWT-AppKit" daemon prio=5 tid=103a05800 nid=0x7fff703b3cc0 runnable >>> [] >>>java.lang.Thread.State: RUNNABLE >>> >>>Locked ownable synchronizers: >>> - None >>> >>> "Poller SunPKCS11-Darwin" daemon prio=1 tid=10c75b800 nid=0x10fcb8000 >>> waiting on condition [10fcb7000] >>>java.lang.Thread.State: TIMED_WAITING (sleeping) >>> at java.lang.Thread.sleep(Native Method) >>> at sun.security.pkcs11.SunPKCS11$TokenPoller.run(SunPKCS11.java:692) >>> at java.lang.Thread.run(Thread.java:680) >>> >>>Locked ownable synchronizers: >>> - None >>> >>> "Low Memory Detector" daemon prio=5 tid=10d00 nid=0x10bf0d000 >> runnable >>> [] >>>java.lang.Thread.State: RUNNABLE >>> >>>Locked ownable synchronizers: >>> - None >>> >>> "C2 CompilerThread1" daemon prio=9 tid=10c00f000 nid=0x10be0a000 waiting >> on >>> condition [0000] >>> java.lang.Thread.State: RUNNABLE >>> >>>Locked ownable synchronizers: >>> - None >>> >>> "C2 CompilerThread0" daemon prio=9 tid=101801800 nid=0x10bd07000 waiting >> on >>> condition [] >>>java.lang.Thread.State: RUNNABLE >>> >>>Locked ownable synchronizers: >>> - None >>> >>> "Signal Dispatcher" daemon prio=9 tid=101801000 nid=0x10bc04000 runnable >>> [] >>>java.lang.Thread.State: RUNNABLE >>> >>>Locked ownable synchronizers: >>> - None >>> >>> "Surrogate Locker Thread (Concurrent GC)" daemon prio=5 tid=103947800 >>> nid=0x10bb01000 waiting on condition [] >>>java.lang.Thread.State: RUNNABLE >>> >>>Locked ownable synchronizers: >>> - None >>> >>> "Finalizer" daemon prio=8 tid=10393f000 nid=0x10b7ff000 in Object.wait() >>> [10b7fe000] >>>java.lang.Thread.State: WAITING (on object monitor) >>> at java.lang.Object.wait(Native Method) >>> - waiting on <7f44d1fa0> (a java.lang.ref.ReferenceQueue$Lock) >>> at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:118) >>> - locked <7f44d1fa0> (a java.lang.ref.ReferenceQueue$Lock) >>> at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:134) >>> at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:159) >>> >>>Locked ownable synchronizers: >>> - None >>> >>> "Reference Handler" daemon prio=10 tid=10393e000 nid=0x10b6fc000 in >>> Object.wait() [10b6fb000] >>>java.lang.Thread.State: WAITING (on object monitor) >>> at java.lang.Object.wait(Native Method) >>> - waiting on <7f44c0840> (a java.lang.ref.Reference$Lock) >>> at java.lang.Object.wait(Object.java:485) >>> at java.lang.ref.Reference$ReferenceHandler.run(Reference.java:116) >>> - locked <7f44c0840> (a java.lang.ref.Reference$Lock) >>> >>>Locked ownable synchronizers: >>> - None >>> >>> "main" prio=5 tid=103800800 nid=0x100501000 runnable [1004ff000] >>>java.lang.Thread.State: RUNNABLE >>> at java.net.PlainSocketImpl.socketAccept(Native Method) >>> at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:408) >>> - locked <7f4b4b4e8> (a java.net.SocksSocketImpl) >>> at java.net.ServerSocket.implAccept(ServerSocket.java:462) >>> at java.net.ServerSocket.accept(ServerSocket.java:430) >>> at >>> org.apache.catalina.core.StandardServer.await(StandardServer.java:447) >>> at org.apache.catalina.startup.Catalina.await(Catalina.java:706) >>> at org.apache.catalina.startup.Catalina.start(Catalina.java:652) >>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) >>> at >>> >> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) >>> at >>> >> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) >>> at java.lang.reflect.Method.invoke(Method.java:597) >>> at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:322) >>> at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:450) >>> >>>Locked ownable synchronizers: >>> - None >>> >>> "VM Thread" prio=9 tid=103939800 nid=0x10b5f9000 runnable >>> >>> "Gang worker#0 (Parallel GC Threads)" prio=9 tid=103802000 >> nid=0x102501000 >>> runnable >>> >>> "Gang worker#1 (Parallel GC Threads)" prio=9 tid=103802800 >> nid=0x102604000 >>> runnable >>> >>> "Gang worker#2 (Parallel GC Threads)" prio=9 tid=103803000 >> nid=0x102707000 >>> runnable >>> >>> "Gang worker#3 (Parallel GC Threads)" prio=9 tid=103804000 >> nid=0x107102000 >>> runnable >>> >>> "Gang worker#4 (Parallel GC Threads)" prio=9 tid=103804800 >> nid=0x107205000 >>> runnable >>> >>> "Gang worker#5 (Parallel GC Threads)" prio=9 tid=103805000 >> nid=0x107308000 >>> runnable >>> >>> "Gang worker#6 (Parallel GC Threads)" prio=9 tid=103805800 >> nid=0x10740b000 >>> runnable >>> >>> "Gang worker#7 (Parallel GC Threads)" prio=9 tid=103806800 >> nid=0x10750e000 >>> runnable >>> >>> "Concurrent Mark-Sweep GC Thread" prio=9 tid=1038e3800 nid=0x10b305000 >>> runnable >>> "Gang worker#0 (Parallel CMS Threads)" prio=9 tid=1038e2800 >> nid=0x10a8ff000 >>> runnable >>> >>> "Gang worker#1 (Parallel CMS Threads)" prio=9 tid=1038e3000 >> nid=0x10aa02000 >>> runnable >>> >>> "VM Periodic Task Thread" prio=10 tid=10d00a000 nid=0x10ca01000 waiting >> on >>> condition >>> >>> "Exception Catcher Thread" prio=10 tid=103801800 nid=0x1017f9000 runnable >>> JNI global references: 1765 >>> >>> >>> 2012/1/23 Caldarale, Charles R >>> >>>>> From: Oliver Due Billing [mailto:o...@watagame.com] >>>>> Subject: Restarting tomcat 7.0.23 on MAC OS X 10.6 >>>> >>>>> I have a test-server on my macbook pro and it takes forever to >>>>> restart the server do anyone have a clue to whats happening. >>>> >>>> It may be collecting entropy. Take a thread dump, and see what the JVM >> is >>>> doing during the pause. >>>> >>>> You can try setting >>>> >>>> -Djava.security.egd=file:/dev/./urandom >>>> >>>> as a system property. Note that the apparently extra "/." is required >> to >>>> trick the JVM into using the alternate random byte source. >>>> >>>> - Chuck >>>> >>>> >>>> THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY >>>> MATERIAL and is thus for use only by the intended recipient. If you >>>> received this in error, please contact the sender and delete the e-mail >> and >>>> its attachments from all computers. >>>> >>>> >>>> - >>>> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org >>>> For additional commands, e-mail: users-h...@tomcat.apache.org >>>> >>>> >>> >>> >> >> >> -- >> >> [key:62590808] >> >> > > -- [key:62590808] signature.asc Description: OpenPGP digital signature
Re: Restarting tomcat 7.0.23 on MAC OS X 10.6
; - waiting on <7f495e630> (a java.lang.ref.ReferenceQueue$Lock) > > at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:118) > > - locked <7f495e630> (a java.lang.ref.ReferenceQueue$Lock) > > at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:134) > > at sun.java2d.Disposer.run(Disposer.java:127) > > at java.lang.Thread.run(Thread.java:680) > > > >Locked ownable synchronizers: > > - None > > > > "AWT-AppKit" daemon prio=5 tid=103a05800 nid=0x7fff703b3cc0 runnable > > [] > >java.lang.Thread.State: RUNNABLE > > > >Locked ownable synchronizers: > > - None > > > > "Poller SunPKCS11-Darwin" daemon prio=1 tid=10c75b800 nid=0x10fcb8000 > > waiting on condition [10fcb7000] > >java.lang.Thread.State: TIMED_WAITING (sleeping) > > at java.lang.Thread.sleep(Native Method) > > at sun.security.pkcs11.SunPKCS11$TokenPoller.run(SunPKCS11.java:692) > > at java.lang.Thread.run(Thread.java:680) > > > >Locked ownable synchronizers: > > - None > > > > "Low Memory Detector" daemon prio=5 tid=10d00 nid=0x10bf0d000 > runnable > > [] > >java.lang.Thread.State: RUNNABLE > > > >Locked ownable synchronizers: > > - None > > > > "C2 CompilerThread1" daemon prio=9 tid=10c00f000 nid=0x10be0a000 waiting > on > > condition [] > >java.lang.Thread.State: RUNNABLE > > > >Locked ownable synchronizers: > > - None > > > > "C2 CompilerThread0" daemon prio=9 tid=101801800 nid=0x10bd07000 waiting > on > > condition [] > >java.lang.Thread.State: RUNNABLE > > > >Locked ownable synchronizers: > > - None > > > > "Signal Dispatcher" daemon prio=9 tid=101801000 nid=0x10bc04000 runnable > > [] > >java.lang.Thread.State: RUNNABLE > > > >Locked ownable synchronizers: > > - None > > > > "Surrogate Locker Thread (Concurrent GC)" daemon prio=5 tid=103947800 > > nid=0x10bb01000 waiting on condition [] > >java.lang.Thread.State: RUNNABLE > > > >Locked ownable synchronizers: > > - None > > > > "Finalizer" daemon prio=8 tid=10393f000 nid=0x10b7ff000 in Object.wait() > > [10b7fe000] > >java.lang.Thread.State: WAITING (on object monitor) > > at java.lang.Object.wait(Native Method) > > - waiting on <7f44d1fa0> (a java.lang.ref.ReferenceQueue$Lock) > > at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:118) > > - locked <7f44d1fa0> (a java.lang.ref.ReferenceQueue$Lock) > > at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:134) > > at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:159) > > > >Locked ownable synchronizers: > > - None > > > > "Reference Handler" daemon prio=10 tid=10393e000 nid=0x10b6fc000 in > > Object.wait() [10b6fb000] > >java.lang.Thread.State: WAITING (on object monitor) > > at java.lang.Object.wait(Native Method) > > - waiting on <7f44c0840> (a java.lang.ref.Reference$Lock) > > at java.lang.Object.wait(Object.java:485) > > at java.lang.ref.Reference$ReferenceHandler.run(Reference.java:116) > > - locked <7f44c0840> (a java.lang.ref.Reference$Lock) > > > >Locked ownable synchronizers: > > - None > > > > "main" prio=5 tid=103800800 nid=0x100501000 runnable [1004ff000] > >java.lang.Thread.State: RUNNABLE > > at java.net.PlainSocketImpl.socketAccept(Native Method) > > at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:408) > > - locked <7f4b4b4e8> (a java.net.SocksSocketImpl) > > at java.net.ServerSocket.implAccept(ServerSocket.java:462) > > at java.net.ServerSocket.accept(ServerSocket.java:430) > > at > > org.apache.catalina.core.StandardServer.await(StandardServer.java:447) > > at org.apache.catalina.startup.Catalina.await(Catalina.java:706) > > at org.apache.catalina.startup.Catalina.start(Catalina.java:652) > > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > > at > > > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > > at > > > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > > at java.lang.reflect.Method.invoke(Method.java:597) > > at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:322) > > at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:450) > > > >Locked ownable synchronizers: > > - None > > > > "VM Thread" prio=9 tid=103939800 nid=0x10b5f9000 runnable > > > > "Gang worker#0 (Parallel GC Threads)" prio=9 tid=103802000 > nid=0x102501000 > > runnable > > > > "Gang worker#1 (Parallel GC Threads)" prio=9 tid=103802800 > nid=0x102604000 > > runnable > > > > "Gang worker#2 (Parallel GC Threads)" prio=9 tid=103803000 > nid=0x102707000 > > runnable > > > > "Gang worker#3 (Parallel GC Threads)" prio=9 tid=103804000 > nid=0x107102000 > > runnable > > > > "Gang worker#4 (Parallel GC Threads)" prio=9 tid=103804800 > nid=0x107205000 > > runnable > > > > "Gang worker#5 (Parallel GC Threads)" prio=9 tid=103805000 > nid=0x107308000 > > runnable > > > > "Gang worker#6 (Parallel GC Threads)" prio=9 tid=103805800 > nid=0x10740b000 > > runnable > > > > "Gang worker#7 (Parallel GC Threads)" prio=9 tid=103806800 > nid=0x10750e000 > > runnable > > > > "Concurrent Mark-Sweep GC Thread" prio=9 tid=1038e3800 nid=0x10b305000 > > runnable > > "Gang worker#0 (Parallel CMS Threads)" prio=9 tid=1038e2800 > nid=0x10a8ff000 > > runnable > > > > "Gang worker#1 (Parallel CMS Threads)" prio=9 tid=1038e3000 > nid=0x10aa02000 > > runnable > > > > "VM Periodic Task Thread" prio=10 tid=10d00a000 nid=0x10ca01000 waiting > on > > condition > > > > "Exception Catcher Thread" prio=10 tid=103801800 nid=0x1017f9000 runnable > > JNI global references: 1765 > > > > > > 2012/1/23 Caldarale, Charles R > > > >>> From: Oliver Due Billing [mailto:o...@watagame.com] > >>> Subject: Restarting tomcat 7.0.23 on MAC OS X 10.6 > >> > >>> I have a test-server on my macbook pro and it takes forever to > >>> restart the server do anyone have a clue to whats happening. > >> > >> It may be collecting entropy. Take a thread dump, and see what the JVM > is > >> doing during the pause. > >> > >> You can try setting > >> > >> -Djava.security.egd=file:/dev/./urandom > >> > >> as a system property. Note that the apparently extra "/." is required > to > >> trick the JVM into using the alternate random byte source. > >> > >> - Chuck > >> > >> > >> THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY > >> MATERIAL and is thus for use only by the intended recipient. If you > >> received this in error, please contact the sender and delete the e-mail > and > >> its attachments from all computers. > >> > >> > >> - > >> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > >> For additional commands, e-mail: users-h...@tomcat.apache.org > >> > >> > > > > > > > -- > > [key:62590808] > > -- *Oliver Billing* *Developer* watAgame ApS Kigkurren 8D, 1st 2300 Copenhagen S Denmark office +45 3536 4110 direct +45 8833 6288 mobile +45 2087 7341 o...@watagame.com www.goSupermodel.com www.watAgame.com
Re: Restarting tomcat 7.0.23 on MAC OS X 10.6
at java.lang.Object.wait(Native Method) > - waiting on <7f44d1fa0> (a java.lang.ref.ReferenceQueue$Lock) > at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:118) > - locked <7f44d1fa0> (a java.lang.ref.ReferenceQueue$Lock) > at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:134) > at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:159) > >Locked ownable synchronizers: > - None > > "Reference Handler" daemon prio=10 tid=10393e000 nid=0x10b6fc000 in > Object.wait() [10b6fb000] >java.lang.Thread.State: WAITING (on object monitor) > at java.lang.Object.wait(Native Method) > - waiting on <7f44c0840> (a java.lang.ref.Reference$Lock) > at java.lang.Object.wait(Object.java:485) > at java.lang.ref.Reference$ReferenceHandler.run(Reference.java:116) > - locked <7f44c0840> (a java.lang.ref.Reference$Lock) > >Locked ownable synchronizers: > - None > > "main" prio=5 tid=103800800 nid=0x100501000 runnable [1004ff000] >java.lang.Thread.State: RUNNABLE > at java.net.PlainSocketImpl.socketAccept(Native Method) > at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:408) > - locked <7f4b4b4e8> (a java.net.SocksSocketImpl) > at java.net.ServerSocket.implAccept(ServerSocket.java:462) > at java.net.ServerSocket.accept(ServerSocket.java:430) > at > org.apache.catalina.core.StandardServer.await(StandardServer.java:447) > at org.apache.catalina.startup.Catalina.await(Catalina.java:706) > at org.apache.catalina.startup.Catalina.start(Catalina.java:652) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > at java.lang.reflect.Method.invoke(Method.java:597) > at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:322) > at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:450) > >Locked ownable synchronizers: > - None > > "VM Thread" prio=9 tid=103939800 nid=0x10b5f9000 runnable > > "Gang worker#0 (Parallel GC Threads)" prio=9 tid=103802000 nid=0x102501000 > runnable > > "Gang worker#1 (Parallel GC Threads)" prio=9 tid=103802800 nid=0x102604000 > runnable > > "Gang worker#2 (Parallel GC Threads)" prio=9 tid=103803000 nid=0x102707000 > runnable > > "Gang worker#3 (Parallel GC Threads)" prio=9 tid=103804000 nid=0x107102000 > runnable > > "Gang worker#4 (Parallel GC Threads)" prio=9 tid=103804800 nid=0x107205000 > runnable > > "Gang worker#5 (Parallel GC Threads)" prio=9 tid=103805000 nid=0x107308000 > runnable > > "Gang worker#6 (Parallel GC Threads)" prio=9 tid=103805800 nid=0x10740b000 > runnable > > "Gang worker#7 (Parallel GC Threads)" prio=9 tid=103806800 nid=0x10750e000 > runnable > > "Concurrent Mark-Sweep GC Thread" prio=9 tid=1038e3800 nid=0x10b305000 > runnable > "Gang worker#0 (Parallel CMS Threads)" prio=9 tid=1038e2800 nid=0x10a8ff000 > runnable > > "Gang worker#1 (Parallel CMS Threads)" prio=9 tid=1038e3000 nid=0x10aa02000 > runnable > > "VM Periodic Task Thread" prio=10 tid=10d00a000 nid=0x10ca01000 waiting on > condition > > "Exception Catcher Thread" prio=10 tid=103801800 nid=0x1017f9000 runnable > JNI global references: 1765 > > > 2012/1/23 Caldarale, Charles R > >>> From: Oliver Due Billing [mailto:o...@watagame.com] >>> Subject: Restarting tomcat 7.0.23 on MAC OS X 10.6 >> >>> I have a test-server on my macbook pro and it takes forever to >>> restart the server do anyone have a clue to whats happening. >> >> It may be collecting entropy. Take a thread dump, and see what the JVM is >> doing during the pause. >> >> You can try setting >> >> -Djava.security.egd=file:/dev/./urandom >> >> as a system property. Note that the apparently extra "/." is required to >> trick the JVM into using the alternate random byte source. >> >> - Chuck >> >> >> THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY >> MATERIAL and is thus for use only by the intended recipient. If you >> received this in error, please contact the sender and delete the e-mail and >> its attachments from all computers. >> >> >> - >> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org >> For additional commands, e-mail: users-h...@tomcat.apache.org >> >> > > -- [key:62590808] signature.asc Description: OpenPGP digital signature
Re: Restarting tomcat 7.0.23 on MAC OS X 10.6
rio=9 tid=103803000 nid=0x102707000 runnable "Gang worker#3 (Parallel GC Threads)" prio=9 tid=103804000 nid=0x107102000 runnable "Gang worker#4 (Parallel GC Threads)" prio=9 tid=103804800 nid=0x107205000 runnable "Gang worker#5 (Parallel GC Threads)" prio=9 tid=103805000 nid=0x107308000 runnable "Gang worker#6 (Parallel GC Threads)" prio=9 tid=103805800 nid=0x10740b000 runnable "Gang worker#7 (Parallel GC Threads)" prio=9 tid=103806800 nid=0x10750e000 runnable "Concurrent Mark-Sweep GC Thread" prio=9 tid=1038e3800 nid=0x10b305000 runnable "Gang worker#0 (Parallel CMS Threads)" prio=9 tid=1038e2800 nid=0x10a8ff000 runnable "Gang worker#1 (Parallel CMS Threads)" prio=9 tid=1038e3000 nid=0x10aa02000 runnable "VM Periodic Task Thread" prio=10 tid=10d00a000 nid=0x10ca01000 waiting on condition "Exception Catcher Thread" prio=10 tid=103801800 nid=0x1017f9000 runnable JNI global references: 1765 2012/1/23 Caldarale, Charles R > > From: Oliver Due Billing [mailto:o...@watagame.com] > > Subject: Restarting tomcat 7.0.23 on MAC OS X 10.6 > > > I have a test-server on my macbook pro and it takes forever to > > restart the server do anyone have a clue to whats happening. > > It may be collecting entropy. Take a thread dump, and see what the JVM is > doing during the pause. > > You can try setting > > -Djava.security.egd=file:/dev/./urandom > > as a system property. Note that the apparently extra "/." is required to > trick the JVM into using the alternate random byte source. > > - Chuck > > > THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY > MATERIAL and is thus for use only by the intended recipient. If you > received this in error, please contact the sender and delete the e-mail and > its attachments from all computers. > > > - > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > > -- *Oliver Billing* *Developer* watAgame ApS Kigkurren 8D, 1st 2300 Copenhagen S Denmark office +45 3536 4110 direct +45 8833 6288 mobile +45 2087 7341 o...@watagame.com www.goSupermodel.com www.watAgame.com
RE: Restarting tomcat 7.0.23 on MAC OS X 10.6
> From: Oliver Due Billing [mailto:o...@watagame.com] > Subject: Restarting tomcat 7.0.23 on MAC OS X 10.6 > I have a test-server on my macbook pro and it takes forever to > restart the server do anyone have a clue to whats happening. It may be collecting entropy. Take a thread dump, and see what the JVM is doing during the pause. You can try setting -Djava.security.egd=file:/dev/./urandom as a system property. Note that the apparently extra "/." is required to trick the JVM into using the alternate random byte source. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Restarting tomcat 7.0.23 on MAC OS X 10.6
On Mon, 2012-01-23 at 07:41 -0800, Oliver Due Billing wrote: > I hope somebody can help me. > > I have a test-server on my macbook pro and it takes forever to restart the > server do anyone have a clue to whats happening. What is the exact version of Java & Tomcat? Also, how many applications do you have deployed? > I have run the configuration just fine on a windows laptop. Can we assume that these are the exact same installations? i.e. same version of Java and Tomcat? Also, the exact same configuration files (to the character)? > > It also takes forever with the default configuration. So, you unzip Tomcat, run "bin/start.sh" and it takes forever to start? No custom applications deployed and no changes to any configuration files? Dan
Restarting tomcat 7.0.23 on MAC OS X 10.6
I hope somebody can help me. I have a test-server on my macbook pro and it takes forever to restart the server do anyone have a clue to whats happening. I have run the configuration just fine on a windows laptop. It also takes forever with the default configuration. I just the following guide http://wolfpaulus.com/journal/mac/tomcat7 -- *Oliver Billing* *Developer* watAgame ApS Kigkurren 8D, 1st 2300 Copenhagen S Denmark office +45 3536 4110 direct +45 8833 6288 mobile +45 2087 7341 o...@watagame.com www.goSupermodel.com www.watAgame.com
RE: Restarting Tomcat remotely
The only solution I know is to be able to remotely log into the server to run the shutdown/startup scripts. Craig Noah Booz Allen Hamilton noah_cr...@bah.com From: Asha K S [a...@adobe.com] Sent: Monday, May 02, 2011 11:29 PM To: tomcat-u...@jakarta.apache.org Subject: Restarting Tomcat remotely Hi, Can anybody please let me know if there is way to start/stop Tomcat remotely(Not start/stop of applications but server itself) Thanks, Asha - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: AW: Restarting Tomcat remotely
On 5/3/11 6:54 AM, Alexander Diedler wrote: > If it is a Windows Server you can use the MMC vor Services to connect remotly > to the Services and restart it. > > > Hi, > > Can anybody please let me know if there is way to start/stop Tomcat > remotely(Not start/stop of applications but server itself) Consider that to start a stopped Tomcat you may need administrative/root access and that if it's stopped, it won't respond to any requests to start it. p signature.asc Description: OpenPGP digital signature
RE: Restarting Tomcat remotely
I use SC which allows you to communication with a remote Service Control Manager on an NT platform to stop the Tomcat service; deploy the WAR file and then restart the server in one simple execution. On *nix you could use some flavor of an secure shell script to stop the process, do your secure copy and then secure shell to restart the application server. > -Original Message- > From: Asha K S [mailto:a...@adobe.com] > Sent: Monday, May 02, 2011 11:30 PM > To: tomcat-u...@jakarta.apache.org > Subject: Restarting Tomcat remotely > > Hi, > > Can anybody please let me know if there is way to start/stop Tomcat > remotely(Not start/stop of applications but server itself) > > Thanks, > Asha - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Restarting Tomcat remotely
On 03/05/2011 12:29 AM, Asha K S wrote: Hi, Can anybody please let me know if there is way to start/stop Tomcat remotely(Not start/stop of applications but server itself) Thanks, Asha What operating system? For Linux, you just need to make the shutdown and startup scripts run. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
AW: Restarting Tomcat remotely
If it is a Windows Server you can use the MMC vor Services to connect remotly to the Services and restart it. Gesendet von meinem Windows Phone - Ursprüngliche Nachricht - Von: Asha K S Gesendet: Dienstag, 3. Mai 2011 06:30 An: tomcat-u...@jakarta.apache.org Betreff: Restarting Tomcat remotely Hi, Can anybody please let me know if there is way to start/stop Tomcat remotely(Not start/stop of applications but server itself) Thanks, Asha - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Restarting Tomcat remotely
I use the service command to start and stop tomcat i.e. service tomcat5 start service tomcat5 stop service tomcat5 restart On 3/05/11 2:29 PM, "Asha K S" wrote: Hi, Can anybody please let me know if there is way to start/stop Tomcat remotely(Not start/stop of applications but server itself) Thanks, Asha
Restarting Tomcat remotely
Hi, Can anybody please let me know if there is way to start/stop Tomcat remotely(Not start/stop of applications but server itself) Thanks, Asha
AW: Restarting Tomcat & Threads
Mit freundlichen Grüßen Thomas Strauß Geschäftsführer Entwicklung SRS PaperDynamixR DIGITAL SCHON AUF DEM PAPIER SRS-Management GmbH Berliner Ring 93 64625 Bensheim T +49 6251 85 424 - 20 F +49 6251 85 424 - 14 M +49 174 2110912 www.srs-management.de www.srs-paperdynamix.de HRB 25262 AG Darmstadt Geschäftsführer: Detlev Homilius, Thomas Strauß > -Ursprüngliche Nachricht- > Von: David kerber [mailto:dcker...@verizon.net] > Gesendet: Dienstag, 19. April 2011 17:02 > An: Tomcat Users List > Betreff: Re: Restarting Tomcat & Threads > > On 4/19/2011 10:34 AM, Zbynek Vavros wrote: > > > > - How do you kill Tomcat ? > > > > I stop its service. > > > > - You say "after start" and "I didnt [sic] start anything" in the > same > > sentence; you're contradicting yourself. > > > > I start Tomcat which starts my webapp but connection to Lotus is > started > > separatedlly. > > = I start my webapp but do not start "Lotus connector". > > > > 1) My code(thread) could not be executed unless I start it via web > > interface.Which I dont. > > > > 2) Im talking about log from log4j so it is log of my application.No > one > > else's. > > So you have to go through that web interface to start the lotus thread, > but you're not doing that and the thread is still starting up? > > Sounds like the method that starts the thread is being called from > somewhere that you're not expecting. Any chance it's being fired off > from a timer or a listener? > Maybe you are running the Lotus connector through a servlet that defines "load-on-startup"? > > > > > > > > Zbynek > > > > Kind Regards / Mit > > freundlichen Grüßen / > > Üdvözlettel / S > > pozdravem: > > > > > > Zbynek VAVROS > (Embedded > > Development image > moved > > to > file: > > > pic01634.gif) > > > > Delivery Centre 616 00, Brno > >Central Europe Technicka 21 > > Brno SITE Czech Republic > > > > (Embedded image moved to > > file: pic31451.gif)Phone: 420-53341- x6283 > >Mobile: > >E-mail: zbynek_vav...@cz.ibm.com > > > > > > > > > > IBM Global Services > >Delivery Center Czech > > Republic, s.r.o. > > Registered address: > > Brno, Technicka 2995/21, > > Zip code: 61600, Company > > ID: 26244535 > >Entered in the > > Commercial Register > > maintained by the > >Regional Court in Brno > >(Part C, Entry 39922) > > > > IBM Global Services > >Delivery Center Czech > > Republic, s.r.o. > >Sídlo: Brno, Technická > >2995/21, PSČ 61600 IČ: > > 26244535 > > Zapsaná v obchodním > > rejstříku, vedeném > >Krajským soudem v Brně > >oddíl C, vlozka 39922 > > > > > > > > > > > > > > |> > > | From: | > > |> > >>- > --- > --| > >|"Caldarale, Charles R" > | > >>- > --- > --| > > |> > > | To:| > > |> > >>- > --- > --| > >|Tomcat Users List > | > >>- > ------- > --| > > |> > > | Date: | > > |> > >>- > ----------- > --| > >|04/19/2011 04:09 PM > | > >>- > --- > --| > > |> > > | Subject: | > > |&
Re: Restarting Tomcat & Threads
On 4/19/2011 10:34 AM, Zbynek Vavros wrote: - How do you kill Tomcat ? I stop its service. - You say "after start" and "I didnt [sic] start anything" in the same sentence; you're contradicting yourself. I start Tomcat which starts my webapp but connection to Lotus is started separatedlly. = I start my webapp but do not start "Lotus connector". 1) My code(thread) could not be executed unless I start it via web interface.Which I dont. 2) Im talking about log from log4j so it is log of my application.No one else's. So you have to go through that web interface to start the lotus thread, but you're not doing that and the thread is still starting up? Sounds like the method that starts the thread is being called from somewhere that you're not expecting. Any chance it's being fired off from a timer or a listener? Zbynek Kind Regards / Mit freundlichen Grüßen / Üdvözlettel / S pozdravem: Zbynek VAVROS (Embedded Development image moved to file: pic01634.gif) Delivery Centre 616 00, Brno Central Europe Technicka 21 Brno SITE Czech Republic (Embedded image moved to file: pic31451.gif)Phone: 420-53341- x6283 Mobile: E-mail: zbynek_vav...@cz.ibm.com IBM Global Services Delivery Center Czech Republic, s.r.o. Registered address: Brno, Technicka 2995/21, Zip code: 61600, Company ID: 26244535 Entered in the Commercial Register maintained by the Regional Court in Brno (Part C, Entry 39922) IBM Global Services Delivery Center Czech Republic, s.r.o. Sídlo: Brno, Technická 2995/21, PSČ 61600 IČ: 26244535 Zapsaná v obchodním rejstříku, vedeném Krajským soudem v Brně oddíl C, vlozka 39922 |> | From: | |> >--| |"Caldarale, Charles R" | >--| |> | To:| |> >--| |Tomcat Users List | >--| |> | Date: | |> >--| |04/19/2011 04:09 PM | >--| |> | Subject: | |> >----------| |RE: Restarting Tomcat& Threads | >------| From: Zbynek Vavros [mailto:zbynek_vav...@cz.ibm.com] Subject: Restarting Tomcat& Threads I have noticed that when I kill Tomcat (shut down its service) How do you kill Tomcat? (Be specific.) then after start this thread is started automatically (I can see messages about connecting to Lotus in log when I didnt start anything). You say "after start" and "I didnt [sic] start anything" in the same sentence; you're contradicting yourself. Tomcat knows nothing about your thread or the connection to Lotus, so one of two things is happening: 1) Your code is being executed, you just aren't aware of it. 2) Something else is connecting to Lotus and you're mistaking that for your code. - Chuck - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Restarting Tomcat & Threads
Zbynek Vavros wrote: - How do you kill Tomcat ? I stop its service. - You say "after start" and "I didnt [sic] start anything" in the same sentence; you're contradicting yourself. I start Tomcat which starts my webapp but connection to Lotus is started separatedlly. = I start my webapp but do not start "Lotus connector". 1) My code(thread) could not be executed unless I start it via web interface.Which I dont. 2) Im talking about log from log4j so it is log of my application.No one else's. The tomcat code, by itself, has no reason to connect to Lotus. So if something connects to Lotus, it must be in the code of your application. But you say above that you do not do that. So something above is wrong. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Restarting Tomcat & Threads
---| |> | Date: | |> >--| |04/19/2011 04:09 PM | >--| |> | Subject: | |> >------| |RE: Restarting Tomcat & Threads | >----------| > From: Zbynek Vavros [mailto:zbynek_vav...@cz.ibm.com] > Subject: Restarting Tomcat & Threads > I have noticed that when I kill Tomcat (shut down its service) How do you kill Tomcat? (Be specific.) > then after start this thread is started automatically (I can > see messages about connecting to Lotus in log when I didnt > start anything). You say "after start" and "I didnt [sic] start anything" in the same sentence; you're contradicting yourself. Tomcat knows nothing about your thread or the connection to Lotus, so one of two things is happening: 1) Your code is being executed, you just aren't aware of it. 2) Something else is connecting to Lotus and you're mistaking that for your code. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Restarting Tomcat & Threads
> From: Zbynek Vavros [mailto:zbynek_vav...@cz.ibm.com] > Subject: Restarting Tomcat & Threads > I have noticed that when I kill Tomcat (shut down its service) How do you kill Tomcat? (Be specific.) > then after start this thread is started automatically (I can > see messages about connecting to Lotus in log when I didnt > start anything). You say "after start" and "I didnt [sic] start anything" in the same sentence; you're contradicting yourself. Tomcat knows nothing about your thread or the connection to Lotus, so one of two things is happening: 1) Your code is being executed, you just aren't aware of it. 2) Something else is connecting to Lotus and you're mistaking that for your code. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Restarting Tomcat & Threads
Hi, I would like to ask on strange behavior Im experiencing. I have webapp that connects to Lotus Notes periodically(every 1 minute). For this I have class that implements Runnable that takes care about connection itself. Im starting this using basic : Thread t = new Thread(MyClassImplementingRunnable); t.start(); I have noticed that when I kill Tomcat (shut down its service) then after start this thread is started automatically (I can see messages about connecting to Lotus in log when I didnt start anything). Is this usual behavior? Is there any was for threads "not to start automatically" ? Im beginner with Tomcat so excuse my lack of knowledge. Thanks Zbynek Kind Regards / Mit freundlichen Grüßen / Üdvözlettel / S pozdravem: Zbynek VAVROS (Embedded Development image moved to file: pic31252.gif) Delivery Centre 616 00, Brno Central Europe Technicka 21 Brno SITE Czech Republic (Embedded image moved to file: pic21477.gif)Phone: 420-53341- x6283 Mobile: E-mail: zbynek_vav...@cz.ibm.com IBM Global Services Delivery Center Czech Republic, s.r.o. Registered address: Brno, Technicka 2995/21, Zip code: 61600, Company ID: 26244535 Entered in the Commercial Register maintained by the Regional Court in Brno (Part C, Entry 39922) IBM Global Services Delivery Center Czech Republic, s.r.o. Sídlo: Brno, Technická 2995/21, PSČ 61600 IČ: 26244535 Zapsaná v obchodním rejstříku, vedeném Krajským soudem v Brně oddíl C, vlozka 39922 - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: reload a class file without restarting Tomcat
> From: Michel Getraide [mailto:getra...@gmail.com] > Subject: Re: reload a class file without restarting Tomcat > But I cannot restart tomcat neither use the tomcat's > manager since it is a shared host (godaddy) If the hosting service does not provide you with a means of restarting your webapp, you need to find another service. If they do provide you with some means of doing so, you'll have to follow whatever protocol they prescribe. You might want to browse the mailing list archives for comments concerning the use of godaddy as a hosting service... - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: reload a class file without restarting Tomcat
Thanks. But I cannot restart tomcat neither use the tomcat's manager since it is a shared host (godaddy) On Tue, Feb 1, 2011 at 4:01 PM, Caldarale, Charles R < chuck.caldar...@unisys.com> wrote: > > From: Michel Getraide [mailto:getra...@gmail.com] > > Subject: reload a class file without restarting Tomcat > > > Tomcat version is 5.0.27. > > Not supported - move up. > > > Is there a way that the class be reloaded without restarting the server > (the > > server restarts once a day only since it is a shared host.) > > You can't reload an individual class, but you can restart just the webapp. > Use Tomcat's manager app to do so - after your upgrade to a supported > version. > > - Chuck > > > THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY > MATERIAL and is thus for use only by the intended recipient. If you received > this in error, please contact the sender and delete the e-mail and its > attachments from all computers. > > > - > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > >
RE: reload a class file without restarting Tomcat
> From: Michel Getraide [mailto:getra...@gmail.com] > Subject: reload a class file without restarting Tomcat > Tomcat version is 5.0.27. Not supported - move up. > Is there a way that the class be reloaded without restarting the server (the > server restarts once a day only since it is a shared host.) You can't reload an individual class, but you can restart just the webapp. Use Tomcat's manager app to do so - after your upgrade to a supported version. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
reload a class file without restarting Tomcat
Hi, I have a webapp (java, jsp, struts,mysql) on a shared host. Tomcat version is 5.0.27. I have my webapp locally. When i do a slight change in a java file, I would like to be able to upload the updated recompiled class file in my webapp on the shared host. Is there a way that the class be reloaded without restarting the server (the server restarts once a day only since it is a shared host.) Thanks a lot, Michel
RE: Possible to redeploy a JAR file without restarting Tomcat?
> From: laredotornado [mailto:laredotorn...@gmail.com] > Subject: Re: Possible to redeploy a JAR file without restarting Tomcat? > > So would restarting one of my applicaitons pick up the new > shared JAR and all the other apps would continue to use the > old version? No - read the first response. Anything in the shared directories is handled by the common classloader. You have to restart Tomcat to get it to read any updated jars. Restarting individual webapps is irrelevant in this situation. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Possible to redeploy a JAR file without restarting Tomcat?
Regarding "restarting" an application, the JAR file in question is in a common shared directory by all applications and each application has its files deployed in a folder within the CATALINA_HOME/webapps directory. So would restarting one of my applicaitons pick up the new shared JAR and all the other apps would continue to use the old version? - Dave Pid * wrote: > > On 27/06/2010 20:04, laredotornado wrote: >> >> Hi, >> >> I'm using Tomcat 6.0.26. There is one JAR file I repeatedly rebuild and >> deploy and I was wondering if there is any way, obscure or otherwise, to >> deploy this JAR file without having to restart Tomcat. >> >> Thanks for any insights, - Dave > > You can restart an individual application, but you can't dynamically > replace a jar. See the Context element description for the "reloadable" > attribute in the config docs and the WatchedResource element in the > default Context definition (in tomcat/conf/context.xml) > > > p > > > > -- View this message in context: http://old.nabble.com/Possible-to-redeploy-a-JAR-file-without-restarting-Tomcat--tp29007357p29024617.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Possible to redeploy a JAR file without restarting Tomcat?
On 27/06/2010 20:04, laredotornado wrote: > > Hi, > > I'm using Tomcat 6.0.26. There is one JAR file I repeatedly rebuild and > deploy and I was wondering if there is any way, obscure or otherwise, to > deploy this JAR file without having to restart Tomcat. > > Thanks for any insights, - Dave You can restart an individual application, but you can't dynamically replace a jar. See the Context element description for the "reloadable" attribute in the config docs and the WatchedResource element in the default Context definition (in tomcat/conf/context.xml) p signature.asc Description: OpenPGP digital signature
Re: Possible to redeploy a JAR file without restarting Tomcat?
hi, i think this should be possible via the manager application. can you try this? kind regards, dessi Original-Nachricht Datum: Sun, 27 Jun 2010 12:04:10 -0700 (PDT) Von: laredotornado An: users@tomcat.apache.org Betreff: Possible to redeploy a JAR file without restarting Tomcat? Hi, I'm using Tomcat 6.0.26. There is one JAR file I repeatedly rebuild and deploy and I was wondering if there is any way, obscure or otherwise, to deploy this JAR file without having to restart Tomcat. Thanks for any insights, - Dave -- View this message in context: http://old.nabble.com/Possible-to-redeploy-a-JAR-file-without-restarting-Tomcat--tp29007357p29007357.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org -- GRATIS für alle GMX-Mitglieder: Die maxdome Movie-FLAT! Jetzt freischalten unter http://portal.gmx.net/de/go/maxdome01 - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Possible to redeploy a JAR file without restarting Tomcat?
Hi, I'm using Tomcat 6.0.26. There is one JAR file I repeatedly rebuild and deploy and I was wondering if there is any way, obscure or otherwise, to deploy this JAR file without having to restart Tomcat. Thanks for any insights, - Dave -- View this message in context: http://old.nabble.com/Possible-to-redeploy-a-JAR-file-without-restarting-Tomcat--tp29007357p29007357.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: symbolic links deleted when restarting tomcat
And nothing in the .bash_history(s)? To eliminate all possibilities, were there any system maintenance processes or activities underway when this occurred? Does your app have any functions at all that apply to the filing system? p On 11 April 2010 21:27, Karin Moscovici wrote: > It happened three times on three different customer sites. It does not > reproduce, but due to the different places where it has occurred I assume > this is not a human error. > > On Sat, Apr 10, 2010 at 11:54 AM, Pid * wrote: > > > On 9 April 2010 22:16, Karin Moscovici > > wrote: > > > > > Thanks Chris. Indeed, my issue is different than the one you've > described > > - > > > The links are deleted from common/lib and server/lib, and their targets > > are > > > unharmed. I don't know of any other reason that could have possible > > cause > > > the deletion. Thanks for the answer. > > > > > > > Is it happening regularly, or did it happen just once? > > > > Can you examine the .bash_history of any users with access to this system > > to > > see if it was an inadvertent human error? > > > > > > p > > > > On Sat, Apr 10, 2010 at 12:06 AM, Christopher Schultz < > > > ch...@christopherschultz.net> wrote: > > > > > > > -----BEGIN PGP SIGNED MESSAGE- > > > > Hash: SHA1 > > > > > > > > Karin, > > > > > > > > On 4/9/2010 4:55 PM, Karin Moscovici wrote: > > > > > I'm using tomcat 5.5 on Linux Centos. Today, after restarting > tomcat, > > > my > > > > > application did not load. In the logs I found NoClassDefError on > > > > > org.servlet.jsp.JspFactory class. It seems that the symbolic link > to > > > > > /usr/shar/java/jsp.jar that was under tomcat/common/lib simply > > > > dissappeared. > > > > > When I added it using ln -s the problem was solved. This has > happened > > > to > > > > me > > > > > once before with HttpServletRequest class and servlet-api.jar from > > > > > tomcat/server/lib. Is this a known issue? > > > > > > > > The only issue I believe Tomcat has with symbolic links is when you > > have > > > > a symbolic link pointing from inside your webapp's deployment > directory > > > > (say, webapps/mywebapp) and then you perform an "undeploy" operation: > > > > that will perform a recursive delete that ravages the target of the > > > > symlink. > > > > > > > > That has been fixed in recent versions: check the ChangeLog for > > details. > > > > > > > > It sounds like your issue is something different, though. > > > > > > > > I don't believe Tomcat deletes any files except those related to > actual > > > > webapps. Are you sure there's no other way these links could have > been > > > > deleted? > > > > > > > > You could make those files (and their parent directories) > non-writable > > > > by the euid running Tomcat and see if you get any exceptions: that > > would > > > > produce a stack trace proving that Tomcat is trying to delete the > file > > > > (when it probably shouldn't be). > > > > > > > > - -chris > > > > -BEGIN PGP SIGNATURE- > > > > Version: GnuPG v1.4.10 (MingW32) > > > > Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ > > > > > > > > iEYEARECAAYFAku/lsQACgkQ9CaO5/Lv0PAsFgCcCshvXNw9XgunBH5UU5vgK2iQ > > > > 5qUAmwYM/5ElVOOXJtSm5KQL2QADVhuL > > > > =V0Vo > > > > -END PGP SIGNATURE- > > > > > > > > - > > > > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > > > > For additional commands, e-mail: users-h...@tomcat.apache.org > > > > > > > > > > > > > > > > > > > -- > > > > -- > > pidster.com > > > -- -- pidster.com
Re: symbolic links deleted when restarting tomcat
It happened three times on three different customer sites. It does not reproduce, but due to the different places where it has occurred I assume this is not a human error. On Sat, Apr 10, 2010 at 11:54 AM, Pid * wrote: > On 9 April 2010 22:16, Karin Moscovici > wrote: > > > Thanks Chris. Indeed, my issue is different than the one you've described > - > > The links are deleted from common/lib and server/lib, and their targets > are > > unharmed. I don't know of any other reason that could have possible > cause > > the deletion. Thanks for the answer. > > > > Is it happening regularly, or did it happen just once? > > Can you examine the .bash_history of any users with access to this system > to > see if it was an inadvertent human error? > > > p > > On Sat, Apr 10, 2010 at 12:06 AM, Christopher Schultz < > > ch...@christopherschultz.net> wrote: > > > > > -BEGIN PGP SIGNED MESSAGE- > > > Hash: SHA1 > > > > > > Karin, > > > > > > On 4/9/2010 4:55 PM, Karin Moscovici wrote: > > > > I'm using tomcat 5.5 on Linux Centos. Today, after restarting tomcat, > > my > > > > application did not load. In the logs I found NoClassDefError on > > > > org.servlet.jsp.JspFactory class. It seems that the symbolic link to > > > > /usr/shar/java/jsp.jar that was under tomcat/common/lib simply > > > dissappeared. > > > > When I added it using ln -s the problem was solved. This has happened > > to > > > me > > > > once before with HttpServletRequest class and servlet-api.jar from > > > > tomcat/server/lib. Is this a known issue? > > > > > > The only issue I believe Tomcat has with symbolic links is when you > have > > > a symbolic link pointing from inside your webapp's deployment directory > > > (say, webapps/mywebapp) and then you perform an "undeploy" operation: > > > that will perform a recursive delete that ravages the target of the > > > symlink. > > > > > > That has been fixed in recent versions: check the ChangeLog for > details. > > > > > > It sounds like your issue is something different, though. > > > > > > I don't believe Tomcat deletes any files except those related to actual > > > webapps. Are you sure there's no other way these links could have been > > > deleted? > > > > > > You could make those files (and their parent directories) non-writable > > > by the euid running Tomcat and see if you get any exceptions: that > would > > > produce a stack trace proving that Tomcat is trying to delete the file > > > (when it probably shouldn't be). > > > > > > - -chris > > > -BEGIN PGP SIGNATURE- > > > Version: GnuPG v1.4.10 (MingW32) > > > Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ > > > > > > iEYEARECAAYFAku/lsQACgkQ9CaO5/Lv0PAsFgCcCshvXNw9XgunBH5UU5vgK2iQ > > > 5qUAmwYM/5ElVOOXJtSm5KQL2QADVhuL > > > =V0Vo > > > -END PGP SIGNATURE- > > > > > > - > > > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > > > For additional commands, e-mail: users-h...@tomcat.apache.org > > > > > > > > > > > > -- > > -- > pidster.com >
Re: symbolic links deleted when restarting tomcat
On 9 April 2010 22:16, Karin Moscovici wrote: > Thanks Chris. Indeed, my issue is different than the one you've described - > The links are deleted from common/lib and server/lib, and their targets are > unharmed. I don't know of any other reason that could have possible cause > the deletion. Thanks for the answer. > Is it happening regularly, or did it happen just once? Can you examine the .bash_history of any users with access to this system to see if it was an inadvertent human error? p On Sat, Apr 10, 2010 at 12:06 AM, Christopher Schultz < > ch...@christopherschultz.net> wrote: > > > -BEGIN PGP SIGNED MESSAGE- > > Hash: SHA1 > > > > Karin, > > > > On 4/9/2010 4:55 PM, Karin Moscovici wrote: > > > I'm using tomcat 5.5 on Linux Centos. Today, after restarting tomcat, > my > > > application did not load. In the logs I found NoClassDefError on > > > org.servlet.jsp.JspFactory class. It seems that the symbolic link to > > > /usr/shar/java/jsp.jar that was under tomcat/common/lib simply > > dissappeared. > > > When I added it using ln -s the problem was solved. This has happened > to > > me > > > once before with HttpServletRequest class and servlet-api.jar from > > > tomcat/server/lib. Is this a known issue? > > > > The only issue I believe Tomcat has with symbolic links is when you have > > a symbolic link pointing from inside your webapp's deployment directory > > (say, webapps/mywebapp) and then you perform an "undeploy" operation: > > that will perform a recursive delete that ravages the target of the > > symlink. > > > > That has been fixed in recent versions: check the ChangeLog for details. > > > > It sounds like your issue is something different, though. > > > > I don't believe Tomcat deletes any files except those related to actual > > webapps. Are you sure there's no other way these links could have been > > deleted? > > > > You could make those files (and their parent directories) non-writable > > by the euid running Tomcat and see if you get any exceptions: that would > > produce a stack trace proving that Tomcat is trying to delete the file > > (when it probably shouldn't be). > > > > - -chris > > -BEGIN PGP SIGNATURE- > > Version: GnuPG v1.4.10 (MingW32) > > Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ > > > > iEYEARECAAYFAku/lsQACgkQ9CaO5/Lv0PAsFgCcCshvXNw9XgunBH5UU5vgK2iQ > > 5qUAmwYM/5ElVOOXJtSm5KQL2QADVhuL > > =V0Vo > > -END PGP SIGNATURE- > > > > - > > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > > For additional commands, e-mail: users-h...@tomcat.apache.org > > > > > -- -- pidster.com
Re: symbolic links deleted when restarting tomcat
Thanks Chris. Indeed, my issue is different than the one you've described - The links are deleted from common/lib and server/lib, and their targets are unharmed. I don't know of any other reason that could have possible cause the deletion. Thanks for the answer. On Sat, Apr 10, 2010 at 12:06 AM, Christopher Schultz < ch...@christopherschultz.net> wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Karin, > > On 4/9/2010 4:55 PM, Karin Moscovici wrote: > > I'm using tomcat 5.5 on Linux Centos. Today, after restarting tomcat, my > > application did not load. In the logs I found NoClassDefError on > > org.servlet.jsp.JspFactory class. It seems that the symbolic link to > > /usr/shar/java/jsp.jar that was under tomcat/common/lib simply > dissappeared. > > When I added it using ln -s the problem was solved. This has happened to > me > > once before with HttpServletRequest class and servlet-api.jar from > > tomcat/server/lib. Is this a known issue? > > The only issue I believe Tomcat has with symbolic links is when you have > a symbolic link pointing from inside your webapp's deployment directory > (say, webapps/mywebapp) and then you perform an "undeploy" operation: > that will perform a recursive delete that ravages the target of the > symlink. > > That has been fixed in recent versions: check the ChangeLog for details. > > It sounds like your issue is something different, though. > > I don't believe Tomcat deletes any files except those related to actual > webapps. Are you sure there's no other way these links could have been > deleted? > > You could make those files (and their parent directories) non-writable > by the euid running Tomcat and see if you get any exceptions: that would > produce a stack trace proving that Tomcat is trying to delete the file > (when it probably shouldn't be). > > - -chris > -BEGIN PGP SIGNATURE- > Version: GnuPG v1.4.10 (MingW32) > Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ > > iEYEARECAAYFAku/lsQACgkQ9CaO5/Lv0PAsFgCcCshvXNw9XgunBH5UU5vgK2iQ > 5qUAmwYM/5ElVOOXJtSm5KQL2QADVhuL > =V0Vo > -END PGP SIGNATURE- > > - > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > >
Re: symbolic links deleted when restarting tomcat
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Karin, On 4/9/2010 4:55 PM, Karin Moscovici wrote: > I'm using tomcat 5.5 on Linux Centos. Today, after restarting tomcat, my > application did not load. In the logs I found NoClassDefError on > org.servlet.jsp.JspFactory class. It seems that the symbolic link to > /usr/shar/java/jsp.jar that was under tomcat/common/lib simply dissappeared. > When I added it using ln -s the problem was solved. This has happened to me > once before with HttpServletRequest class and servlet-api.jar from > tomcat/server/lib. Is this a known issue? The only issue I believe Tomcat has with symbolic links is when you have a symbolic link pointing from inside your webapp's deployment directory (say, webapps/mywebapp) and then you perform an "undeploy" operation: that will perform a recursive delete that ravages the target of the symlink. That has been fixed in recent versions: check the ChangeLog for details. It sounds like your issue is something different, though. I don't believe Tomcat deletes any files except those related to actual webapps. Are you sure there's no other way these links could have been deleted? You could make those files (and their parent directories) non-writable by the euid running Tomcat and see if you get any exceptions: that would produce a stack trace proving that Tomcat is trying to delete the file (when it probably shouldn't be). - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.10 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAku/lsQACgkQ9CaO5/Lv0PAsFgCcCshvXNw9XgunBH5UU5vgK2iQ 5qUAmwYM/5ElVOOXJtSm5KQL2QADVhuL =V0Vo -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: symbolic links deleted when restarting tomcat
It's not the application unload that did it, the application failed to load because the symbolic links were gone. If anyone knows why should symbolic links to jars should be deleted, please share. On Sat, Apr 10, 2010 at 12:01 AM, Pid * wrote: > You'd have to do something pretty strange with symbolic links for an > application unload to cause those to be deleted. But then, re-packaged > versions of Tomcat seem to do some strange things with symbolic links... > > > p > > On 9 April 2010 21:55, Karin Moscovici > wrote: > > > Hi, > > > > I'm using tomcat 5.5 on Linux Centos. Today, after restarting tomcat, my > > application did not load. In the logs I found NoClassDefError on > > org.servlet.jsp.JspFactory class. It seems that the symbolic link to > > /usr/shar/java/jsp.jar that was under tomcat/common/lib simply > > dissappeared. > > When I added it using ln -s the problem was solved. This has happened to > me > > once before with HttpServletRequest class and servlet-api.jar from > > tomcat/server/lib. Is this a known issue? > > > > Thanks > > Karin > > > > > > -- > > -- > pidster.com >
Re: symbolic links deleted when restarting tomcat
You'd have to do something pretty strange with symbolic links for an application unload to cause those to be deleted. But then, re-packaged versions of Tomcat seem to do some strange things with symbolic links... p On 9 April 2010 21:55, Karin Moscovici wrote: > Hi, > > I'm using tomcat 5.5 on Linux Centos. Today, after restarting tomcat, my > application did not load. In the logs I found NoClassDefError on > org.servlet.jsp.JspFactory class. It seems that the symbolic link to > /usr/shar/java/jsp.jar that was under tomcat/common/lib simply > dissappeared. > When I added it using ln -s the problem was solved. This has happened to me > once before with HttpServletRequest class and servlet-api.jar from > tomcat/server/lib. Is this a known issue? > > Thanks > Karin > -- -- pidster.com
symbolic links deleted when restarting tomcat
Hi, I'm using tomcat 5.5 on Linux Centos. Today, after restarting tomcat, my application did not load. In the logs I found NoClassDefError on org.servlet.jsp.JspFactory class. It seems that the symbolic link to /usr/shar/java/jsp.jar that was under tomcat/common/lib simply dissappeared. When I added it using ln -s the problem was solved. This has happened to me once before with HttpServletRequest class and servlet-api.jar from tomcat/server/lib. Is this a known issue? Thanks Karin
RE: Migrating .war to webapps - now restarting tomcat sever
> From: Koushaldev Ramkalawon [mailto:koush...@hotmail.com] > Subject: RE: Migrating .war to webapps - now restarting tomcat sever > > Tomcat Version: 6.0.20 Which is not the latest version. > I am using context root, are there any changes I need to make in any > file whatsoever. Not sure what you mean by "context root", unless it's what André surmised: you're talking about the default webapp. If that's not it, you'll need to elaborate. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Migrating .war to webapps - now restarting tomcat sever
Koushaldev Ramkalawon wrote: Tomcat Version: 6.0.20 OS: Windows XP 32-bit Thanks Mr Chuck for ur support. I understood the auto deployment part. I have got another question. I am using context root, are there any changes I need to make in any file whatsoever. No, other than the fact that your war file /must/ be named ROOT.war (exactly). And read the Tomcat FAQ, HowTo, #39 : http://wiki.apache.org/tomcat/HowTo - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Migrating .war to webapps - now restarting tomcat sever
Tomcat Version: 6.0.20 OS: Windows XP 32-bit Thanks Mr Chuck for ur support. I understood the auto deployment part. I have got another question. I am using context root, are there any changes I need to make in any file whatsoever. Thanks Koushaldev Ramkalawon > From: chuck.caldar...@unisys.com > To: users@tomcat.apache.org > Date: Sun, 7 Mar 2010 00:22:15 -0600 > Subject: RE: Migrating .war to webapps - now restarting tomcat sever > > > From: Koushaldev Ramkalawon [mailto:koush...@hotmail.com] > > Subject: Migrating .war to webapps - now restarting tomcat sever > > > > I am using the latest version of tomcat server > > And what do you think is the "latest version"? Be precise. > > > OS: Windows XP > > 32- or 64-bit? > > > I want to add a .war to the webapps folder. I have read that the > > tomcat server need to be restarted for the .war file to be unpacked and > > it's only then we will be able to access the application. > > You read wrong. As long as you have autoDeploy set (the default), any .war > files placed in a appBase directory will be recognized and deployed > within a few seconds. > > http://tomcat.apache.org/tomcat-6.0-doc/config/host.html#Automatic%20Application%20Deployment > > > Hotmail: Trusted email with Microsoft's powerful SPAM protection. > > Right. > > - Chuck > > > THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY > MATERIAL and is thus for use only by the intended recipient. If you received > this in error, please contact the sender and delete the e-mail and its > attachments from all computers. > > > - > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > _ Hotmail: Trusted email with Microsoft’s powerful SPAM protection. https://signup.live.com/signup.aspx?id=60969
RE: Migrating .war to webapps - now restarting tomcat sever
> From: Koushaldev Ramkalawon [mailto:koush...@hotmail.com] > Subject: Migrating .war to webapps - now restarting tomcat sever > > I am using the latest version of tomcat server And what do you think is the "latest version"? Be precise. > OS: Windows XP 32- or 64-bit? > I want to add a .war to the webapps folder. I have read that the > tomcat server need to be restarted for the .war file to be unpacked and > it's only then we will be able to access the application. You read wrong. As long as you have autoDeploy set (the default), any .war files placed in a appBase directory will be recognized and deployed within a few seconds. http://tomcat.apache.org/tomcat-6.0-doc/config/host.html#Automatic%20Application%20Deployment > Hotmail: Trusted email with Microsoft's powerful SPAM protection. Right. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Migrating .war to webapps - now restarting tomcat sever
hi to all, I am using the latest version of tomcat server OS: Windows XP I want to add a .war to the webapps folder. I have read that the tomcat server need to be restarted for the .war file to be unpacked and it's only then we will be able to access the application. I am writing a .bat program to migrate the .war from my home folder to the webapps folder. What additional information can I include in my .bat program so as the .war file can be unpacked automatically in the webapps folder. I do not want the tomcat server restarted because there will be other application hosted on the server. If the server restarts users won't be able to use the other applications. Thanks for your kind support and please do email me if u didn't understand my email or found a solution. Regards, Koushaldev Ramkalawon Associate Software Engineer _ Hotmail: Trusted email with Microsoft’s powerful SPAM protection. https://signup.live.com/signup.aspx?id=60969
Re: log4j files get emptied when restarting tomcat?
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Micheal, On 10/23/2009 6:49 AM, Michael wrote: > I am currently experiencing some strange behavior with log4j. Sometimes when > I restart Tomcat the day's log files are emptied, i.e. starts with the > messages coming from the restart. That happens just about every 5th time I > restart. [snip] > Could this be the problem? I think you want append=true if you don't want a new file. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.10 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkrlxR0ACgkQ9CaO5/Lv0PAGSACfR1w2Ek4L4dAS/JsMPxED1JWv wIcAoJrRBeAD9+vkHISurxw9yUg7B7Su =Y/ML -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Restarting Tomcat 6
André Warnier wrote: Potri Raaja wrote: I need to restart tomcat at the specified time using crontab. Please let me know how to do that. Only if you tell us at least under which platform, and the version of Tomcat this applies to. Potri, First, you must know the shell command to restart the Tomcat. That can be, depending on your distro, something like: /etc/init.d/tomcat restart After that, you just need to add the appropriate line to crontab file (usually /etc/crontab). Something like: 00 04 * * * root /etc/init.d/tomcat restart Which restarts Tomcat in specified time under specified user (here: root at 04:00). BTW, Andre is right, it is always good idea to provide more information about your OS, version and configuration to get the best answer at the mailing list. Regards, Ognjen - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Restarting Tomcat 6
Potri Raaja wrote: Hi, I need to restart tomcat at the specified time using crontab. Please let me know how to do that. Only if you tell us at least under which platform, and the version of Tomcat this applies to. By the way, how would you do that for any other running daemon ? That may give you a clue. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Restarting Tomcat 6
Hi, I need to restart tomcat at the specified time using crontab. Please let me know how to do that. Regards, Potri Raaja.M. -- View this message in context: http://www.nabble.com/Restarting-Tomcat-6-tp26055994p26055994.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
log4j files get emptied when restarting tomcat?
I am currently experiencing some strange behavior with log4j. Sometimes when I restart Tomcat the day's log files are emptied, i.e. starts with the messages coming from the restart. That happens just about every 5th time I restart. OS is Debian on a virtual server, for restart I am doing /etc/init.d/tomcat5.5 restart * Tomcat 5.5 * commons-logging-1.1.1 * log4j-1.2.15
Re: adding vhosts without restarting tomcat from a script and keeping them persistent
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Mark, On 7/25/2009 6:18 AM, Mark Thomas wrote: > Mathijs Kwik wrote: >> >> So are there any solutions available? > > To save host changes to server.xml? No. On the other hand, server.xml is only read at startup, so your script could instruct a running Tomcat to create a new vhost, and also write that vhost to server.xml at the same time, if Tomcat itself is unwilling to do it on your behalf. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkptrt4ACgkQ9CaO5/Lv0PDjAQCdEFP+A18Psl/93U+1B3XpOA9y 8yIAn2Cu+ANFXOa4R+LUIPTCJ6Bxg1tv =ESoz -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: adding vhosts without restarting tomcat from a script and keeping them persistent
Mathijs Kwik wrote: > Hi all, > > I'm using tomcat 6. > I would like to be able to add vhosts without restarting tomcat. > I found this ability using the host-manager application that's included. > But I want to do this from CLI. > I found ant tasks for the manager application to deploy/undeploy apps > on-the-fly, > but I couldn't find something similar for host-manager. > Is anyone aware of an ant task (or some kind of script) to do this? Take a look a the web.xml for the host-manager. A number of commands are available that you can call from a script using HTTP GET requests. > Also, after restarting tomcat, vhosts added by host-manager are no longer > there. > I don't think this is a problem, I can probably create a vhost through > host-manager, and still create a configfile for the host so it will > remain there after restarts. > > I think it's quite a common task to add a new domain with its own app > to a running server. As far as I recall, this is not a popular feature request. > So are there any solutions available? To save host changes to server.xml? No. Mark - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
adding vhosts without restarting tomcat from a script and keeping them persistent
Hi all, I'm using tomcat 6. I would like to be able to add vhosts without restarting tomcat. I found this ability using the host-manager application that's included. But I want to do this from CLI. I found ant tasks for the manager application to deploy/undeploy apps on-the-fly, but I couldn't find something similar for host-manager. Is anyone aware of an ant task (or some kind of script) to do this? Also, after restarting tomcat, vhosts added by host-manager are no longer there. I don't think this is a problem, I can probably create a vhost through host-manager, and still create a configfile for the host so it will remain there after restarts. I think it's quite a common task to add a new domain with its own app to a running server. So are there any solutions available? Thanks Mathijs - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Restarting Tomcat from Ant
This worked: On Fri, Apr 3, 2009 at 7:19 AM, Gregor Schneider wrote: > How about > > > > Rgds > > Gregor > -- > just because your paranoid, doesn't mean they're not after you... > gpgp-fp: 79A84FA526807026795E4209D3B3FE028B3170B2 > gpgp-key available > @ http://pgpkeys.pca.dfn.de:11371 > @ http://pgp.mit.edu:11371/ > skype:rc46fi > > - > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > >
Re: Restarting Tomcat from Ant
How about Rgds Gregor -- just because your paranoid, doesn't mean they're not after you... gpgp-fp: 79A84FA526807026795E4209D3B3FE028B3170B2 gpgp-key available @ http://pgpkeys.pca.dfn.de:11371 @ http://pgp.mit.edu:11371/ skype:rc46fi - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Restarting Tomcat from Ant
I tried the following Chuck, but it tells me that the script cannot be found On Thu, Apr 2, 2009 at 2:21 PM, Caldarale, Charles R < chuck.caldar...@unisys.com> wrote: > > From: Mighty Tornado [mailto:mighty.torn...@gmail.com] > > Subject: Restarting Tomcat from Ant > > > > Is there a way to also restart the server > > from Ant? > > Why don't you just use the startup and shutdown scripts that come with > Tomcat? If you want to call them from within an ant script, use the > task. > > - Chuck > > > THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY > MATERIAL and is thus for use only by the intended recipient. If you received > this in error, please contact the sender and delete the e-mail and its > attachments from all computers. > > > - > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > >
RE: Restarting Tomcat from Ant
> From: Mighty Tornado [mailto:mighty.torn...@gmail.com] > Subject: Restarting Tomcat from Ant > > Is there a way to also restart the server > from Ant? Why don't you just use the startup and shutdown scripts that come with Tomcat? If you want to call them from within an ant script, use the task. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Restarting Tomcat from Ant
try sshexec task http://ant.apache.org/manual/OptionalTasks/sshexec.html On Thu, Apr 2, 2009 at 6:23 PM, Mighty Tornado wrote: > Hi, > I currently copy the Application files to CATALINA_HOME/webapps from Ant, > and then run shutdown and startup. Is there a way to also restart the > server > from Ant? > > Thanks, >
Restarting Tomcat from Ant
Hi, I currently copy the Application files to CATALINA_HOME/webapps from Ant, and then run shutdown and startup. Is there a way to also restart the server from Ant? Thanks,
RE: Load server.xml without restarting Tomcat 5.5.26 Server
> From: meamit221 [mailto:amit.n...@aceicon.com] > Subject: RE: Load server.xml without restarting Tomcat 5.5.26 Server > > However, can you assist me with some hints that can help me > to do so (with Tomcat APIs)? Since you're running 5.5, you can use the admin webapp to dynamically add elements. However, this webapp does not persist any config changes, nor was it carried forward to newer Tomcat levels. Consequently, you might want to develop your own webapp that does just the specific tasks you're interested in, so it will be usable on newer Tomcat versions (although the APIs may be somewhat different). You could use the admin source and the API docs as reference: http://archive.apache.org/dist/tomcat/tomcat-5/v5.5.26/src/ http://tomcat.apache.org/tomcat-5.5-doc/catalina/docs/api/index.html - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Load server.xml without restarting Tomcat 5.5.26 Server
Thanks Charles for quick reply. However, can you assist me with some hints that can help me to do so (with Tomcat APIs)? Caldarale, Charles R wrote: > >> From: meamit221 [mailto:amit.n...@aceicon.com] >> Subject: Load server.xml without restarting Tomcat 5.5.26 Server >> >> Is it possible to reload the server.xml without restarting the server? > > No. However, if you examine the Tomcat source, you can build a webapp to > call the appropriate APIs to register the new host; you may also be able > to do the same via JMX. > > - Chuck > > > THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY > MATERIAL and is thus for use only by the intended recipient. If you > received this in error, please contact the sender and delete the e-mail > and its attachments from all computers. > > - > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > > > -- View this message in context: http://www.nabble.com/Load-server.xml-without-restarting-Tomcat-5.5.26-Server-tp22579538p22594121.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Load server.xml without restarting Tomcat 5.5.26 Server
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Amit, On 3/18/2009 10:36 AM, Caldarale, Charles R wrote: >> From: meamit221 [mailto:amit.n...@aceicon.com] >> Subject: Load server.xml without restarting Tomcat 5.5.26 Server >> >> Is it possible to reload the server.xml without restarting the server? > > No. However, if you examine the Tomcat source, you can build a > webapp to call the appropriate APIs to register the new host; you may > also be able to do the same via JMX. Don't forget to also record this host information somewhere on the disk, otherwise you will lose all your host info when you restart. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAknBDS0ACgkQ9CaO5/Lv0PDD3QCeJfcwE52MPJk2WSsfeXUbTupP +xsAoJgANTNw4cAHJCvhkO8PsgW3q/Z0 =SIob -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Load server.xml without restarting Tomcat 5.5.26 Server
> From: meamit221 [mailto:amit.n...@aceicon.com] > Subject: Load server.xml without restarting Tomcat 5.5.26 Server > > Is it possible to reload the server.xml without restarting the server? No. However, if you examine the Tomcat source, you can build a webapp to call the appropriate APIs to register the new host; you may also be able to do the same via JMX. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Load server.xml without restarting Tomcat 5.5.26 Server
Hi, I am using Tomcat 5.5.26 server for my application. I need to add a host entry inside server.xml everytime a user registers himself. But the server does not recognize the new entry without restarting server. Is it possible to reload the server.xml without restarting the server? -- View this message in context: http://www.nabble.com/Load-server.xml-without-restarting-Tomcat-5.5.26-Server-tp22579538p22579538.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: problems solved restarting tomcat
Your options are pretty limited -- 1. Talk to the developer of your webapp, 2. Hire another developer if the original isn't available, or 3. Learn Java and web application development with Struts (that's the framework your webapp is using), then look at the source code and debug it yourself. Sorry, but there isn't a lot we can do to help with what I see is clearly a bug in the applicaiton. My impression is tomcat is working normally but can't generate a result on the request because of this NumberFormatException. If you have any other webapps working on that tomcat instance, I'll bet they are still working. Some null value is getting into the system and isn't properly checked for being not null. Maybe it's not a form submission -- maybe it's some string value the whole webapp depends on erroneously being set to null by code elsewhere. --David Laura Bartolomé wrote: > ok... :( > > some idea of where can I get information about this problem? I mean the > problem that leaves Tomcat without working > > David Smith escribió: > >> Normally no, but then again I don't know a lot about your software. >> Anything I suggest would be pure conjecture. >> >> --David >> >> Laura Bartolomé wrote: >> >> >>> Ok, and the question is: is possible than this error makes Tomcat >>> doesn't work and we need to restart it??? >>> >>> Thanks for your help >>> >>> David Smith escribió: >>> >>> >>> It looks like your web application is trying to convert a string to a long (a type of number similar to an integer, but bigger) at line 49 in se.purpur.roach.web.pub.action.PublicArticleAction, but the string it's trying to convert is null. On a guess, this is related to a form submission and a required field wasn't filled in. I'd recommend you contact the developer if possible and have him/her fix the code. There should be a check for null and appropriate handling before any attempt to convert the string to another type. --David Laura Bartolomé wrote: > Hi again... > > We have problems with our webpage, suddenly it doens't load and an error > message appears (I can't told you the exact error showed cause I > couldn't see it, but I have to believe the boss... ). If we restart > Tomcat then it turns on again working correctly! We have Tomcat 6 like a > service on Windows 2003 Server. > > We have checked logs but we don't know java and we don't know if there > are applications errors of tomcat errors. We have a lot of messages in > catalina but we don't known what it means :( Here you are some of them. > We have copied too some messages of stdout at the bottom > > 26-Feb-2009 10:16:42 org.apache.catalina.core.ApplicationDispatcher invoke > SEVERE: Servlet.service() for servlet action threw exception > java.lang.NumberFormatException: null > at java.lang.Long.parseLong(Unknown Source) > at java.lang.Long.parseLong(Unknown Source) > at > se.purpur.roach.web.pub.action.PublicArticleAction.execute(PublicArticleAction.java:49) > at > org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484) > at > org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274) > at > org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482) > at > org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:617) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) > at > > > > >> snip ... >> >> >> > 26-Feb-2009 10:19:18 org.apache.coyote.http11.Http11AprProtocol pause > INFO: Pausing Coyote HTTP/1.1 on http-192.168.100.49-80 > 26-Feb-2009 10:19:18 org.apache.coyote.ajp.AjpAprProtocol pause > INFO: Pausing Coyote AJP/1.3 on ajp-8009 > 26-Feb-2009 10:19:19 org.apache.catalina.core.StandardService stop > INFO: Stopping service Catalina > 26-Feb-2009 10:19:20 org.apache.catalina.session.StandardSession > writeObject > WARNING: Cannot serialize session attribute articleForm for session > 948D031E75C6C7F03384305D28EC3D83 > java.io.NotSerializableException: > se.purpur.roach.core.sess.ContentTypeProperty > at java.io.ObjectOutputStream.writeObject0(Unknown Source) > at java.io.ObjectOutputStream.writeObject(Unknown Source) > at java.util.ArrayList.writeObject(Unknown Source) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) > at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) > at java.lang.reflect.Method.invoke(Unknown Source) > at java.io.ObjectStreamClass.invokeWriteOb
RE: problems solved restarting tomcat
> From: Laura Bartolomé [mailto:la...@secways.com] > Subject: Re: problems solved restarting tomcat > > Ok, and the question is: is possible than this error makes Tomcat > doesn't work and we need to restart it??? Probably not that error directly, but the failure in properly handling the request could have left locks up, objects lying around, or database connections open that would have been cleaned up had the request completed normally. (Any such problems are indicative of poor application implementation.) You can try running JConsole against the Tomcat process to see if the heap is exhausted or threads are in a loop, or to look at where threads are stuck when Tomcat is unresponsive. JConsole is located in the JDK bin directory; just start it from a command prompt on the Windows box where Tomcat is running and select the Tomcat process from the list presented. You might want to do this while things are running properly just to get an idea of what normal operation looks like. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: problems solved restarting tomcat
ok... :( some idea of where can I get information about this problem? I mean the problem that leaves Tomcat without working David Smith escribió: > Normally no, but then again I don't know a lot about your software. > Anything I suggest would be pure conjecture. > > --David > > Laura Bartolomé wrote: > >> Ok, and the question is: is possible than this error makes Tomcat >> doesn't work and we need to restart it??? >> >> Thanks for your help >> >> David Smith escribió: >> >> >>> It looks like your web application is trying to convert a string to a >>> long (a type of number similar to an integer, but bigger) at line 49 in >>> se.purpur.roach.web.pub.action.PublicArticleAction, but the string it's >>> trying to convert is null. On a guess, this is related to a form >>> submission and a required field wasn't filled in. I'd recommend you >>> contact the developer if possible and have him/her fix the code. There >>> should be a check for null and appropriate handling before any attempt >>> to convert the string to another type. >>> >>> --David >>> >>> Laura Bartolomé wrote: >>> >>> >>> Hi again... We have problems with our webpage, suddenly it doens't load and an error message appears (I can't told you the exact error showed cause I couldn't see it, but I have to believe the boss... ). If we restart Tomcat then it turns on again working correctly! We have Tomcat 6 like a service on Windows 2003 Server. We have checked logs but we don't know java and we don't know if there are applications errors of tomcat errors. We have a lot of messages in catalina but we don't known what it means :( Here you are some of them. We have copied too some messages of stdout at the bottom 26-Feb-2009 10:16:42 org.apache.catalina.core.ApplicationDispatcher invoke SEVERE: Servlet.service() for servlet action threw exception java.lang.NumberFormatException: null at java.lang.Long.parseLong(Unknown Source) at java.lang.Long.parseLong(Unknown Source) at se.purpur.roach.web.pub.action.PublicArticleAction.execute(PublicArticleAction.java:49) at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484) at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274) at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482) at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507) at javax.servlet.http.HttpServlet.service(HttpServlet.java:617) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at > snip ... > > 26-Feb-2009 10:19:18 org.apache.coyote.http11.Http11AprProtocol pause INFO: Pausing Coyote HTTP/1.1 on http-192.168.100.49-80 26-Feb-2009 10:19:18 org.apache.coyote.ajp.AjpAprProtocol pause INFO: Pausing Coyote AJP/1.3 on ajp-8009 26-Feb-2009 10:19:19 org.apache.catalina.core.StandardService stop INFO: Stopping service Catalina 26-Feb-2009 10:19:20 org.apache.catalina.session.StandardSession writeObject WARNING: Cannot serialize session attribute articleForm for session 948D031E75C6C7F03384305D28EC3D83 java.io.NotSerializableException: se.purpur.roach.core.sess.ContentTypeProperty at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) at java.util.ArrayList.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) at org.apache.catalina.session.StandardSession.writeObject(StandardSession.java:1517) at org.apache.catalina.session.StandardSession.writeObjectData(StandardSession.java:959) at org.apache.catalina.session.StandardManager.doUnload(StandardManager.java:517) at org.apache.catalina.session.StandardManager.unload(StandardManager.java:463) at org.apache.catalina.session.StandardManager.stop(Sta
Re: problems solved restarting tomcat
Normally no, but then again I don't know a lot about your software. Anything I suggest would be pure conjecture. --David Laura Bartolomé wrote: > Ok, and the question is: is possible than this error makes Tomcat > doesn't work and we need to restart it??? > > Thanks for your help > > David Smith escribió: > >> It looks like your web application is trying to convert a string to a >> long (a type of number similar to an integer, but bigger) at line 49 in >> se.purpur.roach.web.pub.action.PublicArticleAction, but the string it's >> trying to convert is null. On a guess, this is related to a form >> submission and a required field wasn't filled in. I'd recommend you >> contact the developer if possible and have him/her fix the code. There >> should be a check for null and appropriate handling before any attempt >> to convert the string to another type. >> >> --David >> >> Laura Bartolomé wrote: >> >> >>> Hi again... >>> >>> We have problems with our webpage, suddenly it doens't load and an error >>> message appears (I can't told you the exact error showed cause I >>> couldn't see it, but I have to believe the boss... ). If we restart >>> Tomcat then it turns on again working correctly! We have Tomcat 6 like a >>> service on Windows 2003 Server. >>> >>> We have checked logs but we don't know java and we don't know if there >>> are applications errors of tomcat errors. We have a lot of messages in >>> catalina but we don't known what it means :( Here you are some of them. >>> We have copied too some messages of stdout at the bottom >>> >>> 26-Feb-2009 10:16:42 org.apache.catalina.core.ApplicationDispatcher invoke >>> SEVERE: Servlet.service() for servlet action threw exception >>> java.lang.NumberFormatException: null >>> at java.lang.Long.parseLong(Unknown Source) >>> at java.lang.Long.parseLong(Unknown Source) >>> at >>> se.purpur.roach.web.pub.action.PublicArticleAction.execute(PublicArticleAction.java:49) >>> at >>> org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484) >>> at >>> org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274) >>> at >>> org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482) >>> at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507) >>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:617) >>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) >>> at >>> >>> snip ... >>> 26-Feb-2009 10:19:18 org.apache.coyote.http11.Http11AprProtocol pause >>> INFO: Pausing Coyote HTTP/1.1 on http-192.168.100.49-80 >>> 26-Feb-2009 10:19:18 org.apache.coyote.ajp.AjpAprProtocol pause >>> INFO: Pausing Coyote AJP/1.3 on ajp-8009 >>> 26-Feb-2009 10:19:19 org.apache.catalina.core.StandardService stop >>> INFO: Stopping service Catalina >>> 26-Feb-2009 10:19:20 org.apache.catalina.session.StandardSession writeObject >>> WARNING: Cannot serialize session attribute articleForm for session >>> 948D031E75C6C7F03384305D28EC3D83 >>> java.io.NotSerializableException: >>> se.purpur.roach.core.sess.ContentTypeProperty >>> at java.io.ObjectOutputStream.writeObject0(Unknown Source) >>> at java.io.ObjectOutputStream.writeObject(Unknown Source) >>> at java.util.ArrayList.writeObject(Unknown Source) >>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) >>> at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) >>> at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) >>> at java.lang.reflect.Method.invoke(Unknown Source) >>> at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) >>> at java.io.ObjectOutputStream.writeSerialData(Unknown Source) >>> at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) >>> at java.io.ObjectOutputStream.writeObject0(Unknown Source) >>> at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) >>> at java.io.ObjectOutputStream.writeSerialData(Unknown Source) >>> at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) >>> at java.io.ObjectOutputStream.writeObject0(Unknown Source) >>> at java.io.ObjectOutputStream.writeObject(Unknown Source) >>> at >>> org.apache.catalina.session.StandardSession.writeObject(StandardSession.java:1517) >>> at >>> org.apache.catalina.session.StandardSession.writeObjectData(StandardSession.java:959) >>> at >>> org.apache.catalina.session.StandardManager.doUnload(StandardManager.java:517) >>> at >>> org.apache.catalina.session.StandardManager.unload(StandardManager.java:463) >>> at >>> org.apache.catalina.session.StandardManager.stop(StandardManager.java:667) >>> at >>> org.apache.catalina.core.StandardContext.stop(StandardContext.java:4519) >>> at >>> org.apache.catalina.core.ContainerBase.removeChild(ContainerBase.java:924) >>> at >>> org.apache.catalina.startup.HostConfig.undeployApps(HostConfig.java:1191) >>> at
Re: problems solved restarting tomcat
Ok, and the question is: is possible than this error makes Tomcat doesn't work and we need to restart it??? Thanks for your help David Smith escribió: > It looks like your web application is trying to convert a string to a > long (a type of number similar to an integer, but bigger) at line 49 in > se.purpur.roach.web.pub.action.PublicArticleAction, but the string it's > trying to convert is null. On a guess, this is related to a form > submission and a required field wasn't filled in. I'd recommend you > contact the developer if possible and have him/her fix the code. There > should be a check for null and appropriate handling before any attempt > to convert the string to another type. > > --David > > Laura Bartolomé wrote: > >> Hi again... >> >> We have problems with our webpage, suddenly it doens't load and an error >> message appears (I can't told you the exact error showed cause I >> couldn't see it, but I have to believe the boss... ). If we restart >> Tomcat then it turns on again working correctly! We have Tomcat 6 like a >> service on Windows 2003 Server. >> >> We have checked logs but we don't know java and we don't know if there >> are applications errors of tomcat errors. We have a lot of messages in >> catalina but we don't known what it means :( Here you are some of them. >> We have copied too some messages of stdout at the bottom >> >> 26-Feb-2009 10:16:42 org.apache.catalina.core.ApplicationDispatcher invoke >> SEVERE: Servlet.service() for servlet action threw exception >> java.lang.NumberFormatException: null >> at java.lang.Long.parseLong(Unknown Source) >> at java.lang.Long.parseLong(Unknown Source) >> at >> se.purpur.roach.web.pub.action.PublicArticleAction.execute(PublicArticleAction.java:49) >> at >> org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484) >> at >> org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274) >> at >> org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482) >> at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507) >> at javax.servlet.http.HttpServlet.service(HttpServlet.java:617) >> at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) >> at >> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) >> at >> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) >> at >> org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:630) >> at >> org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:436) >> at >> org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:374) >> at >> org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:302) >> at >> org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1069) >> at >> org.apache.struts.tiles.TilesRequestProcessor.doForward(TilesRequestProcessor.java:274) >> at >> org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:455) >> at >> org.apache.struts.tiles.TilesRequestProcessor.processForwardConfig(TilesRequestProcessor.java:320) >> at >> org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:279) >> at >> org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482) >> at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507) >> at javax.servlet.http.HttpServlet.service(HttpServlet.java:617) >> at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) >> at >> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) >> at >> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) >> at >> org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:630) >> at >> org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:436) >> at >> org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:374) >> at >> org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:302) >> at >> se.flera.servlet.HumanReadableLinksServlet.doGet(HumanReadableLinksServlet.java:67) >> at javax.servlet.http.HttpServlet.service(HttpServlet.java:617) >> at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) >> at >> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) >> at >> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) >> at >> se.flera.servlet.LinkCallbackFilter.doFilter(LinkCallbackFilter.java:47) >> at >> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) >> at >> org.apache.catalina.core.
Re: problems solved restarting tomcat
It looks like your web application is trying to convert a string to a long (a type of number similar to an integer, but bigger) at line 49 in se.purpur.roach.web.pub.action.PublicArticleAction, but the string it's trying to convert is null. On a guess, this is related to a form submission and a required field wasn't filled in. I'd recommend you contact the developer if possible and have him/her fix the code. There should be a check for null and appropriate handling before any attempt to convert the string to another type. --David Laura Bartolomé wrote: > Hi again... > > We have problems with our webpage, suddenly it doens't load and an error > message appears (I can't told you the exact error showed cause I > couldn't see it, but I have to believe the boss... ). If we restart > Tomcat then it turns on again working correctly! We have Tomcat 6 like a > service on Windows 2003 Server. > > We have checked logs but we don't know java and we don't know if there > are applications errors of tomcat errors. We have a lot of messages in > catalina but we don't known what it means :( Here you are some of them. > We have copied too some messages of stdout at the bottom > > 26-Feb-2009 10:16:42 org.apache.catalina.core.ApplicationDispatcher invoke > SEVERE: Servlet.service() for servlet action threw exception > java.lang.NumberFormatException: null > at java.lang.Long.parseLong(Unknown Source) > at java.lang.Long.parseLong(Unknown Source) > at > se.purpur.roach.web.pub.action.PublicArticleAction.execute(PublicArticleAction.java:49) > at > org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484) > at > org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274) > at > org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482) > at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:617) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) > at > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) > at > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) > at > org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:630) > at > org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:436) > at > org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:374) > at > org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:302) > at > org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1069) > at > org.apache.struts.tiles.TilesRequestProcessor.doForward(TilesRequestProcessor.java:274) > at > org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:455) > at > org.apache.struts.tiles.TilesRequestProcessor.processForwardConfig(TilesRequestProcessor.java:320) > at > org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:279) > at > org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482) > at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:617) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) > at > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) > at > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) > at > org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:630) > at > org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:436) > at > org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:374) > at > org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:302) > at > se.flera.servlet.HumanReadableLinksServlet.doGet(HumanReadableLinksServlet.java:67) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:617) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) > at > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) > at > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) > at > se.flera.servlet.LinkCallbackFilter.doFilter(LinkCallbackFilter.java:47) > at > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) > at > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) > at > com.theotherus.persistance.HibernateOpenSessionInView.doFilter(HibernateOpenSessionInView.java:35) > at > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
problems solved restarting tomcat
Hi again... We have problems with our webpage, suddenly it doens't load and an error message appears (I can't told you the exact error showed cause I couldn't see it, but I have to believe the boss... ). If we restart Tomcat then it turns on again working correctly! We have Tomcat 6 like a service on Windows 2003 Server. We have checked logs but we don't know java and we don't know if there are applications errors of tomcat errors. We have a lot of messages in catalina but we don't known what it means :( Here you are some of them. We have copied too some messages of stdout at the bottom 26-Feb-2009 10:16:42 org.apache.catalina.core.ApplicationDispatcher invoke SEVERE: Servlet.service() for servlet action threw exception java.lang.NumberFormatException: null at java.lang.Long.parseLong(Unknown Source) at java.lang.Long.parseLong(Unknown Source) at se.purpur.roach.web.pub.action.PublicArticleAction.execute(PublicArticleAction.java:49) at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484) at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274) at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482) at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507) at javax.servlet.http.HttpServlet.service(HttpServlet.java:617) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:630) at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:436) at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:374) at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:302) at org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1069) at org.apache.struts.tiles.TilesRequestProcessor.doForward(TilesRequestProcessor.java:274) at org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:455) at org.apache.struts.tiles.TilesRequestProcessor.processForwardConfig(TilesRequestProcessor.java:320) at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:279) at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482) at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507) at javax.servlet.http.HttpServlet.service(HttpServlet.java:617) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:630) at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:436) at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:374) at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:302) at se.flera.servlet.HumanReadableLinksServlet.doGet(HumanReadableLinksServlet.java:67) at javax.servlet.http.HttpServlet.service(HttpServlet.java:617) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at se.flera.servlet.LinkCallbackFilter.doFilter(LinkCallbackFilter.java:47) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at com.theotherus.persistance.HibernateOpenSessionInView.doFilter(HibernateOpenSessionInView.java:35) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at com.theotherus.persistance.HibernateOpenSessionInView.doFilter(HibernateOpenSessionInView.java:35) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.securityfilter.filter.SecurityFilter.doFilter(SecurityFilter.java:188) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at se.purpur.roach
Re: HowTo update tomcat-users.xml without restarting tomcat
[EMAIL PROTECTED] wrote: > Hello everybody, > > I need to update the tomcat-users.xml quite often in a productive > environment. Therefore it would be nice to have a possibility to update the > file without the need for restarting tomcat. > > I tried to define the resource UserDatabase as reloadable but that didn't > work out. > Also I checked the possibilities of the tomcat manager but all the reload > functions there seem to relate only to the webapps and not to the > configuration of tomcat itself. > > Any hints what I could try next? JConsole. Every operation is exposed through JMX and you can even save your changes out to tomcat-users.xml Mark - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: HowTo update tomcat-users.xml without restarting tomcat
I think that is not possible. In production, the best option would be to use a database or LDAP directory to store your accounts. On Thu, 2008-11-27 at 10:39 +0100, [EMAIL PROTECTED] wrote: > Hello everybody, > > I need to update the tomcat-users.xml quite often in a productive > environment. Therefore it would be nice to have a possibility to update the > file without the need for restarting tomcat. > > I tried to define the resource UserDatabase as reloadable but that didn't > work out. > Also I checked the possibilities of the tomcat manager but all the reload > functions there seem to relate only to the webapps and not to the > configuration of tomcat itself. > > Any hints what I could try next? > > Thanks in advance, > Andreas > - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
HowTo update tomcat-users.xml without restarting tomcat
Hello everybody, I need to update the tomcat-users.xml quite often in a productive environment. Therefore it would be nice to have a possibility to update the file without the need for restarting tomcat. I tried to define the resource UserDatabase as reloadable but that didn't work out. Also I checked the possibilities of the tomcat manager but all the reload functions there seem to relate only to the webapps and not to the configuration of tomcat itself. Any hints what I could try next? Thanks in advance, Andreas
Restarting Tomcat
Hi, I am running several instances of Tomcat 5.5 under Apache on a Linux machine (Debian). On an application on one of the Tomcat instances I have a memory leak, which I have not been able to fix. To overcome the problem, in the short, I want to daily stop/start (restart) Tomcat using a cron job. However, my restart scrip does not work. Can someone, please, send me a working restart script. Thanks Peter Sparkes - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tips needed: restarting tomcat without risk of java.net.BindException
its an asynchronous call, all shutdown.sh does, is connect to the shutdown port and issue the shutdown command, when shutdown.sh returns, there is no guarantee that the java process has been shutdown, that depends on the webapplications installed Filip brycenesbitt wrote: Odd. I call shutdown and start in the same thread (so shutdown completes before the startup happens). AFIK, shutdown actually does shut down the java process. If shutdown is not meant to shut down the java process, what does it do? Filip Hanik - Dev Lists wrote: the problem you are having is because you didn't shutdown the java process. invoking shutdown.sh when your tomcat instance has suffered a memoryleak doesn't guarantee that it will stop, or how long it takes to stop it. you must ensure the process is killed properly Filip - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]