Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 361629

Summary: New WSDL wizards fails when org.eclipse.core.runtime.compatibility.registry is not here
Product: [WebTools] WTP Webservices Reporter: Mickael Istria <mistria>
Component: wst.wsdlAssignee: wst.wsdl <wst.wsdl-inbox>
Status: NEW --- QA Contact: Keith Chong <keith.chong.ca>
Severity: normal    
Priority: P3    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
See Also: https://bugs.eclipse.org/bugs/show_bug.cgi?id=131188
Whiteboard:
Attachments:
Description Flags
Proposed patch that delegates loadClass to a bundle none

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