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 Community Edition
Version 2.x . 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 <WASCEFEP_HOME> is the directory
where IBM WebSphere Application Server Community Edition Version 2.0 Plug-in for Web 2.0 Version 1.1.0.1
is unzipped.
- Locating the stand-alone sample:
The Web Builder sample included in the IBM® WebSphere Application Server Feature Pack for Web 2.0 is
located in the <WASCEFEP_HOME>/web2mobilefep_1.1/WebBuilder/samples/dwb.war directory when installed for WebSphere Application Server Community
Edition v2.x.
Installing the sample on WebSphere Application Server Community Edition 2.x:
- Copy the Feature Pack for Web 2.0 and Mobile Ajax Runtime files from /web2mobilefep_1.1/AjaxClientRuntime_1.X to a new directory (e.g. D:/WebBuilder/AjaxClientRuntime_1.X, refer to as <ajax_runtime>) for Web Builder to build custom Dojo builds.
- Copy the packages directory from /web2mobilefep_1.1/WebBuilder/samples 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 /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/AjaxClientRuntime_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 WebSphere Application Server Community Edition 2.x.
- Open browser and navigate to http://localhost:8080/console.
- Enter user name as system and password as manager and log in.
- In the navigation, click the Deploy New link.
- Browse to the directory where the sample is extracted and select sample dwb.war.
- Click Install. This deploys the Application.
- Browse to http://localhost:8080/dwb to open the welcome page.
The host name and ports might vary according to your server configuration.