In addition to importing the sample application, by clicking on the Import the sample link, you must also import and configure a Cloudscape database to be able to run the sample in the WebSphere Portal v5.1 Test Environment.
Follow these steps to import and configure the database:
- Display the Servers view. It is located near the Properties and Quick Edit views.
- Select New > Server from the view's pop-up menu.
- Select WebSphere Portal v5.1 Test Environment from the server type list.
- Click Next two times. You will be in the Add and Remove Projects page.
- Add projects to configure them on the server that you are creating. Select the following projects, and click Add to move them into the Configured projects list:
- AuctionPortalEAR
- AuctionPortletEAR
- AuctionPortalPortletsEAR
- Click Finish.
- Double-click WebSphere Portal v5.1 Test Environment in the Servers view.
- Select the Data source tab in the server editor.
- In the Server Setting section, click Add to add a listing to the JDBC provider list.
- In the first page of the Create a JDBC Provider wizard, select Cloudscape as the Database type, and Cloudscape JDBC Provider as the JDBC provider type.
- Click Next.
- Type Cloudscape JDBC Provider in the Name field.
- Click Finish.
- Click the Add button next to the Data source defined in the JDBC provider selected above list.
- In the first page of the Create a Data Source wizard, select Cloudscape JDBC Provider, and click Next.
- Type Auction in the Name field.
- Type jdbc/auction in the JNDI name field.
- Click Next.
- Select databaseName from the Resource Properties list.
- Because different Rational products use different installation target locations, you must leave the product's user interface to locate the plug-in that contains the database content. Use a file search tool to locate the com.ibm.etools.auction.sampledb_6.0.0 plug-in folder under the product installation path in your local file system.
- Return to the Create a Data Source wizard, and type the following path in the Value field:
x:\com.ibm.etools.auction.sampledb_6.0.0\db\AUCTION60
where x: is the absolute path that contains the com.ibm.etools.auction.sampledb_6.0.0 plug-in on your computer.
- Click Finish.
- Save and close the server configuration file.
|
WS-I compliance warning messages:
WS-I compliance warning messages will be displayed in the Problems view for Click-to-Action-enabled portlets. You can ignore them in the Click-to-Action WSDL resources. Alternatively, to prevent these warning messages from being displayed, you can change the compliance level on the WS-I compliance preferences:
- Select Window > Preferences > Workbench > Capabilities.
- Expand Web Service Developer, and ensure that Web
Services Development is selected.
- Click Apply and then OK.
- Select Window > Preferences > Web Services > WS-I Compliance.
- Set the compliance levels to Ignore compliance,
and then click Apply and OK.
- To remove the compliance warnings from the Problems view, in the Project Explorer, open the project's pop-up menu select Run Validation.
|