diff --git a/core/src/main/python/wlsdeploy/tool/deploy/applications_deployer.py b/core/src/main/python/wlsdeploy/tool/deploy/applications_deployer.py index 75897566f..676dc8153 100644 --- a/core/src/main/python/wlsdeploy/tool/deploy/applications_deployer.py +++ b/core/src/main/python/wlsdeploy/tool/deploy/applications_deployer.py @@ -1245,7 +1245,12 @@ def __extract_source_path_from_archive(self, source_path, model_type, model_name :param model_name: the element name (my-app, etc.), used for logging """ _method_name = '__extract_source_path_from_archive' - # source path may be may be a single file (jar, war, etc.) + + # model may have trailing slash on exploded source path + if source_path.endswith('/'): + source_path = source_path[:-1] + + # source path may be a single file (jar, war, etc.) if self.archive_helper.contains_file(source_path): if is_remote: self.archive_helper.extract_file(source_path, upload_remote_directory, False) @@ -1307,7 +1312,7 @@ def _fix_plan_file(self, plan_dir, plan_path): plan_file_name = 'plan.xml' if plan_path is not None and len(str_helper.to_string(plan_path)) > 0: plan_file_name = plan_path - + plan_file = os.path.join(self.model_context.get_domain_home(), plan_dir, plan_file_name) dbf = DocumentBuilderFactory.newInstance() db = dbf.newDocumentBuilder()