cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Holger Sunke (JIRA)" <>
Subject [jira] [Created] (CXF-7159) Schema name conflict in collect when DTO class declares XmlType namespace=
Date Wed, 30 Nov 2016 14:10:59 GMT
Holger Sunke created CXF-7159:

             Summary:  Schema name conflict in collect when DTO class declares XmlType namespace=
                 Key: CXF-7159
             Project: CXF
          Issue Type: Bug
          Components: JAX-WS Runtime
    Affects Versions: 3.1.8, 2.6.1
         Environment: JDK 8
            Reporter: Holger Sunke

I'm building my DTOs using wsdl2java and tried to set up a JaxWsProxyClient or -Server which
results in

{quote} Schema name conflict in collection
	at org.apache.cxf.common.xmlschema.SchemaCollection.newXmlSchemaInCollection(
	at org.apache.cxf.jaxb.JAXBSchemaInitializer.createBridgeXsElement(
	at org.apache.cxf.jaxb.JAXBSchemaInitializer.checkForExistence(
	at org.apache.cxf.jaxb.JAXBSchemaInitializer.begin(
	at org.apache.cxf.service.ServiceModelVisitor.visitOperation(
	at org.apache.cxf.service.ServiceModelVisitor.walk(
	at org.apache.cxf.jaxb.JAXBDataBinding.initialize(
	at org.apache.cxf.service.factory.AbstractServiceFactoryBean.initializeDataBindings(
	at org.apache.cxf.wsdl.service.factory.ReflectionServiceFactoryBean.buildServiceFromClass(
	at org.apache.cxf.wsdl.service.factory.ReflectionServiceFactoryBean.initializeServiceModel(
	at org.apache.cxf.wsdl.service.factory.ReflectionServiceFactoryBean.create(
	at org.apache.cxf.frontend.AbstractWSDLBasedEndpointFactory.createEndpoint(
	at org.apache.cxf.frontend.ClientFactoryBean.create(
	at org.apache.cxf.frontend.ClientProxyFactoryBean.create(
	at org.apache.cxf.jaxws.JaxWsProxyFactoryBean.create(
	at schemaConflict.TestSchemaConflict.testSchemaConflict(

The offending DTO is an Exception object:

@WebFault(name = "parameters", targetNamespace = "")
public class SimpleFault extends Exception {
    private java.lang.String parameters;

Sources from WSDL:

	<wsdl:message name="SimpleFault">
		<wsdl:part name="parameters" type="xsd:string"></wsdl:part>
<wsdl:fault name="Servicefault" message="tns:SimpleFault" />

The offending Namespace is already added on schema collection
instantiation and thus a conflict is determined as soon as the SimpleFault is hit on initialization.

I hive devleoped a standalone test case you only need to extract and run "mvn test" for reproducing
this. How can I upload it?

This message was sent by Atlassian JIRA

View raw message