Advertisement
Guest User

Untitled

a guest
Mar 29th, 2016
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.17 KB | None | 0 0
  1. <path id="catalina-ant-classpath">
  2. <fileset dir="${appserver.lib}">
  3. <include name="catalina-ant.jar" />
  4. <include name="tomcat-coyote.jar"/>
  5. <include name="tomcat-util.jar"/>
  6. </fileset>
  7. <fileset dir="${appserver.home}/bin">
  8. <include name="tomcat-juli.jar"/>
  9. </fileset>
  10. </path>
  11.  
  12. <taskdef resource="net/sf/antcontrib/antcontrib.properties">
  13. <classpath>
  14. <pathelement location="D:\Apache\apache-ant-1.5.2\lib\ant-contrib-0.3.jar"/>
  15. </classpath>
  16. </taskdef>
  17. <taskdef name="catalina-deploy" classname="org.apache.catalina.ant.DeployTask" classpathref="catalina-ant-classpath"/>
  18. <taskdef name="catalina-list" classname="org.apache.catalina.ant.ListTask" classpathref="catalina-ant-classpath"/>
  19. <taskdef name="catalina-reload" classname="org.apache.catalina.ant.ReloadTask" classpathref="catalina-ant-classpath"/>
  20. <taskdef name="catalina-findleaks" classname="org.apache.catalina.ant.FindLeaksTask" classpathref="catalina-ant-classpath"/>
  21. <taskdef name="catalina-resources" classname="org.apache.catalina.ant.ResourcesTask" classpathref="catalina-ant-classpath"/>
  22. <taskdef name="catalina-start" classname="org.apache.catalina.ant.StartTask" classpathref="catalina-ant-classpath"/>
  23. <taskdef name="catalina-stop" classname="org.apache.catalina.ant.StopTask" classpathref="catalina-ant-classpath"/>
  24. <taskdef name="catalina-undeploy" classname="org.apache.catalina.ant.UndeployTask" classpathref="catalina-ant-classpath"/>
  25.  
  26. <target name="deploy-webapp" description="Install application in Tomcat">
  27. <install url="${tomcat.manager.url}"
  28. username="${tomcat.manager.username}"
  29. password="${tomcat.manager.password}"
  30. war="${name}" />
  31. </target>
  32.  
  33. Buildfile: build.xml
  34.  
  35. deploy-webapp:
  36.  
  37. BUILD FAILED
  38. file:D:/workspace_eclipse/springapp/build.xml:98: Could not create task or type of type: install.
  39.  
  40. Ant could not find the task or a class this task relies upon.
  41.  
  42. This is common and has a number of causes; the usual
  43. solutions are to read the manual pages then download and
  44. install needed JAR files, or fix the build file:
  45. - You have misspelt 'install'.
  46. Fix: check your spelling.
  47. - The task needs an external JAR file to execute
  48. and this is not found at the right place in the classpath.
  49. Fix: check the documentation for dependencies.
  50. Fix: declare the task.
  51. - The task is an Ant optional task and optional.jar is absent
  52. Fix: look for optional.jar in ANT_HOME/lib, download if needed
  53. - The task was not built into optional.jar as dependent
  54. libraries were not found at build time.
  55. Fix: look in the JAR to verify, then rebuild with the needed
  56. libraries, or download a release version from apache.org
  57. - The build file was written for a later version of Ant
  58. Fix: upgrade to at least the latest release version of Ant
  59. - The task is not an Ant core or optional task
  60. and needs to be declared using <taskdef>.
  61.  
  62. Remember that for JAR files to be visible to Ant tasks implemented
  63. in ANT_HOME/lib, the files must be in the same directory or on the
  64. classpath
  65.  
  66. Please neither file bug reports on this problem, nor email the
  67. Ant mailing lists, until all of these causes have been explored,
  68. as this is not an Ant bug.
  69.  
  70. Total time: 0 seconds
  71. D:workspace_eclipsespringapp>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement