Context path for web application on Glassfish 3.1.2.2

前端 未结 1 682
小鲜肉
小鲜肉 2021-01-05 07:04

I\'m trying to find a way to explicitly specify the context path of a web application being deployed to Glassfish 3.1.2.2 but I\'ve had no luck so far. Can anyone provide gu

相关标签:
1条回答
  • 2021-01-05 07:44

    Add a glassfish-web.xml file in the same folder as web.xml

    <!DOCTYPE glassfish-web-app PUBLIC "-//GlassFish.org//DTD GlassFish Application Server 3.1 Servlet 3.0//EN" "http://glassfish.org/dtds/glassfish-web-app_3_0-1.dtd">
    <glassfish-web-app error-url="">
        <context-root>/FooWS</context-root>
    </glassfish-web-app>
    
    0 讨论(0)
提交回复
热议问题