• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Why TimeStamp wont occur for xml

 
Arun Giridhar
Ranch Hand
Posts: 181
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey Guys,

It's been a long time since i have posted a query in javaranch.

1) When ever i deploy .war in Application server and later if try to change .js or .jsp in the source file it gets reflected but if i change the web.xml file it's not getting reflected , why ?


thank you
 
Tim Holloway
Saloon Keeper
Pie
Posts: 17989
47
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It depends on the webapp server you are using and on how it is configured. Given the "wrong" settings, tweaking a webapp on the fly won't work at all.

Changing web.xml is potentially changing basic characteristics of the webapp. Among other critical architectural specifications, web.xml determines how URLs are routed to servlets, what the security rules are, and whether or not selected URLs are process via secured (SSL/TLS) network channels.

Because of this, the only really safe way to update web.xml is to halt the webapp, rebuild all digested information in web.xml and restart it - effectively re-deploying it. Otherwise, at best what you'd be doing is the equivalent of changing the tires on a car while it's racing down the Autobahn.
 
Arun Giridhar
Ranch Hand
Posts: 181
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I like to do some experiment on this , please guide me.
 
Paul Clapham
Sheriff
Pie
Posts: 20729
30
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You did the experiment already, didn't you? You tried changing the web.xml file and it didn't work the way you expected.

Or were you referring to something else you wanted to try? If so you're the one who has to be giving the guidance, by explaining what that something else is.
 
William P O'Sullivan
Ranch Hand
Posts: 859
Chrome IBM DB2 Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In general,

If you are in "development" mode, changes to key files get picked up and the server restarts itself.

In "production" mode, nothing can impact the runtime once it is started.

We tweak our JBoss settings accordingly based on the environment.

WP
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic