.forDeployment(request.getResourceDeployment(), request.getReferencedConfiguration()); if (latestDeploymentMetadata.failed()) { result.setErrorMessage(latestDeploymentMetadata.errorMessage); Result<String[]> pids = getPids(request.getResourceDeployment(), "revert"); if (pids.failed()) { result.setErrorMessage(pids.errorMessage); result.setErrorMessage("The patch to revert to (" + stopPid + ") was not previously deployed by RHQ. This means that this server joined the resource group '" + request.getResourceDeployment().getBundleDeployment().getDestination().getGroup().getName() + "' after this patch was already deployed. To prevent accidental damage no changes will be made to the server."); request.getResourceDeployment(), connection, "revert", new ArrayList<String>(pidsToRollback)); dm.forget(request.getResourceDeployment(), request.getReferencedConfiguration());
request.getBundleManagerProvider(), request.getResourceDeployment(), !isTakeOver(request.getResourceDeployment().getBundleDeployment().getConfiguration())); BundleResourceDeployment rd = request.getResourceDeployment(); request.getResourceDeployment().getBundleDeployment().getConfiguration(), bmp, rd); if (stop.failed()) { result.setErrorMessage(stop.errorMessage); request.getPackageVersionFiles().values().iterator().next().getAbsolutePath()); Configuration bundleConfig = request.getResourceDeployment().getBundleDeployment().getConfiguration(); String override = bundleConfig.getSimpleValue("override"); String overrideAll = bundleConfig.getSimpleValue("override-all"); String errorMessage = storeState(control, request.getResourceDeployment(), request.getReferencedConfiguration(), historyBeforeDeployment.result);