Debian Bug report logs - #446438
eclipse-jdt: ant editor can not open build.xml

version graph

Package: eclipse-jdt; Maintainer for eclipse-jdt is Debian Orbital Alignment Team <pkg-java-maintainers@lists.alioth.debian.org>; Source for eclipse-jdt is src:eclipse (PTS, buildd, popcon).

Reported by: darren <darren.hoo@gmail.com>

Date: Sat, 13 Oct 2007 02:36:02 UTC

Severity: important

Found in version eclipse/3.2.2-4

Fixed in version 3.4.1-1

Done: Niels Thykier <niels@thykier.net>

Bug is archived. No further changes may be made.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, Debian Java Maintainers <pkg-java-maintainers@lists.alioth.debian.org>:
Bug#446438; Package eclipse-jdt. (full text, mbox, link).


Acknowledgement sent to darren <darren.hoo@gmail.com>:
New Bug report received and forwarded. Copy sent to Debian Java Maintainers <pkg-java-maintainers@lists.alioth.debian.org>. (full text, mbox, link).


Message #5 received at submit@bugs.debian.org (full text, mbox, reply):

From: darren <darren.hoo@gmail.com>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: eclipse-jdt: ant editor can not open build.xml
Date: Sat, 13 Oct 2007 10:34:20 +0800
Package: eclipse-jdt
Version: 3.2.2-4
Severity: important

when I using ant editor to open a build.xml which is not empty.It fails
to open
Error Log is :

java.lang.NoClassDefFoundError: org/apache/tools/ant/Main
	at org.apache.tools.ant.Project.initProperties(Project.java:308)
	at org.apache.tools.ant.Project.init(Project.java:295)
	at org.eclipse.ant.internal.ui.model.AntModelProject.init(AntModelProject.java:105)
	at org.eclipse.ant.internal.ui.model.AntModel.initializeProject(AntModel.java:367)
	at org.eclipse.ant.internal.ui.model.AntModel.prepareForFullParse(AntModel.java:341)
	at org.eclipse.ant.internal.ui.model.AntModel.parseDocument(AntModel.java:305)
	at org.eclipse.ant.internal.ui.model.AntModel.reconcile(AntModel.java:263)
	at org.eclipse.ant.internal.ui.model.AntModel.updateMarkers(AntModel.java:1546)
	at org.eclipse.ant.internal.ui.editor.AntEditor.doSave(AntEditor.java:1178)
	at org.eclipse.ui.internal.SaveableHelper$1.run(SaveableHelper.java:130)
	at org.eclipse.ui.internal.SaveableHelper$4.run(SaveableHelper.java:257)
	at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:369)
	at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:313)
	at org.eclipse.jface.window.ApplicationWindow$1.run(ApplicationWindow.java:763)
	at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:67)
	at org.eclipse.jface.window.ApplicationWindow.run(ApplicationWindow.java:760)
	at org.eclipse.ui.internal.WorkbenchWindow.run(WorkbenchWindow.java:2283)
	at org.eclipse.ui.internal.SaveableHelper.runProgressMonitorOperation(SaveableHelper.java:263)
	at org.eclipse.ui.internal.SaveableHelper.runProgressMonitorOperation(SaveableHelper.java:243)
	at org.eclipse.ui.internal.SaveableHelper.savePart(SaveableHelper.java:135)
	at org.eclipse.ui.internal.EditorManager.savePart(EditorManager.java:1414)
	at org.eclipse.ui.internal.WorkbenchPage.savePart(WorkbenchPage.java:2995)
	at org.eclipse.ui.internal.WorkbenchPage.saveEditor(WorkbenchPage.java:3008)
	at org.eclipse.ui.internal.SaveAction.run(SaveAction.java:67)
	at org.eclipse.jface.action.Action.runWithEvent(Action.java:499)
	at org.eclipse.jface.commands.ActionHandler.execute(ActionHandler.java:119)
	at org.eclipse.core.commands.Command.executeWithChecks(Command.java:461)
	at org.eclipse.core.commands.ParameterizedCommand.executeWithChecks(ParameterizedCommand.java:424)
	at org.eclipse.ui.internal.handlers.HandlerService.executeCommand(HandlerService.java:160)
	at org.eclipse.ui.internal.keys.WorkbenchKeyboard.executeCommand(WorkbenchKeyboard.java:466)
	at org.eclipse.ui.internal.keys.WorkbenchKeyboard.press(WorkbenchKeyboard.java:799)
	at org.eclipse.ui.internal.keys.WorkbenchKeyboard.processKeyEvent(WorkbenchKeyboard.java:846)
	at org.eclipse.ui.internal.keys.WorkbenchKeyboard.filterKeySequenceBindings(WorkbenchKeyboard.java:564)
	at org.eclipse.ui.internal.keys.WorkbenchKeyboard.access$3(WorkbenchKeyboard.java:506)
	at org.eclipse.ui.internal.keys.WorkbenchKeyboard$KeyDownFilter.handleEvent(WorkbenchKeyboard.java:122)
	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
	at org.eclipse.swt.widgets.Display.filterEvent(Display.java:1357)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1084)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1109)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1094)
	at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:1121)
	at org.eclipse.swt.widgets.Widget.gtk_key_press_event(Widget.java:655)
	at org.eclipse.swt.widgets.Control.gtk_key_press_event(Control.java:2090)
	at org.eclipse.swt.widgets.Composite.gtk_key_press_event(Composite.java:637)
	at org.eclipse.swt.widgets.Widget.windowProc(Widget.java:1434)
	at org.eclipse.swt.widgets.Display.windowProc(Display.java:3812)
	at org.eclipse.swt.internal.gtk.OS._gtk_main_do_event(Native Method)
	at org.eclipse.swt.internal.gtk.OS.gtk_main_do_event(OS.java:5291)
	at org.eclipse.swt.widgets.Display.eventProc(Display.java:1149)
	at org.eclipse.swt.internal.gtk.OS._g_main_context_iteration(Native Method)
	at org.eclipse.swt.internal.gtk.OS.g_main_context_iteration(OS.java:1437)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2854)
	at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1930)
	at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1894)
	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:422)
	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
	at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:95)
	at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:78)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:92)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:68)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:400)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:177)
	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:597)
	at org.eclipse.core.launcher.Main.invokeFramework(Main.java:336)
	at org.eclipse.core.launcher.Main.basicRun(Main.java:280)
	at org.eclipse.core.launcher.Main.run(Main.java:977)
	at org.eclipse.core.launcher.Main.main(Main.java:952)



-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)

Kernel: Linux 2.6.22-2-686 (SMP w/1 CPU core)
Locale: LANG=zh_CN.UTF-8, LC_CTYPE=zh_CN.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages eclipse-jdt depends on:
ii  ant-optional                  1.7.0-3    Java based build tool like make - 
ii  eclipse-platform              3.2.2-4    Eclipse platform without plug-ins 
ii  junit                         3.8.1.1-7  Automated testing framework for Ja

Versions of packages eclipse-jdt recommends:
ii  eclipse-jdt-gcj               3.2.2-4    Java Development Tools plug-ins fo

-- no debconf information




Information forwarded to debian-bugs-dist@lists.debian.org, Debian Java Maintainers <pkg-java-maintainers@lists.alioth.debian.org>:
Bug#446438; Package eclipse-jdt. (full text, mbox, link).


Acknowledgement sent to Michael Koch <konqueror@gmx.de>:
Extra info received and forwarded to list. Copy sent to Debian Java Maintainers <pkg-java-maintainers@lists.alioth.debian.org>. (full text, mbox, link).


Message #10 received at 446438@bugs.debian.org (full text, mbox, reply):

From: Michael Koch <konqueror@gmx.de>
To: darren <darren.hoo@gmail.com>, 446438@bugs.debian.org
Subject: Re: Bug#446438: eclipse-jdt: ant editor can not open build.xml
Date: Sat, 13 Oct 2007 19:57:52 +0200
tag 446438 confirmed
thanks


Hello,


On Sat, Oct 13, 2007 at 10:34:20AM +0800, darren wrote:
> Package: eclipse-jdt
> Version: 3.2.2-4
> Severity: important
> 
> when I using ant editor to open a build.xml which is not empty.It fails
> to open
> Error Log is :
> 
> java.lang.NoClassDefFoundError: org/apache/tools/ant/Main
> 	at org.apache.tools.ant.Project.initProperties(Project.java:308)
> 	at org.apache.tools.ant.Project.init(Project.java:295)
> 	at org.eclipse.ant.internal.ui.model.AntModelProject.init(AntModelProject.java:105)
> 	at org.eclipse.ant.internal.ui.model.AntModel.initializeProject(AntModel.java:367)
> 	at org.eclipse.ant.internal.ui.model.AntModel.prepareForFullParse(AntModel.java:341)
> 	at org.eclipse.ant.internal.ui.model.AntModel.parseDocument(AntModel.java:305)
> 	at org.eclipse.ant.internal.ui.model.AntModel.reconcile(AntModel.java:263)
> 	at org.eclipse.ant.internal.ui.model.AntModel.updateMarkers(AntModel.java:1546)
> 	at org.eclipse.ant.internal.ui.editor.AntEditor.doSave(AntEditor.java:1178)


[...]


This was actually a bug I wanted to fix with 3.2.2-4. It is fixed on
amd64. I tried that. But I can reproduce the bug on i386. The fix seems
to be in. I need to investigate that more...


Cheers,
Michael




Information forwarded to debian-bugs-dist@lists.debian.org, Debian Java Maintainers <pkg-java-maintainers@lists.alioth.debian.org>:
Bug#446438; Package eclipse-jdt. (full text, mbox, link).


Acknowledgement sent to Bob Black <bblack-debian@schlitzed.com>:
Extra info received and forwarded to list. Copy sent to Debian Java Maintainers <pkg-java-maintainers@lists.alioth.debian.org>. (full text, mbox, link).


Message #15 received at 446438@bugs.debian.org (full text, mbox, reply):

From: Bob Black <bblack-debian@schlitzed.com>
To: 446438@bugs.debian.org
Subject: i386 fix? [was Re: eclipse-jdt: ant editor can not open build.xml]
Date: Mon, 29 Oct 2007 19:16:16 -0500
On Sat, Oct 13, 2007 at 10:34:20AM +0800, darren wrote:
> > Package: eclipse-jdt
> > Version: 3.2.2-4
> > Severity: important
> > 
> > when I using ant editor to open a build.xml which is not empty.It
> > fails
> > to open
> > Error Log is :
> > 
> > java.lang.NoClassDefFoundError: org/apache/tools/ant/Main
> > 	at org.apache.tools.ant.Project.initProperties(Project.java:308)
> > 	at org.apache.tools.ant.Project.init(Project.java:295)
> > 	at
> > 	org.eclipse.ant.internal.ui.model.AntModelProject.init(AntModelProject.java:105)
> > 	at
> > 	org.eclipse.ant.internal.ui.model.AntModel.initializeProject(AntModel.java:367)
> > 	at
> > 	org.eclipse.ant.internal.ui.model.AntModel.prepareForFullParse(AntModel.java:341)
> > 	at
> > 	org.eclipse.ant.internal.ui.model.AntModel.parseDocument(AntModel.java:305)
> > 	at
> > 	org.eclipse.ant.internal.ui.model.AntModel.reconcile(AntModel.java:263)
> > 	at
> > 	org.eclipse.ant.internal.ui.model.AntModel.updateMarkers(AntModel.java:1546)
> > 	at
> > 	org.eclipse.ant.internal.ui.editor.AntEditor.doSave(AntEditor.java:1178)
> >
> > [...]

> This was actually a bug I wanted to fix with 3.2.2-4. It is fixed on
> amd64. I tried that. But I can reproduce the bug on i386. The fix seems
> to be in. I need to investigate that more...

DISCLAIMER: I'm running ubuntu 7.10

Any new info on the issue?  (I'm not sure it's i386 specific?)

Adding ant-launcher.jar to plugins/org.apache.ant_1.6.5/META-INF/MANIFEST.MF 
allowed me to launch (default) ant tasks.  (basically following 
debian/patches/eclipse-ant-manifest.dpatch)

That still left me with the problem that eclipse couldn't generally 
parse ant build.xml files.

After poking around for some time I just threw up my hands and
created a "combined" jar file with the contents of both ant.jar
and ant-launcher.jar and used it in place of the (symlink)
/usr/lib/eclipse/plugins/org.apache.ant_1.6.5/lib/ant.jar

Eclipse seems to be behaving perfectly fine now.


After my adventures I'm wondering if it would make sense to:
) Update to eclipse 3.3
) Upgrade the eclipse plugin to a version specifically for (ant) 1.7
) Make an ant 1.6 package available for packages that require it.
	(such as eclipse)

Bob Black




Information forwarded to debian-bugs-dist@lists.debian.org, Debian Java Maintainers <pkg-java-maintainers@lists.alioth.debian.org>:
Bug#446438; Package eclipse-jdt. (full text, mbox, link).


Acknowledgement sent to Erich Schubert <erich@debian.org>:
Extra info received and forwarded to list. Copy sent to Debian Java Maintainers <pkg-java-maintainers@lists.alioth.debian.org>. (full text, mbox, link).


Message #20 received at 446438@bugs.debian.org (full text, mbox, reply):

From: Erich Schubert <erich@debian.org>
To: 446438@bugs.debian.org
Subject: Debian Eclipse and Ant
Date: Wed, 20 Aug 2008 17:11:24 +0200
Hi,
Debian Eclipse and Ant apparently don't play together very well.
Will you handle this for lenny?
Since Ant has this omnipresent role in Java development, this bug IMHO
is release critical.

I downloaded ant 1.6.5 and changed my eclipse ant settings to point to
it, but it didn't help either; eclipse won't open or parse ant build.xml
files. (Note that I still have ant 1.7 on my system as well).
I also tried the merging trick mentioned, neither helped.

Error is:
java.lang.NoClassDefFoundError: org.apache.tools.ant.Main
just as with the other submitters of this bug.

best regards,
Erich Schubert
-- 
    erich@(vitavonni.de|debian.org)    --    GPG Key ID: 4B3A135C     (o_
      This one's tricky. You have to use imaginary numbers, like      //\
                       eleventeen... --- Hobbes                       V_/_
 Jemanden zu lieben heißt glücklich zu sein, ihn glücklich zu sehen.





Information forwarded to debian-bugs-dist@lists.debian.org, Debian Java Maintainers <pkg-java-maintainers@lists.alioth.debian.org>:
Bug#446438; Package eclipse-jdt. (Mon, 10 Nov 2008 08:21:02 GMT) (full text, mbox, link).


Acknowledgement sent to Xavier Drudis Ferran <xdrudis@ambarinformatica.com>:
Extra info received and forwarded to list. Copy sent to Debian Java Maintainers <pkg-java-maintainers@lists.alioth.debian.org>. (Mon, 10 Nov 2008 08:21:07 GMT) (full text, mbox, link).


Message #25 received at 446438@bugs.debian.org (full text, mbox, reply):

From: Xavier Drudis Ferran <xdrudis@ambarinformatica.com>
To: 446438@bugs.debian.org
Subject: Same as Bob Black, in lenny
Date: Mon, 10 Nov 2008 09:18:40 +0100
Hi, I just want to confirm the mail by Bob Black. 
I used to run etch here at work, switched to lenny 
for openjdk and then eclipse started behaving funny. 
Some problemes were with plugins, and they were fixed
by upgrading plugins from eclipse, but then ant files
couldn't be used. Eclipse said it couldn't find 
tasks in them and the .log complained of class not found 
for ant classes. 

Then I did what Bob Black said and now it works. The only 
difference is this is lenny, not ubuntu.

Thanks all. I agree this bug is very annoying.

-- 
Xavi Drudis Ferran
xdrudis@ambarinformatica.com




Reply sent to Niels Thykier <niels@thykier.net>:
You have taken responsibility. (Sun, 16 Aug 2009 09:24:16 GMT) (full text, mbox, link).


Notification sent to darren <darren.hoo@gmail.com>:
Bug acknowledged by developer. (Sun, 16 Aug 2009 09:24:16 GMT) (full text, mbox, link).


Message #30 received at 446438-done@bugs.debian.org (full text, mbox, reply):

From: Niels Thykier <niels@thykier.net>
To: 446438-done@bugs.debian.org
Subject: Fixed in 3.4.1-1
Date: Sun, 16 Aug 2009 11:23:19 +0200
[Message part 1 (text/plain, inline)]
Version: 3.4.1-1

Hi

I just tested this in 3.4.1-1 and I cannot reproduce the problem.

If you can reproduce this problem in 3.4.1-1 please reopen this bug.

Thank you in advance,
~Niels

[signature.asc (application/pgp-signature, attachment)]

Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Tue, 23 Mar 2010 07:35:18 GMT) (full text, mbox, link).


Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Sat Jan 6 00:14:36 2018; Machine Name: buxtehude

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.