[ 
https://issues.apache.org/jira/browse/CXF-1566?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12593599#action_12593599
 ] 

Bob Fields commented on CXF-1566:
---------------------------------

The failure occurs when running SchemaValidator.createSchema line 136 
Document doc = docBuilder.parse(is.getByteStream());
against the schema 
INFO: Create Schema 
file:/C:/Programs/CXF/21/src/common/schemas/target/classes/schemas/wsdl/ws-addr-wsdl.xsd
 which was loaded from jar

The other schemas appear to load and validate properly.

I suspect you would see the same issue if you unplugged from the network (or 
redirected w3.org to a different location) and attempted to run the WSDL 
validation tests.

Is there a configuration setting when running the build so that it recognizes 
the proxy server? I'm still not sure why this works fine in 2.0.x and not in 
2.1, with no difference in local configuration settings.

> WSDLValidator unit tests fail because of invalid unit test schemas
> ------------------------------------------------------------------
>
>                 Key: CXF-1566
>                 URL: https://issues.apache.org/jira/browse/CXF-1566
>             Project: CXF
>          Issue Type: Test
>          Components: Tooling
>    Affects Versions: 2.1
>         Environment: Windows XP, maven 2.0.8, CXF 2.1 release source download 
> with files dated 4/24/08, Sun java "1.5.0_12-b04"
>            Reporter: Bob Fields
>         Attachments: surefire-reports-WSDLValidator.zip
>
>
> CXF 2.1release build from sources fails when running unit test on 
> WSDLValidator. The same unit tests pass with the same invalid schemas in CXF 
> 2.0.6. Opening the test schemas in XMLSpy 2007 r3 sp1 indeed shows that they 
> fail validation:
> File 
> C:\Programs\CXF\21\src\tools\validator\target\test-classes\validator_wsdl\hello_world_import.wsdl
>  is not valid.
>       extensibility element '<soap:operation>' (operation 'greetMe', binding 
> 'Greeter_SOAPBinding') has empty or missing 'soapAction' attribute! (required 
> if binding transport is 'http://schemas.xmlsoap.org/soap/http')
>               Error location: wsdl:definitions / wsdl:binding / 
> wsdl:operation / soap:operation
> File 
> C:\Programs\CXF\21\src\tools\validator\target\test-classes\validator_wsdl\hello_world_schema_import.wsdl
>  is not valid.
>       attribute 'element' in message part 'in' (message 'sayHiRequest') 
> refers to element 'x1:sayHi' which is not defined within the WSDL file!
>               Error location: wsdl:definitions / wsdl:message / wsdl:part / 
> @element
> Other schemas fail to validate but don't cause test failures: bp2717, 
> jms_test, header_rpc_lit, header_rpc_lit_2203_in, header_rpc_lit_2203_out.
> -------------------------------------------------------
>  T E S T S
> -------------------------------------------------------
> Running org.apache.cxf.tools.validator.WSDLValidationTest
> Tests run: 13, Failures: 3, Errors: 0, Skipped: 0, Time elapsed: 4.753 sec 
> <<< FAILURE!
> testImportWsdlValidation(org.apache.cxf.tools.validator.WSDLValidationTest)  
> Time elapsed: 2.486 sec  <<< FAILURE!
> java.lang.AssertionError: Is not valid wsdl!: wsdlvalidator -verbose 
> /C:/Program
> s/CXF/21/src/tools/validator/target/test-classes/validator_wsdl/hello_world_import.wsdl
> wsdlvalidator - Apache CXF 2.1
> ... stack traces...
> testImportSchemaValidation(org.apache.cxf.tools.validator.WSDLValidationTest) 
>  Time elapsed: 0.187 sec  <<< FAILURE!
> java.lang.AssertionError: Is not valid wsdl: wsdlvalidator -verbose 
> /C:/Programs
> /CXF/21/src/tools/validator/target/test-classes/validator_wsdl/hello_world_schema_import.wsdl
> wsdlvalidator - Apache CXF 2.1
> ... stack traces...
> testWSIBPR2203(org.apache.cxf.tools.validator.WSDLValidationTest)  Time 
> elapsed:
>  0.141 sec  <<< FAILURE!
> ... stack traces...
> Running org.apache.cxf.tools.validator.internal.WSDLRefValidatorTest
> Tests run: 8, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.234 sec
> Running org.apache.cxf.tools.validator.internal.WSDL11ValidatorTest
> Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.032 sec
> Running org.apache.cxf.tools.validator.internal.Stax2DOMTest
> Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.031 sec
> Running org.apache.cxf.tools.validator.internal.model.XNodeTest
> Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec
> Results :
> Failed tests:
>   testImportWsdlValidation(org.apache.cxf.tools.validator.WSDLValidationTest)
>   
> testImportSchemaValidation(org.apache.cxf.tools.validator.WSDLValidationTest)
>   testWSIBPR2203(org.apache.cxf.tools.validator.WSDLValidationTest)
> Tests run: 26, Failures: 3, Errors: 0, Skipped: 0

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to