Installation of Web Builder sample application
Follow the steps in this section to locate and install the Web Builder sample application on WebSphere® Application Server Version 6.1.
If <install_root> is the directory where the feature pack is installed in the case of WebSphere Application Server (for example,
the directory where WebSphere Application Server is installed) and <WEB2FEP_HOME> is the directory
where IBM WebSphere Application Server Feature Pack for Web 2.0 and Mobile Version 1.1.0.0 is unzipped.
- Locating the stand-alone sample:
The Web Builder sample included in the IBM® WebSphere Application Server Feature Pack for Web 2.0 and Mobile is located
in the <install_root>/web2mobilefep_1.1/samples/WebBuilder/dwb.war directory when installed for WebSphere Application Server v6.1.
Installing the sample on WebSphere Application Server V6.1
- Copy the Feature Pack for Web 2.0 and Mobile Ajax Runtime files from <install_root>/web2mobilefep_1.1/ajax-rt_1.X to a new directory (e.g. D:/WebBuilder/ajax-rt_1.X, refer to as <ajax_runtime>) for Web Builder to build custom dojo builds.
- Copy the packages directory from <install_root>/web2mobilefep_1.1/samples/WebBuilder to a new directory (e.g. D:/WebBuilder). Let's refer to "D:/WebBuilder/packages" as <packages> as the packages directory later in this procedure.
- Edit <packages>/dojo/1.7.0/package.json. Change the location entry to point to the new ajax runtime location in the previous step. The first four lines of this file should look like the following example:
{ "name": "Dojo Toolkit",
"description": "Dojo Toolkit, release 1.7.0",
"location": "D:/WebBuilder/ajax-rt_1.X",
...
}
- Modify the web.xml of Web Builder application to point to the new packages directory <packages>. You can modify the web.xml file in one of the following two ways:
- Start the server, and log into the administrative console.
- From the navigation pane, click the Install New Application link under Applications section.
- Browse to the location of the dwb.war file. Set context root to "dwb".
- Click Next > Next > Continue. (Some of these steps might not be applicable for WebSphere Application Server Version 6.1)
- Click Next until Summary page is displayed and click Finish.
- The resulting page contains the link, Save to Master Configuration. Click this link and click Save in the page that is displayed.
- Click the Enterprise Applications link under the Applications section.
- Select the application, and click Start to start the sample application.
- Browse to http://localhost:9080/dwb to open the welcome page.
The host name and ports might vary according to your server configuration.