Results 1 to 11 of 11
  1. #1
    Abder-Rahman is offline Member
    Join Date
    Oct 2008
    Posts
    32
    Rep Power
    0

    Default How can I fix this error?

    When I tried to build the XML file that I have in order to get the HSQLDB interface running I got the following error:

    Buildfile: build.xml

    BUILD FAILED
    /Users/abder-rahmanali/Desktop/Hibernate/build.xml:11: The following error occurred while executing this line:
    jar:file:/System/Library/Java/Extensions/maven-ant-tasks-2.0.9.jar!/org/apache/maven/artifact/ant/antlib.xml:4: taskdef A class needed by class org.apache.maven.artifact.ant.DependenciesTask cannot be found: org/apache/tools/ant/Task

    Any ideas?

    Thanks.

  2. #2
    Steve11235's Avatar
    Steve11235 is offline Senior Member
    Join Date
    Dec 2008
    Posts
    1,046
    Rep Power
    7

    Default

    Sounds like a JAR file is missing from the classpath...

  3. #3
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,371
    Blog Entries
    1
    Rep Power
    20

    Default

    Yes, seems to me that external package org.apache.maven.artifact.ant.DependenciesTask is missing.

  4. #4
    Abder-Rahman is offline Member
    Join Date
    Oct 2008
    Posts
    32
    Rep Power
    0

    Default

    I got it fixed.

    I moved the Maven Ant Tasks JAR file to the "lib" directory of Ant. But, the issue was is that my MAC OS X Leopard comes built in with "Ant", and it is where I have to move the JAR file, not to the Ant version that I installed.

    Thanks.

  5. #5
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,371
    Blog Entries
    1
    Rep Power
    20

    Default

    If you are using external jar files, better to locate them in separate folder location, may be within the project folder itself. However in most of the cases, if you are adding them through an IDE, jar files are located in lib folder anyway.

  6. #6
    Abder-Rahman is offline Member
    Join Date
    Oct 2008
    Posts
    32
    Rep Power
    0

    Default

    I was using the "Terminal" on iMac actually.

  7. #7
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,371
    Blog Entries
    1
    Rep Power
    20

  8. #8
    Abder-Rahman is offline Member
    Join Date
    Oct 2008
    Posts
    32
    Rep Power
    0

    Default

    Yes, through it. And, I just wrote why I was having the problem. So, it got fixed.

  9. #9
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,371
    Blog Entries
    1
    Rep Power
    20

    Default

    Yes Abder, I see your question and how you fix it. I just want to clarify that terminal can added jar into the correct location or not. As you said into the lib.

  10. #10
    Abder-Rahman is offline Member
    Join Date
    Oct 2008
    Posts
    32
    Rep Power
    0

    Default

    Yes, I could add it.

    Just used the "mv" command.

  11. #11
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,371
    Blog Entries
    1
    Rep Power
    20

Similar Threads

  1. Replies: 3
    Last Post: 01-23-2009, 09:53 AM
  2. error 530 error authentication required
    By rgale in forum JavaServer Pages (JSP) and JSTL
    Replies: 0
    Last Post: 05-12-2008, 05:28 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •