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

Bug 367530

Summary: unable to use com.google.gwt.user 2.0.4.v201111291940 with Tycho
Product: [Tools] Orbit Reporter: Steffen Pingel <steffen.pingel>
Component: bundlesAssignee: Orbit Bundles <orbit.bundles-inbox>
Status: RESOLVED WONTFIX QA Contact:
Severity: major    
Priority: P3 CC: gunnar, milesparker
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:
Bug Depends on:    
Bug Blocks: 339474    

Description Steffen Pingel CLA 2011-12-24 03:35:14 EST
Some of the Mylyn Gerrit connector dependencies import packages that are part of com.google.gwt.user. We need to redistribute the bundle to satisfy those dependencies. This fails with the latest release of the bundle:

[INFO] Cannot complete the request.  Generating details.
[INFO] {org.osgi.framework.executionenvironment=OSGi/Minimum-1.0,OSGi/Minimum-1.1, osgi.ws=cocoa, osgi.arch=x86, osgi.os=macosx, org.eclipse.update.install.features=true, org.osgi.framework.system.packages=}
[ERROR] Cannot resolve project dependencies:
[ERROR]   Software being installed: org.eclipse.mylyn-site raw:3.7.0.'SNAPSHOT'/format(n[.n=0;[.n=0;[-S]]]):3.7.0-SNAPSHOT
[ERROR]   Missing requirement: com.google.gwt.user 2.0.4.v201111291940 requires 'A.PDE.Target.Platform Cannot be installed into the IDE 0.0.0' but it could not be found

I understand that it is discouraged to install the bundle but it seems overly strict and limiting to prevent that with a unsatisfiable dependency. Any chance that could be removed?
Comment 1 Gunnar Wagenknecht CLA 2011-12-24 03:46:42 EST
GWT recommends to *only* use the com.google.gwt.servlet jar (bundle) at runtime. Please import packages using a version so that the com.google.gwt.servlet is preferred over the GWT user jar.

What packages are specifically necessary for the Gerrit connector?
Comment 2 Steffen Pingel CLA 2011-12-24 08:39:44 EST
Thanks for your response. The MANIFEST.MF of com.google.gwtjsonrpc imports the following package that is not available in the com.google.gwt.servlet bundle:

* com.google.gwt.user.rebind

I'll try to mark that as optional. I am not sure if the Gerrit connector actually requires loading of these classes so we may just get away with the servlet bundle.
Comment 3 Miles Parker CLA 2012-11-08 12:56:22 EST
Steffen, this is very odd -- I'm getting exactly this issue when I attempt to add a completely unrelated feature to the site.xml. (On http://ci.mylyn.org/job/mylyn-reviews-github/) What did you do to resolve this and can you see any reason why it would come up with a simple unrelated change like this?
Comment 4 Steffen Pingel CLA 2012-11-11 10:15:29 EST
Hard to say without the exact error message and change you made. If you are seeing the error above, Tycho imported the wrong bundle (it should be servlet instead of user which is what was changed in the Gerrit connector).