Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <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>
- <taskdef resource="net/sf/antcontrib/antcontrib.properties">
- <classpath>
- <pathelement location="D:\Apache\apache-ant-1.5.2\lib\ant-contrib-0.3.jar"/>
- </classpath>
- </taskdef>
- <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"/>
- <target name="deploy-webapp" description="Install application in Tomcat">
- <install url="${tomcat.manager.url}"
- username="${tomcat.manager.username}"
- password="${tomcat.manager.password}"
- war="${name}" />
- </target>
- Buildfile: build.xml
- deploy-webapp:
- BUILD FAILED
- file:D:/workspace_eclipse/springapp/build.xml:98: Could not create task or type of type: install.
- Ant could not find the task or a class this task relies upon.
- This is common and has a number of causes; the usual
- solutions are to read the manual pages then download and
- install needed JAR files, or fix the build file:
- - You have misspelt 'install'.
- Fix: check your spelling.
- - The task needs an external JAR file to execute
- and this is not found at the right place in the classpath.
- Fix: check the documentation for dependencies.
- Fix: declare the task.
- - The task is an Ant optional task and optional.jar is absent
- Fix: look for optional.jar in ANT_HOME/lib, download if needed
- - The task was not built into optional.jar as dependent
- libraries were not found at build time.
- Fix: look in the JAR to verify, then rebuild with the needed
- libraries, or download a release version from apache.org
- - The build file was written for a later version of Ant
- Fix: upgrade to at least the latest release version of Ant
- - The task is not an Ant core or optional task
- and needs to be declared using <taskdef>.
- Remember that for JAR files to be visible to Ant tasks implemented
- in ANT_HOME/lib, the files must be in the same directory or on the
- classpath
- Please neither file bug reports on this problem, nor email the
- Ant mailing lists, until all of these causes have been explored,
- as this is not an Ant bug.
- Total time: 0 seconds
- D:workspace_eclipsespringapp>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement