You are viewing a plain text version of this content. The canonical link for it is here.
Posted to general@gump.apache.org by Vincent Massol <vm...@pivolis.com> on 2004/02/21 16:33:59 UTC

FW: [GUMP@lsd]: jakarta-cactus/jakarta-cactus-integration-ant-13 failed

Hi,

I'd like to fix this Cactus build issue that has been happening for 2
weeks now... I need some guidance though. 

The error is a NCDFE (java.lang.NoClassDefFoundError:
org/apache/xml/serialize/OutputFormat) that happens during the junit
unit tests.

The tests are started like this in our Ant build:

    <junit failureproperty="tests.failed" fork="yes">
      <classpath refid="test.classpath"/>
[...]

And test.classpath is:

    <path id="project.classpath">
      <pathelement location="${commons.logging.jar}"/>
      <pathelement location="${xerces.jar}"/>
      <pathelement location="${xmlapis.jar}"/>
    </path>

    <path id="test.classpath">
      <path refid="project.classpath"/>
      <pathelement path="${clover.jar}"/>
      <pathelement location="${junit.jar}"/>
      <pathelement location="${mockobjects.jar}"/>
      <pathelement path="${target.classes.clover.dir}"/>
      <pathelement path="${target.classes.test.dir}"/>
    </path>

The way I undertand Gumpy is that it is started with the
-Dbuild.sysclasspath=only system parameter and thus all classpath
entries are ignored.

This probably means that test.classpath is actually empty.

Now Stefan has added a <sysproperty name="build.clonevm" value="true"/>
property to the Gumpy descriptor for that project. It was supposed to
fix the problem but it didn't somehow.

Do you think it'll help if I add the following to the project.classpath
definition?:

    <path id="project.classpath">
      <pathelement location="${commons.logging.jar}"/>
      <pathelement location="${xerces.jar}"/>
      <pathelement location="${xmlapis.jar}"/>

      <!-- For Gumpy -->
      <pathelement location="${java.class.path}"/>

    </path>

Any idea why build.clonevm is not working as we would have expected?

Thanks
-Vincent


> -----Original Message-----
> From: Vincent Massol [mailto:vmassol@apache.org]
> Sent: 21 February 2004 05:42
> To: cactus-dev@jakarta.apache.org
> Subject: [GUMP@lsd]: jakarta-cactus/jakarta-cactus-integration-ant-13
> failed
> 
> To whom it may engage...
> 
> This is an automated request, but not an unsolicited one. For help
> understanding the request please visit
> http://jakarta.apache.org/gump/nagged.html, and/or contact
> gump@jakarta.apache.org.
> 
> Project jakarta-cactus-integration-ant-13 has an issue affecting it's
> community integration. This issue affects 9 projects, and has been
> outstanding for 7 runs. The current state is 'Failed', for reason
'Build
> Failed'
> 
> Full details are available at:
http://lsd.student.utwente.nl/gump/jakarta-
> cactus/jakarta-cactus-integration-ant-13.html, however some snippets
> follow:
> 
> -  -  -  -  - -- -- ------------------------------------ G U M P
> 
> Gump provided these annotations:
> 
>  - Info - Sole jar [/data3/gump/jakarta-cactus/integration/ant/dist-
> 13/lib/cactus-ant-20040221.jar] identifier set to project name
>  - Info - Dependency on jakarta-servletapi-4 exists, no need to add
for
> property servlet.jar.
>  - Info - Dependency on xml-xerces exists, no need to add for property
> xerces.jar.
>  - Info - Dependency on xml-xerces exists, no need to add for property
> xmlapis.jar.
>  - Error - Failed with reason build failed
>  - Info - Project produces reports
>  - Info - Reports in:
/data3/gump/jakarta-cactus/integration/ant/target-
> 13/doc/test-reports
> 
> 
> -  -  -  -  - -- -- ------------------------------------ G U M P
> Gump performed this work:
> 
> Work Name: build_jakarta-cactus_jakarta-cactus-integration-ant-13
(Type:
> Build)
> State: Failed
> Elapsed: 0 hours, 0 minutes, 38 seconds
> Command Line: java -Djava.awt.headless=true -
> Xbootclasspath/p:/data3/gump/xml-
> xerces2/java/build/xercesImpl.jar:/data3/gump/xml-
> xerces2/java/build/xmlParserAPIs.jar org.apache.tools.ant.Main -
> Dbuild.clonevm=true -Dgump.merge=/data3/gump/gump/work/merge.xml -
> Dbuild.sysclasspath=only -Djunit.jar=/data3/gump/dist/junit/junit.jar
-
> Dxerces.jar=/data3/gump/xml-xerces2/java/build/xercesImpl.jar -
> Dmockobjects.jar=/data3/gump/opt/mockobjects-0.09/mockobjects-core-
> 0.09.jar
-Dservlet.jar=/data3/gump/jakarta-servletapi-4/lib/servlet.jar -
> Dproject.version=20040221 -Dxmlapis.jar=/data3/gump/xml-
> xerces2/java/build/xmlParserAPIs.jar -Dj2ee.jar=/data3/gump/jakarta-
> servletapi-4/lib/servlet.jar
-Dcommons.logging.jar=/data3/gump/jakarta-
> commons/logging/dist/commons-logging.jar -f integration/ant/build.xml
dist
> [Working Directory: /data3/gump/jakarta-cactus]
> ---------------------------------------------
> 
> 
> 
>     [junit] Testsuite:
> org.apache.cactus.integration.ant.container.TestEarParser
>     [junit] Tests run: 2, Failures: 0, Errors: 0, Time elapsed: 0.206
sec
> 
> 
> 
>     [junit] Testsuite:
> org.apache.cactus.integration.ant.deployment.TestApplicationXml
>     [junit] Tests run: 7, Failures: 0, Errors: 0, Time elapsed: 0.129
sec
> 
> 
> 
>     [junit] Testsuite:
> org.apache.cactus.integration.ant.deployment.TestApplicationXmlVersion
>     [junit] Tests run: 8, Failures: 0, Errors: 0, Time elapsed: 0.088
sec
> 
> 
> 
>     [junit] Testsuite:
> org.apache.cactus.integration.ant.deployment.TestJarArchive
>     [junit] Tests run: 5, Failures: 0, Errors: 0, Time elapsed: 0.083
sec
> 
> 
> 
>     [junit] Testsuite:
> org.apache.cactus.integration.ant.deployment.TestWarArchive
>     [junit] Tests run: 3, Failures: 0, Errors: 0, Time elapsed: 0.082
sec
> 
> 
> 
>     [junit] Testsuite:
> org.apache.cactus.integration.ant.deployment.TestWebXml
>     [junit] Tests run: 58, Failures: 0, Errors: 0, Time elapsed: 0.382
sec
> 
> 
> 
>     [junit] Testsuite:
> org.apache.cactus.integration.ant.deployment.TestWebXmlMerger
>     [junit] Tests run: 20, Failures: 0, Errors: 0, Time elapsed: 0.264
sec
> 
> 
> 
>     [junit] Testsuite:
> org.apache.cactus.integration.ant.deployment.TestWebXmlVersion
>     [junit] Tests run: 8, Failures: 0, Errors: 0, Time elapsed: 0.094
sec
> 
> 
> 
> [junitreport] Using Xalan version: Xalan Java 2.4.1
> [junitreport] Transform time: 4390ms
> 
> BUILD FAILED
> /data3/gump/jakarta-cactus/integration/ant/build.xml:336: At least one
> unit test failed!
> 
> Total time: 37 seconds
> ---------------------------------------------
> 
> 
> Work Name: display_file_TEST-
> org.apache.cactus.integration.ant.TestCactifyWarTask.xml (Type:
Document)
> State: Success
> Elapsed: 0 hours, 0 minutes, 0 seconds
> Command Line: cat /data3/gump/jakarta-cactus/integration/ant/target-
> 13/doc/test-reports/TEST-
> org.apache.cactus.integration.ant.TestCactifyWarTask.xml
> ---------------------------------------------
> 	at
>
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:
> 39)
> 	at
>
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Im
> pl.java:25)
> Caused by: java.lang.NoClassDefFoundError:
> org/apache/xml/serialize/OutputFormat
> 	at
>
org.apache.cactus.integration.ant.deployment.WebXmlIo.writeWebXml(WebXml
Io
> .java:262)

[snip]