wood burning stoves 2.0*
The moose likes Struts and the fly likes Do I need to redeploy and run tomcat every time I�m changing something? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Do I need to redeploy and run tomcat every time I�m changing something? " Watch "Do I need to redeploy and run tomcat every time I�m changing something? " New topic
Author

Do I need to redeploy and run tomcat every time I�m changing something?

Peter Primrose
Ranch Hand

Joined: Sep 10, 2004
Posts: 755
Guys,

I�m using MyEclipse as the IDE to develop struts application. I am a newbie to this topic (but doing just fine)

Anyway, I do this:
I write my code, deploy it, run Tomcat and than I click the site to see the results.

sometime I am changing the words or the code and than want to see the changes, for this, and this is the point I think I do wrong, I STOP Tomcat, Redeploy, START tomcat and refer back to the site (imagine the how long it takes)

Is there a better way only to redeploy so everything will take effect immediately?
Why when I change something in the AppliatinResources it doesn't kick in?
Thanks
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41592
    
  55
Instead of restarting Tomcat, it is sufficient to just restart the web application. You can do this from the Tomcat Manager web app, which is linked in the upper left corner of your Tomcat home page, or directly at http://localhost:8080/manager/html. There you'll see all your web apps listed, and you can use the reload link on the right side. That's much faster than restarting the whole server.
[ January 29, 2006: Message edited by: Ulf Dittmer ]

Ping & DNS - my free Android networking tools app
Joseph Pin
Greenhorn

Joined: Jan 29, 2006
Posts: 1
I think the new version of Web Logic (another server, different from Tomcat) has a monitor that detects changes and you don't even need to reload the whole thing...
Merrill Higginson
Ranch Hand

Joined: Feb 15, 2005
Posts: 4864
If you use WebSphere Studio Application Developer (WSAD) or Rational Application Developer (RAD) with Websphere, it will also automatically detect and apply changes to your test environment. However, you still have to be careful about certain things.

For example, changes to your ApplicationResources.properties file require restarting the application, as they only get loaded at startup time. Also, changes to static variables in classes seem to require a restart of the application.


Merrill
Consultant, Sima Solutions
Peter Primrose
Ranch Hand

Joined: Sep 10, 2004
Posts: 755
thank you all for your reply.
Ulf Dittmer, I took your path and it works!

Thank you so much
Peter
 
Consider Paul's rocket mass heater.
 
subject: Do I need to redeploy and run tomcat every time I�m changing something?