Is it advisable to change web.xml (or, in fact, any other file) in app server after the deployment? Do ALL app servers expose their deployment/directory structure?

I would prefer making changes locally, re-building the war (or .ear, etc.), and re-deploying the application.

Any suggestions / comments. Thanks.