Friday, September 28, 2012

ADF - Removing the Application Name from URL (Weblogic)

In order to remove the root context of an ADF or WebCenter application or the application name from the URL, it's quite a simple Weblogic configuration change.

Change the root context of an application can be done from via changing the application.xml. However, this can be quite an involved change if you are using a continuous intergration server such as Hudson or Jenkins as you will need to modify the build scripts to decompile the .ear copy in the new application.xml and then recompile the .ear. 

You will be happy to know Oracle have made a simple yet not well documented fix for this. As per the instructions below: 

1) Go to http://127.0.0.1:7101/console

2) Environment > Servers > DefaultServer(admin) > Protocols Tab > HTTP Tab

3) Modify the "Default WebApp Context Root" to /application_name


4) Hit Save

5) Go to Deployments

6) Select FMW Welcome Application - Undeploy (Check the box and click delete)

7) Restart Weblogic Server.

Go to http://127.0.0.1:7101/ or the home page of your application http://127.0.0.1:7101/faces/home.jspx and your application should come up. 

If faces is also an issue, for you this can also be removed, with a little more effort and the use of a java filter.


No comments:

Post a Comment