DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://nagoya.apache.org/bugzilla/show_bug.cgi?id=21635>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=21635 AntClassLoader Constructor fails to initialize parent classloader Summary: AntClassLoader Constructor fails to initialize parent classloader Product: Ant Version: 1.5.2 Platform: All OS/Version: Other Status: NEW Severity: Normal Priority: Other Component: Core AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] CC: [EMAIL PROTECTED] In attempting to use custom Ant tasks with Jaxb in then I was unable get the correct class loader in the task as method: (Call stack at the end) public AntClassLoader(Project project, Path classpath, boolean parentFirst) { this(null,project, classpath, parentFirst); } does not pass the classloader on to the next constructor. I changed the call to the following and rebuilt and this fixed my problem: public AntClassLoader(Project project, Path classpath, boolean parentFirst) { this(project.getCoreLoader(), project, classpath, parentFirst); } Call Stack: AntClassLoader.<init>(Project, Path, boolean) line: 340 Taskdef(Definer).createLoader() line: 275 Taskdef(Definer).execute() line: 151 Taskdef(Task).perform() line: 341 Target.execute() line: 309 Target.performTasks() line: 336 Project.executeTarget(String) line: 1339 Project.executeTargets(Vector) line: 1255 Maybe I am not using ant the way it was designed to be used? Hope this is helpful, ant is the greatest! --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]