Change Deployment descriptor web.xml on glassfish 3

1.1k Views Asked by At

Is there anyway to change certain web.xml parameters of an already deployed application in the glassfish?

1

There are 1 best solutions below

3
On

If you change directly in the file-system, no one will understand later, why and when the changes have been done. So this is bad!

But it's easy: Just change the web.xml of the deployed application and restart the glassfish domain. You will find the web.xml somewhere near

/PATH/TO/glassfish3/glassfish/domains/DOMAIN/applications/APP-NAME/WAR-NAME/WEB-INF/web.xml

if deployed in a standalone instance. Otherwise it is somewhere below the ..../nodes folder.

Edit: In a cluster environment, a sync from the deployment manager will override your changes.