axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject svn commit: r449727 - /webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/deployment/repository/util/ArchiveReader.java
Date Mon, 25 Sep 2006 16:35:29 GMT
Author: dims
Date: Mon Sep 25 09:35:26 2006
New Revision: 449727

URL: http://svn.apache.org/viewvc?view=rev&rev=449727
Log:
fix for AXIS2-1231 - Axis2 locks file

Modified:
    webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/deployment/repository/util/ArchiveReader.java

Modified: webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/deployment/repository/util/ArchiveReader.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/deployment/repository/util/ArchiveReader.java?view=diff&rev=449727&r1=449726&r2=449727
==============================================================================
--- webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/deployment/repository/util/ArchiveReader.java
(original)
+++ webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/deployment/repository/util/ArchiveReader.java
Mon Sep 25 09:35:26 2006
@@ -239,16 +239,33 @@
                             WSDLToAxisServiceBuilder wsdlToAxisServiceBuilder = null;
                             if (WSDLConstants.WSDL20_2006Constants.DEFAULT_NAMESPACE_URI.equals(documentElementNS.getNamespaceURI()))
{
                                 // we have a WSDL 2.0 document here.
-                                wsdlToAxisServiceBuilder = new WSDL20ToAxisServiceBuilder(new
FileInputStream(file1), null, null);
-
+                                FileInputStream in2 = new FileInputStream(file1);
+                                wsdlToAxisServiceBuilder = new WSDL20ToAxisServiceBuilder(in2,
null, null);
+                                try {
+                                    in2.close();
+                                } catch (IOException e) {
+                                    log.info(e);
+                                }
                             } else if (Constants.NS_URI_WSDL11.
                                     equals(documentElementNS.getNamespaceURI())) {
-                                wsdlToAxisServiceBuilder = new WSDL11ToAxisServiceBuilder(new
FileInputStream(file1), null, null);
+                                FileInputStream in2 = new FileInputStream(file1);
+                                wsdlToAxisServiceBuilder = new WSDL11ToAxisServiceBuilder(in2,
null, null);
+                                try {
+                                    in2.close();
+                                } catch (IOException e) {
+                                    log.info(e);
+                                }
                             } else {
                                 new DeploymentException(Messages.getMessage("invalidWSDLFound"));
                             }
 
-                            AxisService service = processWSDLFile(wsdlToAxisServiceBuilder,
file1, false, new FileInputStream(file1));
+                            FileInputStream in2 = new FileInputStream(file1);
+                            AxisService service = processWSDLFile(wsdlToAxisServiceBuilder,
file1, false, in2);
+                            try {
+                                in2.close();
+                            } catch (IOException e) {
+                                log.info(e);
+                            }
                             servicesMap.put(service.getName(), service);
                         }
 



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


Mime
View raw message