(go) Modify the app name for the WebLogic deployment

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.