aspose file tools*
The moose likes JSP and the fly likes Why TimeStamp wont occur for xml Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "Why TimeStamp wont occur for xml" Watch "Why TimeStamp wont occur for xml" New topic
Author

Why TimeStamp wont occur for xml

Arun Giridhar
Ranch Hand

Joined: Mar 10, 2012
Posts: 147

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


hate Professionalism . Join the http://2014.hack.lu/index.php/Main_Page
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 16142
    
  21

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.


Customer surveys are for companies who didn't pay proper attention to begin with.
Arun Giridhar
Ranch Hand

Joined: Mar 10, 2012
Posts: 147

I like to do some experiment on this , please guide me.
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18657
    
    8

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

Joined: Mar 28, 2012
Posts: 859

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
 
 
subject: Why TimeStamp wont occur for xml