Monday, September 3, 2018

How to change context root of application (URI) in WebSphere RAD?

In this section, let us see how to change context root of an application in WebSphere.  Suppose you have created a project called "Test".  And the  web project is TestWeb.

Now open the application.xml under META-INF folder inside the Project Test  OR You can directly open the file application.xml inside the  folder c:\workspace\Test\META-INF in windows.
               where c:\workspace is the work space name where your project is created and Test the project name.


Edit the line

<context-root>Test</context-root>

to

<context-root>NewConetxRoot</context-root>

For example, <context-root>MyTest</context-root>


Now Re-Compile the project to publish.


Now everything done, you can access the application

    http://localhost:9080/MyTest



To view the context root in Websphere Application Server through administrative console page,
   Navigate to    Applications > Application Types > WebSphere enterprise applications > application_name (In our example Test)  > Context root for web modules.



No comments:

Post a Comment

Related Posts Plugin for WordPress, Blogger...

Recover password from .sth file

Create perl file (unstash.pl) and run the script. #!/usr/bin/perl #usage perl unstash.pl use strict; die "Usage: $0 \...