Yes, please report any errors to this list. Colm.
On Mon, Nov 19, 2012 at 4:30 PM, Stadelmann Josef < [email protected]> wrote: > In this case I am going to build the 1.6.7 version again; Now with JDK > 1.7.0_03 and strong encryption policy files placed!**** > > Is that OK?**** > > Josef**** > > ** ** > > *Von:* Daniel Kulp [mailto:[email protected]] > *Gesendet:* Montag, 19. November 2012 17:25 > *An:* [email protected] > *Betreff:* Re: WSS4J Build Prerequisites OR how to successfully build > WSS4J?**** > > ** ** > > ** ** > > On Nov 19, 2012, at 11:16 AM, Colm O hEigeartaigh <[email protected]> > wrote:**** > > > > **** > > > I don't quite follow your post. The build failure you are describing is in > CXF, not WSS4J itself. Can you build WSS4J trunk correctly? If not, what is > the error?**** > > ** ** > > Plus, CXF currently doesn't use a SNAPSHOT version of WSS4J. It's set at: > **** > > ** ** > > <cxf.wss4j.version>1.6.7</cxf.wss4j.version>**** > > ** ** > > Thus, building the snapshot versions of WSS4J wouldn't have any real > impact on the CXF tests.**** > > ** ** > > Dan**** > > ** ** > > ** ** > > > Colm.**** > > On Mon, Nov 19, 2012 at 4:06 PM, Stadelmann Josef < > [email protected]> wrote:**** > > I am by far not a security wss4j specialist, even I managed to get my > password encrypted over to the axis2 server using JCE > > Bt today I like to build CXF using > $ mvn install > but this failed ! > the cxf supporter, thanks to him, said that he does a > $ svn up trunk > on a daily basis to the wss4j/trunk > and that the build > $mvn install > on the wss4j/trunk > takes about 2 to 4 minutes > > So I was thinking to do the same . . . > > I agree with him ---- but only --- if all wss4j build properties are set > properly --- because my build fails ---- so it is not a sniff. > > Hence --- on the risk of an oversight ---- I ask wss4j developers to > explain what all is required to get wss4j built with mavee-3.0.5 > > I must admit, I was able to build it but only with > $ mvn install -skipTests > making maven skipping all surefire test > > As this build from trunk install artifacts into my .m2 repository I am > about to use a maven install toward the cxf project > > currently ongoing. /// 10 minutes later --- see results below --- only > one failure !!! > > > But want to know about > 1. how to prepare my system VISTA / JDK 1.7.0_03 / maven 3.0.5 to build > wss4j properly including surefire testing > 2. then deploy and install wss4j properly > 3. any good blogs or books avail to read about how to manage key and > trust store and understand all this security / encryption concepts > > Thankfully > Josef > > is my CPU not fast enough ? > > > Running org.apache.cxf.ws.security.wss4j.WSS4JFaultCodeTest > Tests run: 3, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 1.019 > sec <<< FAILURE! > testInvalidTimestamp(org.apache.cxf.ws.security.wss4j.WSS4JFaultCodeTest > ) Time elapsed: 1.003 sec <<< FAILURE! > java.lang.AssertionError: Expected failure on an invalid Timestamp > at org.junit.Assert.fail(Assert.java:93) > at > org.apache.cxf.ws.security.wss4j.WSS4JFaultCodeTest.testInvalidTimestamp > (WSS4JFaultCodeTest.java:171) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav > a:57) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor > Impl.java:43) > at java.lang.reflect.Method.invoke(Method.java:601) > at > org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMet > hod.java:45) > at > org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallab > le.java:15) > at > org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMetho > d.java:42) > at > org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod > .java:20) > at > org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.jav > a:28) > at > org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java: > 30) > at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:263) > at > org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner > .java:68) > at > org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner > .java:47) > at org.junit.runners.ParentRunner$3.run(ParentRunner.java:231) > at > org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:60) > at > org.junit.runners.ParentRunner.runChildren(ParentRunner.java:229) > at > org.junit.runners.ParentRunner.access$000(ParentRunner.java:50) > at > org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:222) > at > org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java: > 30) > at org.junit.runners.ParentRunner.run(ParentRunner.java:300) > at > org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.j > ava:252) > at > org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Pro > vider.java:141) > at > org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.ja > va:112) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav > a:57) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor > Impl.java:43) > at java.lang.reflect.Method.invoke(Method.java:601) > at > org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(Ref > lectionUtils.java:189) > at > org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(Pr > oviderFactory.java:165) > at > org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(Provider > Factory.java:85) > at > org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedB > ooter.java:113) > at > org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:75) > Running org.apache.cxf.ws.security.wss4j.WSS4JInOutTest > Tests run: 10, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.265 > sec > Running org.apache.cxf.ws.security.wss4j.WSS4JOutInterceptorTest > Tests run: 7, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.078 > sec > Running org.apache.cxf.ws.security.wss4j.saml.PolicyBasedSamlTest > Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.747 > sec > Running org.apache.cxf.ws.security.wss4j.saml.SamlTokenTest > Tests run: 9, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.577 > sec > > Results : > > Failed tests: > testInvalidTimestamp(org.apache.cxf.ws.security.wss4j.WSS4JFaultCodeTest > ): Expected failure on an invalid Timestamp > > Tests run: 80, Failures: 1, Errors: 0, Skipped: 0 > > [INFO] > ------------------------------------------------------------------------ > [INFO] Reactor Summary: > [INFO] > [INFO] Apache CXF ........................................ SUCCESS > [1.887s] > [INFO] Apache CXF Parent ................................. SUCCESS > [4.150s] > [INFO] Apache CXF API .................................... SUCCESS > [3:26.857s] > [INFO] Apache CXF Woodstox/MSV Schema Validation ......... SUCCESS > [4.196s] > [INFO] Apache CXF XML Schema Validation with Xerces ...... SUCCESS > [2.855s] > [INFO] Apache CXF Common ................................. SUCCESS > [0.109s] > [INFO] Apache CXF Runtime Core ........................... SUCCESS > [41.931s] > [INFO] Apache CXF Command Line Tools Common .............. SUCCESS > [14.757s] > [INFO] Apache CXF Runtime JAXB DataBinding ............... SUCCESS > [16.754s] > [INFO] Apache CXF Runtime SOAP Binding ................... SUCCESS > [21.527s] > [INFO] Apache CXF Command Line Tools Validator ........... SUCCESS > [10.702s] > [INFO] Apache CXF Command Line Tools WSDLTo Core ......... SUCCESS > [6.536s] > [INFO] Apache CXF Command Line Tools WSDLTo JAXWS Frontend SUCCESS > [16.036s] > [INFO] Apache CXF Runtime JavaScript Client Generator Projects SUCCESS > [0.343s] > [INFO] Apache CXF Runtime JavaScript Client Generator .... SUCCESS > [6.225s] > [INFO] Apache CXF Command Line Tools WSDL to JavaScript Front End > SUCCESS [6.442s] > [INFO] Apache CXF Command Line Tools WSDLTo JAXB Databinding SUCCESS > [5.803s] > [INFO] Apache CXF Maven Plugins .......................... SUCCESS > [0.312s] > [INFO] Apache CXF WSDL Validator Maven2 Plugin ........... SUCCESS > [5.304s] > [INFO] Apache CXF Code Generation Maven2 Plugins ......... SUCCESS > [7.987s] > [INFO] Apache CXF Test Utilities ......................... SUCCESS > [1:49.977s] > [INFO] Apache CXF Runtime Management ..................... SUCCESS > [21.590s] > [INFO] Apache CXF Runtime JMS Transport .................. SUCCESS > [47.440s] > [INFO] Apache CXF Runtime XML Binding .................... SUCCESS > [8.252s] > [INFO] Apache CXF Runtime Local Transport ................ SUCCESS > [4.212s] > [INFO] Apache CXF Runtime WS Policy ...................... SUCCESS > [35.599s] > [INFO] Apache CXF Runtime HTTP Transport ................. SUCCESS > [23.275s] > [INFO] Apache CXF Runtime HTTP Jetty Transport ........... SUCCESS > [17.643s] > [INFO] Apache CXF Runtime Simple Frontend ................ SUCCESS > [13.369s] > [INFO] Apache CXF Runtime WS Addressing .................. SUCCESS > [11.451s] > [INFO] Apache CXF Runtime JAX-WS Frontend ................ SUCCESS > [1:01.183s] > [INFO] Apache CXF Runtime XmlBeans DataBinding ........... SUCCESS > [36.149s] > [INFO] Apache CXF Command Line Tools WSDLTo Test ......... SUCCESS > [2:21.824s] > [INFO] Apache CXF Command Line Tools WSDLTo Misctools .... SUCCESS > [10.452s] > [INFO] Apache CXF Command Line Tools ..................... SUCCESS > [0.141s] > [INFO] Apache CXF Command Line Tools WSDLTo .............. SUCCESS > [0.093s] > [INFO] Apache CXF Runtime Aegis Databinding .............. SUCCESS > [45.738s] > [INFO] Apache CXF Command Line Tools JavaTo WS ........... SUCCESS > [46.207s] > [INFO] Apache CXF Command Line Tools JavaTo .............. SUCCESS > [0.093s] > [INFO] Apache CXF Runtime JAX-RS Frontend ................ SUCCESS > [1:08.063s] > [INFO] Apache CXF Command Line Tools WADLTo JAXRS Frontend SUCCESS > [59.218s] > [INFO] Apache CXF Command Line Tools WADLTo .............. SUCCESS > [0.078s] > [INFO] Apache CXF Runtime CORBA Binding .................. SUCCESS > [23.447s] > [INFO] Apache CXF Command Line Tools CORBA ............... SUCCESS > [45.225s] > [INFO] Apache CXF Runtime SDO DataBinding ................ SUCCESS > [15.163s] > [INFO] Apache CXF Runtime JiBX DataBinding ............... SUCCESS > [9.531s] > [INFO] Apache CXF Runtime Object Binding ................. SUCCESS > [7.353s] > [INFO] Apache CXF Runtime Colocated Binding .............. SUCCESS > [6.879s] > [INFO] Apache CXF Runtime ................................ SUCCESS > [0.063s] > [INFO] Apache CXF Runtime Bindings ....................... SUCCESS > [0.078s] > [INFO] Apache CXF Runtime Clustering ..................... SUCCESS > [3.556s] > [INFO] Apache CXF Runtime JavaScript Frontend ............ SUCCESS > [5.523s] > [INFO] Apache CXF Runtime HTTP Async Transport ........... SUCCESS > [13.998s] > [INFO] Apache CXF Runtime UDP Transport .................. SUCCESS > [6.037s] > [INFO] Apache CXF Runtime WS Reliable Messaging .......... SUCCESS > [53.560s] > [INFO] Apache CXF Runtime WS MetadataExchange ............ SUCCESS > [5.788s] > [INFO] Apache CXF Runtime WS Security .................... FAILURE > [1:00.064s] > [INFO] Apache CXF JAX-RS Extensions: Providers ........... SKIPPED > [INFO] Apache CXF JAX-RS Extensions: Search .............. SKIPPED > [INFO] Apache CXF RS XML Security ........................ SKIPPED > [INFO] Apache CXF RS SSO SAML ............................ SKIPPED > [INFO] Apache CXF Runtime RS Security OAuth Parent ....... SKIPPED > [INFO] Apache CXF Runtime OAuth 1.0a ..................... SKIPPED > [INFO] Apache CXF Runtime OAuth 2.0 ...................... SKIPPED > [INFO] Apache CXF RS Cross-Origin Resource Sharing ....... SKIPPED > [INFO] Apache CXF Runtime Web Management ................. SKIPPED > [INFO] Apache CXF Runtime JavaScript Client Generator Tests SKIPPED > [INFO] Apache CXF JCA Connection ......................... SKIPPED > [INFO] Apache CXF Integration ............................ SKIPPED > [INFO] Apache CXF Java2WS Maven2 Plugin .................. SKIPPED > [INFO] Apache CXF WADL2Java Code Generation Maven2 Plugin SKIPPED > [INFO] Apache CXF CORBA Tools Maven2 Plugins ............. SKIPPED > [INFO] Apache CXF Archetype - Simple JAX-WS Java First ... SKIPPED > [INFO] Apache CXF Archetype - Simple JAX-RS webapp ....... SKIPPED > [INFO] Apache CXF Maven Archetypes ....................... SKIPPED > [INFO] Apache CXF STS Core ............................... SKIPPED > [INFO] Apache CXF STS war deployment ..................... SKIPPED > [INFO] Apache CXF STS basic systests ..................... SKIPPED > [INFO] Apache CXF STS advanced systests .................. SKIPPED > [INFO] Apache CXF Services ............................... SKIPPED > [INFO] Apache CXF STS service ............................ SKIPPED > [INFO] Apache CXF STS systests ........................... SKIPPED > [INFO] Apache CXF WSN API ................................ SKIPPED > [INFO] Apache CXF WSN Core ............................... SKIPPED > [INFO] Apache CXF WSN OSGi ............................... SKIPPED > [INFO] Apache CXF WSN service ............................ SKIPPED > [INFO] Apache CXF WS-Discovery API ....................... SKIPPED > [INFO] Apache CXF WS-Discovery Service ................... SKIPPED > [INFO] Apache CXF WS-Discovery ........................... SKIPPED > [INFO] Apache CXF Karaf Parent ........................... SKIPPED > [INFO] Apache CXF Karaf Features ......................... SKIPPED > [INFO] Apache CXF Karaf Commands ......................... SKIPPED > [INFO] Apache CXF Bundle Parent .......................... SKIPPED > [INFO] Apache CXF Bundle Jar ............................. SKIPPED > [INFO] Apache CXF Minimal Bundle Jar ..................... SKIPPED > [INFO] Apache CXF JAX-RS Bundle Jar ...................... SKIPPED > [INFO] Apache CXF Compatibility Bundle Jar ............... SKIPPED > [INFO] Apache CXF Container Integration System Tests ..... SKIPPED > [INFO] Apache CXF Container Integration Test Webapp ...... SKIPPED > [INFO] Apache CXF Uncategorized System Tests ............. SKIPPED > [INFO] Apache CXF Transport System Tests ................. SKIPPED > [INFO] Apache CXF Transport System Tests JMS ............. SKIPPED > [INFO] Apache CXF JAX-WS System Tests .................... SKIPPED > [INFO] Apache CXF Databinding System Tests ............... SKIPPED > [INFO] Apache CXF JAX-RS System Tests .................... SKIPPED > [INFO] Apache CXF WS-* Specifications System Tests ....... SKIPPED > [INFO] Apache CXF WS-RM Specifications System Tests ...... SKIPPED > [INFO] Apache CXF WS-Security System Tests ............... SKIPPED > [INFO] Apache CXF WS-Security Interop System Tests ....... SKIPPED > [INFO] Apache CXF JAX-RS System Advanced Security Tests .. SKIPPED > [INFO] Test for writing wsdl to repo ..................... SKIPPED > [INFO] Test for generating code from wsdl in repo ........ SKIPPED > [INFO] Apache CXF System Tests ........................... SKIPPED > [INFO] Apache CXF System Tests for Maven Plugins ......... SKIPPED > [INFO] > ------------------------------------------------------------------------ > [INFO] BUILD FAILURE > [INFO] > ------------------------------------------------------------------------ > [INFO] Total time: 23:26.560s > [INFO] Finished at: Mon Nov 19 16:58:44 CET 2012 > [INFO] Final Memory: 105M/250M > [INFO] > ------------------------------------------------------------------------ > [ERROR] Failed to execute goal > org.apache.maven.plugins:maven-surefire-plugin:2.12.2:test > (default-test) on project cxf-rt-ws-security: There are test failures. > [ERROR] > [ERROR] Please refer to > E:\asf\cxf\trunk\rt\ws\security\target\surefire-reports for the > individual test results. > [ERROR] -> [Help 1] > [ERROR] > [ERROR] To see the full stack trace of the errors, re-run Maven with the > -e switch. > [ERROR] Re-run Maven using the -X switch to enable full debug logging. > [ERROR] > [ERROR] For more information about the errors and possible solutions, > please read the following articles: > [ERROR] [Help 1] > http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException > [ERROR] > [ERROR] After correcting the problems, you can resume the build with the > command > [ERROR] mvn <goals> -rf :cxf-rt-ws-security > 'cmd' is not recognized as an internal or external command, > operable program or batch file. > E:\asf\cxf\trunk>**** > > > > > -- > Colm O hEigeartaigh > > Talend Community Coder > http://coders.talend.com**** > > ** ** > > -- **** > > Daniel Kulp > [email protected] - http://dankulp.com/blog > Talend Community Coder - http://coders.talend.com**** > > ** ** > -- Colm O hEigeartaigh Talend Community Coder http://coders.talend.com
