When you publish a local project through the WebLogic Management console, it defaults to the Web-inf top-level directory as the access path.
For example, if your project Web-inf the previous layer of the directory is Webroot, then after publishing,
The path accessed by default is: Http://hostname:port/WebRoot, how can you change the WebRoot to something else?
The workaround is to add the Weblogic.xml file under the Web-inf directory, with the following content: <weblogic-web-app xmlns= "HTTP://WWW.BEA.COM/NS/WEBLOGIC/90"
xmlns:j2ee= "Http://java.sun.com/xml/ns/j2ee" xmlns:xsi= "Http://www.w3.org/2001/XMLSchema-instance "
xsi:schemalocation= "Http://www.bea.com/ns/weblogic/90 http://www.bea.com/ns/weblogic/90/ Weblogic-web-app.xsd ">
<context-root>/test</context-root>
<container-descriptor>
<prefer-web-inf-classes>true</prefer-web-inf-classes>
</container-descriptor>
</weblogic-web-app>
the content between the <context-root> tags is to replace the content of Webroot, as long as you change to the corresponding content can be, this time the access becomes Http://hostname:port/test
(go) Modify the app name for the WebLogic deployment