You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Bob Fields (JIRA)" <ji...@apache.org> on 2008/05/01 16:30:55 UTC

[jira] Created: (CXF-1566) WSDLValidator tests fail because of invalid schema

WSDLValidator tests fail because of invalid schema
--------------------------------------------------

                 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 source download with files dated 4/24/08
            Reporter: Bob Fields


CXF 2.1 build from sources fails when running unit test on WSDLValidator. 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.


[jira] Updated: (CXF-1566) WSDLValidator tests fail because of invalid schema

Posted by "Bob Fields (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CXF-1566?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Bob Fields updated CXF-1566:
----------------------------

    Attachment: surefire-reports-WSDLValidator.zip

Test failure reports from WSDLValidator, from out of the box build

> WSDLValidator tests fail because of invalid schema
> --------------------------------------------------
>
>                 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 source download with files dated 4/24/08
>            Reporter: Bob Fields
>         Attachments: surefire-reports-WSDLValidator.zip
>
>
> CXF 2.1 build from sources fails when running unit test on WSDLValidator. 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.


[jira] Commented: (CXF-1566) WSDLValidator unit tests fail because of invalid unit test schemas

Posted by "Bob Fields (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CXF-1566?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12593558#action_12593558 ] 

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

Locale: US/East Coast.
Imported all CXF source projects into Eclipse 3.3, ran eclipse WSDL validation on same files, they passed but three others failed validation (problem report attached).
Ran the same WSDLValidator unit test from within Eclipse, got the same failure report. At least I can reproduce the failure in a debuggable environment, to try to isolate the problem.
I see the elements in the imported schema, let me try to figure out why XMLSpy and Eclipse say the schema is invalid, they should be able to see the schemaLocation.

> 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.


[jira] Commented: (CXF-1566) WSDLValidator unit tests fail because of invalid unit test schemas

Posted by "Bob Fields (JIRA)" <ji...@apache.org>.
    [ 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.


[jira] Updated: (CXF-1566) WSDLValidator unit tests fail because of invalid unit test schemas

Posted by "Bob Fields (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CXF-1566?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Bob Fields updated CXF-1566:
----------------------------

    Description: 
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

  was:
CXF 2.1 build from sources fails when running unit test on WSDLValidator. 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

    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"  (was: Windows XP, maven 2.0.8, CXF 2.1 source download with files dated 4/24/08)
        Summary: WSDLValidator unit tests fail because of invalid unit test schemas  (was: WSDLValidator tests fail because of invalid schema)

Built and Tested OK with same invalid schemas in CXF 2.0.6, so the WSDLValidator became more strict in the 2.1 release.

> 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.


[jira] Commented: (CXF-1566) WSDLValidator unit tests fail because of invalid unit test schemas

Posted by "Bob Fields (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CXF-1566?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12601510#action_12601510 ] 

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

Picking up the proxies from Maven would solve the problem for me. A bogus proxy or a test that doesn't fail when the external schema isn't available to validate against would allow the project to be built and tested offline (assuming the dependencies exist in the repository).

> 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.


[jira] Commented: (CXF-1566) WSDLValidator unit tests fail because of invalid unit test schemas

Posted by "Daniel Kulp (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CXF-1566?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12593607#action_12593607 ] 

Daniel Kulp commented on CXF-1566:
----------------------------------


I'm wondering if CXF-1057 isn't completely done.   Those schemas should all be grabbed by the catalogs.   Definitely something to dig into more.




> 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.


[jira] Commented: (CXF-1566) WSDLValidator unit tests fail because of invalid unit test schemas

Posted by "Benson Margulies (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CXF-1566?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12599930#action_12599930 ] 

Benson Margulies commented on CXF-1566:
---------------------------------------

Should we pick up proxies from Maven? Should we invent a bogus proxy to allow us to test the catalogs?

> 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.


[jira] Commented: (CXF-1566) WSDLValidator tests fail because of invalid schema

Posted by "Daniel Kulp (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CXF-1566?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12593550#action_12593550 ] 

Daniel Kulp commented on CXF-1566:
----------------------------------


Can I ask what JDK you are using?   Kind of strange as the tests pass fine for my on pretty much all the platforms we tests on. (Linux, XP, OSX, HP, Solaris)


Actually, one thought, what "country" are you in?  Aka: what's your local?   

> WSDLValidator tests fail because of invalid schema
> --------------------------------------------------
>
>                 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 source download with files dated 4/24/08
>            Reporter: Bob Fields
>         Attachments: surefire-reports-WSDLValidator.zip
>
>
> CXF 2.1 build from sources fails when running unit test on WSDLValidator. 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.


[jira] Commented: (CXF-1566) WSDLValidator unit tests fail because of invalid unit test schemas

Posted by "Bob Fields (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CXF-1566?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12593603#action_12593603 ] 

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

The unit tests run OK with VM arguments -Dhttp.proxyHost= -Dhttp.proxyPort=.
Maven is properly configured with proxy settings, things download just fine from external repositories, but I guess the CXF build/test process doesn't pick up the proxy parameters from maven when running mvn install.

> 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.


[jira] Commented: (CXF-1566) WSDLValidator tests fail because of invalid schema

Posted by "Daniel Kulp (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CXF-1566?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12593553#action_12593553 ] 

Daniel Kulp commented on CXF-1566:
----------------------------------


hello_world_schema_import.wsdl looks competely valid to me.   That error message you show is not true.  If you look at the message:
    <wsdl:message name="sayHiRequest">
	<wsdl:part element="x1:sayHi" name="in"/>
    </wsdl:message>
the x1 prefix is defined as namespace http://apache.org/hello_world_soap_http/types1 which is indeed imported in the schemas and that element does exist in schema1.xsd.



> WSDLValidator tests fail because of invalid schema
> --------------------------------------------------
>
>                 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 source download with files dated 4/24/08
>            Reporter: Bob Fields
>         Attachments: surefire-reports-WSDLValidator.zip
>
>
> CXF 2.1 build from sources fails when running unit test on WSDLValidator. 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.


[jira] Commented: (CXF-1566) WSDLValidator unit tests fail because of invalid unit test schemas

Posted by "Bob Fields (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CXF-1566?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12593562#action_12593562 ] 

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

Looks like it's a proxy issue, the unit tests expect direct connection to the internet but I'm behind a proxy server (the file actually exists in the specified location, so the verbose error message is wrong):

WSDLValidator Error : Cannot get the wsdl file:/C:/Programs/CXF/21/src/tools/validator/target/test-classes/validator_wsdl/hello_world_import.wsdl
[+] Verbose turned on
	at org.apache.cxf.tools.validator.internal.SchemaValidator.validate(SchemaValidator.java:208)
	at org.apache.cxf.tools.validator.internal.SchemaValidator.validate(SchemaValidator.java:118)
... stack traces...
Caused by: java.net.UnknownHostException: www.w3.org
... stack traces...


> 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.