geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jdil...@apache.org
Subject cvs commit: incubator-geronimo/modules/core/src/java/org/apache/geronimo/deployment/service ServiceDeploymentPlanner.java
Date Tue, 26 Aug 2003 11:04:01 GMT
jdillon     2003/08/26 04:04:01

  Modified:    modules/core/src/java/org/apache/geronimo/deployment/service
                        ServiceDeploymentPlanner.java
  Log:
   o Added detail msgs for tossed DE
  
  Revision  Changes    Path
  1.7       +8 -9      incubator-geronimo/modules/core/src/java/org/apache/geronimo/deployment/service/ServiceDeploymentPlanner.java
  
  Index: ServiceDeploymentPlanner.java
  ===================================================================
  RCS file: /home/cvs/incubator-geronimo/modules/core/src/java/org/apache/geronimo/deployment/service/ServiceDeploymentPlanner.java,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- ServiceDeploymentPlanner.java	20 Aug 2003 22:42:24 -0000	1.6
  +++ ServiceDeploymentPlanner.java	26 Aug 2003 11:04:01 -0000	1.7
  @@ -171,11 +171,13 @@
           InputStream is;
           URL url = goal.getUrl();
           URI baseURI = null;
  +        
           try {
               baseURI = (new URI(url.toExternalForm())).normalize();
  -        } catch (URISyntaxException e) {
  -            throw new DeploymentException(e);
  +        } catch (Exception e) {
  +            throw new DeploymentException("Could not determine base URI", e);
           }
  +        
           URLType type = goal.getType();
           if (type == URLType.RESOURCE) {
               if (!url.getPath().endsWith("-service.xml")) {
  @@ -184,7 +186,7 @@
               try {
                   is = url.openConnection().getInputStream();
               } catch (IOException e) {
  -                throw new DeploymentException(e);
  +                throw new DeploymentException("Failed to open stream for URL: " + url,
e);
               }
           } else if (type == URLType.UNPACKED_ARCHIVE) {
               try {
  @@ -198,14 +200,11 @@
               return false;
           }
   
  -
           Document doc;
           try {
               doc = parser.parse(is);
  -        } catch (SAXException e) {
  -            throw new DeploymentException(e);
  -        } catch (IOException e) {
  -            throw new DeploymentException(e);
  +        } catch (Exception e) {
  +            throw new DeploymentException("Failed to parse document", e);
           }
   
           // Create a plan to register the deployment unit and create the class loader
  
  
  

Mime
View raw message