Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8436719
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T07:15:32+00:00 2026-06-10T07:15:32+00:00

In Eclipse I am getting 5 warnings for my build.xml: taskdef class.org.apache.catalina.ant.InstallTask cannot be

  • 0

In Eclipse I am getting 5 warnings for my build.xml:

taskdef class.org.apache.catalina.ant.InstallTask cannot be found
taskdef class.org.apache.catalina.ant.ListTaskcannot be found
taskdef class.org.apache.catalina.ant.ReloadTaskcannot be found
taskdef class.org.apache.catalina.ant.StartTask cannot be found
taskdef class.org.apache.catalina.ant.StopTask cannot be found

I’ve set up the following system environment variables (Windows 7)

ANT_HOME: C:\apache-ant-1.8.4
CATALINA_HOME: C:\apache-tomcat-7.0.29
JAVA_HOME: C:\Program Files\Java\jdk1.6.0_34
and have added %ANT_HOME%/bin to PATH

edit: I’ve also added catalina-ant.jar into C:\apache-ant-1.8.4\lib

More parts of the code:

<!-- We need the Catalina jars for Tomcat -->
<!--  * for other app servers - check the docs -->
<fileset dir="${appserver.lib}">
    <include name="catalina-ant.jar"/>
</fileset>
</path>

<taskdef name="install" classname="org.apache.catalina.ant.InstallTask">
    <classpath refid="catalina-ant-classpath"/>
</taskdef>
<taskdef name="reload" classname="org.apache.catalina.ant.ReloadTask">
    <classpath refid="catalina-ant-classpath"/>
</taskdef>
<taskdef name="list" classname="org.apache.catalina.ant.ListTask">
    <classpath refid="catalina-ant-classpath"/>
</taskdef>
<taskdef name="start" classname="org.apache.catalina.ant.StartTask">
    <classpath refid="catalina-ant-classpath"/>
</taskdef>
<taskdef name="stop" classname="org.apache.catalina.ant.StopTask">
    <classpath refid="catalina-ant-classpath"/>
</taskdef>

What’s wrong?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T07:15:34+00:00Added an answer on June 10, 2026 at 7:15 am

    I think only mentioning the CATALINA_HOME does not work. You need to put the catalina-ant jars to the Ant’s class path. In tomcat 7, there 4 jars for this purpose while there was only single jar for this in earlier versions. Please follow this link.

    As quoted from the link,

    To start with, make sure Tomcat manager is configured for use by
    Catalina-Ant. Make sure that manager-script is included in the roles
    for one of the users in TOMCAT_HOME/conf/tomcat-users.xml. For
    example:

    <tomcat-users>
        <user name="admin" password="s3cr£t" roles="manager-gui,manager-script"/>
    </tomcat-users>
    

    Catalina-Ant for Tomcat 6 was encapsulated within a single JAR file.
    Catalina-Ant for Tomcat 7 requires four JAR files. One from
    TOMCAT_HOME/bin:

    tomcat-juli.jar
    

    and three from TOMCAT_HOME/lib:

    catalina-ant.jar
    tomcat-coyote.jar
    tomcat-util.jar
    

    There are at least three ways of making the JARs available to Ant:

    • Copy the JARs into the ANT_HOME/lib folder. Then Ant will just find them.
    • Copy the JARs to a folder within your project that you check into your source control system. Ant then needs a path id to find them:
    <path id="catalina-ant-classpath">
       <fileset dir="${catalina-ant-dir}">
          <include name="catalina-ant.jar"/>
          <include name="tomcat-coyote.jar"/>
          <include name="tomcat-util.jar"/>
          <include name="tomcat-juli.jar"/>
       </fileset>
    </path>
    

    Where catalina-ant-dir is the directory with the JARs in. This way you
    don’t need to modify the Ant installation on every machine you build
    on. Access the JARs directly from your Tomcat 7 installation. Ant then
    needs a path id to find them:

    <path id="catalina-ant-classpath">
        <fileset dir="${appserver.lib}">
               <include name="catalina-ant.jar"/>
               <include name="tomcat-coyote.jar"/>
               <include name="tomcat-util.jar"/>
            </fileset>
        <fileset dir="${appserver.home}/bin">
                   <include name="tomcat-juli.jar"/>
        </fileset>
    </path>
    

    Where appserver.lib is the path to Tomcat 7’s lib directory and
    appserver.home is the path to Tomcat’s top level installed directory.
    This way Tomcat 7 is required on every box you build on.

    My personal preference is for 2 above.

    Now that your Ant script can see the Catalina-Ant JARs you need to
    tell it what tasks are available. These are most if not all of the
    tasks that are available to Ant.

    <taskdef name="catalina-deploy" classname="org.apache.catalina.ant.DeployTask" classpathref="catalina-ant-classpath"/>
    <taskdef name="catalina-list" classname="org.apache.catalina.ant.ListTask" classpathref="catalina-ant-classpath"/>
    <taskdef name="catalina-reload" classname="org.apache.catalina.ant.ReloadTask" classpathref="catalina-ant-classpath"/>
    <taskdef name="catalina-findleaks" classname="org.apache.catalina.ant.FindLeaksTask" classpathref="catalina-ant-classpath"/>
    <taskdef name="catalina-resources" classname="org.apache.catalina.ant.ResourcesTask" classpathref="catalina-ant-classpath"/>
    <taskdef name="catalina-start" classname="org.apache.catalina.ant.StartTask" classpathref="catalina-ant-classpath"/>
    <taskdef name="catalina-stop" classname="org.apache.catalina.ant.StopTask" classpathref="catalina-ant-classpath"/>
    <taskdef name="catalina-undeploy" classname="org.apache.catalina.ant.UndeployTask" classpathref="catalina-ant-classpath"/>
    

    Finally you need a set of tasks that actually do the work. Although, as you can see above, there are a few tasks I only tend to use the following ones:

    <target name = "stop-webapp">
           <catalina-stop url="${tomcat.manager.url}"
                             username="${tomcat.username}"
                             password="${tomcat.password}"
                             path="/${webapp.name}"
                             failonerror="false"/>
    </target>
    
    <target name = "start-webapp">
        <catalina-start url="${tomcat.manager.url}"
                           username="${tomcat.username}"
                           password="${tomcat.password}"
                           path="/${webapp.name}"/>
    </target>
    
    <target name = "undeploy-webapp">
        <catalina-undeploy url="${tomcat.manager.url}"
                              username="${tomcat.username}"
                              password="${tomcat.password}"
                              path="/${webapp.name}"
                              failonerror="false"/>
    </target>
    
    <target name = "deploy-webapp">
        <catalina-deploy url="${tomcat.manager.url}"
                            username="${tomcat.username}"
                            password="${tomcat.password}"
                            path="/${webapp.name}"
                            war="file:${war.file}"/>
    </target>
    

    tomcat.manager.url is the URL where Tomcat manager lives. This is
    another of the changes from Tomcat 6 to Tomcat 7. Usually this will
    be: http://:8080/manager/text.

    Tomcat.username and Tomcat.password are the user name and password
    for Tomcat manager.

    webapp.name is the name of the Tomcat application that you are
    deploying.

    war.file is the path the Tomcat application you are deploying’s WAR
    file.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I keep getting warnings in Eclipse for hard-coding strings in my Android XML layout,
I am running the following code in eclipse but getting a class not found
I am getting the following build error- BUILD FAILED C:\eclipse\workspace\ContinuousTesting\build.xml:55: C:\eclipse\workspace\ContinuousTesting\${lib.dir} Here is the
I'm getting this warning in Eclipse: Classpath entry org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER will not be exported or
In Eclipse, I'm getting warnings for not having a start tag ( <div> )
I'm trying to run a headless eclipse build but I'm getting stuck. My context
I'm often getting the warning in Eclipse: No grammar constraints (DTD or XML schema)
I am getting this warning in Eclipse: NLS missing message: CANNOT_FIND_FACELET_TAGLIB in: org.eclipse.jst.jsf.core.validation.internal.facelet.messages ICEfacesPage1.xhtml
I am getting a warning in eclipse (the most recent version) for the following
So working on getting my eclipse IDE going so I can develop my arduino

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.