You are viewing a plain text version of this content. The canonical link for it is here.
Posted to axis-cvs@ws.apache.org by di...@apache.org on 2007/04/16 21:29:56 UTC

svn commit: r529374 - in /webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/deployment: DeploymentErrorMsgs.java util/PhasesInfo.java

Author: dims
Date: Mon Apr 16 12:29:55 2007
New Revision: 529374

URL: http://svn.apache.org/viewvc?view=rev&rev=529374
Log:
fix error message, fix spelling

Modified:
    webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/deployment/DeploymentErrorMsgs.java
    webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/deployment/util/PhasesInfo.java

Modified: webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/deployment/DeploymentErrorMsgs.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/deployment/DeploymentErrorMsgs.java?view=diff&rev=529374&r1=529373&r2=529374
==============================================================================
--- webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/deployment/DeploymentErrorMsgs.java (original)
+++ webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/deployment/DeploymentErrorMsgs.java Mon Apr 16 12:29:55 2007
@@ -41,6 +41,7 @@
     public static final String INVALID_STORAGE_CLASS = "invalid_storage";
     public static final String MODULE_CANNOT_HAVE_BOTH_NAME_AND_REFERENCE =
             "modulecannothavrbothnameandref";
+    public static final String DISPATCH_PHASE_NOT_FOUND = "dispatchPhaseNotFoundOnInflow";
     public static final String MODULE_NOT_FOUND = "modulenotfound";
     public static final String MODULE_VALIDATION_FAILED = "modulevalfailed";
     public static final String MODULE_XML_MISSING = "modulexmlnotfound";

Modified: webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/deployment/util/PhasesInfo.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/deployment/util/PhasesInfo.java?view=diff&rev=529374&r1=529373&r2=529374
==============================================================================
--- webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/deployment/util/PhasesInfo.java (original)
+++ webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/deployment/util/PhasesInfo.java Mon Apr 16 12:29:55 2007
@@ -109,7 +109,7 @@
         }
         if (!foundDispatchPhase) {
             throw new DeploymentException(
-                    Messages.getMessage("dispatchPhaseNotFoundOnInflow"));
+                    Messages.getMessage(DeploymentErrorMsgs.DISPATCH_PHASE_NOT_FOUND));
         }
         return globalphase;
     }
@@ -184,20 +184,20 @@
 
     public ArrayList getGlobalInFaultPhases() throws DeploymentException {
         ArrayList globalInfaultphase = new ArrayList();
-        boolean foundDispathcPase = false;
+        boolean foundDispatchPhase = false;
         for (int i = 0; i < IN_FaultPhases.size(); i++) {
             Phase phase = (Phase) IN_FaultPhases.get(i);
             String phaseName = phase.getPhaseName();
-            if (!foundDispathcPase) {
+            if (!foundDispatchPhase) {
                 if (PhaseMetadata.PHASE_DISPATCH.equals(phaseName)) {
-                    foundDispathcPase = true;
+                    foundDispatchPhase = true;
                 }
                 globalInfaultphase.add(phase);
             }
         }
-        if (!foundDispathcPase) {
+        if (!foundDispatchPhase) {
             throw new DeploymentException(
-                    Messages.getMessage(DeploymentErrorMsgs.INVALID_PHASE));
+                    Messages.getMessage(DeploymentErrorMsgs.DISPATCH_PHASE_NOT_FOUND));
         }
         return globalInfaultphase;
     }



---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org