First, let me say that this works on the trunk build of the Felix framework (3.3.0-SNAPSHOT), which you can grab from the Apache Maven snapshot repository. However, it is still not going to be 100% correct.
The reason why it works on the trunk framework is I fixed a bug in filter creation that was incorrectly throwing IllegalArgumentExceptions when some strings contained non-escaped parentheses characters, when it reality the non-escaped parentheses characters were acceptable. This was wrong in 3.2.2 and I fixed it in trunk. So that's why it works now. The reason it is not 100% correct still, though, is that it didn't dawn on me when looking at the metadata below that the Require-Bundle header has been specified incorrectly. It should not be using "version", it should be using "bundle-version" as the matching attribute. That's what uncovered this bug in the framework. If "bundle-version" is used then the attribute correctly gets converted to a version range and you won't run into the parentheses bug, thus it should start working on 3.2.2 too...and actually working correctly, since right now it is treating "version" as just a string with a value, not a version range. -> richard On Wed, Sep 14, 2011 at 10:47 AM, Richard Hall <[email protected]> wrote: > If you just try to install the bundle manually, does it still fail? > > If so, privately email me the bundle and I'll look at it. If not, maybe you > can tell me how to recreate the issue. > > -> richard > > On Wed, Sep 14, 2011 at 10:30 AM, Martijn van Iersel <[email protected] > > wrote: > >> Here is the MANIFEST.MF from the bundle org.apache.batik.transcoder.**jar. >> I see nothing wrong with it... >> >> Or is it possible that the error is in a different bundle? The error >> report mentioned org.apache.batik.transcoder.**jar... >> >> >> Manifest-Version: 1.0 >> Implementation-Vendor: The Apache Software Foundation (http://xmlgraph >> ics.apache.org/batik/) >> Bundle-Localization: plugin >> Bundle-**RequiredExecutionEnvironment: J2SE-1.3 >> Bundle-SymbolicName: org.apache.batik.transcoder >> Require-Bundle: org.apache.batik.bridge;**version="[1.7.0,1.8.0)",org.ap >> ache.batik.dom;version="[1.7.**0,1.8.0)",org.apache.batik.** >> dom.svg;versi >> on="[1.7.0,1.8.0)",org.apache.**batik.ext.awt;version="[1.7.0,** >> 1.8.0)",o >> rg.apache.batik.svggen;**version="[1.7.0,1.8.0)",org.** >> apache.batik.util; >> version="[1.7.0,1.8.0)",org.**apache.batik.xml;version="[1.**7.0,1.8.0)" >> Export-Package: org.apache.batik.transcoder;**version="1.7.0",org.apache >> .batik.transcoder.image;**version="1.7.0",org.apache.** >> batik.transcoder.i >> mage.resources;version="1.7.0"**,org.apache.batik.transcoder.** >> keys;versi >> on="1.7.0",org.apache.batik.**transcoder.print;version="1.7.** >> 0",org.apac >> he.batik.transcoder.svg2svg;**version="1.7.0",org.apache.** >> batik.transcod >> er.wmf;version="1.7.0",org.**apache.batik.transcoder.wmf.** >> tosvg;version= >> "1.7.0" >> Bundle-Version: 1.7.0.v200903091627 >> Bundle-Vendor: %providerName >> Bundle-Name: %pluginName >> Build-Id: 20080106-110642-EST (cam [Linux 2.6.22.8 i386, Java 1.3.1_19 >> -b03]) >> Implementation-Title: Batik transcoder >> Implementation-Version: 1.7+r608262 >> Import-Package: org.w3c.dom.svg;version="[1.1.**0,1.3.0)" >> Bundle-ManifestVersion: 2 >> >> -- >> Martijn >> >> On 14/09/11 17:19, Richard Hall wrote: >> >>> Just a guess, but you forgetting to put quotes around the version range >>> in >>> your manifest file? You must specify version ranges with quotes, like: >>> >>> Import-Package: foo; version="[1.0.0,2.0.0)" >>> >>> -> richard >>> >>> >>> >> ------------------------------**------------------------------**--------- >> To unsubscribe, e-mail: >> users-unsubscribe@felix.**apache.org<[email protected]> >> For additional commands, e-mail: [email protected] >> >> >

