jakarta-cactus-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Franck DARRAS <...@sylob.com>
Subject NewBie - Cactus integrated Ant
Date Wed, 16 Jun 2004 14:03:31 GMT
Hi,

I'm a new player of Cactus and use ant to run unit Test

My plate-form is
    Eclipse 2.1.3
    Ant 1.6.1
    Cactus 1.6.1

When i use Ant, i obtain this error :
BUILD FAILED: java.lang.NoClassDefFoundError: 
javax/xml/transform/URIResolver

I found nothing on google with this message and Cactus.

When i launch Ant with the mode debug, i obtain this folowinng log. You 
can see a message " Could not load a dependent class 
(javax/xml/transform/URIResolver) for type style"

Do you have any idea about my problem.

Tks for you Help

Franck

Apache Ant version 1.6.1 compiled on February 12 2004
Apache Ant version 1.6.1 compiled on February 12 2004
[..]
 +Target:
Adding reference: cactus.classpath
 +Target: init
 +Target: test
Setting project property: aspectjrt.jar -> XXX\lib\aspectjrt.jar
Setting project property: cactus.jar -> XXX\lib\cactus.jar
Setting project property: cactus.ant.jar -> XXX\lib\cactus-ant-13-1.6.1.jar
Setting project property: commons.httpclient.jar -> 
XX\lib\commons-httpclient.jar
Setting project property: commons.logging.jar -> XXX\lib\commons-logging.jar
Setting project property: httpunit.jar -> XXX\lib\httpunit.jar
Setting project property: junit.jar -> XXX\lib\junit.jar
Setting project property: cactus.properties.path -> 
XXXclasses\cactus.properties
Could not load a dependent class 
(com/sun/media/jai/codec/FileSeekableStream) for type image
Could not load a dependent class (com/jcraft/jsch/UserInfo) for type sshexec
Could not load a dependent class (javax/xml/transform/URIResolver) for 
type style
Could not load a dependent class (com/jcraft/jsch/UserInfo) for type scp
Could not load a dependent class (org/apache/commons/net/SocketClient) 
for type rexec
Adding reference: cactus.classpath
Arguments: -v -debug 
-Dorg.eclipse.ui.externaltools.ATTR_ANT_PROCESS_ID=1087393910507
Build sequence for target `init' is [init]
Complete build sequence is [init, test, ]

init:
Adding reference: eclipse.progress.monitor
Class org.apache.cactus.integration.ant.CactifyWarTask loaded from 
parent loader (parentFirst)
 +Datatype cactifywar org.apache.cactus.integration.ant.CactifyWarTask
Class org.apache.cactus.integration.ant.RunServerTestsTask loaded from 
parent loader (parentFirst)
 +Datatype runservertests 
org.apache.cactus.integration.ant.RunServerTestsTask
Class org.apache.cactus.integration.ant.WebXmlMergeTask loaded from 
parent loader (parentFirst)
 +Datatype webxmlmerge org.apache.cactus.integration.ant.WebXmlMergeTask
Class org.apache.cactus.integration.ant.CactusTask loaded from parent 
loader (parentFirst)
 +Datatype cactus org.apache.cactus.integration.ant.CactusTask
Adding reference: eclipse.progress.monitor
Setting project property: DSTAMP -> 20040616
Setting project property: TSTAMP -> 1551
Setting project property: TODAY -> June 16 2004
Build sequence for target `test' is [init, test]
Complete build sequence is [init, test, ]

init:
Adding reference: eclipse.progress.monitor
Adding reference: eclipse.progress.monitor
Override ignored for property DSTAMP
Override ignored for property TSTAMP
Override ignored for property TODAY

test:
Adding reference: eclipse.progress.monitor
BUILD FAILED: java.lang.NoClassDefFoundError: 
javax/xml/transform/URIResolver
Total time: 921 milliseconds

My build file is :

<project name="Test" default="init" basedir=".">

  <!-- Libraries required for the Cactus tests -->
  <property name="aspectjrt.jar" location="XXX/lib/aspectjrt.jar"/>
  <property name="cactus.jar" location="XXX/lib/cactus.jar"/>
  <property name="cactus.ant.jar" 
location="XX/lib/cactus-ant-13-1.6.1.jar"/>
  <property name="commons.httpclient.jar" 
location="XXX/lib/commons-httpclient.jar"/>
  <property name="commons.logging.jar" 
location="XXX/lib/commons-logging.jar"/>
  <property name="httpunit.jar" location="XX/lib/httpunit.jar"/>
  <property name="junit.jar" location="XXX/lib/junit.jar"/>
  <property name="cactus.properties.path" 
location="XXX/classes/cactus.properties"/>
  <path id="cactus.classpath">
    <pathelement location="${aspectjrt.jar}"/>
    <pathelement location="${cactus.jar}"/>
    <pathelement location="${cactus.ant.jar}"/>
    <pathelement location="${commons.httpclient.jar}"/>
    <pathelement location="${commons.logging.jar}"/>
    <pathelement location="${junit.jar}"/>
  </path>

    <target name="init">
        <taskdef resource="cactus.tasks" classpathref="cactus.classpath"/>
        <tstamp/>
    </target>

    <target name="test" depends="init">

    <!-- Cactify the web-app archive -->
    <cactifywar srcfile="XXX/webapps/dvdlibcactus.war"
        destfile="new.war"
        mergewebxml="./WEB-INF/Web.xml">
    </cactifywar>

  </target>
</project>

-- 
*Franck DARRAS
*

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message