Skip to main content

@SchemaValidation annotation

2 replies [Last post]
Joined: 2010-08-20

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 = "", wsdlLocation = "WEB-INF/wsdl/CustomerService.wsdl")
@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)
@XmlSeeAlso( {
com.adtech.fusion.service.interfaces.customer.ObjectFactory.class, })
public class CustomerServiceImpl implements CustomerService {

I get an exception when deploying the service:

Caused by: Unsupported feature: class
at [:3.3.0.CR1.SP2]
at [:3.3.0.CR1.SP2]
at [:3.3.0.CR1.SP2]
at [:3.3.0.CR1.SP2]
at org.jboss.wsf.stack.jbws.UnifiedMetaDataDeploymentAspect.start( [:3.3.0.CR1.SP2]
at org.jboss.webservices.integration.deployers.WSDeploymentAspectDeployer.internalDeploy( [:]
at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy( [:2.2.0.Alpha4]
at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy( [:2.2.0.Alpha4]
... 26 more

I am using jboss-, 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


> I am using jboss-, 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.

Joined: 2007-03-14

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.


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