Exemple #1
0
        has_atp = validateRCUArgsAndModel(model_context, model, alias_helper)
        # check if there is an atpwallet and extract in the domain dir
        # it is to support non JRF domain but user wants to use ATP database
        archive_file_name = model_context.get_archive_file_name()
        if not has_atp and archive_file_name and os.path.exists(
                archive_file_name):
            archive_file = WLSDeployArchive(archive_file_name)
            if archive_file:
                atp_wallet_zipentry = archive_file.getATPWallet()
                if atp_wallet_zipentry:
                    atp_helper.extract_walletzip(model, model_context,
                                                 archive_file,
                                                 atp_wallet_zipentry)

        creator = DomainCreator(model, model_context, aliases)
        creator.create()

        if has_atp:
            rcu_properties_map = model[model_constants.DOMAIN_INFO][
                model_constants.RCU_DB_INFO]
            rcu_db_info = RcuDbInfo(alias_helper, rcu_properties_map)
            atp_helper.fix_jps_config(rcu_db_info, model_context)

    except WLSDeployArchiveIOException, ex:
        __logger.severe('WLSDPLY-12409',
                        _program_name,
                        ex.getLocalizedMessage(),
                        error=ex,
                        class_name=_class_name,
                        method_name=_method_name)
Exemple #2
0
        archive_file_name = model_context.get_archive_file_name()
        if archive_file_name:
            domain_path = _get_domain_path(model_context, model_dictionary)
            archive_helper = ArchiveHelper(archive_file_name, domain_path,
                                           __logger, ExceptionType.CREATE)

        alias_helper = AliasHelper(aliases, __logger, ExceptionType.CREATE)
        has_atp = validate_rcu_args_and_model(model_context, model_dictionary,
                                              archive_helper, alias_helper)

        # check if there is an atpwallet and extract in the domain dir
        # it is to support non JRF domain but user wants to use ATP database
        if not has_atp and archive_helper:
            archive_helper.extract_atp_wallet()

        creator = DomainCreator(model_dictionary, model_context, aliases)
        creator.create()

        if has_atp:
            rcu_properties_map = model_dictionary[model_constants.DOMAIN_INFO][
                model_constants.RCU_DB_INFO]
            rcu_db_info = RcuDbInfo(alias_helper, rcu_properties_map)
            atp_helper.fix_jps_config(rcu_db_info, model_context)

    except WLSDeployArchiveIOException, ex:
        __logger.severe('WLSDPLY-12409',
                        _program_name,
                        ex.getLocalizedMessage(),
                        error=ex,
                        class_name=_class_name,
                        method_name=_method_name)