Package com.sun.enterprise.deployment.deploy.shared

Examples of com.sun.enterprise.deployment.deploy.shared.FileArchive


    if (descriptor.getSpecVersion().compareTo("2.4") < 0){
           
            InputStream deploymentEntry=null;
            try {
                     String uri = getAbstractArchiveUri(descriptor);
                         FileArchive arch = new FileArchive();
                         arch.open(uri);
                         deploymentEntry = arch.getEntry(
                         WebDeploymentDescriptorFile.DESC_PATH);
                 if (deploymentEntry != null) {
                     BufferedReader in = new BufferedReader(new InputStreamReader(deploymentEntry));
                     String s = in.readLine();
                     boolean foundDOCTYPE = false, foundPubid = false, foundURL = false;
View Full Code Here


  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(arch.getArchiveUri()+File.separator+jspFilename);
                        if(jspf.exists())
                            foundIt=true;
                        jspf = null;                
//                    }
//                    if (jar!=null)
View Full Code Here

//      File applicationJarFile = Verifier.getArchiveFile(descriptor.getModuleDescriptor().getArchiveUri());
    
//            if (applicationJarFile == null) {
               String uri = getAbstractArchiveUri(descriptor);
               try {
                 FileArchive arch = new FileArchive();
                 arch.open(uri);
                 deploymentEntry = arch.getEntry(
                                   WebDeploymentDescriptorFile.DESC_PATH);
               }catch (IOException e) { throw e;}
/*
            }
            else {
View Full Code Here

      // continuing, report syntax errors and drop out, otherwise
      // continue...

//            if (applicationJarFile == null) {
//               try {
                 FileArchive arch = (FileArchive)getVerifierContext().
                                    getAbstractArchive();
                 deploymentEntry = arch.getEntry(
                   ApplicationDeploymentDescriptorFile.DESC_PATH);
//               }catch (IOException e) { throw e;}
//            }
//            else {
//
View Full Code Here

        } else {
            InputStream deploymentEntry=null;
            try {
                String uri = getAbstractArchiveUri(descriptor);
                try {
                    FileArchive arch = new FileArchive();
                    arch.open(uri);
                    deploymentEntry = arch.getEntry(mappingFile);
                }catch (IOException e) { throw e;}
                if (deploymentEntry == null) {
                    //result.fail, mapping file does not exist at that location
                    result.addErrorDetails(smh.getLocalString ("tests.componentNameConstructor",
                            "For [ {0} ]", new Object[] {compName.toString()}));
View Full Code Here

        InputStream deploymentEntry=null;

        String uri = null;
  try {
                uri = getAbstractArchiveUri(descriptor);
                 FileArchive arch = new FileArchive();
                 arch.open(uri);
                 deploymentEntry = arch.getEntry(
        ApplicationDeploymentDescriptorFile.DESC_PATH);

      if (deploymentEntry != null) {
    BufferedReader in = new BufferedReader(new InputStreamReader(deploymentEntry));
    String s = in.readLine();
View Full Code Here

        try {
//             if (f == null) {
              String uri = getAbstractArchiveUri(descriptor);
//              try {
                 FileArchive arch = new FileArchive();
                 arch.open(uri);
                 if (descriptor.implementedByEjbComponent()) {
                    deploymentEntry = arch.getEntry(ejbWSXmlLoc);
                 }
                 else if (descriptor.implementedByWebComponent()) {
                    deploymentEntry = arch.getEntry(jaxrpcWSXmlLoc);
                 }
                 else {
                    throw new Exception("Niether implemented by EJB nor by WEB Component");
                 }
//               }catch (IOException e) { throw e;}
View Full Code Here

        try {
//             if (f == null) {
              String uri = getAbstractArchiveUri(descriptor);
//              try {
                 FileArchive arch = new FileArchive();
                 arch.open(uri);
                 deploymentEntry = arch.getEntry(wsdlUri);
//              }catch (IOException e) { throw e;}
//             }
//             else {
//
//               jarFile = new JarFile(f);
View Full Code Here

      // continue...
//           if (applicationJarFile == null) {
               String uri = getAbstractArchiveUri(descriptor);
               try {
                 FileArchive arch = new FileArchive();
                 arch.open(uri);
                 deploymentEntry = arch.getEntry(
                       DescriptorConstants.APP_CLIENT_DD_ENTRY);
               }catch (IOException e) { throw e;}
//            }
//            else {
//
View Full Code Here

        // never read the runtime deployment descriptor before the
        // module type is found and the application object created
        AbstractArchive originalArchive  = null;
        if(jarFile.isDirectory())
        {
            originalArchive = new FileArchive();
            ((FileArchive)originalArchive).open(jarFile.getAbsolutePath());
        }
        else
        {
            originalArchive = new InputJarArchive();
View Full Code Here

TOP

Related Classes of com.sun.enterprise.deployment.deploy.shared.FileArchive

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.