User: user57  
  Date: 02/03/04 19:06:57

  Modified:    src/main/org/jboss/deployment MainDeployer.java
  Log:
   o do not wrap DeploymentException inside of DeploymentException
  
  Revision  Changes    Path
  1.15      +7 -3      jboss-system/src/main/org/jboss/deployment/MainDeployer.java
  
  Index: MainDeployer.java
  ===================================================================
  RCS file: 
/cvsroot/jboss/jboss-system/src/main/org/jboss/deployment/MainDeployer.java,v
  retrieving revision 1.14
  retrieving revision 1.15
  diff -u -r1.14 -r1.15
  --- MainDeployer.java 2 Mar 2002 08:40:36 -0000       1.14
  +++ MainDeployer.java 5 Mar 2002 03:06:57 -0000       1.15
  @@ -55,7 +55,7 @@
    *
    * @author <a href="mailto:[EMAIL PROTECTED]";>Marc Fleury</a>
    * @author <a href="mailto:[EMAIL PROTECTED]";>Scott Stark</a>
  - * @version $Revision: 1.14 $
  + * @version $Revision: 1.15 $
    */
   public class MainDeployer
      extends ServiceMBeanSupport
  @@ -439,7 +439,9 @@
         catch (Throwable t) 
         { 
            log.error("could not create deployment :" + deployment.url, t);
  -         deployment.status = "Deployment FAILED reason: " + t.getMessage();         
  +         deployment.status = "Deployment FAILED reason: " + t.getMessage();
  +         if (t instanceof DeploymentException)
  +            throw (DeploymentException)t;
            throw new DeploymentException("Could not create deployment: " + 
deployment.url, t);
         }
      }
  @@ -475,7 +477,9 @@
         catch (Throwable t) 
         { 
            log.error("could not start deployment :" + deployment.url, t);
  -         deployment.status = "Deployment FAILED reason: " + t.getMessage();         
  +         deployment.status = "Deployment FAILED reason: " + t.getMessage();
  +         if (t instanceof DeploymentException)
  +            throw (DeploymentException)t;
            throw new DeploymentException("Could not create deployment: " + 
deployment.url, t);
         }
   
  
  
  

_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to