Title: [964] trunk/core/src/main/java/org/servicemix/jbi/framework/DeploymentService.java: Log exception when deploying a service assembly
- Revision
- 964
- Author
- gnt
- Date
- 2005-11-28 20:15:23 -0500 (Mon, 28 Nov 2005)
Log Message
Log exception when deploying a service assembly
Modified Paths
Diff
Modified: trunk/core/src/main/java/org/servicemix/jbi/framework/DeploymentService.java (963 => 964)
--- trunk/core/src/main/java/org/servicemix/jbi/framework/DeploymentService.java 2005-11-29 00:03:08 UTC (rev 963)
+++ trunk/core/src/main/java/org/servicemix/jbi/framework/DeploymentService.java 2005-11-29 01:15:23 UTC (rev 964)
@@ -102,17 +102,22 @@
* @throws Exception if complete deployment fails.
*/
public String deploy(String saZipURL) throws Exception {
- String result = null;
- File tmpDir = AutoDeploymentService.unpackLocation(environmentContext.getTmpDir(), saZipURL);
- Descriptor root = AutoDeploymentService.buildDescriptor(tmpDir);
- ServiceAssembly sa = root.getServiceAssembly();
- if (sa != null) {
- result = deploy(tmpDir, sa);
+ try {
+ String result = null;
+ File tmpDir = AutoDeploymentService.unpackLocation(environmentContext.getTmpDir(), saZipURL);
+ Descriptor root = AutoDeploymentService.buildDescriptor(tmpDir);
+ ServiceAssembly sa = root.getServiceAssembly();
+ if (sa != null) {
+ result = deploy(tmpDir, sa);
+ }
+ else {
+ throw new DeploymentException("Not an assembly: " + saZipURL);
+ }
+ return result;
+ } catch (Exception e) {
+ log.info("Unable to deploy assembly", e);
+ throw e;
}
- else {
- throw new DeploymentException("Not an assembly: " + saZipURL);
- }
- return result;
}
/**