You are viewing a plain text version of this content. The canonical link for it is here.
Posted to axis-cvs@ws.apache.org by di...@apache.org on 2008/02/21 21:31:06 UTC

svn commit: r629974 - /webservices/axis2/trunk/java/modules/jaxws/src/org/apache/axis2/jaxws/framework/JAXWSDeployer.java

Author: dims
Date: Thu Feb 21 12:31:04 2008
New Revision: 629974

URL: http://svn.apache.org/viewvc?rev=629974&view=rev
Log:
pick up a fix from JAXWSOldDeployer

Modified:
    webservices/axis2/trunk/java/modules/jaxws/src/org/apache/axis2/jaxws/framework/JAXWSDeployer.java

Modified: webservices/axis2/trunk/java/modules/jaxws/src/org/apache/axis2/jaxws/framework/JAXWSDeployer.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/jaxws/src/org/apache/axis2/jaxws/framework/JAXWSDeployer.java?rev=629974&r1=629973&r2=629974&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/jaxws/src/org/apache/axis2/jaxws/framework/JAXWSDeployer.java (original)
+++ webservices/axis2/trunk/java/modules/jaxws/src/org/apache/axis2/jaxws/framework/JAXWSDeployer.java Thu Feb 21 12:31:04 2008
@@ -180,7 +180,13 @@
             if (wsAnnotation == null) {
                 wspAnnotation = (WebServiceProvider) pojoClass.getAnnotation(WebServiceProvider.class);
             }
-            if ((wsAnnotation != null || wspAnnotation != null) && !pojoClass.isInterface()) {
+
+            //If this contains a WebService annotation, make sure that we are not
+            //processing the pure SEI. We should only create the AxisService based on the 
+            //implementation class. Also skip any interfaces.
+            if (((wsAnnotation != null && !isEmpty(wsAnnotation.endpointInterface())) 
+                    || wspAnnotation != null) 
+                    && !pojoClass.isInterface()) {
                 log.info("Deploying JAXWS class : " + className);
                 AxisService axisService;
                 axisService =
@@ -317,6 +323,10 @@
         } catch (IOException ioe) {
         }
         return false;
+    }
+
+    private boolean isEmpty(String string) {
+        return (string == null || "".equals(string));
     }
 }
 



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