Skip to main content

@SchemaValidation annotation

2 replies [Last post]
centerofuniverse
Offline
Joined: 2010-08-20
Points: 0

Hi all,

I am trying to use the @SchemaValidation annotation without success. The problem I am getting is that if I annotate my Service Endpoint as follows:

@SchemaValidation(handler = CustomerServiceErrorHandler.class)
@WebService(endpointInterface = "com.adtech.fusion.service.interfaces.customer.CustomerService", serviceName = "CustomerServiceClient", portName = "CustomerServicePort", targetNamespace = "http://interfaces.service.fusion.adtech.com/customer", wsdlLocation = "WEB-INF/wsdl/CustomerService.wsdl")
@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)
@XmlSeeAlso( {
com.adtech.fusion.service.interfaces.customer.ObjectFactory.class,
com.adtech.fusion.service.data.customer.ObjectFactory.class })
public class CustomerServiceImpl implements CustomerService {

I get an exception when deploying the service:

Caused by: javax.xml.ws.WebServiceException: Unsupported feature: class com.sun.xml.ws.developer.SchemaValidationFeature
at org.jboss.ws.metadata.builder.jaxws.EndpointFeatureProcessor.processEndpointFeatures(EndpointFeatureProcessor.java:117) [:3.3.0.CR1.SP2]
at org.jboss.ws.metadata.builder.jaxws.JAXWSWebServiceMetaDataBuilder.buildWebServiceMetaData(JAXWSWebServiceMetaDataBuilder.java:148) [:3.3.0.CR1.SP2]
at org.jboss.ws.metadata.builder.jaxws.JAXWSServerMetaDataBuilder.setupProviderOrWebService(JAXWSServerMetaDataBuilder.java:50) [:3.3.0.CR1.SP2]
at org.jboss.ws.metadata.builder.jaxws.JAXWSMetaDataBuilderJSE.buildMetaData(JAXWSMetaDataBuilderJSE.java:62) [:3.3.0.CR1.SP2]
at org.jboss.wsf.stack.jbws.UnifiedMetaDataDeploymentAspect.start(UnifiedMetaDataDeploymentAspect.java:64) [:3.3.0.CR1.SP2]
at org.jboss.webservices.integration.deployers.WSDeploymentAspectDeployer.internalDeploy(WSDeploymentAspectDeployer.java:114) [:6.0.0.20100429-M3]
at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:55) [:2.2.0.Alpha4]
at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:179) [:2.2.0.Alpha4]
... 26 more

I am using jboss-6.0.0.20100429-M3, JDK 1.6.0_21 and JAX-WS 2.2.

Thanks in advance.

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Marat Radchenko

2010/8/23

> I am using jboss-6.0.0.20100429-M3, JDK 1.6.0_21 and JAX-WS 2.2.
>
@SchemaValidation is from Metro, but (as clearly seen from your stacktrace)
you're using JBoss WS as JAX-WS implementation.
[att1.html]

magir
Offline
Joined: 2007-03-14
Points: 0

Maybe the framework isn't finding your WSDL and generating one on the fly. I've seen constellations, where a slash is needed before the WEB-INF, e.g.

/WEB-INF/wsdl/CustomerService.wsdl

Have you checked the logging output during startup before the exception?