@@ -351,7 +351,9 @@ def validateRCUArgsAndModel(model_context, model):
351351 if not has_tns_admin :
352352 # extract the wallet first
353353 archive_file = WLSDeployArchive (model_context .get_archive_file_name ())
354- atp_wallet_zipentry = archive_file .getATPWallet ()
354+ atp_wallet_zipentry = None
355+ if archive_file :
356+ atp_wallet_zipentry = archive_file .getATPWallet ()
355357 if atp_wallet_zipentry and model [model_constants .TOPOLOGY ]['Name' ]:
356358 extract_path = atp_helper .extract_walletzip (model , model_context , archive_file , atp_wallet_zipentry )
357359 # update the model to add the tns_admin
@@ -430,11 +432,20 @@ def main(args):
430432 try :
431433
432434 has_atp = validateRCUArgsAndModel (model_context , model )
435+ # check if there is an atpwallet and extract in the domain dir
436+ # it is to support non JRF domain but user wants to use ATP database
437+ if not has_atp :
438+ archive_file = WLSDeployArchive (model_context .get_archive_file_name ())
439+ if archive_file :
440+ atp_wallet_zipentry = archive_file .getATPWallet ()
441+ if atp_wallet_zipentry :
442+ atp_helper .extract_walletzip (model , model_context , archive_file , atp_wallet_zipentry )
443+
433444 creator = DomainCreator (model , model_context , aliases )
434445 creator .create ()
435446
436447 if has_atp :
437- atp_helper .fix_jsp_config (model , model_context )
448+ atp_helper .fix_jps_config (model , model_context )
438449 except CreateException , ex :
439450 __logger .severe ('WLSDPLY-12409' , _program_name , ex .getLocalizedMessage (), error = ex ,
440451 class_name = _class_name , method_name = _method_name )
0 commit comments