Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [ptp-dev] PTP dependencies on JAXB projects for epp-parallel

i've added as a plugin dependency now.

Greg
On May 4, 2011, at 9:08 AM, Albert L. Rossi wrote:

> Without the implementation (com.sun.xml.bind) expressed as a dependency on the jaxb plugins, you cannot marshal the XML (see trace below).  When you check for dependencies using the "check for unused dependencies" tool, the com.sun dependency figures as unused, but that's because this is a static analysis.  As you can see from the trace, the javax API package does dynamic lookup.
> 
> Al
> 
> 
> javax.xml.bind.JAXBException: Provider com.sun.xml.bind.v2.ContextFactory not found
> - with linked exception:
> [java.lang.ClassNotFoundException: com.sun.xml.bind.v2.ContextFactory]
> 	at javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:147)
> 	at javax.xml.bind.ContextFinder.find(ContextFinder.java:290)
> 	at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:372)
> 	at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:337)
> 	at org.eclipse.ptp.rm.jaxb.core.utils.JAXBInitializationUtils.unmarshalResourceManagerData(JAXBInitializationUtils.java:155)
> 	at org.eclipse.ptp.rm.jaxb.core.utils.JAXBInitializationUtils.initializeRMData(JAXBInitializationUtils.java:78)
> 	at org.eclipse.ptp.rm.jaxb.core.rm.JAXBResourceManagerConfiguration.realizeRMDataFromXML(JAXBResourceManagerConfiguration.java:161)
> 	at org.eclipse.ptp.rm.jaxb.core.rm.JAXBResourceManagerConfiguration.getResourceManagerData(JAXBResourceManagerConfiguration.java:68)
> 	at org.eclipse.ptp.rm.jaxb.ui.wizards.JAXBRMControlConfigurationWizardPage.doCreateContents(JAXBRMControlConfigurationWizardPage.java:59)
> 	at org.eclipse.ptp.rm.ui.wizards.AbstractConfigurationWizardPage.createControl(AbstractConfigurationWizardPage.java:38)
> 	at org.eclipse.jface.wizard.WizardDialog.updateForPage(WizardDialog.java:1247)
> 	at org.eclipse.jface.wizard.WizardDialog.access$4(WizardDialog.java:1239)
> 	at org.eclipse.jface.wizard.WizardDialog$8.run(WizardDialog.java:1228)
> 	at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
> 	at org.eclipse.jface.wizard.WizardDialog.showPage(WizardDialog.java:1226)
> 	at org.eclipse.jface.wizard.WizardDialog.nextPressed(WizardDialog.java:915)
> 	at org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDialog.java:428)
> 	at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.java:624)
> 	at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:240)
> 	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
> 	at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4114)
> 	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1443)
> 	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1466)
> 	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1451)
> 	at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1263)
> 	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3960)
> 	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3599)
> 	at org.eclipse.jface.window.Window.runEventLoop(Window.java:825)
> 	at org.eclipse.jface.window.Window.open(Window.java:801)
> 	at org.eclipse.ptp.ui.actions.AddResourceManagerAction.run(AddResourceManagerAction.java:46)
> 	at org.eclipse.jface.action.Action.runWithEvent(Action.java:498)
> 	at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:584)
> 	at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:501)
> 	at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:411)
> 	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
> 	at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4114)
> 	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1443)
> 	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1466)
> 	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1451)
> 	at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1263)
> 	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3960)
> 	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3599)
> 	at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2696)
> 	at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2660)
> 	at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2494)
> 	at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:674)
> 	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
> 	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:667)
> 	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
> 	at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:123)
> 	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
> 	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
> 	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
> 	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:344)
> 	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
> 	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:592)
> 	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:622)
> 	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:577)
> 	at org.eclipse.equinox.launcher.Main.run(Main.java:1410)
> 	at org.eclipse.equinox.launcher.Main.main(Main.java:1386)
> Caused by: java.lang.ClassNotFoundException: com.sun.xml.bind.v2.ContextFactory
> 	at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:513)
> 	at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:429)
> 	at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:417)
> 	at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)
> 	at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
> 	at javax.xml.bind.ContextFinder.safeLoadClass(ContextFinder.java:481)
> 	at javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:113)
> 	... 62 more
> _______________________________________________
> ptp-dev mailing list
> ptp-dev@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/ptp-dev



Back to the top