}
while ( !initFailed && ejbs.hasNext() ) {
EjbDescriptor ejbdesc = (EjbDescriptor) ejbs.next();
if ( ejbdesc instanceof IASEjbCMPEntityDescriptor ) {
IASEjbCMPEntityDescriptor entd = (IASEjbCMPEntityDescriptor)ejbdesc;
try {
jdogen.validate(entd);
result.passed(smh.getLocalString(getClass().getName()+".passed",
"PASSED [JDO-GEN-CMP-Validation] : The descriptor entries, in the mapping file [ {0} ], "+
"for CMP [ {1} ]"+
"of the ejb archive [ {2} ] are valid. ",
new Object[]{EjbBundleXmlReader.IAS_CMP_MAPPING_JAR_ENTRY,ejbdesc.getEjbClassName(),descriptor.getName()}));
} catch (GeneratorException e) {
oneFailed = true;
result.failed(smh.getLocalString(getClass().getName()+".failed",
"FAILED [JDO-GEN-CMP-Validation] : Atleast one entry , in the mapping file [ {0} ], "+
"for CMP [ {1} ]"+
"of the ejb archive [ {2} ] is not valid. "+
"Check stacktrace for details : \n [ {3} ]" ,
new Object[]{EjbBundleXmlReader.IAS_CMP_MAPPING_JAR_ENTRY,ejbdesc.getEjbClassName(),descriptor.getName(),e.getMessage()}));
}catch (Exception e) {
oneFailed = true;
result.failed(smh.getLocalString(getClass().getName()+".failed1",
"FAILED [JDO-GEN-CMP-Validation] : Unexpected exception occured while validating , the mapping file [ {0} ], "+
"for CMP [ {1} ]"+
"of the ejb archive [ {2} ] . "+
"Check stacktrace for details : \n [ {3} ]" ,
new Object[]{EjbBundleXmlReader.IAS_CMP_MAPPING_JAR_ENTRY,ejbdesc.getEjbClassName(),descriptor.getName(),e.getMessage()}));
}
}