SashikaXP
SashikaXP

Reputation: 817

Change Deployment descriptor web.xml on glassfish 3

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

Upvotes: 2

Views: 1195

Answers (1)

Wintermute
Wintermute

Reputation: 1511

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.

Upvotes: 1

Related Questions