djencks     2005/04/07 10:59:25

  Modified:    modules/core/src/java/org/openejb/server/axis
                        WSContainer.java
  Log:

  Use classloader to locate wsdl
  
  Revision  Changes    Path
  1.8       +4 -10     
openejb/modules/core/src/java/org/openejb/server/axis/WSContainer.java
  
  Index: WSContainer.java
  ===================================================================
  RCS file: 
/home/projects/openejb/scm/openejb/modules/core/src/java/org/openejb/server/axis/WSContainer.java,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- WSContainer.java  26 Mar 2005 03:44:54 -0000      1.7
  +++ WSContainer.java  7 Apr 2005 14:59:25 -0000       1.8
  @@ -45,16 +45,15 @@
   package org.openejb.server.axis;
   
   import java.net.URI;
  -import java.net.URL;
   
   import org.apache.axis.description.JavaServiceDesc;
  -import org.apache.axis.handlers.soap.SOAPService;
   import org.apache.axis.handlers.HandlerInfoChainFactory;
  +import org.apache.axis.handlers.soap.SOAPService;
   import org.apache.axis.providers.java.RPCProvider;
   import org.apache.geronimo.axis.server.AxisWebServiceContainer;
   import org.apache.geronimo.axis.server.ServiceInfo;
  -import org.apache.geronimo.webservices.SoapHandler;
   import org.apache.geronimo.gbean.GBeanLifecycle;
  +import org.apache.geronimo.webservices.SoapHandler;
   import org.openejb.EJBContainer;
   
   public class WSContainer implements GBeanLifecycle {
  @@ -87,12 +86,7 @@
               
service.setOption(org.apache.axis.Constants.ATTR_HANDLERINFOCHAIN, 
handlerInfoChainFactory);
   
               ClassLoader classLoader = ejbContainer.getClassLoader();
  -            String wsdlResource = wsdlURI.toString();
  -            URL wsdlURL = classLoader.getResource(wsdlResource);
  -            if( wsdlURL==null )
  -                throw new RuntimeException("Could not locate wsdl: 
"+wsdlURI);
  -            
  -            AxisWebServiceContainer axisContainer = new 
AxisWebServiceContainer(location, wsdlURL, service, classLoader);
  +            AxisWebServiceContainer axisContainer = new 
AxisWebServiceContainer(location, wsdlURI.toString(), service, classLoader);
               if (soapHandler != null) {
                   soapHandler.addWebService(location.getPath(), axisContainer);
               }
  
  
  

Reply via email to