Ant newbie question

Discussion in 'Java' started by jose luis fernandez diaz, Feb 16, 2004.

  1. Hi,

    I have download 'jwstutorial13' from sun site. I am trying to buid an
    example:

    sqocfms01:jdiaz:gs>pwd
    /tmp/jwstutorial13/examples/gs
    sqocfms01:jdiaz:gs>ls -1
    build.properties
    build.xml
    src
    web


    but when I run 'ant' I get the next error message:

    sqocfms01:jdiaz:gs>ant
    Searching for build.xml ...
    Buildfile: /cluster/members/member0/tmp/jwstutorial13/examples/gs/build.xml

    BUILD FAILED

    /cluster/members/member0/tmp/jwstutorial13/examples/gs/build.xml:1:
    taskdef class org.apache.catalina.ant.ListTask cannot be found
    java.lang.ClassNotFoundException: org.apache.catalina.ant.ListTask
    at java.net.URLClassLoader$1.run (URLClassLoader.java:195) (pc
    69)
    at java.security.AccessController.doPrivileged(java.security.PrivilegedExceptionAc
    tion,java.security.AccessControlContext) (AccessController.java)
    at java.net.URLClassLoader.findClass (URLClassLoader.java:183)
    (pc 13)
    at java.lang.ClassLoader.loadClass(java.lang.String,boolean)
    (ClassLoader.java:306
    ) (pc 43)
    at sun.misc.Launcher$AppClassLoader.loadClass
    (Launcher.java:281) (pc 36)
    at java.lang.ClassLoader.loadClass(java.lang.String)
    (ClassLoader.java:262) (pc 3)
    at org.apache.tools.ant.taskdefs.Taskdef.execute
    (Taskdef.java:111) (pc 82)
    at org.apache.tools.ant.ProjectHelper$TaskHandler.init
    (ProjectHelper.java:417) (p
    c 196)
    at org.apache.tools.ant.ProjectHelper$ProjectHandler.handleTaskdef
    (ProjectHelper.
    java:292) (pc 15)
    at org.apache.tools.ant.ProjectHelper$ProjectHandler.startElement
    (ProjectHelper.j
    ava:279) (pc 12)
    at com.sun.xml.parser.Parser.maybeElement (Parser.java:1391)
    (pc 645)
    at com.sun.xml.parser.Parser.content (Parser.java:1499) (pc
    14)
    at com.sun.xml.parser.Parser.externalParsedEntity
    (Parser.java:2464) (pc 39)
    at com.sun.xml.parser.Parser.expandEntityInContent
    (Parser.java:2214) (pc 264)
    at com.sun.xml.parser.Parser.maybeReferenceInContent
    (Parser.java:2090) (pc 54)
    at com.sun.xml.parser.Parser.content (Parser.java:1549) (pc
    240)
    at com.sun.xml.parser.Parser.maybeElement (Parser.java:1400)
    (pc 677)
    at com.sun.xml.parser.Parser.parseInternal (Parser.java:492)
    (pc 112)
    at com.sun.xml.parser.Parser.parse(org.xml.sax.InputSource)
    (Parser.java:284) (pc
    6)
    at javax.xml.parsers.SAXParser.parse(org.xml.sax.InputSource,org.xml.sax.HandlerBa
    se) (SAXParser.java:155) (pc 53)
    at javax.xml.parsers.SAXParser.parse(java.io.File,org.xml.sax.HandlerBase)
    (SAXPar
    ser.java:126) (pc 65)
    at org.apache.tools.ant.ProjectHelper.parse
    (ProjectHelper.java:104) (pc 28)
    at org.apache.tools.ant.ProjectHelper.configureProject
    (ProjectHelper.java:85) (pc
    9)
    at org.apache.tools.ant.Main.runBuild (Main.java:402) (pc
    144)
    at org.apache.tools.ant.Main.main (Main.java:149) (pc
    24)

    Total time: 0 seconds



    My ant version is:

    sqocfms01:jdiaz:gs>ant -version
    Ant version 1.2 compiled on October 24 2000


    I have instaled tomcat in the path:

    /APACHE/WEBCFMS/jakarta-tomcat-3.2.3


    My java version is:

    sqocfms01:jdiaz:java131>pwd
    /usr/opt/java131
    sqocfms01:jdiaz:java131>java -version
    java version "1.3.1"
    Java(TM) 2 Runtime Environment, Standard Edition
    Fast VM (build 1.3.1-3, native threads, mixed mode, 04/30/2002-12:03)



    Any hint ?


    Thanks,
    Jose Luis.
    jose luis fernandez diaz, Feb 16, 2004
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Chris Bedford
    Replies:
    6
    Views:
    2,238
  2. jose luis fernandez diaz

    Ant newbie question

    jose luis fernandez diaz, Feb 16, 2004, in forum: Java
    Replies:
    1
    Views:
    480
    Darren Davison
    Feb 17, 2004
  3. john martin
    Replies:
    2
    Views:
    2,216
    john martin
    Apr 7, 2005
  4. Replies:
    1
    Views:
    504
    Larry
    Mar 7, 2006
  5. Replies:
    6
    Views:
    872
Loading...

Share This Page