Apr 052012
Oracle Weblogic Server

if you want to change the context root of your application specified in weblogic.xml through a deployment plan then please follow below steps:

Create a file like below plan.xml(Copy Paste into a notepad and save it as “plan.xml”)

<?xml version='1.0' encoding='UTF-8'?>
<deployment-plan xmlns="http://www.bea.com/ns/weblogic/deployment-plan" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.bea.com/ns/weblogic/deployment-plan http://www.bea.com/ns/weblogic/deployment-plan/1.0/deployment-plan.xsd" global-variables="false">
<module-descriptor external="false">

application-name – Your application name : MyApp
Name             – Your new root name
Value            – Your new context root
config-root      – Your WLS Configuration file path

Context Root is a Non-dynamic property and which you are modifying to update Bean: weblogic.j2ee.descriptor.wl.WeblogicWebAppBeanImpl ContextRoots

1. Stop your application.
2. Extract/unzip/unjar/explode your application war file(MyApp.war) and put it in same location(Here MyApp.war folder after extraction)
3. Update your application with new plan.xml with the modified context-root
4. Start the application, now the application is ready to accept with new context-root.
5. check the testing tab which shows updated context-root

Note: Oracle does not support using a deployment plan to change the context-root in an application.xml file. However, if an application is deployed as a library, you can either change the context-root through an weblogic-application.xml file or use the deployment plan to change the context-root in an weblogic-application.xml file.

For more info on deployment plan follow below link:

© Incase of any copyright infringements please check copyrights page for faster resolutions.

Leave a Reply

Show Buttons
Hide Buttons