axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject svn commit: r350276 - /webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/deployment/DeploymentEngine.java
Date Thu, 01 Dec 2005 17:05:31 GMT
Author: dims
Date: Thu Dec  1 09:05:24 2005
New Revision: 350276

URL: http://svn.apache.org/viewcvs?rev=350276&view=rev
Log:
Throw config not found error if we can't find axis2.xml

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

Modified: webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/deployment/DeploymentEngine.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/deployment/DeploymentEngine.java?rev=350276&r1=350275&r2=350276&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/deployment/DeploymentEngine.java
(original)
+++ webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/deployment/DeploymentEngine.java
Thu Dec  1 09:05:24 2005
@@ -248,8 +248,10 @@
             }
         } else {
             ClassLoader cl = Thread.currentThread().getContextClassLoader();
-            in =
-                    cl.getResourceAsStream(AXIS2_CONFIGURATION_RESOURCE);
+            in = cl.getResourceAsStream(AXIS2_CONFIGURATION_RESOURCE);
+            if (in == null) {
+                throw new DeploymentException(Messages.getMessage(DeploymentErrorMsgs.CONFIG_NOT_FOUND));
+            }
         }
         axisConfig = createEngineConfig();
         AxisConfigBuilder builder = new AxisConfigBuilder(in, this, axisConfig);



Mime
View raw message