File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
JavaRanch » Java Forums » Java » JSP
Bookmark "Why TimeStamp wont occur for xml" Watch "Why TimeStamp wont occur for xml" New topic

Why TimeStamp wont occur for xml

Arun Giridhar
Ranch Hand

Joined: Mar 10, 2012
Posts: 176
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

Joined: Jun 25, 2001
Posts: 17410

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.

An IDE is no substitute for an Intelligent Developer.
Arun Giridhar
Ranch Hand

Joined: Mar 10, 2012
Posts: 176
I like to do some experiment on this , please guide me.
Paul Clapham

Joined: Oct 14, 2005
Posts: 19973

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.

I agree. Here's the link:
subject: Why TimeStamp wont occur for xml
It's not a secret anymore!