axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From isur...@apache.org
Subject svn commit: r885420 - /webservices/axis2/trunk/java/modules/metadata/src/org/apache/axis2/jaxws/description/builder/JAXWSRIWSDLGenerator.java
Date Mon, 30 Nov 2009 13:30:10 GMT
Author: isurues
Date: Mon Nov 30 13:30:10 2009
New Revision: 885420

URL: http://svn.apache.org/viewvc?rev=885420&view=rev
Log:
fixing https://issues.apache.org/jira/browse/AXIS2-4568

Modified:
    webservices/axis2/trunk/java/modules/metadata/src/org/apache/axis2/jaxws/description/builder/JAXWSRIWSDLGenerator.java

Modified: webservices/axis2/trunk/java/modules/metadata/src/org/apache/axis2/jaxws/description/builder/JAXWSRIWSDLGenerator.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/metadata/src/org/apache/axis2/jaxws/description/builder/JAXWSRIWSDLGenerator.java?rev=885420&r1=885419&r2=885420&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/metadata/src/org/apache/axis2/jaxws/description/builder/JAXWSRIWSDLGenerator.java
(original)
+++ webservices/axis2/trunk/java/modules/metadata/src/org/apache/axis2/jaxws/description/builder/JAXWSRIWSDLGenerator.java
Mon Nov 30 13:30:10 2009
@@ -504,7 +504,14 @@
         URL serviceArchive = axisService.getFileName();
         if(serviceArchive != null) {
             try {
-                classpath.add(Utils.toFile(serviceArchive).getCanonicalPath());
+                /**
+                 * If the service contains libraries in the 'lib' folder, we have to add
those also
+                 * into classpath
+                 */
+                URL[] urls = Utils.getURLsForAllJars(serviceArchive, null);
+                for (URL url : urls) {
+                    classpath.add(Utils.toFile(url).getCanonicalPath());
+                }
             } catch (UnsupportedEncodingException e) {
                 log.error(e.getMessage(), e);
             } catch (IOException e) {



Mime
View raw message