geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sppa...@apache.org
Subject svn commit: r423475 - /geronimo/branches/1.1/modules/axis-builder/src/java/org/apache/geronimo/axis/builder/WSDescriptorParser.java
Date Wed, 19 Jul 2006 14:40:07 GMT
Author: sppatel
Date: Wed Jul 19 07:40:06 2006
New Revision: 423475

URL: http://svn.apache.org/viewvc?rev=423475&view=rev
Log:
GERONIMO-1582

Modified:
    geronimo/branches/1.1/modules/axis-builder/src/java/org/apache/geronimo/axis/builder/WSDescriptorParser.java

Modified: geronimo/branches/1.1/modules/axis-builder/src/java/org/apache/geronimo/axis/builder/WSDescriptorParser.java
URL: http://svn.apache.org/viewvc/geronimo/branches/1.1/modules/axis-builder/src/java/org/apache/geronimo/axis/builder/WSDescriptorParser.java?rev=423475&r1=423474&r2=423475&view=diff
==============================================================================
--- geronimo/branches/1.1/modules/axis-builder/src/java/org/apache/geronimo/axis/builder/WSDescriptorParser.java
(original)
+++ geronimo/branches/1.1/modules/axis-builder/src/java/org/apache/geronimo/axis/builder/WSDescriptorParser.java
Wed Jul 19 07:40:06 2006
@@ -30,10 +30,11 @@
 import java.util.List;
 import java.util.Map;
 import java.util.jar.JarFile;
+import java.util.zip.ZipEntry;
+
 import javax.wsdl.Definition;
 import javax.wsdl.Operation;
 import javax.wsdl.Port;
-import javax.wsdl.extensions.soap.SOAPAddress;
 import javax.xml.namespace.QName;
 import javax.xml.rpc.handler.HandlerInfo;
 import javax.xml.rpc.holders.BigDecimalHolder;
@@ -92,7 +93,11 @@
         JavaWsdlMappingType mapping;
         InputStream jaxrpcInputStream = null;
         try {
-            jaxrpcInputStream = moduleFile.getInputStream(moduleFile.getEntry(jaxrpcMappingPath));
+            ZipEntry zipEntry = moduleFile.getEntry(jaxrpcMappingPath);
+            if(zipEntry == null){
+                throw new DeploymentException("The JAX-RPC mapping file "+jaxrpcMappingPath+"
specified in webservices.xml for the ejb module could not be found.");
+            }
+            jaxrpcInputStream = moduleFile.getInputStream(zipEntry);
         } catch (IOException e) {
             throw new DeploymentException("Could not open stream to jaxrpc mapping document",
e);
         }



Mime
View raw message