Bug 412462 - [WTP] Error compiling org.eclipse.wst.wsdl.ui
Summary: [WTP] Error compiling org.eclipse.wst.wsdl.ui
Status: RESOLVED FIXED
Alias: None
Product: CBI
Classification: Technology
Component: prototype (show other bugs)
Version: unspecified   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: CBI Dummy user CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 412211
  Show dependency tree
 
Reported: 2013-07-07 17:33 EDT by Thanh Ha CLA
Modified: 2013-07-08 21:59 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Thanh Ha CLA 2013-07-07 17:33:03 EDT
When compiling org.eclipse.wst.wsdl.ui the following error occurs. As far as I can tell it seems to depend on an API that's not available.


[ERROR] Failed to execute goal org.eclipse.tycho:tycho-compiler-plugin:0.19.0-SNAPSHOT:compile (default-compile) on project org.eclipse.wst.wsdl.ui: Compilation failure: Compilation failure:
[ERROR] /buildroot/webtools.releng.aggregator/webtools.webservices/bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/WSDLEditorPlugin.java:[563,0]
[ERROR] ClassLoader pluginClasssLoader = element.getDeclaringExtension().getDeclaringPluginDescriptor().getPlugin().getClass().getClassLoader();
[ERROR] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[ERROR] The method getDeclaringPluginDescriptor() is undefined for the type IExtension
[ERROR] /buildroot/webtools.releng.aggregator/webtools.webservices/bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/WSDLEditorPlugin.java:[612,0]
[ERROR] ClassLoader pluginClasssLoader = element.getDeclaringExtension().getDeclaringPluginDescriptor().getPlugin().getClass().getClassLoader();
[ERROR] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[ERROR] The method getDeclaringPluginDescriptor() is undefined for the type IExtension
[ERROR] -> [Help 1]
Comment 1 Nitin Dahyabhai CLA 2013-07-08 10:15:31 EDT
org.eclipse.core.runtime.IExtension is in two places.  In Eclipse, this shows up as a deprecation warning against the version of IExtension from runtime_registry_compatibility.jar rather than the org.eclipse.equinox.registry bundle.
Comment 2 Thanh Ha CLA 2013-07-08 11:17:55 EDT
(In reply to comment #1)
> org.eclipse.core.runtime.IExtension is in two places.  In Eclipse, this
> shows up as a deprecation warning against the version of IExtension from
> runtime_registry_compatibility.jar rather than the
> org.eclipse.equinox.registry bundle.

Thanks Nitin, I think this hint helped me get by this. I added the following the build.properties and was able to do a quick build of just this bundle.

jars.extra.classpath=platform:/plugin/org.eclipse.core.runtime.compatibility.registry


It appears org.eclipse.core.runtime.compatibility.registry is a compile time dependency that Tycho was not picking up since it isn't listed in the MANIFEST.MF. I got a further hint from this mailing list post [1] and figured that I should try setting the jars.extra.classpath.

I will do further testing with a full build and report back later today.

[1] http://dev.eclipse.org/mhonarc/lists/tycho-user/msg00374.html