Index: appserv-commons/src/java/com/sun/enterprise/deployment/annotation/handlers/WebServiceRefHandler.java =================================================================== --- appserv-commons/src/java/com/sun/enterprise/deployment/annotation/handlers/WebServiceRefHandler.java (revision 1.24) +++ appserv-commons/src/java/com/sun/enterprise/deployment/annotation/handlers/WebServiceRefHandler.java Thu Jan 21 14:31:08 PST 2010 @@ -244,8 +244,9 @@ } aRef.addInjectionTarget(target); } - + - if (!Object.class.equals(annotation.value())) { + //JAX-WS 2.2 defines the default value as Service.class + if (Object.class != annotation.value() && javax.xml.ws.Service.class != annotation.value()) { // a value was provided, which should be the Service // interface, the requested injection is therefore on the // port. @@ -276,7 +277,7 @@ // Read the WebServiceClient annotation for the service name space uri and wsdl (if required) WebServiceClient wsclientAnn; - if (Object.class.equals(annotation.value())) { + if (Object.class == annotation.value() || javax.xml.ws.Service.class == annotation.value()) { wsclientAnn = (WebServiceClient) annotatedType.getAnnotation(WebServiceClient.class); } else { wsclientAnn = (WebServiceClient) annotation.value().getAnnotation(WebServiceClient.class);