Mailinglist Archive: opensuse-bugs (7967 mails)

< Previous Next >
[Bug 242099] New: Ant with Tomcat 5.0 - Custom Ant Tasks not configured properly
  • From: bugzilla_noreply@xxxxxxxxxx
  • Date: Mon, 5 Feb 2007 03:06:11 -0700 (MST)
  • Message-id: <bug-242099-21960@xxxxxxxxxxxxxxxxxxxxxxxxx/>
https://bugzilla.novell.com/show_bug.cgi?id=242099

Summary: Ant with Tomcat 5.0 - Custom Ant Tasks not configured
properly
Product: openSUSE 10.2
Version: Final
Platform: x86
OS/Version: Other
Status: NEW
Severity: Normal
Priority: P5 - None
Component: Java
AssignedTo: dbornkessel@xxxxxxxxxx
ReportedBy: surfari@xxxxxxxxxx
QAContact: qa@xxxxxxx


Normally to use Tomcat Custom Ant tasks such as Deploy you have to do as the
instructions say in the example Tomcat build.xml file:

"Copy the file "server/lib/catalina-ant.jar" from your Tomcat 5
installation into the "lib" directory of your Ant installation"

For OpenSuse 10,.2 this would translate as putting a link
"/usr/share/tomcat5/server/lib/catalina-ant5.jar" into "/usr/share/ant/lib"

All catalina-ant simlinks apparently point to
"/usr/share/java/catalina-ant-5.0.30.jar"
I even put a copy into "usr/shar/java/ant"

Anyway Ant cannot seem to find ANY of these and fails to work on a standard
build.xml file for servlets / jsps etc. Error=
"taskdef class org.apache.catalina.ant.DeployTask cannot be found"

Can be fixed if a specific classpath is added to the taskdef.

<taskdef name="deploy" classpath="/usr/share/java/catalina-ant5.jar"
classname="org.apache.catalina.ant.DeployTask"/>

But this can't be right surely...? What is etc/ant.conf all about...?


--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.

< Previous Next >