jakarta-cactus-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Davy Toch (JIRA)" <cactus-...@jakarta.apache.org>
Subject [jira] Commented: (CACTUS-246) Jakarta Cactus 1.7.2 won't work with Apache ANT 1.7.0.
Date Fri, 22 Dec 2006 16:22:22 GMT
    [ http://issues.apache.org/jira/browse/CACTUS-246?page=comments#action_12460534 ] 
            
Davy Toch commented on CACTUS-246:
----------------------------------

No, I don't think I had a local classpath issue because I
did the following in DOS:

1. set CLASSPATH=
2. set ANT_HOME=
3. download and unzip fresh copy of Jakarta Cactus 13-1.7.2
4. download and unzip fresh copy of Apache ANT 1.6.5
5. download and unzip fresh copy of Apache ANT 1.7.0

6. go to the subfolder samples/ejb of Jakarta Cactus and type:

6.1 set ANT_HOME=...home of fresh Apache ANT 1.6.5 ...
6.2 %ANT_HOME%\bin\ant -version ---> 1.6.5 OK
6.3 %ANT_HOME%\bin\ant clean test 

    ...\samples\ejb\build.xml:134: taskdef A class needed by
    class org.apache.cactus.integration.ant.CactusTask
    cannot be found: junit/framework/Test

    So junit not found.

6.4 copy junit-3.8.1.jar to %ANT_HOME%\lib
6.5 %ANT_HOME%\bin\ant clean test ---> OK

7. go to the subfolder samples/ejb of Jakarta Cactus and type:

7.1 set ANT_HOME=...home of fresh Apache ANT 1.7.0 ...
7.2 %ANT_HOME%\bin\ant -version ---> 1.7.0 OK
7.3 %ANT_HOME%\bin\ant clean test  ---> NOK

    BUILD FAILED java.lang.NoSuchMethodError:
    org.apache.cactus.integration.ant.CactusTask.
      addClasspathEntry(Ljava/lang/String;)V

Remarks : 
- I tried it with JDK 1.4 and JDK 1.5, but both show the
  same behaviour
- when using ANT 1.6.5, the jar junit 3.8.1 must be copied
  to %ANT_HOME%\lib, because otherwise the following error
  message appears :

    ...\samples\ejb\build.xml:134: taskdef A class needed by
    class org.apache.cactus.integration.ant.CactusTask
    cannot be found: junit/framework/Test

  With ANT 1.7.0, I didn't get this error message, but
  perhaps this is because this error message appears only
  after the following error message:

    BUILD FAILED java.lang.NoSuchMethodError:
    org.apache.cactus.integration.ant.CactusTask.
      addClasspathEntry(Ljava/lang/String;)V


> Jakarta Cactus 1.7.2 won't work with Apache ANT 1.7.0.
> ------------------------------------------------------
>
>                 Key: CACTUS-246
>                 URL: http://issues.apache.org/jira/browse/CACTUS-246
>             Project: Cactus
>          Issue Type: Bug
>          Components: Ant Integration
>    Affects Versions: 1.7.2
>         Environment: - Win XP
> - Apache ANT 1.7.0Beta3
> - JDK 1.5
>            Reporter: Davy Toch
>         Attachments: build-246.patch
>
>
> Doing a quick test with Jakarta Cactus 1.7.2 on the latest beta release of Apache ANT
1.7.0 revealed the following
> error message in Cactus:
> java.lang.NoSuchMethodError: org.apache.cactus.integration.ant.CactusTask.addClasspathEntry(Ljava/lang/String;)V
> Reason: in ant-junit.jar the signature of the method 'addClasspathEntry' of the class
JUnitTask has been modified between ANT 1.6.5 and ANT 1.7.0:
> ANT 1.6.5:
>   protected void addClasspathEntry(String resource)
> ANT 1.7.0:
>   protected boolean addClasspathEntry(String resource)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: cactus-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: cactus-dev-help@jakarta.apache.org


Mime
View raw message