tomee-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Blevins (JIRA)" <j...@apache.org>
Subject [jira] Commented: (OPENEJB-676) [BUILD FAILURE : There are test failures] OpenejbJarTest and ConversionTest are failing when building the code.
Date Sat, 03 Nov 2007 05:43:02 GMT

    [ https://issues.apache.org/jira/browse/OPENEJB-676?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12539824
] 

David Blevins commented on OPENEJB-676:
---------------------------------------

I've attached a patch (SaveJaxbOutput.patch.txt) for the JeeTest that  
saves the generated xml out to disk if it fails and prints the file  
location to system.out.

Can someone who has this problem apply the patch, run the test, then  
attach the generated xml file to this issue?

-David





> [BUILD FAILURE : There are test failures] OpenejbJarTest and ConversionTest are failing
when building the code.
> ---------------------------------------------------------------------------------------------------------------
>
>                 Key: OPENEJB-676
>                 URL: https://issues.apache.org/jira/browse/OPENEJB-676
>             Project: OpenEJB
>          Issue Type: Test
>          Components: build
>    Affects Versions: (trunk/openejb3)
>         Environment: Operating System :    Microsoft Windows XP Professional Version
2002 Service Pack 2
> JDK Details            :    IBM JDK 1.5.0 SR4
> Maven Version       :    2.0.7
> SVN Version          :     1.4.5
>            Reporter: Ashok Poralu
>             Fix For: (trunk/openejb3)
>
>         Attachments: jaxb-output4492xml, jaxb-output4750xml, SaveJaxbOutput.patch.txt
>
>
> The two tests (OpenejbJarTest and ConversionTest ) are failing when building the source
code and resulting the BUILD FAILURE.
> Below are the test failure trace .txt  files from container\openejb-jee\target\surefire-reports
dir.
> -------------------------------------------------------------------------------
> Test set: org.apache.openejb.jee.oejb2.OpenejbJarTest
> -------------------------------------------------------------------------------
> Tests run: 5, Failures: 3, Errors: 0, Skipped: 0, Time elapsed: 1.547 sec <<<
FAILURE!
> testValidOpenejbJar(org.apache.openejb.jee.oejb2.OpenejbJarTest)  Time elapsed: 1.047
sec  <<< FAILURE!
> junit.framework.ComparisonFailure: null expected:<...<ns6:default-subject[ xmlns:sys="http://geronimo.apache.org/xml/ns/deployment-1.2">
>             <ns6:realm>foo</ns6:realm>
>             <ns6:id>bar</ns6:id>
>         </ns6:default-subject>
>         <ns6:role-mappings xmlns:sys="http://geronimo.apache.org/xml/ns/deployment-1.2">
>             <ns6:role xmlns:ns10="http://geronimo.apache.org/xml/ns/deployment-1.2"
xmlns="" role-name="r1">
>                 <ns6:realm realm-name="realm">
>                     <ns6:principal class="org.apache.geronimo.security.realm.providers.GeronimoUserPrincipal"
name="foo"/>
>             </ns6:realm>
>           </ns6:role>
>             <ns6:role xmlns:ns10="http://geronimo.apache.org/xml/ns/deployment-1.2"
xmlns="" role-name="r2">
>                 <ns6:realm realm-name="realm">
>                     <ns6:principal class="org.apache.geronimo.security.realm.providers.GeronimoUserPrincipal"
name="bar"/>
>             </ns6:realm>
>           </ns6:role>
>             <ns6:role xmlns:ns10]="http://geronimo.ap...> but was:<...<ns6:default-subject[>
>             <ns6:realm>foo</ns6:realm>
>             <ns6:id>bar</ns6:id>
>         </ns6:default-subject>
>         <ns6:role-mappings>
>             <ns6:role xmlns:ns9="http://geronimo.apache.org/xml/ns/deployment-1.2"
xmlns="" role-name="r1">
>                 <ns6:realm realm-name="realm">
>                     <ns6:principal class="org.apache.geronimo.security.realm.providers.GeronimoUserPrincipal"
name="foo"/>
>             </ns6:realm>
>           </ns6:role>
>             <ns6:role xmlns:ns9="http://geronimo.apache.org/xml/ns/deployment-1.2"
xmlns="" role-name="r2">
>                 <ns6:realm realm-name="realm">
>                     <ns6:principal class="org.apache.geronimo.security.realm.providers.GeronimoUserPrincipal"
name="bar"/>
>             </ns6:realm>
>           </ns6:role>
>             <ns6:role xmlns:ns9]="http://geronimo.ap...>
> 	at junit.framework.Assert.assertEquals(Assert.java:81)
> 	at junit.framework.Assert.assertEquals(Assert.java:87)
> 	at org.apache.openejb.jee.oejb2.OpenejbJarTest.unmarshalAndMarshal(OpenejbJarTest.java:79)
> 	at org.apache.openejb.jee.oejb2.OpenejbJarTest.unmarshalAndMarshal(OpenejbJarTest.java:68)
> 	at org.apache.openejb.jee.oejb2.OpenejbJarTest.testValidOpenejbJar(OpenejbJarTest.java:48)
> testInvalidOpenejbJar(org.apache.openejb.jee.oejb2.OpenejbJarTest)  Time elapsed: 0.062
sec  <<< FAILURE!
> junit.framework.ComparisonFailure: null expected:<...<ns6:default-subject[ xmlns:sys="http://geronimo.apache.org/xml/ns/deployment-1.2">
>             <ns6:realm>foo</ns6:realm>
>             <ns6:id>bar</ns6:id>
>         </ns6:default-subject>
>         <ns6:role-mappings xmlns:sys="http://geronimo.apache.org/xml/ns/deployment-1.2">
>             <ns6:role xmlns:ns10="http://geronimo.apache.org/xml/ns/deployment-1.2"
xmlns="" role-name="r1">
>                 <ns6:realm realm-name="realm">
>                     <ns6:principal class="org.apache.geronimo.security.realm.providers.GeronimoUserPrincipal"
name="foo"/>
>             </ns6:realm>
>           </ns6:role>
>             <ns6:role xmlns:ns10="http://geronimo.apache.org/xml/ns/deployment-1.2"
xmlns="" role-name="r2">
>                 <ns6:realm realm-name="realm">
>                     <ns6:principal class="org.apache.geronimo.security.realm.providers.GeronimoUserPrincipal"
name="bar"/>
>             </ns6:realm>
>           </ns6:role>
>             <ns6:role xmlns:ns10]="http://geronimo.ap...> but was:<...<ns6:default-subject[>
>             <ns6:realm>foo</ns6:realm>
>             <ns6:id>bar</ns6:id>
>         </ns6:default-subject>
>         <ns6:role-mappings>
>             <ns6:role xmlns:ns9="http://geronimo.apache.org/xml/ns/deployment-1.2"
xmlns="" role-name="r1">
>                 <ns6:realm realm-name="realm">
>                     <ns6:principal class="org.apache.geronimo.security.realm.providers.GeronimoUserPrincipal"
name="foo"/>
>             </ns6:realm>
>           </ns6:role>
>             <ns6:role xmlns:ns9="http://geronimo.apache.org/xml/ns/deployment-1.2"
xmlns="" role-name="r2">
>                 <ns6:realm realm-name="realm">
>                     <ns6:principal class="org.apache.geronimo.security.realm.providers.GeronimoUserPrincipal"
name="bar"/>
>             </ns6:realm>
>           </ns6:role>
>             <ns6:role xmlns:ns9]="http://geronimo.ap...>
> 	at junit.framework.Assert.assertEquals(Assert.java:81)
> 	at junit.framework.Assert.assertEquals(Assert.java:87)
> 	at org.apache.openejb.jee.oejb2.OpenejbJarTest.unmarshalAndMarshal(OpenejbJarTest.java:82)
> 	at org.apache.openejb.jee.oejb2.OpenejbJarTest.testInvalidOpenejbJar(OpenejbJarTest.java:52)
> testGeronimoOpenejbXml(org.apache.openejb.jee.oejb2.OpenejbJarTest)  Time elapsed: 0.344
sec  <<< FAILURE!
> junit.framework.ComparisonFailure: null expected:<...    <ns4:openejb-jar[ xmlns:sys="http://geronimo.apache.org/xml/ns/deployment-1.2"]>
> 	</ns4:openejb-jar...> but was:<...    <ns4:openejb-jar[]>
> 	</ns4:openejb-jar...>
> 	at junit.framework.Assert.assertEquals(Assert.java:81)
> 	at junit.framework.Assert.assertEquals(Assert.java:87)
> 	at org.apache.openejb.jee.oejb2.OpenejbJarTest.unmarshalAndMarshal(OpenejbJarTest.java:79)
> 	at org.apache.openejb.jee.oejb2.OpenejbJarTest.unmarshalAndMarshal(OpenejbJarTest.java:68)
> 	at org.apache.openejb.jee.oejb2.OpenejbJarTest.testGeronimoOpenejbXml(OpenejbJarTest.java:56)
> And
> -------------------------------------------------------------------------------
> Test set: org.apache.openejb.jee.oejb2.ConversionTest
> -------------------------------------------------------------------------------
> Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.062 sec <<<
FAILURE!
> testConversion(org.apache.openejb.jee.oejb2.ConversionTest)  Time elapsed: 0.047 sec
 <<< FAILURE!
> junit.framework.ComparisonFailure: null expected:<...<ns6:default-subject[ xmlns:sys="http://geronimo.apache.org/xml/ns/deployment-1.2">
>             <ns6:realm>foo</ns6:realm>
>             <ns6:id>bar</ns6:id>
>         </ns6:default-subject>
>         <ns6:role-mappings xmlns:sys="http://geronimo.apache.org/xml/ns/deployment-1.2">
>             <ns6:role xmlns:ns10="http://geronimo.apache.org/xml/ns/deployment-1.2"
xmlns="" role-name="r1">
>                 <ns6:realm realm-name="realm">
>                     <ns6:principal class="org.apache.geronimo.security.realm.providers.GeronimoUserPrincipal"
name="foo"/>
>             </ns6:realm>
>           </ns6:role>
>             <ns6:role xmlns:ns10="http://geronimo.apache.org/xml/ns/deployment-1.2"
xmlns="" role-name="r2">
>                 <ns6:realm realm-name="realm">
>                     <ns6:principal class="org.apache.geronimo.security.realm.providers.GeronimoUserPrincipal"
name="bar"/>
>             </ns6:realm>
>           </ns6:role>
>             <ns6:role xmlns:ns10]="http://geronimo.ap...> but was:<...<ns6:default-subject[>
>             <ns6:realm>foo</ns6:realm>
>             <ns6:id>bar</ns6:id>
>         </ns6:default-subject>
>         <ns6:role-mappings>
>             <ns6:role xmlns:ns9="http://geronimo.apache.org/xml/ns/deployment-1.2"
xmlns="" role-name="r1">
>                 <ns6:realm realm-name="realm">
>                     <ns6:principal class="org.apache.geronimo.security.realm.providers.GeronimoUserPrincipal"
name="foo"/>
>             </ns6:realm>
>           </ns6:role>
>             <ns6:role xmlns:ns9="http://geronimo.apache.org/xml/ns/deployment-1.2"
xmlns="" role-name="r2">
>                 <ns6:realm realm-name="realm">
>                     <ns6:principal class="org.apache.geronimo.security.realm.providers.GeronimoUserPrincipal"
name="bar"/>
>             </ns6:realm>
>           </ns6:role>
>             <ns6:role xmlns:ns9]="http://geronimo.ap...>
> 	at junit.framework.Assert.assertEquals(Assert.java:81)
> 	at junit.framework.Assert.assertEquals(Assert.java:87)
> 	at org.apache.openejb.jee.oejb2.ConversionTest.testConversion(ConversionTest.java:61)

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


Mime
View raw message