URL warURL = null; try { warURL = warDeployable.getArchive().getURL(); } catch (ArchiveException e) { throw new DeployerException("Cannot get URL on the deployable '" + warDeployable + "'.", e); String ctxId = warURL.getFile() + warDeployable.getContextRoot();
warDeployable.setContextRoot(ctxRoot); if (logger.isDebugEnabled()) { logger.debug("Context root for War deployable ''{0}'' was found in the EAR " String ctxRoot = warDeployable.getModuleName(); warDeployable.setContextRoot(ctxRoot); if (logger.isDebugEnabled()) { logger.debug("The entry for War deployable ''{0}'' was not found in the EAR "
+ File.separator + getShortName()); rootFolder.mkdirs(); warDeployable = UnpackDeployableHelper.unpack(warDeployable, rootFolder, warDeployable.getShortName()); } catch (DeployerException e) { logger.error("Unable to unpack a war", e);
for (WARDeployable warDeployable : warDeployables) { try { urls.add(warDeployable.getArchive().getURL()); } catch (ArchiveException e) { logger.error("Cannot get the URL from the Deployable ''{0}''", warDeployable, e);
for (WARDeployable war : earDeployable.getWARDeployables()) { try { urlsWAR.add(war.getArchive().getURL()); } catch (ArchiveException e) { throw new DeployerException("Cannot get the URL for the archive '" + war.getArchive() + "'", e);
url = warDeployable.getArchive().getURL(); } catch (ArchiveException e) { throw new DeployerException("Cannot get the URL for the archive '" + warDeployable.getArchive() + "'", e); ctxRoots.add(warDeployable.getContextRoot());
} catch (ENCBindingException e) { logger.log(BasicLevel.ERROR, "Unable to analyze metadata of '" + warDeployableMetadata.getDeployable().getArchive().getName() + "'", e);
web.setContextRoot(warDeployable.getContextRoot()); try { web.setWebUri(warDeployable.getArchive().getURL().toExternalForm().substring( earDeployableURL.toExternalForm().length())); } catch (ArchiveException e) {