@@ -351,7 +351,9 @@ def validateRCUArgsAndModel(model_context, model):
351
351
if not has_tns_admin :
352
352
# extract the wallet first
353
353
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 ()
355
357
if atp_wallet_zipentry and model [model_constants .TOPOLOGY ]['Name' ]:
356
358
extract_path = atp_helper .extract_walletzip (model , model_context , archive_file , atp_wallet_zipentry )
357
359
# update the model to add the tns_admin
@@ -430,11 +432,20 @@ def main(args):
430
432
try :
431
433
432
434
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
+
433
444
creator = DomainCreator (model , model_context , aliases )
434
445
creator .create ()
435
446
436
447
if has_atp :
437
- atp_helper .fix_jsp_config (model , model_context )
448
+ atp_helper .fix_jps_config (model , model_context )
438
449
except CreateException , ex :
439
450
__logger .severe ('WLSDPLY-12409' , _program_name , ex .getLocalizedMessage (), error = ex ,
440
451
class_name = _class_name , method_name = _method_name )
0 commit comments