Skip to main content

This CGIT instance is deprecated, and repositories have been moved to Gitlab or Github. See the repository descriptions for specific locations.

summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'docs/org.eclipse.jst.j2ee.doc.user/topics/rvalerr.html')
-rw-r--r--docs/org.eclipse.jst.j2ee.doc.user/topics/rvalerr.html296
1 files changed, 216 insertions, 80 deletions
diff --git a/docs/org.eclipse.jst.j2ee.doc.user/topics/rvalerr.html b/docs/org.eclipse.jst.j2ee.doc.user/topics/rvalerr.html
index 54090d30e..71394d6e4 100644
--- a/docs/org.eclipse.jst.j2ee.doc.user/topics/rvalerr.html
+++ b/docs/org.eclipse.jst.j2ee.doc.user/topics/rvalerr.html
@@ -1,190 +1,326 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE html
- PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html lang="en-us" xml:lang="en-us">
<head>
-<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
-<!-- /*******************************************************************************
- * Copyright (c) 2000, 2005 IBM Corporation and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * IBM Corporation - initial API and implementation
- *******************************************************************************/ -->
-<link rel="stylesheet" type="text/css" href="../../org.eclipse.wst.doc.user/common.css" />
-
+<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
+<meta name="copyright" content="Copyright (c) 2000, 2006 IBM Corporation and others. All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Public License v1.0 which accompanies this distribution, and is available at http://www.eclipse.org/legal/epl-v10.html. Contributors: IBM Corporation - initial API and implementation" />
+<meta name="DC.rights.owner" content="(C) Copyright 2000, 2006" />
+<meta content="public" name="security" />
+<meta content="index,follow" name="Robots" />
+<meta http-equiv="PICS-Label" content='(PICS-1.1 "http://www.icra.org/ratingsv02.html" l gen true r (cz 1 lz 1 nz 1 oz 1 vz 1) "http://www.rsac.org/ratingsv01.html" l gen true r (n 0 s 0 v 0 l 0) "http://www.classify.org/safesurf/" l gen true r (SS~~000 1))' />
+<meta content="reference" name="DC.Type" />
+<meta name="DC.Title" content="Common validation errors and solutions" />
+<meta name="abstract" content="You may encounter these common error messages when you validate your projects." />
+<meta name="description" content="You may encounter these common error messages when you validate your projects." />
+<meta content="validation, errors, solutions to errors, code validation, solutions to errors" name="DC.subject" />
+<meta content="validation, errors, solutions to errors, code validation, solutions to errors" name="keywords" />
+<meta scheme="URI" name="DC.Relation" content="../topics/rvalidators.html" />
+<meta scheme="URI" name="DC.Relation" content="../topics/tjval.html" />
+<meta content="XHTML" name="DC.Format" />
+<meta content="rvalerr" name="DC.Identifier" />
+<meta content="en-us" name="DC.Language" />
+<link href="../../org.eclipse.wst.doc.user/common.css" type="text/css" rel="stylesheet" />
<title>Common validation errors and solutions</title>
</head>
<body id="rvalerr"><a name="rvalerr"><!-- --></a>
-<h1 class="topictitle1">Common validation errors and solutions</h1>
-<div><p>You may encounter these common error messages when you validate
-your projects.</p>
-<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" frame="border" border="1" rules="all"><thead align="left"><tr><th valign="top" width="20.27027027027027%" id="d0e33">Message prefix</th>
-<th valign="top" width="24.324324324324326%" id="d0e35">Message</th>
-<th valign="top" width="55.4054054054054%" id="d0e37">Explanation</th>
+
+<h1 class="id_title">Common validation errors and solutions</h1>
+
+
+
+<div class="id_refbody"><p class="id_shortdesc">You may encounter these common error
+messages when you validate your projects.</p>
+
+<div class="anchor_topictop" />
+
+
+<div class="tablenoborder"><table summary="" cellspacing="0" cellpadding="4" frame="border" border="1" rules="all">
+
+<thead align="left">
+<tr class="id_tableHeadRow">
+<th valign="top" width="20.27027027027027%" id="N1008D">Message prefix</th>
+
+<th valign="top" width="24.324324324324326%" id="N10094">Message</th>
+
+<th valign="top" width="55.4054054054054%" id="N1009B">Explanation</th>
+
</tr>
+
</thead>
-<tbody><tr><td colspan="3" valign="top" headers="d0e33 d0e35 d0e37 "><span class="uicontrol">Application Client validator</span></td>
+
+<tbody>
+<tr class="id_appclientValidator">
+<td colspan="3" valign="top" headers="N1008D N10094 N1009B "><span class="uicontrol">Application Client validator</span></td>
+
</tr>
-<tr><td valign="top" width="20.27027027027027%" headers="d0e33 ">CHKJ1000</td>
-<td valign="top" width="24.324324324324326%" headers="d0e35 ">Validation failed because the application client file
+
+<tr class="id_CHKJ1000">
+<td valign="top" width="20.27027027027027%" headers="N1008D ">CHKJ1000</td>
+
+<td valign="top" width="24.324324324324326%" headers="N10094 ">Validation failed because the application client file
is not valid. Ensure that the deployment descriptor is valid.</td>
-<td valign="top" width="55.4054054054054%" headers="d0e37 ">The application-client.xml file cannot be loaded. The
+
+<td valign="top" width="55.4054054054054%" headers="N1009B ">The application-client.xml file cannot be loaded. The
project metadata cannot be initialized from the application-client.xml file.
- <ol><li>Ensure the following: <ul><li>that the META-INF folder exists in the application client project</li>
+ <ol>
+<li>Ensure the following: <ul>
+<li>that the META-INF folder exists in the application client project</li>
+
<li>that META-INF contains the application-client.xml file</li>
+
<li>that META-INF is in the project's classpath.</li>
+
</ul>
</li>
+
<li>Validate the syntax of the application-client.xml file: in the Navigator
view, highlight the application-client.xml file, right-click, and select <span class="uicontrol">Validate
XML file</span>.</li>
+
<li>If both 1) and 2) are okay, close the project, reopen the project, and
rebuild the project. The project metadata will refresh.</li>
+
</ol>
</td>
+
</tr>
-<tr><td colspan="3" valign="top" headers="d0e33 d0e35 d0e37 "><span class="uicontrol">EAR validator</span></td>
+
+<tr class="id_EARValidator">
+<td colspan="3" valign="top" headers="N1008D N10094 N1009B "><span class="uicontrol">EAR validator</span></td>
+
</tr>
-<tr><td valign="top" width="20.27027027027027%" headers="d0e33 ">CHKJ1001</td>
-<td valign="top" width="24.324324324324326%" headers="d0e35 ">The EAR project {0} is invalid.</td>
-<td valign="top" width="55.4054054054054%" headers="d0e37 ">The application.xml file cannot be loaded. The project
-metadata cannot be initialized from the application.xml file. <ol><li>Ensure the following: <ul><li>that the META-INF folder exists in the EAR project</li>
+
+<tr class="id_CHKJ1001">
+<td valign="top" width="20.27027027027027%" headers="N1008D ">CHKJ1001</td>
+
+<td valign="top" width="24.324324324324326%" headers="N10094 ">The EAR project {0} is invalid.</td>
+
+<td valign="top" width="55.4054054054054%" headers="N1009B ">The application.xml file cannot be loaded. The project
+metadata cannot be initialized from the application.xml file. <ol>
+<li>Ensure the following: <ul>
+<li>that the META-INF folder exists in the EAR project</li>
+
<li>that META-INF contains <samp class="codeph">application.xml</samp></li>
+
<li>that META-INF is in the project's classpath.</li>
+
</ul>
</li>
+
<li>Validate the syntax of the application.xml file: in the Navigator view,
highlight the application.xml file, right-click, and select <span class="uicontrol">Validate
XML file</span>.</li>
+
<li>If both 1) and 2) are okay, close the project, reopen the project, and
rebuild the project. The project metadata will refresh.</li>
+
</ol>
</td>
+
</tr>
-<tr><td colspan="3" valign="top" headers="d0e33 d0e35 d0e37 "><span class="uicontrol">EJB validator</span></td>
+
+<tr class="id_EJBValidator">
+<td colspan="3" valign="top" headers="N1008D N10094 N1009B "><span class="uicontrol">EJB validator</span></td>
+
</tr>
-<tr><td valign="top" width="20.27027027027027%" headers="d0e33 ">CHKJ2019</td>
-<td valign="top" width="24.324324324324326%" headers="d0e35 ">The {0} key class must be serializable at runtime. </td>
-<td rowspan="3" valign="top" width="55.4054054054054%" headers="d0e37 ">The EJB is compliant with the EJB specification. This
+
+<tr class="id_CHKJ2019">
+<td valign="top" width="20.27027027027027%" headers="N1008D ">CHKJ2019</td>
+
+<td valign="top" width="24.324324324324326%" headers="N10094 ">The {0} key class must be serializable at runtime. </td>
+
+<td rowspan="3" valign="top" width="55.4054054054054%" headers="N1009B ">The EJB is compliant with the EJB specification. This
message is a warning that problems may occur. The warning appears when a type
needs to be serializable at runtime and when serializability cannot be verified
at compile-time. A type is serializable if, at runtime, it is a primitive
type, a primitive array, a remote object, or if it implements java.io.Serializable.
This message flags java.lang.Object and it cannot be disabled. You can either
make the object serializable at compile-time or ignore the warning. </td>
+
</tr>
-<tr><td valign="top" width="20.27027027027027%" headers="d0e33 ">CHKJ2412</td>
-<td valign="top" width="24.324324324324326%" headers="d0e35 ">The return type must be serializable at runtime. </td>
+
+<tr class="id_CHKJ2412">
+<td valign="top" width="20.27027027027027%" headers="N1008D ">CHKJ2412</td>
+
+<td valign="top" width="24.324324324324326%" headers="N10094 ">The return type must be serializable at runtime. </td>
+
</tr>
-<tr><td valign="top" width="20.27027027027027%" headers="d0e33 ">CHKJ2413</td>
-<td valign="top" width="24.324324324324326%" headers="d0e35 ">Argument {1} of {0} must be serializable at runtime.</td>
+
+<tr class="id_CHKJ2413">
+<td valign="top" width="20.27027027027027%" headers="N1008D ">CHKJ2413</td>
+
+<td valign="top" width="24.324324324324326%" headers="N10094 ">Argument {1} of {0} must be serializable at runtime.</td>
+
</tr>
-<tr><td valign="top" width="20.27027027027027%" headers="d0e33 ">CHKJ2102</td>
-<td valign="top" width="24.324324324324326%" headers="d0e35 ">Either a finder descriptor, or a matching custom finder method on the
+
+<tr class="id_CHKJ2102">
+<td valign="top" width="20.27027027027027%" headers="N1008D ">CHKJ2102</td>
+
+<td valign="top" width="24.324324324324326%" headers="N10094 ">Either a finder descriptor, or a matching custom finder method on the
{0} class, must be defined.</td>
-<td valign="top" width="55.4054054054054%" headers="d0e37 ">A finder descriptor must exist for every finder method. </td>
+
+<td valign="top" width="55.4054054054054%" headers="N1009B ">A finder descriptor must exist for every finder method. </td>
+
</tr>
-<tr><td valign="top" width="20.27027027027027%" headers="d0e33 ">CHKJ2873</td>
-<td valign="top" width="24.324324324324326%" headers="d0e35 ">Migrate this bean's datasource binding to a CMP Connection Factory
+
+<tr class="id_CHKJ2873">
+<td valign="top" width="20.27027027027027%" headers="N1008D ">CHKJ2873</td>
+
+<td valign="top" width="24.324324324324326%" headers="N10094 ">Migrate this bean's datasource binding to a CMP Connection Factory
binding.</td>
-<td valign="top" width="55.4054054054054%" headers="d0e37 ">&nbsp;</td>
+
+<td valign="top" width="55.4054054054054%" headers="N1009B ">&nbsp;</td>
+
</tr>
-<tr><td valign="top" width="20.27027027027027%" headers="d0e33 ">CHKJ2874</td>
-<td valign="top" width="24.324324324324326%" headers="d0e35 ">Migrate this EJB module's default datasource binding to a default CMP
+
+<tr class="id_CHKJ2874">
+<td valign="top" width="20.27027027027027%" headers="N1008D ">CHKJ2874</td>
+
+<td valign="top" width="24.324324324324326%" headers="N10094 ">Migrate this EJB module's default datasource binding to a default CMP
Connection Factory binding.</td>
-<td valign="top" width="55.4054054054054%" headers="d0e37 ">&nbsp;</td>
+
+<td valign="top" width="55.4054054054054%" headers="N1009B ">&nbsp;</td>
+
</tr>
-<tr><td valign="top" width="20.27027027027027%" headers="d0e33 ">CHKJ2875E </td>
-<td valign="top" width="24.324324324324326%" headers="d0e35 ">&lt;ejb-client-jar&gt; {0} must exist in every EAR file
+
+<tr class="id_CHKJ2875E">
+<td valign="top" width="20.27027027027027%" headers="N1008D ">CHKJ2875E </td>
+
+<td valign="top" width="24.324324324324326%" headers="N10094 ">&lt;ejb-client-jar&gt; {0} must exist in every EAR file
that contains this EJB module.</td>
-<td valign="top" width="55.4054054054054%" headers="d0e37 ">If <samp class="codeph">&lt;ejb-client-jar&gt;</samp> is specified
+
+<td valign="top" width="55.4054054054054%" headers="N1009B ">If <samp class="codeph">&lt;ejb-client-jar&gt;</samp> is specified
in <span class="filepath">ejb-jar.xml</span>, 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 <samp class="codeph">&lt;ejb-client-jar&gt;</samp> 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.</td>
+
</tr>
-<tr><td valign="top" width="20.27027027027027%" headers="d0e33 ">CHKJ2905</td>
-<td valign="top" width="24.324324324324326%" headers="d0e35 ">The EJB validator did not run because ejb-jar.xml could not be loaded.
+
+<tr class="id_CHKJ2905">
+<td valign="top" width="20.27027027027027%" headers="N1008D ">CHKJ2905</td>
+
+<td valign="top" width="24.324324324324326%" headers="N10094 ">The EJB validator did not run because ejb-jar.xml could not be loaded.
Run the XML validator for more information.</td>
-<td valign="top" width="55.4054054054054%" headers="d0e37 ">CHKJ2905 means that the project's metadata could not be initialized
-from ejb-jar.xml. <ol><li>Ensure the following: <ul><li>that the META-INF folder exists in the EJB project</li>
+
+<td valign="top" width="55.4054054054054%" headers="N1009B ">CHKJ2905 means that the project's metadata could not be initialized
+from ejb-jar.xml. <ol>
+<li>Ensure the following: <ul>
+<li>that the META-INF folder exists in the EJB project</li>
+
<li>that META-INF contains ejb-jar.xml</li>
+
<li>that META-INF is in the project's classpath.</li>
+
</ul>
</li>
+
<li>Validate the syntax of the ejb-jar.xml file: in the Navigator view, highlight
the ejb-jar.xml file, right-click, and select <span class="uicontrol">Validate XML file</span>.</li>
+
<li>If both 1) and 2) are okay, close the project, reopen the project, and
rebuild the project. The project metadata will refresh.</li>
+
</ol>
</td>
+
</tr>
-<tr><td colspan="3" valign="top" headers="d0e33 d0e35 d0e37 "><span class="uicontrol">JSP validator</span></td>
+
+<tr class="id_JSPValidator">
+<td colspan="3" valign="top" headers="N1008D N10094 N1009B "><span class="uicontrol">JSP validator</span></td>
+
</tr>
-<tr><td valign="top" width="20.27027027027027%" headers="d0e33 ">IWAW0482</td>
-<td valign="top" width="24.324324324324326%" headers="d0e35 ">No valid JspTranslator</td>
-<td valign="top" width="55.4054054054054%" headers="d0e37 ">There is a path problem with the project; the JSP Validator
+
+<tr class="id_IWAW0482">
+<td valign="top" width="20.27027027027027%" headers="N1008D ">IWAW0482</td>
+
+<td valign="top" width="24.324324324324326%" headers="N10094 ">No valid JspTranslator</td>
+
+<td valign="top" width="55.4054054054054%" headers="N1009B ">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: <ol><li>Check the global preferences (<span class="uicontrol">Window &gt; Preferences &gt; Java &gt;Installed
+check the Variable or JRE path: <ol>
+<li>Check the global preferences (<span class="uicontrol">Window &gt; Preferences &gt; Java &gt;Installed
JREs</span>) and make sure that the location for the JRE is pointing
to a valid JRE directory. </li>
+
<li>Ensure that the classpath variables (<span class="uicontrol">Window &gt; Preferences &gt;
Java &gt; Classpath Variables</span>) are set correctly.</li>
+
</ol>
</td>
+
</tr>
-<tr><td colspan="3" valign="top" headers="d0e33 d0e35 d0e37 "><span class="uicontrol">WAR validator</span></td>
+
+<tr class="id_WARValidator">
+<td colspan="3" valign="top" headers="N1008D N10094 N1009B "><span class="uicontrol">WAR validator</span></td>
+
</tr>
-<tr><td valign="top" width="20.27027027027027%" headers="d0e33 ">CHKJ3008</td>
-<td valign="top" width="24.324324324324326%" headers="d0e35 ">Missing or invalid WAR file.</td>
-<td valign="top" width="55.4054054054054%" headers="d0e37 ">The web.xml file cannot be loaded. The project metadata
-cannot be initialized from the web.xml file. <ol><li>Ensure the following: <ul><li>that the WEB-INF folder exists in the web project</li>
+
+<tr class="id_CHKJ3008">
+<td valign="top" width="20.27027027027027%" headers="N1008D ">CHKJ3008</td>
+
+<td valign="top" width="24.324324324324326%" headers="N10094 ">Missing or invalid WAR file.</td>
+
+<td valign="top" width="55.4054054054054%" headers="N1009B ">The web.xml file cannot be loaded. The project metadata
+cannot be initialized from the web.xml file. <ol>
+<li>Ensure the following: <ul>
+<li>that the WEB-INF folder exists in the web project</li>
+
<li>that WEB-INF contains the web.xml file</li>
+
<li>that WEB-INF is in the project's classpath.</li>
+
</ul>
</li>
+
<li>Validate the syntax of the web.xml file: in the Navigator view, highlight
the web.xml file, right-click, and select <span class="uicontrol">Validate XML file</span>.</li>
+
<li>If both 1) and 2) are okay, close the project, reopen the project, and
rebuild the project. The project metadata will refresh.</li>
+
</ol>
</td>
+
</tr>
-<tr><td colspan="3" valign="top" headers="d0e33 d0e35 d0e37 "><span class="uicontrol">XML validator</span></td>
+
+<tr class="id_XMLValidator">
+<td colspan="3" valign="top" headers="N1008D N10094 N1009B "><span class="uicontrol">XML validator</span></td>
+
</tr>
-<tr><td valign="top" width="20.27027027027027%" headers="d0e33 "> </td>
-<td valign="top" width="24.324324324324326%" headers="d0e35 ">The content of element type "ejb-jar" is incomplete, it must match
+
+<tr>
+<td valign="top" width="20.27027027027027%" headers="N1008D "> </td>
+
+<td valign="top" width="24.324324324324326%" headers="N10094 ">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?)".</td>
-<td valign="top" width="55.4054054054054%" headers="d0e37 ">The EJB 1.1 and 2.0 specifications mandate that at least one enterprise
+
+<td valign="top" width="55.4054054054054%" headers="N1009B ">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.</td>
+
</tr>
+
</tbody>
+
</table>
</div>
-</div>
-<div>
-<div class="familylinks">
-<div class="parentlink"><strong>Parent topic:</strong> <a href="../topics/tjval.html">Validating code in enterprise applications</a></div>
-</div>
-<div class="familylinks">
-<div class="parentlink"><strong>Parent topic:</strong> <a href="../topics/ph-ref.html" title="The following reference material on J2EE is available:">Reference</a></div>
+<div class="anchor_topicbottom" />
+
</div>
-<div class="reltasks"><strong>Related tasks</strong><br />
-<div><a href="../topics/tjval.html">Validating code in enterprise applications</a></div>
+
+<div><div class="reltasks"><strong>Related tasks</strong><br />
+<div><a href="../topics/tjval.html" title="The workbench includes validators that check certain files in your enterprise application module projects for errors.">Validating code in enterprise applications</a></div>
</div>
<div class="relref"><strong>Related reference</strong><br />
<div><a href="../topics/rvalidators.html" title="This table lists the validators that are available for the different project types and gives a brief description of each validator.">J2EE Validators</a></div>
</div>
-</div></body>
+</div>
+
+</body>
</html> \ No newline at end of file

Back to the top