Hi all, as Thorsten already mentioned we used Bnd (http://www.aqute.biz/Bnd/Bnd) to create a Geotools OSGi bundle. The result is a big bundle including all the modules and extensions we needed. I think for a general (and automated) solution a more modular approach is required. Combining the modules like this also posed a problem regarding the files in META-INF/services. Bnd doesn't support merging files (or did not back then), so we had to manually merge duplicates and ensure that these merged files are stored in the bundle.
Regarding using the bundle outside Eclipse: Bundles created by Bnd shouldn't have any restrictions on which framework implementation you use. We have some experience in using a similar Geotools bundle in an OSGi based server application, though it is also based on Equinox. Maybe the UDig bundles have some Eclipse-specific entries in the manifest, e.g. Eclipse-BuddyPolicy, to make them work. To avoid problems like this was one reason why we had decided to create one big Geotools bundle. Cheers, Simon Am 05.04.2011 01:50, schrieb Jody Garnett: > > Is it possible to use the work you did to update the GeoTools project? > > I could help review patches and with the process of getting commit > access etc. This is an outstanding issue > that several development teams hit a year, each do a temporary fix, and > don't commit the result back etc... > > -- > Jody Garnett > > On Tuesday, 5 April 2011 at 12:22 AM, Thorsten Reitz wrote: > >> Hi all, >> >> we worked on using geotools as an osgi bundle, but only for specific >> releases of GeoTools. The latest version for which we did this is 2.6.4. >> You can download the bundle from here: >> >> http://svn.esdi-humboldt.eu/repo/humboldt2/trunk/hale/hale-platform/target/org.geotools/ >> >> In this folder you will also find the required configuration files >> (*.bnd) to generate the manifest using bnd. Please note that a few of >> the dependencies that gt relies on are not part of this bundle, but can >> be found in the platform as well - just browse the repository. Also note >> that the generated gt 2.6.4 also has a minor patch applied. >> >> Hope this helps & best regards, >> >> Thorsten >> >> Am 04.04.2011 15:36, schrieb Jody Garnett: >>> Hi Chad: >>> >>> I would love to have GeoTools issue OSGi plugins out of the box; "all" >>> we need is someone to do the work. There is an outstanding proposal >>> describing the work here: >>> - >>> http://docs.codehaus.org/display/GEOTOOLS/Add+bundle+information+to+jar+manifest >>> >>> I did add some stuff to net.refractions.udig.libs that configured >>> GeoTools for use. If you can tell me how to do that just with OSGi >>> callbacks I would be happy to make the change. >>> >>> Specifically I want to feed some additional EPSG codes into >>> gt-referencing and set a few other switches on the GeoTools class. >>> >>> Other than that you can just package it up yourself; using a single OSGi >>> plugin for all of the GeoTools jars (so that the java plugin system does >>> not run into classpath trouble). >>> >>> -- >>> Jody Garnett >>> >>> On Monday, 4 April 2011 at 11:18 PM, Chad S wrote: >>> >>>> I am looking for a geotools build that perhaps has been converted to >>>> an OSGI plugin or capable of being an OSGI plugin. I was working in >>>> Eclipse with uDig hoping that since uDig imported all the geotools >>>> stuff automatically that i could incorporate that set of libraries >>>> with my custom OSGI builds into one web service(instead of using >>>> glassfish). Turns out that the OSGI plugins that you get with uDig are >>>> specific to eclipse(wondering why) so taking anything outside of >>>> eclipse(like as a web service on a linux box) seems to be not doable. >>>> >>>> I have read through some message board links saying the geotools was >>>> currently not osgi compatible and it seems like NetBeans 6.9 made a >>>> huge stride with OSGI capabilities so i was just wanted to send out a >>>> feeder to see if anyone had any suggestions. thanks! >>>> >>>> chad >> >> -- >> Thorsten Reitz >> Abteilungsleiter Graphische Informationssysteme >> Fraunhofer-Institut für Graphische Datenverarbeitung IGD >> Fraunhoferstr. 5 | 64283 Darmstadt | Germany >> Tel +49 6151 155-416 | Fax +49 6151 155-444 >> [email protected] | www.igd.fraunhofer.de >> <http://www.igd.fraunhofer.de> >> >> ------------------------------------------------------------------------------ >> Create and publish websites with WebMatrix >> Use the most popular FREE web apps or write code yourself; >> WebMatrix provides all the features you need to develop and >> publish your website. http://p.sf.net/sfu/ms-webmatrix-sf >> _______________________________________________ >> Geotools-gt2-users mailing list >> [email protected] >> <mailto:[email protected]> >> https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users > > > > ------------------------------------------------------------------------------ > Xperia(TM) PLAY > It's a major breakthrough. An authentic gaming > smartphone on the nation's most reliable network. > And it wants your games. > http://p.sf.net/sfu/verizon-sfdev > > > > _______________________________________________ > Geotools-gt2-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users -- Dipl.-Inform. Simon Templer Fraunhofer-Institut für Graphische Datenverarbeitung IGD Fraunhoferstr. 5 | 64283 Darmstadt | Germany Tel +49 6151 155-408 | Fax +49 6151 155-444 [email protected] | www.igd.fraunhofer.de ------------------------------------------------------------------------------ Xperia(TM) PLAY It's a major breakthrough. An authentic gaming smartphone on the nation's most reliable network. And it wants your games. http://p.sf.net/sfu/verizon-sfdev _______________________________________________ Geotools-gt2-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
