if (descriptor.getErrorPageDescriptors().hasMoreElements()) {
boolean oneFailed = false;
boolean foundIt = false;
// ZipEntry ze = null;
// JarFile jar =null;
FileArchive arch=null;
// get the errorpage's in this .war
for (Enumeration e = descriptor.getErrorPageDescriptors() ; e.hasMoreElements() ;) {
foundIt = false;
ErrorPageDescriptor errorpage = (ErrorPageDescriptor) e.nextElement();
String location = errorpage.getLocation();
String uri = null;
try{
// File f = Verifier.getArchiveFile(descriptor.getModuleDescriptor().getArchiveUri());
// if(f==null){
uri=getAbstractArchiveUri(descriptor);
try{
arch = new FileArchive();
arch.open(uri);
}catch(IOException ioe){throw ioe;}
// }else{
// jar = new JarFile(f);
// }
if (location.startsWith("/"))
location = location.substring(1);
// if (f!=null){
// ze = jar.getEntry(location);
// foundIt = (ze != null);
// }
// else{
File loc = new File(new File(arch.getURI()), location);
if(loc.exists())
foundIt=true;
loc = null;
// }
// if (jar!=null)