Bug 282275 - GMF 2.2.0's SMIL plugin requires version [3,4) of org.w3c.dom.events package, but GMF 2.2.0's javax_xml plugin only supplies 2.0 version of that package
Summary: GMF 2.2.0's SMIL plugin requires version [3,4) of org.w3c.dom.events package,...
Status: NEW
Alias: None
Product: GMF-Runtime
Classification: Modeling
Component: General (show other bugs)
Version: 2.2   Edit
Hardware: PC Windows XP
: P3 normal
Target Milestone: ---   Edit
Assignee: Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-07-02 07:27 EDT by Peter Koopmans CLA
Modified: 2011-09-22 05:41 EDT (History)
2 users (show)

See Also:


Attachments
OSGI console log (3.25 KB, text/plain)
2009-07-02 07:31 EDT, Peter Koopmans CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Peter Koopmans CLA 2009-07-02 07:27:07 EDT
Build ID: I20090611-1540

Steps To Reproduce:
1. Download GMF 2.2.0 SDK or runtime (the Galileo version)
2. Extract downloaded zip
3. Go into the plugins folder
4. Open the MANIFEST.MF file inside JAR org.w3c.dom.smil_1.0.1.v200903091627.jar. 

It shows: 
   Import-Package: org.w3c.dom,org.w3c.dom.events;version="[3.0.0,4.0.0)"

5. Open Open the MANIFEST.MF file inside JAR javax.xml_1.3.4.v200902170245.jar
 It shows:
    Export-Package: ... org.w3c.dom.events;version="2.0" ...


More information:
We are using GMF SVG plugin for exporting a diagram to SVG. 
After updating to Eclipse 3.5 Galileo, our diagram editor plug-in did not start (in OSGI terms, it was not resolved). Our diagram editor plugin has a dependency on GMF's org.w3c.svg plug-in, which on its turn depends on plug-in org.w3c.dom.smil. This plug-in cannot be resolved since it wants version 3 of the org.w3c.dom.events package. The javax_xml plug-in supplied by the 2.2.0 release of GMF, however, only exposes version 2.0 of that package.

See attached OSGI console log for more information on the unresolved dependencies.
Comment 1 Peter Koopmans CLA 2009-07-02 07:31:13 EDT
Created attachment 140684 [details]
OSGI console log
Comment 2 Anthony Hunter CLA 2009-07-02 12:07:23 EDT
The intent for GMF 2.2 was that we still depend on the same Batik 1.6 toolkit that we used in GMF 2.1.

We did verify save as SVG as well as having SVG images on the diagram and both still work with GMF 2.2.

In my environment I have:
org.w3c.css.sac_1.3.0.v200805290154.jar
org.w3c.dom.events_3.0.0.draft20060413_v200905140418.jar
org.w3c.dom.smil_1.0.1.v200903091627.jar
org.w3c.dom.svg_1.1.0.v200806040011.jar

javax.xml_1.3.4.v200902170245.jar

Do you have something different?
Comment 3 Peter Koopmans CLA 2009-07-03 06:40:34 EDT
(In reply to comment #2)
> The intent for GMF 2.2 was that we still depend on the same Batik 1.6 toolkit
> that we used in GMF 2.1.
> 
> We did verify save as SVG as well as having SVG images on the diagram and both
> still work with GMF 2.2.
> 
> In my environment I have:
> org.w3c.css.sac_1.3.0.v200805290154.jar
> org.w3c.dom.events_3.0.0.draft20060413_v200905140418.jar
> org.w3c.dom.smil_1.0.1.v200903091627.jar
> org.w3c.dom.svg_1.1.0.v200806040011.jar
> 
> javax.xml_1.3.4.v200902170245.jar
> 
> Do you have something different?
> 

We have the same versions of jars, except the product created by our headless build does NOT have plug-in org.w3c.dom.events_3.0.0.draft20060413_v200905140418. 

So it tries to resolve the org.w3c.dom.events package to the javax.xml_1.3.4 plug-in (which declares to have only version 2.0 of it).

Our main plug-in doesn't explicitly specify a dependency on org.w3c.dom.events_3.0.0.draft20060413_v200905140418. 

Should we do that? Or should the headless build's dependency resolving mechanisme have picked it up? (apparently it did not).
Comment 4 Eclipse Webmaster CLA 2010-07-19 21:59:19 EDT
[GMF Restructure] Bug 319140 : product GMF and component
Runtime was the original product and component for this bug
Comment 5 Sébastien Gandon CLA 2011-09-22 05:41:44 EDT
I also have problems with the way the version are specified in the manifest.
PDE is failing to export features that include dom.smil or apache.batik

Processing inclusion from feature org.talend.designer.business_feature: Bundle org.apache.batik.bridge_1.6.0.v200912221622 failed to resolve.:
	Missing required plug-in org.apache.batik.css_0.0.0.
	Missing required plug-in org.apache.batik.dom_0.0.0.
	Missing required plug-in org.apache.batik.dom.svg_0.0.0.
	Missing required plug-in org.apache.batik.ext.awt_0.0.0.
	Missing required plug-in org.apache.batik.parser_0.0.0.
	Missing required plug-in org.apache.batik.util_0.0.0.
	Missing required plug-in org.apache.batik.util.gui_0.0.0.
	Missing required plug-in org.apache.batik.xml_0.0.0.
	Missing required plug-in org.w3c.dom.svg_0.0.0.

This is because the manifest required plugin version is using the keyword "version" and OSGI specified "bundle-version" (may be this has change in recent OSGI, specs ? can find info on that : http://www.osgi.org/Specifications/ReferenceHeaders ).
so in batik.bridge manifest instead of having

      Require-Bundle: org.apache.batik.css;version="[1.6.0,1.7.0)"

we should have

      Require-Bundle: org.apache.batik.css;bundle-version="[1.6.0,1.7.0)" 
                                                                 ^^^^^^^^^^^