IBM Support

How to remove errors after importing "Web 2.0 streaming stock quotes" sample

Technote (FAQ)


How do you remove validation errors after importing the "Web 2.0 streaming stock quotes" sample into your workspace in IBM Rational Application Developer for WebSphere 8.0.4?


JSON files had been usually excluded from validation however there was a change in JSON validation.


The validation of JSON was recently changed. Typically, JSON files under the Dojo root are excluded from JSON validation. In this case, it is not excluded because of the recent change in JSON validation.

Remove the errors as follows:

  1. Right click the quotesstreamer project

  2. Select Properties

  3. When the properties dialog comes up, select Validation

  4. Locate the JSON Syntax Validator

  5. Click the ... button

  6. Click the Add Exclude Group... button

  7. Click the Add Rule... button

  8. Select the Folder or file name radio button and click the Next button

  9. Click the Browse Folder... button

  10. Select the folder <workspace_location>/quotestreamer/WebContent/Dojo folder and click the OK button

  11. Click the Finish button to close the New Filter Rule Wizard

  12. Click the OK button to close the Validation Filters for JSON Syntax Validator dialog

  13. Click the OK button to close the Properties for quotestreamer dialog

  14. Right click the quotestreamer project and select Validate

At this point you should see the errors go away.

Document information

More support for: Rational Application Developer for WebSphere Software
Web Development

Software version: 8.0.4

Operating system(s): Linux, Windows

Reference #: 1570421

Modified date: 18 December 2012