if (!descriptor.getJspDescriptors().isEmpty()) {
boolean oneFailed = false;
boolean foundIt = false;
// ZipEntry ze=null;
// JarFile jar=null;
FileArchive arch=null;
// get the jsps in this .war
Set jsps = descriptor.getJspDescriptors();
Iterator itr = jsps.iterator();
// test the jsps in this .war
while (itr.hasNext()) {
foundIt = false;
WebComponentDescriptor jsp = (WebComponentDescriptor)itr.next();
String jspFilename = jsp.getWebComponentImplementation();
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 e){throw e;}
// }
// else{
// jar = new JarFile(f);
// }
if (jspFilename.startsWith("/"))
jspFilename = jspFilename.substring(1);
// if(f!=null){
// ze = jar.getEntry(jspFilename);
// foundIt=(ze !=null);
// }else{
File jspf = new File(new File(arch.getURI()), jspFilename);
if(jspf.exists())
foundIt=true;
jspf = null;
// }
// if (jar!=null)