File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Peter Primrose
Ranch Hand
Posts: 755
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Rancher
Pie
Posts: 42966
73
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
Joseph Pin
Greenhorn
Posts: 1
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 4864
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Peter Primrose
Ranch Hand
Posts: 755
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thank you all for your reply.
Ulf Dittmer, I took your path and it works!

Thank you so much
Peter
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic