J2EE Validators

Validator name Description
EJB Validator The EJB Validator verifies that enterprise beans contained in an EJB project comply with the Sun Enterprise JavaBeans Specifications (1.1, 2.0, and 2.1), depending on the level of the bean. Code validation for the EJB 1.0 specification is not supported.

Specifically, the EJB Validator validates the following resources:

  • Java™ .class files that are members of an enterprise bean (home interface, remote interface, enterprise bean class, and, if the bean is an entity bean, the key class)
  • ejb-jar.xml
  • ibm-ejb-jar-ext.xmi (associations, finders, and WebSphere® component inheritance)

This validator is only available in versions of the workbench that support EJB development.

EJB XML Validator The EJB XML validator is a specialized form of the XML validator. It checks for well-formed and valid XML. The EJB XML differs from the XML validator in its treatment of the ejb-jar.xml file. During development, the EJB XML Validator validates ejb-jar.xml only if at least one bean exists; before deployment ejb-jar.xml is always validated.
JSR-109 Web Services Validator The JSR-109 validator examines Web services deployment descriptors in J2EE modules and measures their compliance to major rules of the JSR-109 v1.0 specification. The validator examines:
  • References to WSDL files
  • References to JAX-RPC mapping files
  • References to Web module deployment descriptors (web.xml)
  • References to EJB module deployment descriptors (ejb-jar.xml)
  • Correct configuration of Web modules (web.xml) containing Web services
  • Correct configuration of EJB modules (ejb-jar.xml) containing Web services
The Web services deployment descriptors, webservices.xml file, webservicesclient.xml file, and the JAX-RPC mapping file are defined by JSR-109, "Web Services for J2EE, Version 1.0", available at http://jcp.org/aboutJava/communityprocess/final/jsr109/index.html.
Map Validator Validates any EJB to RDB maps that are contained in an EJB project.

This validator is not available in WebSphere Studio Site Developer.

Static Web and Publishing Servers Configuration Validator The Static Web and Publishing Servers Configuration Validator verifies that:
  • The projects defined in the configuration of the Static Web Publishing Server or J2EE Publishing Server exist in the workbench
  • The Alias path defined in the Static Web Publishing Server configuration is being used by a static web project in the workbench
Struts Configuration File Validator The Struts Configuration File Validator validates configured Struts configuration files according to the description provided by the struts-config.dtd file. This validator catches additional semantic errors that a straight XML validation against the DTD cannot catch, for example:
  • contents of a CDATA block (for example %Integer ENTITY)
  • dependent attributes within an element definition
  • duplicate element definitions
WebSphere Server Configuration Validator The WebSphere Server Configuration Validator validates server configuration files that are contained in a server project by:
  • Checking the syntax of the server configuration file against the rules that are defined by the configuration model in WebSphere Application Server.
  • Checking whether the project defined in the server configuration file is consistent with the resources defined in the workbench.
Note that automatic code validation is not supported for the WebSphere Server Configuration Validator in this release.
XSL Validator The XSL validator ensures that the XSL file is well-formed. It tries to detect any static errors, that is, an error that can be detected in a style sheet before execution starts.

Feedback