Skip to content

Commit 5f8ad32

Browse files
committed
fixing error message when app is outside of the archive
1 parent 0b1b93e commit 5f8ad32

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

core/src/main/python/wlsdeploy/tool/deploy/applications_version_helper.py

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,8 +119,15 @@ def get_application_versioned_name(self, source_path, model_name, module_type=No
119119
self.logger.info('WLSDPLY-09328', model_name, versioned_name,
120120
class_name=self._class_name, method_name=_method_name)
121121

122-
except (IOException, FileNotFoundException, ZipException, IllegalStateException), e:
123-
ex = exception_helper.create_deploy_exception('WLSDPLY-09329', model_name, source_path,
122+
except (IOException, ZipException, IllegalStateException), e:
123+
# The SourcePath may be a path into the archive or an absolute path to
124+
# the application that was not in the archive file.
125+
if self.archive_helper and self.archive_helper.is_path_into_archive(source_path):
126+
key = 'WLSDPLY-09329'
127+
else:
128+
key = 'WLSDPLY-09354'
129+
130+
ex = exception_helper.create_deploy_exception(key, model_name, source_path,
124131
str_helper.to_string(e), error=e)
125132
self.logger.throwing(ex, class_name=self._class_name, method_name=_method_name)
126133
raise ex

core/src/main/resources/oracle/weblogic/deploy/messages/wlsdeploy_rb.properties

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1546,6 +1546,7 @@ WLSDPLY-09350={0} {1} cannot be deployed using the -remote options since the Sou
15461546
WLSDPLY-09351={0} {1} has attribute {2} with a relative path that is not referencing an archive file so the absolute path to the file is not well-defined.
15471547
WLSDPLY-09352=Structured application {0} plan file {1} does not exist.
15481548
WLSDPLY-09353=Structured application {0} plan file {1} is not in the archive so WDT is not going to move it and therefore, does not need to fix the config-root element.
1549+
WLSDPLY-09354=Failed to compute name for application {0} from application at {1}: {2}
15491550

15501551
# wlsdeploy/tool/deploy/common_resources_deployer.py
15511552
WLSDPLY-09400=ResourceGroup was specified in the test file but are not supported in WebLogic Server version {0}

0 commit comments

Comments
 (0)