Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » General (non-technical) » Eclipse Foundation » "NoClassDefFoundError" when use the ant in eclipse
"NoClassDefFoundError" when use the ant in eclipse [message #38285] Wed, 09 August 2006 06:12 Go to next message
Eclipse User
Originally posted by: send60.eyou.com

Hi ,all
I always encountered an error when i run the build.xml in eclipse.
Mostly, i do the operation as follows:

Run As->Ant ...

then the dialog is opened for setting the way of using ant,and the error
occurred at the same time.

the error log was listed as follows:

java.lang.NoClassDefFoundError: javax/management/DynamicMBean
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:539)
at java.security.SecureClassLoader.defineClass(SecureClassLoade r.java:123)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:251)
at java.net.URLClassLoader.access$100(URLClassLoader.java:55)
at java.net.URLClassLoader$1.run(URLClassLoader.java:194)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
at
org.eclipse.ant.internal.core.AntClassLoader.loadClassURLs(A ntClassLoader.ja
va:51)
at
org.eclipse.ant.internal.core.AntClassLoader.findClass(AntCl assLoader.java:4
1)
at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302 )
at
weblogic.xml.jaxp.RegistrySAXParserFactory.<clinit>(RegistrySAXParserFactory
..java:27)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Nativ e Method)
at
sun.reflect.NativeConstructorAccessorImpl.newInstance(Native ConstructorAcces
sorImpl.java:39)
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(De legatingConstruc
torAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:2 74)
at java.lang.Class.newInstance0(Class.java:308)
at java.lang.Class.newInstance(Class.java:261)
at javax.xml.parsers.FactoryFinder.newInstance(FactoryFinder.ja va:95)
at javax.xml.parsers.FactoryFinder.find(FactoryFinder.java:174)
at javax.xml.parsers.SAXParserFactory.newInstance(SAXParserFact ory.java:87)
at org.apache.tools.ant.util.JAXPUtils.newParserFactory(JAXPUti ls.java:114)
at
org.eclipse.ant.internal.ui.editor.utils.ProjectHelper.getNS ParserFactory(Pr
ojectHelper.java:699)
at
org.eclipse.ant.internal.ui.editor.utils.ProjectHelper.getNa mespaceXMLReader
(ProjectHelper.java:682)
at
org.eclipse.ant.internal.ui.editor.utils.ProjectHelper.parse (ProjectHelper.j
ava:546)
at
org.eclipse.ant.internal.ui.editor.utils.ProjectHelper.parse (ProjectHelper.j
ava:642)
at
org.eclipse.ant.internal.ui.model.AntModel.parseDocument(Ant Model.java:312)
at org.eclipse.ant.internal.ui.model.AntModel.reconcile(AntMode l.java:260)
at
org.eclipse.ant.internal.ui.model.AntModel.getProjectNode(An tModel.java:1378
)
at
org.eclipse.ant.internal.ui.model.AntModel.getProjectNode(An tModel.java:1388
)
at org.eclipse.ant.internal.ui.AntUtil.getTargets(AntUtil.java: 236)
at
org.eclipse.ant.internal.ui.launchConfigurations.AntTargetsT ab$7.run(AntTarg
etsTab.java:493)
at
org.eclipse.jface.operation.ModalContext.runInCurrentThread( ModalContext.jav
a:346)
at org.eclipse.jface.operation.ModalContext.run(ModalContext.ja va:291)
at
org.eclipse.jface.window.ApplicationWindow$1.run(Application Window.java:624)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:69)
at
org.eclipse.jface.window.ApplicationWindow.run(ApplicationWi ndow.java:621)
at org.eclipse.ui.internal.WorkbenchWindow.run(WorkbenchWindow. java:2134)
at
org.eclipse.ui.internal.progress.ProgressManager$5.run(Progr essManager.java:
1089)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:69)
at
org.eclipse.ui.internal.progress.ProgressManager.runInUI(Pro gressManager.jav
a:1085)
at
org.eclipse.ant.internal.ui.launchConfigurations.AntTargetsT ab.getTargets(An
tTargetsTab.java:510)
at
org.eclipse.ant.internal.ui.launchConfigurations.AntTargetsT ab.initializeFro
m(AntTargetsTab.java:619)
at
org.eclipse.debug.ui.AbstractLaunchConfigurationTabGroup.ini tializeFrom(Abst
ractLaunchConfigurationTabGroup.java:86)
at
org.eclipse.ant.internal.ui.launchConfigurations.AntTabGroup .initializeFrom(
AntTabGroup.java:46)
at
org.eclipse.debug.internal.ui.launchConfigurations.LaunchCon figurationTabGro
upViewer.displayInstanceTabs(LaunchConfigurationTabGroupView er.java:543)
at
org.eclipse.debug.internal.ui.launchConfigurations.LaunchCon figurationTabGro
upViewer$5.run(LaunchConfigurationTabGroupViewer.java:471)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:69)
at
org.eclipse.debug.internal.ui.launchConfigurations.LaunchCon figurationTabGro
upViewer.inputChanged(LaunchConfigurationTabGroupViewer.java :488)
at
org.eclipse.debug.internal.ui.launchConfigurations.LaunchCon figurationTabGro
upViewer.setInput(LaunchConfigurationTabGroupViewer.java:452 )
at
org.eclipse.debug.internal.ui.launchConfigurations.LaunchCon figurationDialog
..initializeContent(LaunchConfigurationDialog.java:69)
at
org.eclipse.debug.internal.ui.launchConfigurations.LaunchCon figurationsDialo
g.createContents(LaunchConfigurationsDialog.java:312)
at org.eclipse.jface.window.Window.create(Window.java:418)
at org.eclipse.jface.dialogs.Dialog.create(Dialog.java:996)
at
org.eclipse.debug.internal.ui.launchConfigurations.LaunchCon figurationsDialo
g.create(LaunchConfigurationsDialog.java:1597)
at org.eclipse.jface.window.Window.open(Window.java:776)
at
org.eclipse.debug.internal.ui.launchConfigurations.LaunchCon figurationsDialo
g.open(LaunchConfigurationsDialog.java:439)
at
org.eclipse.debug.internal.ui.launchConfigurations.LaunchCon figurationProper
tiesDialog.open(LaunchConfigurationPropertiesDialog.java:247 )
at
org.eclipse.debug.ui.DebugUITools.openLaunchConfigurationDia log(DebugUITools
..java:429)
at
org.eclipse.ant.internal.ui.launchConfigurations.AntLaunchSh ortcut.launch(An
tLaunchShortcut.java:335)
at
org.eclipse.ant.internal.ui.launchConfigurations.AntLaunchSh ortcut.launch(An
tLaunchShortcut.java:231)
at
org.eclipse.ant.internal.ui.launchConfigurations.AntLaunchSh ortcut.launch(An
tLaunchShortcut.java:176)
at
org.eclipse.ant.internal.ui.launchConfigurations.AntLaunchSh ortcut.launch(An
tLaunchShortcut.java:85)
at
org.eclipse.debug.internal.ui.launchConfigurations.LaunchSho rtcutExtension.l
aunch(LaunchShortcutExtension.java:372)
at
org.eclipse.debug.internal.ui.actions.LaunchShortcutAction.r un(LaunchShortcu
tAction.java:62)
at org.eclipse.jface.action.Action.runWithEvent(Action.java:996 )
at
org.eclipse.jface.action.ActionContributionItem.handleWidget Selection(Action
ContributionItem.java:538)
at
org.eclipse.jface.action.ActionContributionItem.access$2(Act ionContributionI
tem.java:488)
at
org.eclipse.jface.action.ActionContributionItem$5.handleEven t(ActionContribu
tionItem.java:400)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:843)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:3080)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2713)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:1699)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1663)
at
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:367)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:143)
at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplicatio n.java:103)
at
org.eclipse.core.internal.runtime.PlatformActivator$1.run(Pl atformActivator.
java:226)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:376)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:163)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39
)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl
..java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.eclipse.core.launcher.Main.invokeFramework(Main.java:334 )
at org.eclipse.core.launcher.Main.basicRun(Main.java:278)
at org.eclipse.core.launcher.Main.run(Main.java:973)
at org.eclipse.core.launcher.Main.main(Main.java:948)

my eclipse version is 3.1.1,and the JDK is jdk1.5.06

It puzzled me , who has encountered the same problem and could give me a
offer ?

Thanks in advance.


from Kevin
Re: "NoClassDefFoundError" when use the ant in eclipse [message #38320 is a reply to message #38285] Wed, 09 August 2006 11:28 Go to previous message
Eclipse User
Originally posted by: merks.ca.ibm.com

Kevin,

This is a question for the platform newsgroup. Whose JDK are you
using? Are you expecting the JAXP implementation to be provided by
weblogic.xml.jaxp.RegistrySAXParserFactory? (I woudn't expect that for a
Sun or IBM JDK.) Is javax/management/DynamicMBean something that should
be in your JDK and on the classpath?


Kevin wrote:
> Hi ,all
> I always encountered an error when i run the build.xml in eclipse.
> Mostly, i do the operation as follows:
>
> Run As->Ant ...
>
> then the dialog is opened for setting the way of using ant,and the error
> occurred at the same time.
>
> the error log was listed as follows:
>
> java.lang.NoClassDefFoundError: javax/management/DynamicMBean
> at java.lang.ClassLoader.defineClass0(Native Method)
> at java.lang.ClassLoader.defineClass(ClassLoader.java:539)
> at java.security.SecureClassLoader.defineClass(SecureClassLoade r.java:123)
> at java.net.URLClassLoader.defineClass(URLClassLoader.java:251)
> at java.net.URLClassLoader.access$100(URLClassLoader.java:55)
> at java.net.URLClassLoader$1.run(URLClassLoader.java:194)
> at java.security.AccessController.doPrivileged(Native Method)
> at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
> at
> org.eclipse.ant.internal.core.AntClassLoader.loadClassURLs(A ntClassLoader.ja
> va:51)
> at
> org.eclipse.ant.internal.core.AntClassLoader.findClass(AntCl assLoader.java:4
> 1)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
> at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302 )
> at
> weblogic.xml.jaxp.RegistrySAXParserFactory.<clinit>(RegistrySAXParserFactory
> .java:27)
> at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Nativ e Method)
> at
> sun.reflect.NativeConstructorAccessorImpl.newInstance(Native ConstructorAcces
> sorImpl.java:39)
> at
> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(De legatingConstruc
> torAccessorImpl.java:27)
> at java.lang.reflect.Constructor.newInstance(Constructor.java:2 74)
> at java.lang.Class.newInstance0(Class.java:308)
> at java.lang.Class.newInstance(Class.java:261)
> at javax.xml.parsers.FactoryFinder.newInstance(FactoryFinder.ja va:95)
> at javax.xml.parsers.FactoryFinder.find(FactoryFinder.java:174)
> at javax.xml.parsers.SAXParserFactory.newInstance(SAXParserFact ory.java:87)
> at org.apache.tools.ant.util.JAXPUtils.newParserFactory(JAXPUti ls.java:114)
> at
> org.eclipse.ant.internal.ui.editor.utils.ProjectHelper.getNS ParserFactory(Pr
> ojectHelper.java:699)
> at
> org.eclipse.ant.internal.ui.editor.utils.ProjectHelper.getNa mespaceXMLReader
> (ProjectHelper.java:682)
> at
> org.eclipse.ant.internal.ui.editor.utils.ProjectHelper.parse (ProjectHelper.j
> ava:546)
> at
> org.eclipse.ant.internal.ui.editor.utils.ProjectHelper.parse (ProjectHelper.j
> ava:642)
> at
> org.eclipse.ant.internal.ui.model.AntModel.parseDocument(Ant Model.java:312)
> at org.eclipse.ant.internal.ui.model.AntModel.reconcile(AntMode l.java:260)
> at
> org.eclipse.ant.internal.ui.model.AntModel.getProjectNode(An tModel.java:1378
> )
> at
> org.eclipse.ant.internal.ui.model.AntModel.getProjectNode(An tModel.java:1388
> )
> at org.eclipse.ant.internal.ui.AntUtil.getTargets(AntUtil.java: 236)
> at
> org.eclipse.ant.internal.ui.launchConfigurations.AntTargetsT ab$7.run(AntTarg
> etsTab.java:493)
> at
> org.eclipse.jface.operation.ModalContext.runInCurrentThread( ModalContext.jav
> a:346)
> at org.eclipse.jface.operation.ModalContext.run(ModalContext.ja va:291)
> at
> org.eclipse.jface.window.ApplicationWindow$1.run(Application Window.java:624)
> at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:69)
> at
> org.eclipse.jface.window.ApplicationWindow.run(ApplicationWi ndow.java:621)
> at org.eclipse.ui.internal.WorkbenchWindow.run(WorkbenchWindow. java:2134)
> at
> org.eclipse.ui.internal.progress.ProgressManager$5.run(Progr essManager.java:
> 1089)
> at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:69)
> at
> org.eclipse.ui.internal.progress.ProgressManager.runInUI(Pro gressManager.jav
> a:1085)
> at
> org.eclipse.ant.internal.ui.launchConfigurations.AntTargetsT ab.getTargets(An
> tTargetsTab.java:510)
> at
> org.eclipse.ant.internal.ui.launchConfigurations.AntTargetsT ab.initializeFro
> m(AntTargetsTab.java:619)
> at
> org.eclipse.debug.ui.AbstractLaunchConfigurationTabGroup.ini tializeFrom(Abst
> ractLaunchConfigurationTabGroup.java:86)
> at
> org.eclipse.ant.internal.ui.launchConfigurations.AntTabGroup .initializeFrom(
> AntTabGroup.java:46)
> at
> org.eclipse.debug.internal.ui.launchConfigurations.LaunchCon figurationTabGro
> upViewer.displayInstanceTabs(LaunchConfigurationTabGroupView er.java:543)
> at
> org.eclipse.debug.internal.ui.launchConfigurations.LaunchCon figurationTabGro
> upViewer$5.run(LaunchConfigurationTabGroupViewer.java:471)
> at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:69)
> at
> org.eclipse.debug.internal.ui.launchConfigurations.LaunchCon figurationTabGro
> upViewer.inputChanged(LaunchConfigurationTabGroupViewer.java :488)
> at
> org.eclipse.debug.internal.ui.launchConfigurations.LaunchCon figurationTabGro
> upViewer.setInput(LaunchConfigurationTabGroupViewer.java:452 )
> at
> org.eclipse.debug.internal.ui.launchConfigurations.LaunchCon figurationDialog
> .initializeContent(LaunchConfigurationDialog.java:69)
> at
> org.eclipse.debug.internal.ui.launchConfigurations.LaunchCon figurationsDialo
> g.createContents(LaunchConfigurationsDialog.java:312)
> at org.eclipse.jface.window.Window.create(Window.java:418)
> at org.eclipse.jface.dialogs.Dialog.create(Dialog.java:996)
> at
> org.eclipse.debug.internal.ui.launchConfigurations.LaunchCon figurationsDialo
> g.create(LaunchConfigurationsDialog.java:1597)
> at org.eclipse.jface.window.Window.open(Window.java:776)
> at
> org.eclipse.debug.internal.ui.launchConfigurations.LaunchCon figurationsDialo
> g.open(LaunchConfigurationsDialog.java:439)
> at
> org.eclipse.debug.internal.ui.launchConfigurations.LaunchCon figurationProper
> tiesDialog.open(LaunchConfigurationPropertiesDialog.java:247 )
> at
> org.eclipse.debug.ui.DebugUITools.openLaunchConfigurationDia log(DebugUITools
> .java:429)
> at
> org.eclipse.ant.internal.ui.launchConfigurations.AntLaunchSh ortcut.launch(An
> tLaunchShortcut.java:335)
> at
> org.eclipse.ant.internal.ui.launchConfigurations.AntLaunchSh ortcut.launch(An
> tLaunchShortcut.java:231)
> at
> org.eclipse.ant.internal.ui.launchConfigurations.AntLaunchSh ortcut.launch(An
> tLaunchShortcut.java:176)
> at
> org.eclipse.ant.internal.ui.launchConfigurations.AntLaunchSh ortcut.launch(An
> tLaunchShortcut.java:85)
> at
> org.eclipse.debug.internal.ui.launchConfigurations.LaunchSho rtcutExtension.l
> aunch(LaunchShortcutExtension.java:372)
> at
> org.eclipse.debug.internal.ui.actions.LaunchShortcutAction.r un(LaunchShortcu
> tAction.java:62)
> at org.eclipse.jface.action.Action.runWithEvent(Action.java:996 )
> at
> org.eclipse.jface.action.ActionContributionItem.handleWidget Selection(Action
> ContributionItem.java:538)
> at
> org.eclipse.jface.action.ActionContributionItem.access$2(Act ionContributionI
> tem.java:488)
> at
> org.eclipse.jface.action.ActionContributionItem$5.handleEven t(ActionContribu
> tionItem.java:400)
> at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :66)
> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:843)
> at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:3080)
> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2713)
> at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:1699)
> at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1663)
> at
> org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:367)
> at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:143)
> at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplicatio n.java:103)
> at
> org.eclipse.core.internal.runtime.PlatformActivator$1.run(Pl atformActivator.
> java:226)
> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:376)
> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:163)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39
> )
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl
> .java:25)
> at java.lang.reflect.Method.invoke(Method.java:324)
> at org.eclipse.core.launcher.Main.invokeFramework(Main.java:334 )
> at org.eclipse.core.launcher.Main.basicRun(Main.java:278)
> at org.eclipse.core.launcher.Main.run(Main.java:973)
> at org.eclipse.core.launcher.Main.main(Main.java:948)
>
> my eclipse version is 3.1.1,and the JDK is jdk1.5.06
>
> It puzzled me , who has encountered the same problem and could give me a
> offer ?
>
> Thanks in advance.
>
>
> from Kevin
>
>
>
>
>
>
>
>
>
>
>
>
Previous Topic:Deleting IFile instance
Next Topic:Plea for Usability Goals in TPTP
Goto Forum:
  


Current Time: Wed Oct 22 03:23:39 GMT 2014

Powered by FUDForum. Page generated in 0.02087 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software