ws-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Colm O hEigeartaigh <cohei...@apache.org>
Subject Re: Trouble building wss4J
Date Tue, 24 Jun 2014 09:43:58 GMT
What version of Maven are you using? Is it only the TimestampTest that
fails?

Colm.


On Mon, Jun 23, 2014 at 7:55 PM, Adrian Williamson <aw@octavo2.demon.co.uk>
wrote:

> java version "1.7.0_55"
> Java(TM) SE Runtime Environment (build 1.7.0_55-b13)
> Java HotSpot(TM) 64-Bit Server VM (build 24.55-b03, mixed mode)
> Windows Server 2008
>
> Hi,
>
> I need to explain that I am new to SOA security and that my Java and Maven
> skills require significant development.
>
> I can't get the wss4j 2.0.0 packages to cleanly/consistently build  - i.e.
> pass their tests.
>
> I get a number of different failures which I cannot pin down, so I think I
> must be doing something wrong in the initial setup.
>
> I have downloaded the complete package as a zip from Github, then issue the
> command "mvn package".
>
> There are two examples of error below, this was a back to back run - 5
> failures first 3 the second time.
>
> Is there some aspect of the installation that I have missed?
>
> Thanks
>
> Adrian
>
>
>
>
> Tests run: 15, Failures: 5, Errors: 0, Skipped: 0, Time elapsed: 4.453 sec
> <<< FAILURE! - in org.apache.wss4j.stax.test.TimestampTest
>
> testTimestampExpiredEncryptedInbound(org.apache.wss4j.stax.test.TimestampTes
> t)  Time elapsed: 1.109 sec  <<< FAILURE!
> java.lang.AssertionError: Expected XMLStreamException
>         at org.junit.Assert.fail(Assert.java:88)
>         at
>
> org.apache.wss4j.stax.test.TimestampTest.testTimestampExpiredEncryptedInboun
> d(TimestampTest.java:244)
>
> testTimestampPropertiesOutbound(org.apache.wss4j.stax.test.TimestampTest)
> Time elapsed: 0 sec  <<< FAILURE!
> java.lang.AssertionError: null
>         at org.junit.Assert.fail(Assert.java:86)
>         at org.junit.Assert.assertTrue(Assert.java:41)
>         at org.junit.Assert.assertTrue(Assert.java:52)
>         at
>
> org.apache.wss4j.stax.test.TimestampTest.testTimestampPropertiesOutbound(Tim
> estampTest.java:630)
>
> testTimestampExpiredInbound(org.apache.wss4j.stax.test.TimestampTest)  Time
> elapsed: 1.015 sec  <<< FAILURE!
> java.lang.AssertionError: Expected XMLStreamException
>         at org.junit.Assert.fail(Assert.java:88)
>         at
>
> org.apache.wss4j.stax.test.TimestampTest.testTimestampExpiredInbound(Timesta
> mpTest.java:203)
>
> testTimestampTTLInbound(org.apache.wss4j.stax.test.TimestampTest)  Time
> elapsed: 1.016 sec  <<< FAILURE!
> java.lang.AssertionError: Expected XMLStreamException
>         at org.junit.Assert.fail(Assert.java:88)
>         at
>
> org.apache.wss4j.stax.test.TimestampTest.testTimestampTTLInbound(TimestampTe
> st.java:422)
>
>
> testTimestampDefaultConfigurationOutbound(org.apache.wss4j.stax.test.Timesta
> mpTest)  Time elapsed: 0 sec  <<< FAILURE!
> java.lang.AssertionError: null
>         at org.junit.Assert.fail(Assert.java:86)
>         at org.junit.Assert.assertTrue(Assert.java:41)
>         at org.junit.Assert.assertTrue(Assert.java:52)
>         at
>
> org.apache.wss4j.stax.test.TimestampTest.testTimestampDefaultConfigurationOu
> tbound(TimestampTest.java:83)
>
> Running org.apache.wss4j.stax.test.UsernameTokenTest
> Tests run: 17, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.687 sec
> -
> in org.apache.wss4j.stax.test.UsernameTokenTest
> Running org.apache.wss4j.stax.test.VulnerabliltyVectorsTest
> testAllowMD5Algorithm skipped
> testAllowMD5Algorithm skipped
> testAllowMD5Algorithm skipped
> Tests run: 13, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.735 sec
> -
> in org.apache.wss4j.stax.test.VulnerabliltyVectorsTest
>
> Results :
>
> Failed tests:
>   TimestampTest.testTimestampExpiredEncryptedInbound:244->Assert.fail:88
> Expected XMLStreamException
>
>
> TimestampTest.testTimestampPropertiesOutbound:630->Assert.assertTrue:52->Ass
> ert.assertTrue:41->Assert.fail:86 null
>   TimestampTest.testTimestampExpiredInbound:203->Assert.fail:88 Expected
> XMLStreamException
>   TimestampTest.testTimestampTTLInbound:422->Assert.fail:88 Expected
> XMLStreamException
>
>
> TimestampTest.testTimestampDefaultConfigurationOutbound:83->Assert.assertTru
> e:52->Assert.assertTrue:41->Assert.fail:86 null
>
> Tests run: 353, Failures: 5, Errors: 0, Skipped: 3
>
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Reactor Summary:
> [INFO]
> [INFO] Apache WSS4J ...................................... SUCCESS [  5.860
> s]
> [INFO] Apache WSS4J parent ............................... SUCCESS [  0.578
> s]
> [INFO] Apache WSS4J WS-Security Bindings ................. SUCCESS [  6.578
> s]
> [INFO] Apache WSS4J WS-SecurityPolicy model .............. SUCCESS [ 10.564
> s]
> [INFO] Apache WSS4J WS-Security Common ................... SUCCESS [ 10.813
> s]
> [INFO] Apache WSS4J DOM WS-Security ...................... SUCCESS [ 38.185
> s]
> [INFO] Apache WSS4J Streaming WS-Security ................ FAILURE [01:27
> min]
> [INFO] Apache WSS4J WS-Security Integration .............. SKIPPED
> [INFO] Apache WSS4J Streaming WS-SecurityPolicy .......... SKIPPED
> [INFO]
> ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 02:40 min
> [INFO] Finished at: 2014-06-23T19:23:52+00:00
> [INFO] Final Memory: 24M/75M
> [INFO]
> ------------------------------------------------------------------------
>
> ------------Example 2--------------------
>
> Running org.apache.wss4j.stax.test.TimestampTest
> Tests run: 15, Failures: 3, Errors: 0, Skipped: 0, Time elapsed: 4.422 sec
> <<< FAILURE! - in org.apache.wss4j.stax.test.TimestampTest
>
> testTimestampExpiredEncryptedInbound(org.apache.wss4j.stax.test.TimestampTes
> t)  Time elapsed: 1.031 sec  <<< FAILURE!
> java.lang.AssertionError: Expected XMLStreamException
>         at org.junit.Assert.fail(Assert.java:88)
>         at
>
> org.apache.wss4j.stax.test.TimestampTest.testTimestampExpiredEncryptedInboun
> d(TimestampTest.java:244)
>
> testTimestampExpiredInbound(org.apache.wss4j.stax.test.TimestampTest)  Time
> elapsed: 1.016 sec  <<< FAILURE!
> java.lang.AssertionError: Expected XMLStreamException
>         at org.junit.Assert.fail(Assert.java:88)
>         at
>
> org.apache.wss4j.stax.test.TimestampTest.testTimestampExpiredInbound(Timesta
> mpTest.java:203)
>
> testTimestampTTLInbound(org.apache.wss4j.stax.test.TimestampTest)  Time
> elapsed: 1.015 sec  <<< FAILURE!
> java.lang.AssertionError: Expected XMLStreamException
>         at org.junit.Assert.fail(Assert.java:88)
>         at
>
> org.apache.wss4j.stax.test.TimestampTest.testTimestampTTLInbound(TimestampTe
> st.java:422)
>
> Running org.apache.wss4j.stax.test.UsernameTokenTest
> Tests run: 17, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.578 sec
> -
> in org.apache.wss4j.stax.test.UsernameTokenTest
> Running org.apache.wss4j.stax.test.VulnerabliltyVectorsTest
> testAllowMD5Algorithm skipped
> testAllowMD5Algorithm skipped
> testAllowMD5Algorithm skipped
> Tests run: 13, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.906 sec
> -
> in org.apache.wss4j.stax.test.VulnerabliltyVectorsTest
>
> Results :
>
> Failed tests:
>   TimestampTest.testTimestampExpiredEncryptedInbound:244->Assert.fail:88
> Expected XMLStreamException
>   TimestampTest.testTimestampExpiredInbound:203->Assert.fail:88 Expected
> XMLStreamException
>   TimestampTest.testTimestampTTLInbound:422->Assert.fail:88 Expected
> XMLStreamException
>
> Tests run: 353, Failures: 3, Errors: 0, Skipped: 3
>
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Reactor Summary:
> [INFO]
> [INFO] Apache WSS4J ...................................... SUCCESS [  5.844
> s]
> [INFO] Apache WSS4J parent ............................... SUCCESS [  0.531
> s]
> [INFO] Apache WSS4J WS-Security Bindings ................. SUCCESS [  6.781
> s]
> [INFO] Apache WSS4J WS-SecurityPolicy model .............. SUCCESS [ 10.500
> s]
> [INFO] Apache WSS4J WS-Security Common ................... SUCCESS [ 11.766
> s]
> [INFO] Apache WSS4J DOM WS-Security ...................... SUCCESS [ 37.656
> s]
> [INFO] Apache WSS4J Streaming WS-Security ................ FAILURE [01:19
> min]
> [INFO] Apache WSS4J WS-Security Integration .............. SKIPPED
> [INFO] Apache WSS4J Streaming WS-SecurityPolicy .......... SKIPPED
> [INFO]
> ------------------------------------------------------------------------
>
>


-- 
Colm O hEigeartaigh

Talend Community Coder
http://coders.talend.com

Mime
View raw message