Using the context-root from glassfish-web.xml in GlassFish 3

前端 未结 2 561
遥遥无期
遥遥无期 2020-12-01 22:25

We recently switched to Glassfish 3.1.2.2 and have several Web-Applications packaged as war files. At times the desired context-root for these applications differs from the

2条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-12-01 23:08

    In GlassFish 3 and GlassFish 4 the configuration of a web application is done via glassfish-web.xml. In your case the desired configuration file would look like this:

    
    
        /path/to/our/App
    
    

    You can find further details in section GlassFish Server Deployment Descriptor Files of Oracle GlassFish Server Application Deployment Guide. A online version of this document can be found at http://docs.oracle.com/cd/E18930_01/html/821-2417/.

提交回复
热议问题