Package org.glassfish.deployment.common

Examples of org.glassfish.deployment.common.DeploymentException


  ////////////////////////////////////////////////////////////////////////////
 
  private static void verify(File inWebDir, File outWebDir) throws DeploymentException {
    // inWebDir must exist, outWebDir must either exist or be creatable
    if (!FileUtils.safeIsDirectory(inWebDir)) {
      throw new DeploymentException("inWebDir is not a directory: " + inWebDir);
    }
  
    if (!FileUtils.safeIsDirectory(outWebDir)) {
      outWebDir.mkdirs();
   
      if (!FileUtils.safeIsDirectory(outWebDir)) {
        throw new DeploymentException("outWebDir is not a directory, and it can't be created: " + outWebDir);
      }
    }
  }
View Full Code Here


            helper.prepareJARs();
            addArtifactsToDownloads(helper, dc);
            addArtifactsToGeneratedFiles(helper, dc);
            recordUserFriendlyContextRoot(helper, dc);
        } catch (Exception ex) {
            throw new DeploymentException(ex);
        }
    }
View Full Code Here

            generateAndRecordEARFacadeContents(
                    dc,
                    appClientGroupListSB.toString());
            recordGroupFacadeGeneration();
        } catch (Exception e) {
            throw new DeploymentException(e);
        }
    }
View Full Code Here

            is = jf.getInputStream(entry);
            DeploymentUtils.copyStream(is, os);
            is.close();
            clientArtifactsManager.add(mainClassFile, mainClassResourceName, true);
        } catch (Exception e) {
            throw new DeploymentException(e);
        } finally {
            try {
                os.close();
            } finally {
                try {
View Full Code Here

      try {
    initCMRFieldStuff();
      } catch ( Exception ex ) {
                DOLUtils.getDefaultLogger().log(Level.SEVERE, "enterprise.deployment.backend.invalidDescriptorMappingFailure",
                    new Object[] {ex.toString()});
    throw new DeploymentException(ex);
      }
  }
  return cmrFieldInfo;
    }
View Full Code Here

  CMRFieldInfo[] cmrf = this.getCMRFieldInfo();
  for ( int i=0; i<cmrf.length; i++ ) {
      if ( cmrf[i].name.equals(fieldName) )
    return cmrf[i];
  }
  throw new DeploymentException("CMRFieldInfo not found for field "+fieldName);
    }
View Full Code Here

      pkeyStuffInitialized = true;
  }
  catch ( Exception ex ) {
            DOLUtils.getDefaultLogger().log(Level.SEVERE, "enterprise.deployment.backend.invalidDescriptorMappingFailure",
                new Object[] {ex.toString()});
            throw new DeploymentException(ex);
  }
    }
View Full Code Here

    {
  if ( stateClass == null ) {
      stateClass = getPersistentClass();
      if ( parentDesc.isEJB20() ) {
    if( !Modifier.isAbstract(stateClass.getModifiers()) ) {
              throw new DeploymentException("2.x CMP bean class "
                        + stateClass.getName() + " must be decleared abstract "
                        + "or cmp-version for the corresponding bean must be set to 1.x.");
                }
          String stateClassName = parentDesc.getStateImplClassName();
          stateClass = getClass(stateClassName);
View Full Code Here

    private Class getClass(String className)
    {           
  try {
      return getEjbBundleDescriptor().getClassLoader().loadClass(className);
  } catch ( Exception ex ) {
      throw new DeploymentException(ex);
  }
    }
View Full Code Here

      initializeFieldInfo();
  for ( int i=0; i<persFieldInfo.length; i++ ) {
      if ( persFieldInfo[i].name.equals(fieldName) )
    return persFieldInfo[i];
  }
  throw new DeploymentException("PersistentFieldInfo not found for field "+fieldName);
    }
View Full Code Here

TOP

Related Classes of org.glassfish.deployment.common.DeploymentException

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.