rbSwmComponent is annotated by:
@XmlType(propOrder={})
@XmlAccessorType(XmlAccessType.FIELD)

the test i am using:
                JaxWsServerFactoryBean svrFactory = new
JaxWsServerFactoryBean();
                svrFactory.setServiceClass(serviceClass);
                svrFactory.setAddress(serviceUrl);
                svrFactory.setServiceBean(serviceBeanClass);
                svrFactory.getInInterceptors().add(new LoggingInInterceptor());
                svrFactory.getOutInterceptors().add(new 
LoggingOutInterceptor());
                svrFactory.create().start();


 full stack:
org.apache.cxf.common.xmlschema.UnsupportedConstruct: Limitation: Type
{http://services.redbend.com/}rbSwmComponent is not defined as a sequence. 
        at
org.apache.cxf.common.xmlschema.XmlSchemaUtils.unsupportedConstruct(XmlSchemaUtils.java:633)
        at
org.apache.cxf.common.xmlschema.XmlSchemaUtils.getSequence(XmlSchemaUtils.java:494)
        at
org.apache.cxf.common.xmlschema.SchemaCollection.addCrossImportsType(SchemaCollection.java:298)
        at
org.apache.cxf.common.xmlschema.SchemaCollection.addElementCrossImportsElement(SchemaCollection.java:260)
        at
org.apache.cxf.common.xmlschema.SchemaCollection.addCrossImportsSequence(SchemaCollection.java:306)
        at
org.apache.cxf.common.xmlschema.SchemaCollection.addCrossImportsType(SchemaCollection.java:299)
        at
org.apache.cxf.common.xmlschema.SchemaCollection.addElementCrossImportsElement(SchemaCollection.java:260)
        at
org.apache.cxf.common.xmlschema.SchemaCollection.addOneSchemaCrossImports(SchemaCollection.java:242)
        at
org.apache.cxf.common.xmlschema.SchemaCollection.addCrossImports(SchemaCollection.java:233)
        at
org.apache.cxf.jaxb.JAXBSchemaInitializer.buildExceptionType(JAXBSchemaInitializer.java:556)
        at
org.apache.cxf.jaxb.JAXBSchemaInitializer.checkForExistence(JAXBSchemaInitializer.java:307)
        at
org.apache.cxf.jaxb.JAXBSchemaInitializer.begin(JAXBSchemaInitializer.java:137)
        at
org.apache.cxf.service.ServiceModelVisitor.visitOperation(ServiceModelVisitor.java:120)
        at
org.apache.cxf.service.ServiceModelVisitor.walk(ServiceModelVisitor.java:74)
        at 
org.apache.cxf.jaxb.JAXBDataBinding.initialize(JAXBDataBinding.java:366)
        at
org.apache.cxf.service.factory.AbstractServiceFactoryBean.initializeDataBindings(AbstractServiceFactoryBean.java:86)
        at
org.apache.cxf.service.factory.ReflectionServiceFactoryBean.buildServiceFromClass(ReflectionServiceFactoryBean.java:445)
        at
org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.buildServiceFromClass(JaxWsServiceFactoryBean.java:682)
        at
org.apache.cxf.service.factory.ReflectionServiceFactoryBean.initializeServiceModel(ReflectionServiceFactoryBean.java:508)
        at
org.apache.cxf.service.factory.ReflectionServiceFactoryBean.create(ReflectionServiceFactoryBean.java:242)
        at
org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.create(JaxWsServiceFactoryBean.java:202)
        at
org.apache.cxf.frontend.AbstractWSDLBasedEndpointFactory.createEndpoint(AbstractWSDLBasedEndpointFactory.java:101)
        at
org.apache.cxf.frontend.ServerFactoryBean.create(ServerFactoryBean.java:159)
        at
org.apache.cxf.jaxws.JaxWsServerFactoryBean.create(JaxWsServerFactoryBean.java:205)
        at
com.redbend.services.BaseServiceTest.setBeforeClass(BaseServiceTest.java:78)
        at
com.redbend.services.TestSwmAdministrationService.setUp(TestSwmAdministrationService.java:42)




just for notice that this is not occurred in soapUI  

--
View this message in context: 
http://cxf.547215.n5.nabble.com/validation-error-tp5101800p5102729.html
Sent from the cxf-user mailing list archive at Nabble.com.

Reply via email to