Installation of Web Builder sample application
Follow the steps in this section to locate and install the Web Builder application on WebSphere® Application Server Version 7.0.
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 n for Web 2.0 and Mobile Version 1.1.0.0
is installed.
- 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 <install_root>/web2mobilefep_1.1/samples/WebBuilder/dwb.war directory when installed for WebSphere Application Server v7.0.
Installing the sample on WebSphere Application Server V7.0
- 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 New Application link under Applications section
- Select New Enterprise Application.
- Browse your file system and select the dwb.war file.
- Select Fast Path option and click Next.
- Keep defaults and click Next (Select installation options).
- Click Next(Map modules to servers).
- Click Next (Map virtual hosts for Web modules).
- Set context root to "/dwb" (Map context roots for Web modules), and click Next.
- Click Finish.
- Click Save to the master configuration.
- Click Save.
- Navigate to Applications > Application Types > WebSphere enterprise applications.
- Select the Web Builder application and click Start.
- Browse to http://localhost:9080/dwb to open the welcome page.
The host name and ports might vary according to your server configuration.