Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 361629 - New WSDL wizards fails when org.eclipse.core.runtime.compatibility.registry is not here
Summary: New WSDL wizards fails when org.eclipse.core.runtime.compatibility.registry i...
Status: NEW
Alias: None
Product: WTP Webservices
Classification: WebTools
Component: wst.wsdl (show other bugs)
Version: unspecified   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: wst.wsdl CLA
QA Contact: Keith Chong CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-21 05:40 EDT by Mickael Istria CLA
Modified: 2011-10-21 06:16 EDT (History)
0 users

See Also:


Attachments
Proposed patch that delegates loadClass to a bundle (4.12 KB, patch)
2011-10-21 06:16 EDT, Mickael Istria CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Mickael Istria CLA 2011-10-21 05:40:15 EDT
When no org.eclipse.core,runtime.compatibility.registry is in the product, then the first opening of the New WSDL wizard fails with the following stack:

java.lang.NoSuchMethodError: org.eclipse.core.runtime.IExtension.getDeclaringPluginDescriptor()Lorg/eclipse/core/runtime/IPluginDescriptor;
	at org.eclipse.wst.wsdl.ui.internal.ContentGeneratorUIExtensionRegistryReader.readElement(WSDLEditorPlugin.java:563)
	at org.eclipse.wst.wsdl.ui.internal.BaseRegistryReader.readRegistry(WSDLEditorPlugin.java:420)
	at org.eclipse.wst.wsdl.ui.internal.ContentGeneratorUIExtensionRegistryReader.readRegistry(WSDLEditorPlugin.java:542)
	at org.eclipse.wst.wsdl.ui.internal.WSDLEditorPlugin.getContentGeneratorUIExtensionRegistry(WSDLEditorPlugin.java:166)
	at org.eclipse.wst.wsdl.ui.internal.wizards.WSDLNewFileOptionsPage.createControl(WSDLNewFileOptionsPage.java:201)
	at org.eclipse.jface.wizard.Wizard.createPageControls(Wizard.java:174)


The cause is probably that this wizard uses old code that has been deprecated and then moved to the compatibility fragment. The wizard should use newer code.
Comment 1 Mickael Istria CLA 2011-10-21 06:16:53 EDT
Created attachment 205706 [details]
Proposed patch that delegates loadClass to a bundle