JBoss Community

Re: SchemaValidation error

created by andreas_back in JBoss Web Services - View the full discussion

Hello Martin,

 

since your posting some time has passed, but we get the same error for

 

*     JBoss 4.2.3 and

*     jbossws-native-3.1.1.

 

Updating the JBoss version and in combination with this the jbossws version is not an option because the jboss version is a externally chosen.

 

The error

 

Exception in thread "main" javax.xml.ws.soap.SOAPFaultException: org.xml.sax.SAXException: s4s-elt-schema-ns: The namespace of element 'definitions' must be from the schema namespace, 'http://www.w3.org/2001/XMLSchema'.

 

is reported if

 

*     the schema validation is turned on @SchemaValidation(enabled=true)

*     and the wsdl that is used for the validation is not generated by JBossWS but is specified by path to a handwritten WSDL.

 

The error does also occur if the wsdl that is generated by JBossWS (on the basis of the Java code and its annotations) is

stored and then specified a an input for the validation as a wsdl file.

 

With best regards,

 

Andreas

Reply to this message by going to Community

Start a new discussion in JBoss Web Services at Community