How can I use Weblogic (12 C) without the application context in the URL?

前端 未结 2 970
野趣味
野趣味 2020-12-20 22:45

I am working on a web project that requires Weblogic server and the only way I can view the site after deploying (on my Macbook Pro) is by specifying the application name as

相关标签:
2条回答
  • 2020-12-20 23:27

    I assume because you are using weblogic you deploy a java application.

    The structure should be a 'war' file.

    More info on the structure you can find here.

    http://www.openscope.net/2010/01/25/war-deployment-file-structure/

    The name of the context root (by default name of the war) might be as well overridden

    https://forums.oracle.com/forums/thread.jspa?messageID=10366462

    Hope it helps.

    0 讨论(0)
  • 2020-12-20 23:31

    In application.xml specify the below setting

           <web>
              <web-uri>yourweb.war</web-uri>
              <context-root>/</context-root>
           </web>
    

    Now you can make a call without context root as

            http://localhost:7001/
    
    0 讨论(0)
提交回复
热议问题