Common validation errors and solutions

This table lists the common error messages that you might encounter when you validate your projects.

Table 1. Common error messages that you might encounter when validating projects.. Table 1 provides the message and explanation associated with common errors that you might receive while you are validating projects.
Message prefix Message Explanation
Application Client validator
CHKJ1000 Validation failed because the application client file is not valid. Ensure that the deployment descriptor is valid. The application-client.xml file cannot be loaded. The project metadata cannot be initialized from the application-client.xml file.
  1. Ensure the following:
    • that the META-INF folder exists in the application client project
    • that META-INF contains the application-client.xml file
    • that META-INF is in the project's classpath.
  2. Validate the syntax of the application-client.xml file: in the Navigator view, highlight the application-client.xml file, right-click, and select Validate XML file.
  3. If both 1) and 2) are okay, close the project, reopen the project, and rebuild the project. The project metadata refreshes.
EAR validator
CHKJ1001 The EAR project {0} is invalid. The application.xml file cannot be loaded. The project metadata cannot be initialized from the application.xml file.
  1. Ensure the following:
    • that the META-INF folder exists in the EAR project
    • that META-INF contains application.xml
    • that META-INF is in the project's classpath.
  2. Validate the syntax of the application.xml file: in the Navigator view, highlight the application.xml file, right-click, and select Validate XML file.
  3. If both 1) and 2) are okay, close the project, reopen the project, and rebuild the project. The project metadata refreshes.
EJB validator
CHKJ2102 Either a finder descriptor, or a matching custom finder method on the {0} class, must be defined. A finder descriptor must exist for every finder method.
CHKJ2875E <ejb-client-jar> {0} must exist in every EAR file that contains this EJB module. If <ejb-client-jar> is specified in ejb-jar.xml, a corresponding EJB client project must contain the home and remote interfaces and any other types that a client will need. If these types are all contained in a single EJB project, delete the <ejb-client-jar> line in the deployment descriptor. Otherwise, ensure that the EJB client project exists, is open, and is a project utility JAR in every EAR that uses this EJB project as a module.
CHKJ2905 The EJB validator did not run because ejb-jar.xml could not be loaded. Run the XML validator for more information. CHKJ2905 means that the project's metadata could not be initialized from ejb-jar.xml.
  1. Ensure the following:
    • that the META-INF folder exists in the EJB project
    • that META-INF contains ejb-jar.xml
    • that META-INF is in the project's classpath.
  2. Validate the syntax of the ejb-jar.xml file: in the Navigator view, highlight the ejb-jar.xml file, right-click, and select Validate XML file.
  3. If both 1) and 2) are okay, close the project, reopen the project, and rebuild the project. The project metadata refreshes.
JSP validator
IWAW0482 No valid JspTranslator There is a path problem with the project; the JSP Validator needs access to the WAS runtime code. If IWAW0482E appears on all web projects, check the Variable or JRE path:
  1. Check the global preferences (Window > Preferences > Java >Installed JREs) and make sure that the location for the JRE is pointing to a valid JRE directory.
  2. Ensure that the classpath variables (Window > Preferences > Java > Classpath Variables) are set correctly.
WAR validator
CHKJ3008 Missing or invalid WAR file. The web.xml file cannot be loaded. The project metadata cannot be initialized from the web.xml file.
  1. Ensure the following:
    • that the WEB-INF folder exists in the web project
    • that WEB-INF contains the web.xml file
    • that WEB-INF is in the project's classpath.
  2. Validate the syntax of the web.xml file: in the Navigator view, highlight the web.xml file, right-click, and select Validate XML file.
  3. If both 1) and 2) are okay, close the project, reopen the project, and rebuild the project. The project metadata refreshes.
XML validator
The content of element type ejb-jar is incomplete, it must match(description?, display-name?, small-icon?, large-icon?, enterprise-beans, assembly-descriptor?, ejb-client-jar?). The EJB 1.1 and 2.0 specifications mandate that at least one enterprise bean must exist in an EJB .jar file. This error message is normal during development of EJB .jar files and can be ignored until you perform a production action, such as exporting or deploying code. Define at least one enterprise bean in the project.