简体   繁体   中英

Change Deployment descriptor web.xml on glassfish 3

无论如何,有没有改变Glassfish中已经部署的应用程序的某些web.xml参数?

I can only imagine that the down-vote was because of the 'ugly hack', you've been asking for. 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! Very bad! And you are a bad person if you do this.

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. So please, think about this approach, a few more minutes. ;)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM