Re: Bouncing Tomcat (for new classes)
On Feb 23, Tim Funk had something to say about Re: Bouncing Tomcat (for new... You probably had tomcat configured in the past to look for these changes in .class files and automatically restart the web application. For some reason - its now turned off. (I don't like that feature anyways). Even for a development server? If your change is only a class change in a webapp - all you have to do is restart the webapp. Excellent. This is a great tip. -- mattwarden mattwarden.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Bouncing Tomcat (for new classes)
Even for development server I don't like automagic reloads. (YMMV). I prefer to use the manager app to reload my webapp. I like the control and predictability. If you are building your app via ant - there are a couple ways to automatically have ant reload your webapp. Such as using ant call, wget, and there are ant tasks with 4.1.X. -Tim Warden, Matt wrote: On Feb 23, Tim Funk had something to say about Re: Bouncing Tomcat (for new... You probably had tomcat configured in the past to look for these changes in .class files and automatically restart the web application. For some reason - its now turned off. (I don't like that feature anyways). Even for a development server? If your change is only a class change in a webapp - all you have to do is restart the webapp. Excellent. This is a great tip. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Bouncing Tomcat (for new classes)
Personally I just run a script: #!/bin/sh while true do echo \nRestart Apache? (Y/n)\c read INPUT if [ $INPUT -a $INPUT = 'n' ] then echo /dev/null else /usr/local/bin/apache restart fi echo \nExit Script? (y/N)\c read INPUT if [ $INPUT -a $INPUT = 'y' ] then break fi done The /usr/local/bin/apache restarts apache and tomcat for me. --mikej -=- mike jackson [EMAIL PROTECTED] -Original Message- From: Tim Funk [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 25, 2003 10:20 AM To: Tomcat Users List Subject: Re: Bouncing Tomcat (for new classes) Even for development server I don't like automagic reloads. (YMMV). I prefer to use the manager app to reload my webapp. I like the control and predictability. If you are building your app via ant - there are a couple ways to automatically have ant reload your webapp. Such as using ant call, wget, and there are ant tasks with 4.1.X. -Tim Warden, Matt wrote: On Feb 23, Tim Funk had something to say about Re: Bouncing Tomcat (for new... You probably had tomcat configured in the past to look for these changes in .class files and automatically restart the web application. For some reason - its now turned off. (I don't like that feature anyways). Even for a development server? If your change is only a class change in a webapp - all you have to do is restart the webapp. Excellent. This is a great tip. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Bouncing Tomcat (for new classes)
I use this in ant (sorry for the line wrapping): target name=restart echoRestarting webapp[${webapp.path}] on ${tomcat.instance}/echo exec dir=/usr/local/bin/ executable=wget arg line=--spider --http-user=${tomcat.user} --http-passwd=${tomcat.password} http://${tomcat.server}:8080/manager/reload?path=${webapp.path}/ /exec /target -Tim Mike Jackson wrote: Personally I just run a script: #!/bin/sh while true do echo \nRestart Apache? (Y/n)\c read INPUT if [ $INPUT -a $INPUT = 'n' ] then echo /dev/null else /usr/local/bin/apache restart fi echo \nExit Script? (y/N)\c read INPUT if [ $INPUT -a $INPUT = 'y' ] then break fi done The /usr/local/bin/apache restarts apache and tomcat for me. --mikej -=- mike jackson [EMAIL PROTECTED] -Original Message- From: Tim Funk [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 25, 2003 10:20 AM To: Tomcat Users List Subject: Re: Bouncing Tomcat (for new classes) Even for development server I don't like automagic reloads. (YMMV). I prefer to use the manager app to reload my webapp. I like the control and predictability. If you are building your app via ant - there are a couple ways to automatically have ant reload your webapp. Such as using ant call, wget, and there are ant tasks with 4.1.X. -Tim Warden, Matt wrote: On Feb 23, Tim Funk had something to say about Re: Bouncing Tomcat (for new... You probably had tomcat configured in the past to look for these changes in .class files and automatically restart the web application. For some reason - its now turned off. (I don't like that feature anyways). Even for a development server? If your change is only a class change in a webapp - all you have to do is restart the webapp. Excellent. This is a great tip. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Bouncing Tomcat (for new classes)
Thats cool, but I'm on 3.x, I haven't been able to get everything up the way I want on 4.x yet. Additionally I'm compiling in Eclipse and copying the jar files over via samba to the unix box. So I just have the script in a ssh window... --mikej -=- mike jackson [EMAIL PROTECTED] -Original Message- From: Tim Funk [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 25, 2003 10:34 AM To: Tomcat Users List Subject: Re: Bouncing Tomcat (for new classes) I use this in ant (sorry for the line wrapping): target name=restart echoRestarting webapp[${webapp.path}] on ${tomcat.instance}/echo exec dir=/usr/local/bin/ executable=wget arg line=--spider --http-user=${tomcat.user} --http-passwd=${tomcat.password} http://${tomcat.server}:8080/manager/reload?path=${webapp.path}/ /exec /target -Tim Mike Jackson wrote: Personally I just run a script: #!/bin/sh while true do echo \nRestart Apache? (Y/n)\c read INPUT if [ $INPUT -a $INPUT = 'n' ] then echo /dev/null else /usr/local/bin/apache restart fi echo \nExit Script? (y/N)\c read INPUT if [ $INPUT -a $INPUT = 'y' ] then break fi done The /usr/local/bin/apache restarts apache and tomcat for me. --mikej -=- mike jackson [EMAIL PROTECTED] -Original Message- From: Tim Funk [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 25, 2003 10:20 AM To: Tomcat Users List Subject: Re: Bouncing Tomcat (for new classes) Even for development server I don't like automagic reloads. (YMMV). I prefer to use the manager app to reload my webapp. I like the control and predictability. If you are building your app via ant - there are a couple ways to automatically have ant reload your webapp. Such as using ant call, wget, and there are ant tasks with 4.1.X. -Tim Warden, Matt wrote: On Feb 23, Tim Funk had something to say about Re: Bouncing Tomcat (for new... You probably had tomcat configured in the past to look for these changes in .class files and automatically restart the web application. For some reason - its now turned off. (I don't like that feature anyways). Even for a development server? If your change is only a class change in a webapp - all you have to do is restart the webapp. Excellent. This is a great tip. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Bouncing Tomcat (for new classes)
You probably had tomcat configured in the past to look for these changes in .class files and automatically restart the web application. For some reason - its now turned off. (I don't like that feature anyways). If your change is only a class change in a webapp - all you have to do is restart the webapp. The manager application can do this for you. http://jakarta.apache.org/tomcat/tomcat-4.1-doc/manager-howto.html -Tim Tammer Salem wrote: I was under the impression that you did not have to restart Tomcat when you change .class files. I currently have an application under webapps with a classes directory under WEB-INF. I used to change the classes and run my application normally. Now I found that I have to restart Tomcat every time I change a .class file for Tomcat to notice the change. Does anyone know why this is happening? Thanks. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Bouncing Tomcat (for new classes)
Thanks, got it. Tammer - Original Message - From: Tim Funk [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Sunday, February 23, 2003 4:54 PM Subject: Re: Bouncing Tomcat (for new classes) You probably had tomcat configured in the past to look for these changes in .class files and automatically restart the web application. For some reason - its now turned off. (I don't like that feature anyways). If your change is only a class change in a webapp - all you have to do is restart the webapp. The manager application can do this for you. http://jakarta.apache.org/tomcat/tomcat-4.1-doc/manager-howto.html -Tim Tammer Salem wrote: I was under the impression that you did not have to restart Tomcat when you change .class files. I currently have an application under webapps with a classes directory under WEB-INF. I used to change the classes and run my application normally. Now I found that I have to restart Tomcat every time I change a .class file for Tomcat to notice the change. Does anyone know why this is happening? Thanks. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]