DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUGĀ· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://issues.apache.org/bugzilla/show_bug.cgi?id=43982>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED ANDĀ· INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=43982 Summary: please provide class-path if a taskdef fails load Product: Ant Version: 1.7.0 Platform: PC OS/Version: other Status: NEW Severity: normal Priority: P2 Component: Core AssignedTo: dev@ant.apache.org ReportedBy: [EMAIL PROTECTED] on a recently "yasted" SuSE installation, we cannot run tasks we otherwise can run on all other linuxes and Windows. The ant-contrib.jar for example is correctly to be found in ${ant.home}/lib and does contain the file the ant-output complains about below. We probably could be helped if the org.apache.tools.ant.taskdefs.Definer.addDefinition method in the case of failure tells us where it is searching. A method like the one next would help a lot here! Since we did a chmod 777 on the concerned jar, permissions most likely is not the reason... public String getClassLoaderInfo(ClassLoader cl) { StringBuffer extraInfo = new StringBuffer(); extraInfo.append(cl.getClass().getName() + ": "); if (cl instanceof URLClassLoader) { URLClassLoader ucl = (URLClassLoader) cl; URL[] urls = ucl.getURLs(); if (null == urls || 0 == urls.length) { extraInfo.append("null == urls"); } else { int i = 0; for (i = 0; i < urls.length; i++) { URL url = urls[i]; extraInfo.append(url.toString()).append(",\n"); } log.debug(i + " elements in class path"); } } or is the problem related to bug 43888 Jan:~/s/> ant -debug -v Apache Ant version 1.7.0 compiled on September 22 2007 Apache Ant version 1.7.0 compiled on September 22 2007 Buildfile: build.xml Detected Java version: 1.5 in: /usr/lib/jvm/java-1.5.0-sun-1.5.0_update12/jre Detected OS: Linux parsing buildfile /home/jan/build.xml with URI = file:/home/jan/build.xml Project base dir set to: /home/jan [antlib:org.apache.tools.ant] Could not load definitions from resource org/apache/tools/ant/antlib.xml. It could not be found. [taskdef] Could not load definitions from resource net/sf/antcontrib/antcontrib.properties. It could not be found. BUILD FAILED /home/jan/build.xml:13: taskdef class fmpp.tools.AntTask cannot be found at org.apache.tools.ant.taskdefs.Definer.addDefinition(Definer.java:609) at org.apache.tools.ant.taskdefs.Definer.execute(Definer.java:228) at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:105) at org.apache.tools.ant.Task.perform(Task.java:348) at org.apache.tools.ant.Target.execute(Target.java:357) at org.apache.tools.ant.helper.ProjectHelper2.parse(ProjectHelper2.java:140) at org.apache.tools.ant.ProjectHelper.configureProject(ProjectHelper.java:96) at org.apache.tools.ant.Main.runBuild(Main.java:683) at org.apache.tools.ant.Main.startAnt(Main.java:199) at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257) at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104) -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]