axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dee...@apache.org
Subject svn commit: r231173 - /webservices/axis/trunk/java/modules/core/src/org/apache/axis2/deployment/DeploymentEngine.java
Date Wed, 10 Aug 2005 06:28:35 GMT
Author: deepal
Date: Tue Aug  9 23:28:22 2005
New Revision: 231173

URL: http://svn.apache.org/viewcvs?rev=231173&view=rev
Log:
removed unnessasar continue 

Modified:
    webservices/axis/trunk/java/modules/core/src/org/apache/axis2/deployment/DeploymentEngine.java

Modified: webservices/axis/trunk/java/modules/core/src/org/apache/axis2/deployment/DeploymentEngine.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/core/src/org/apache/axis2/deployment/DeploymentEngine.java?rev=231173&r1=231172&r2=231173&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/core/src/org/apache/axis2/deployment/DeploymentEngine.java
(original)
+++ webservices/axis/trunk/java/modules/core/src/org/apache/axis2/deployment/DeploymentEngine.java
Tue Aug  9 23:28:22 2005
@@ -532,94 +532,95 @@
                 int type = currentArchiveFile.getType();
                 try {
                     currentArchiveFile.setClassLoader();
-                } catch (AxisFault axisFault) {
-                    log.info(Messages.getMessage(DeploymentErrorMsgs.SETTING_CL, axisFault.getMessage()));
-                    continue;
-                }
-                ArchiveReader archiveReader = new ArchiveReader();
-                String serviceStatus = "";
-                StringWriter errorWriter = new StringWriter();
-                switch (type) {
-                    case SERVICE:
-                        try {
-                            // ServiceDescription service = archiveReader.createService(currentArchiveFile.getAbsolutePath());
-                            ServiceDescription service = archiveReader.createService(currentArchiveFile);
-                            archiveReader.readServiceArchive(currentArchiveFile.getAbsolutePath(),
-                                    this,
-                                    service);
-                            addnewService(service);
-                            log.info(Messages.getMessage(DeploymentErrorMsgs.DEPLOYING_WS,
currentArchiveFile.getName()));
-                        } catch (DeploymentException de) {
-                            log.info(Messages.getMessage(DeploymentErrorMsgs.IN_VALID_SERVICE,
-                                    currentArchiveFile.getName()));
+                    ArchiveReader archiveReader = new ArchiveReader();
+                    String serviceStatus = "";
+                    StringWriter errorWriter = new StringWriter();
+                    switch (type) {
+                        case SERVICE:
+                            try {
+                                // ServiceDescription service = archiveReader.createService(currentArchiveFile.getAbsolutePath());
+                                ServiceDescription service = archiveReader.createService(currentArchiveFile);
+                                archiveReader.readServiceArchive(currentArchiveFile.getAbsolutePath(),
+                                        this,
+                                        service);
+                                addnewService(service);
+                                log.info(Messages.getMessage(DeploymentErrorMsgs.DEPLOYING_WS,
currentArchiveFile.getName()));
+                            } catch (DeploymentException de) {
+                                log.info(Messages.getMessage(DeploymentErrorMsgs.IN_VALID_SERVICE,
+                                        currentArchiveFile.getName()));
 //                            log.info("DeploymentException  " + de);
-                            PrintWriter error_ptintWriter = new PrintWriter(errorWriter);
-                            de.printStackTrace(error_ptintWriter);
-                            serviceStatus = "Error:\n" +
-                                    errorWriter.toString();
-                        } catch (AxisFault axisFault) {
-                            log.info(Messages.getMessage(DeploymentErrorMsgs.IN_VALID_SERVICE,
-                                    currentArchiveFile.getName()));
+                                PrintWriter error_ptintWriter = new PrintWriter(errorWriter);
+                                de.printStackTrace(error_ptintWriter);
+                                serviceStatus = "Error:\n" +
+                                        errorWriter.toString();
+                            } catch (AxisFault axisFault) {
+                                log.info(Messages.getMessage(DeploymentErrorMsgs.IN_VALID_SERVICE,
+                                        currentArchiveFile.getName()));
 //                            log.info("AxisFault  " + axisFault);
-                            PrintWriter error_ptintWriter = new PrintWriter(errorWriter);
-                            axisFault.printStackTrace(error_ptintWriter);
-                            serviceStatus = "Error:\n" +
-                                    errorWriter.toString();
-                        } catch (Exception e) {
-                            log.info(Messages.getMessage(DeploymentErrorMsgs.IN_VALID_SERVICE,
-                                    currentArchiveFile.getName()));
+                                PrintWriter error_ptintWriter = new PrintWriter(errorWriter);
+                                axisFault.printStackTrace(error_ptintWriter);
+                                serviceStatus = "Error:\n" +
+                                        errorWriter.toString();
+                            } catch (Exception e) {
+                                log.info(Messages.getMessage(DeploymentErrorMsgs.IN_VALID_SERVICE,
+                                        currentArchiveFile.getName()));
 //                            log.info("Exception  " + e);
-                            PrintWriter error_ptintWriter = new PrintWriter(errorWriter);
-                            e.printStackTrace(error_ptintWriter);
-                            serviceStatus = "Error:\n" +
-                                    errorWriter.toString();
-                        } finally {
-                            if (serviceStatus.startsWith("Error:")) {
-                                axisConfig.getFaulytServices().put(getAxisServiceName(currentArchiveFile.getName()),
-                                        serviceStatus);
+                                PrintWriter error_ptintWriter = new PrintWriter(errorWriter);
+                                e.printStackTrace(error_ptintWriter);
+                                serviceStatus = "Error:\n" +
+                                        errorWriter.toString();
+                            } finally {
+                                if (serviceStatus.startsWith("Error:")) {
+                                    axisConfig.getFaulytServices().put(getAxisServiceName(currentArchiveFile.getName()),
+                                            serviceStatus);
+                                }
+                                currentArchiveFile = null;
                             }
-                            currentArchiveFile = null;
-                        }
-                        break;
-                    case MODULE:
-                        String moduleStatus = "";
-                        try {
-                            ModuleDescription metaData = new ModuleDescription();
-                            archiveReader.readModuleArchive(currentArchiveFile.getAbsolutePath(),
-                                    this,
-                                    metaData);
-                            addNewModule(metaData);
-                            log.info(Messages.getMessage(DeploymentErrorMsgs.DEPLOYING_MODULE,
-                                    metaData.getName().getLocalPart()));
+                            break;
+                        case MODULE:
+                            String moduleStatus = "";
+                            try {
+                                ModuleDescription metaData = new ModuleDescription();
+                                archiveReader.readModuleArchive(currentArchiveFile.getAbsolutePath(),
+                                        this,
+                                        metaData);
+                                addNewModule(metaData);
+                                log.info(Messages.getMessage(DeploymentErrorMsgs.DEPLOYING_MODULE,
+                                        metaData.getName().getLocalPart()));
 //                                    "Moduel WS Name  " +
 //                                    currentArchiveFile.getName() +
 //                                    " modulename :" +
 //                                    metaData.getName());
-                        } catch (DeploymentException e) {
-                            log.info(Messages.getMessage(DeploymentErrorMsgs.INVALID_MODULE,
currentArchiveFile.getName(),
-                                    e.getMessage()));
+                            } catch (DeploymentException e) {
+                                log.info(Messages.getMessage(DeploymentErrorMsgs.INVALID_MODULE,
currentArchiveFile.getName(),
+                                        e.getMessage()));
 //                                    "Invalid module" +
 //                                    currentArchiveFile.getName());
 //                            log.info("DeploymentException  " + e);
-                            PrintWriter error_ptintWriter = new PrintWriter(errorWriter);
-                            e.printStackTrace(error_ptintWriter);
-                            moduleStatus = "Error:\n" + errorWriter.toString();
-                        } catch (AxisFault axisFault) {
-                            log.info(Messages.getMessage(DeploymentErrorMsgs.INVALID_MODULE,
currentArchiveFile.getName(),
-                                    axisFault.getMessage()));
-                            PrintWriter error_ptintWriter = new PrintWriter(errorWriter);
-                            axisFault.printStackTrace(error_ptintWriter);
-                            moduleStatus = "Error:\n" + errorWriter.toString();
-                        } finally {
-                            if (moduleStatus.startsWith("Error:")) {
-                                axisConfig.getFaulytModules().put(getAxisServiceName(currentArchiveFile.getName()),
-                                        moduleStatus);
+                                PrintWriter error_ptintWriter = new PrintWriter(errorWriter);
+                                e.printStackTrace(error_ptintWriter);
+                                moduleStatus = "Error:\n" + errorWriter.toString();
+                            } catch (AxisFault axisFault) {
+                                log.info(Messages.getMessage(DeploymentErrorMsgs.INVALID_MODULE,
currentArchiveFile.getName(),
+                                        axisFault.getMessage()));
+                                PrintWriter error_ptintWriter = new PrintWriter(errorWriter);
+                                axisFault.printStackTrace(error_ptintWriter);
+                                moduleStatus = "Error:\n" + errorWriter.toString();
+                            } finally {
+                                if (moduleStatus.startsWith("Error:")) {
+                                    axisConfig.getFaulytModules().put(getAxisServiceName(currentArchiveFile.getName()),
+                                            moduleStatus);
+                                }
+                                currentArchiveFile = null;
                             }
-                            currentArchiveFile = null;
-                        }
-                        break;
+                            break;
 
+                    }
+                } catch (AxisFault axisFault) {
+                    log.info(Messages.getMessage(DeploymentErrorMsgs.SETTING_CL, axisFault.getMessage()));
+                    continue;
                 }
+
             }
         }
         wsToDeploy.clear();



Mime
View raw message