You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jena.apache.org by stain <gi...@git.apache.org> on 2014/10/28 17:50:42 UTC
[GitHub] jena pull request: Jena OSGi bundle
GitHub user stain opened a pull request:
https://github.com/apache/jena/pull/10
Jena OSGi bundle
Embedding core Jena modules in a single OSGi bundle.
This works around classloader issues such as Jena's use of `Class.forName()`, but does not yet support other OSGi bundles to easily plug in 3rd party Jena implementations of say readers and writers.
Modules included:
* jena-core
* jena-arq
* jena-tdb
* jena-sdb
* jena-iri
This OSGi bundle includes a dependency on the `httpclient-osgi` and `httpcore-osgi` version. All other packages used are embeded within the OSGi bundle, making them appear on a single classloader in OSGi.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/stain/jena jena-osgi-bundle
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/jena/pull/10.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #10
----
commit 1957808b34a408bf0278cfb4017d6e7040eebabb
Author: Stian Soiland-Reyes <so...@cs.manchester.ac.uk>
Date: 2014-10-28T16:03:15Z
pom tweaks so it builds
.. also a spelling mistake tixed
commit 5724c31d542d7c8ddf89c4333fbe4809d7783f49
Author: Stian Soiland-Reyes <so...@cs.manchester.ac.uk>
Date: 2014-10-28T16:34:59Z
Embedding all Jena modules in a single OSGi bundle.
commit 3bb12d0a1472977cfcd51abf392683659bac1e4d
Author: Stian Soiland-Reyes <so...@cs.manchester.ac.uk>
Date: 2014-10-28T16:38:00Z
httpcore-osgi 4.2.5
commit aa705c9e3e4f3b4c58924e95aa223213358b08e3
Author: Stian Soiland-Reyes <so...@cs.manchester.ac.uk>
Date: 2014-10-28T16:42:48Z
ver.* properties as in jena-parent
TODO: Move these properties to jena-parent?
----
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---
[GitHub] jena pull request: Jena OSGi bundle
Posted by asfgit <gi...@git.apache.org>.
Github user asfgit closed the pull request at:
https://github.com/apache/jena/pull/10
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---
Re: [GitHub] jena pull request: Jena OSGi bundle
Posted by Stian Soiland-Reyes <st...@apache.org>.
So I have updated the jena-osgi pull request in
https://github.com/apache/jena/pull/10/
As commented there - it now includes a new module jena-osgi-test to
test it within Equinox and Apache Felix (two of the leading OSGi
frameworks).
The tests are run as part of the maven build - any failure would be
propagated out. It has to be in a separate module in order to test
calling from 'another' OSGi module.
Note that the test depends on the maven plugin
https://github.com/everit-org/eosgi-maven-plugin
This is licensed under LGPL. This is only used during the test/build
(of jena-osgi-test) - which I believe should be acceptable according
to:
https://www.apache.org/legal/resolved.html#prohibited
Given these brief tests working (which cover jena-core, jena-arq and
jena-tdb), I would be comfortable to put it in, then wait for
feedback. Perhaps wait with promoting it on the website before we know
it works generally?
I tried putting it into Clerezza instead of their
org.apache.clerezza.ext.jena.* modules, but I am not knowledgeable
enough about how to get Clerezza started as an OSGi application..
If you want to copy-paste it into a running OSGi setup, then have a look in
jena/jena-osgi-test/target/eosgi-dist/felix/lib
as it would contain the bundles you need. Namely:
commons-csv-1.0.jar
commons-lang3-3.3.2.jar
httpclient-osgi-4.2.6.jar
httpcore-osgi-4.2.5.jar
jackson-annotations-2.3.0.jar
jackson-core-2.3.3.jar
jackson-databind-2.3.3.jar
jcl-over-slf4j-1.7.6.jar
jena-osgi-2.12.2-SNAPSHOT.jar
jsonld-java-0.5.1.jar
libthrift-0.9.2.jar
log4j-1.2.17.jar
slf4j-api-1.7.6.jar
You might not want this if you do slf4j in another way:
slf4j-log4j12-1.7.6.jar
You should not need these as they are only used for the testing:
org.ops4j.pax.tipi.junit-4.11.0.1.jar
jena-osgi-test-2.12.2-SNAPSHOT.jar
org.everit.osgi.dev.testrunner-4.0.3.jar
org.everit.osgi.dev.testrunner.junit4-3.0.4.jar
org.ops4j.pax.tipi.hamcrest.core-1.3.0.1.jar
On 7 January 2015 at 11:45, Stian Soiland-Reyes <st...@apache.org> wrote:
> I'm not (yet) an expert in OSGi, I'm just trying to get the wheels spinning.. :)
>
>
> These legacy bits are a bit trickier:
>
> ./jena-core/src/main/java/com/hp/hpl/jena/rdf/model/impl/RDFReaderFImpl.java:
> return (RDFReader) Class.forName(className)
> ./jena-core/src/main/java/com/hp/hpl/jena/rdf/model/impl/RDFWriterFImpl.java:
> return (RDFWriter) Class.forName(className).newInstance();
> ./jena-core/src/main/java/com/hp/hpl/jena/ontology/impl/OntModelImpl.java:
> owlSyntaxCheckerClass =
> Class.forName(owlSyntaxCheckerClassName);
>
>
> .. specially as jena-arq RIOT registers its replacement readers and
> writers by classname.
>
> That is what IMHO is preventing each jena-* submodule to be
> independent OSGi bundles.
>
> It should be possible to fix these by passing in the actual Class
> instead (with a deprecated method for the String className).
>
>
> But the jena-osgi solution should in theory work well, by basically
> shadowing in jena-arq, jena-core, jena-tdb and jena-iri to the same
> bundle.
>
> I'll have another go to update my pull request - sorry for letting
> this slip earlier. Now that we use the bundle version of jsonld-java
> (0.5.1) it looks a bit cleaner as well.
>
>
>
>
>
> On 7 January 2015 at 11:10, Andy Seaborne <an...@apache.org> wrote:
>> Where are we on this item?
>>
>> Must be time soon for the next Jena release and getting this in as an
>> addition binary artifact would be excellent. As ever, getting feedback
>> before releases is slow so a way forward is to include a new binary
>> artifact, expecting to iterate it a bit.
>>
>> A quick look for Class.forName, many are irrelevant (SDB, Fuseki1, testing).
>>
>> I don't use OSGi so I'm looking/hoping/needing an expert who will sprinkle
>> the techno-fairy dust.
>>
>> Andy
>
>
>
> --
> Stian Soiland-Reyes
> Apache Taverna (incubating)
> http://orcid.org/0000-0001-9842-9718
--
Stian Soiland-Reyes
Apache Taverna (incubating)
http://orcid.org/0000-0001-9842-9718
Re: [GitHub] jena pull request: Jena OSGi bundle
Posted by Stian Soiland-Reyes <st...@apache.org>.
I'm not (yet) an expert in OSGi, I'm just trying to get the wheels spinning.. :)
These legacy bits are a bit trickier:
./jena-core/src/main/java/com/hp/hpl/jena/rdf/model/impl/RDFReaderFImpl.java:
return (RDFReader) Class.forName(className)
./jena-core/src/main/java/com/hp/hpl/jena/rdf/model/impl/RDFWriterFImpl.java:
return (RDFWriter) Class.forName(className).newInstance();
./jena-core/src/main/java/com/hp/hpl/jena/ontology/impl/OntModelImpl.java:
owlSyntaxCheckerClass =
Class.forName(owlSyntaxCheckerClassName);
.. specially as jena-arq RIOT registers its replacement readers and
writers by classname.
That is what IMHO is preventing each jena-* submodule to be
independent OSGi bundles.
It should be possible to fix these by passing in the actual Class
instead (with a deprecated method for the String className).
But the jena-osgi solution should in theory work well, by basically
shadowing in jena-arq, jena-core, jena-tdb and jena-iri to the same
bundle.
I'll have another go to update my pull request - sorry for letting
this slip earlier. Now that we use the bundle version of jsonld-java
(0.5.1) it looks a bit cleaner as well.
On 7 January 2015 at 11:10, Andy Seaborne <an...@apache.org> wrote:
> Where are we on this item?
>
> Must be time soon for the next Jena release and getting this in as an
> addition binary artifact would be excellent. As ever, getting feedback
> before releases is slow so a way forward is to include a new binary
> artifact, expecting to iterate it a bit.
>
> A quick look for Class.forName, many are irrelevant (SDB, Fuseki1, testing).
>
> I don't use OSGi so I'm looking/hoping/needing an expert who will sprinkle
> the techno-fairy dust.
>
> Andy
--
Stian Soiland-Reyes
Apache Taverna (incubating)
http://orcid.org/0000-0001-9842-9718
Re: [GitHub] jena pull request: Jena OSGi bundle
Posted by Andy Seaborne <an...@apache.org>.
Where are we on this item?
Must be time soon for the next Jena release and getting this in as an
addition binary artifact would be excellent. As ever, getting feedback
before releases is slow so a way forward is to include a new binary
artifact, expecting to iterate it a bit.
A quick look for Class.forName, many are irrelevant (SDB, Fuseki1, testing).
I don't use OSGi so I'm looking/hoping/needing an expert who will
sprinkle the techno-fairy dust.
Andy
Re: [GitHub] jena pull request: Jena OSGi bundle
Posted by Mark Feblowitz <Ma...@comcast.net>.
I’m an OSGi user, and have been using a custom-wrapped Jena OSGi bundle for more than a year.
I’d be happy to try it out. How would I do so?
Mark
> On Oct 31, 2014, at 6:56 AM, Andy Seaborne <an...@apache.org> wrote:
>
> On 28/10/14 16:50, stain wrote:
>> GitHub user stain opened a pull request:
>>
>> https://github.com/apache/jena/pull/10
>>
>> Jena OSGi bundle
>>
>> Embedding core Jena modules in a single OSGi bundle.
>>
>> This works around classloader issues such as Jena's use of `Class.forName()`, but does not yet support other OSGi bundles to easily plug in 3rd party Jena implementations of say readers and writers.
>>
>> Modules included:
>> * jena-core
>> * jena-arq
>> * jena-tdb
>> * jena-sdb
>> * jena-iri
>
> Having one bundle for Jena makes a lot of sense as we build and release whole systems, so partial replacement of bits and pieces isn't supported/encouraged anyway. Releases may change cross module assumptions. Personally, I'd drop SDB from the included modules; it's being made a maven-only module next time, and not in the distribution binaries.
>
> What I'd really, really like is for this to be tested by other OSGi users. As far as I know, none of the committers use OSGi day-to-day (we/Epimorphics used to but when we looked at the costs/benefits we switch to a simpler, service architecture style).
>
> Stain - what would you say to advertising this on users@ (and dev@clerezza?) and seeing if we can get some user testing and validation?
>
> Andy
>
>>
>> This OSGi bundle includes a dependency on the `httpclient-osgi` and `httpcore-osgi` version. All other packages used are embeded within the OSGi bundle, making them appear on a single classloader in OSGi.
>>
>>
>>
>> You can merge this pull request into a Git repository by running:
>>
>> $ git pull https://github.com/stain/jena jena-osgi-bundle
>>
>> Alternatively you can review and apply these changes as the patch at:
>>
>> https://github.com/apache/jena/pull/10.patch
>>
>> To close this pull request, make a commit to your master/trunk branch
>> with (at least) the following in the commit message:
>>
>> This closes #10
>>
>> ----
>> commit 1957808b34a408bf0278cfb4017d6e7040eebabb
>> Author: Stian Soiland-Reyes <so...@cs.manchester.ac.uk>
>> Date: 2014-10-28T16:03:15Z
>>
>> pom tweaks so it builds
>>
>> .. also a spelling mistake tixed
>>
>> commit 5724c31d542d7c8ddf89c4333fbe4809d7783f49
>> Author: Stian Soiland-Reyes <so...@cs.manchester.ac.uk>
>> Date: 2014-10-28T16:34:59Z
>>
>> Embedding all Jena modules in a single OSGi bundle.
>>
>> commit 3bb12d0a1472977cfcd51abf392683659bac1e4d
>> Author: Stian Soiland-Reyes <so...@cs.manchester.ac.uk>
>> Date: 2014-10-28T16:38:00Z
>>
>> httpcore-osgi 4.2.5
>>
>> commit aa705c9e3e4f3b4c58924e95aa223213358b08e3
>> Author: Stian Soiland-Reyes <so...@cs.manchester.ac.uk>
>> Date: 2014-10-28T16:42:48Z
>>
>> ver.* properties as in jena-parent
>>
>> TODO: Move these properties to jena-parent?
>>
>> ----
>>
>>
>> ---
>> If your project is set up for it, you can reply to this email and have your
>> reply appear on GitHub as well. If your project does not have this feature
>> enabled and wishes so, or if the feature is enabled but not working, please
>> contact infrastructure at infrastructure@apache.org or file a JIRA ticket
>> with INFRA.
>> ---
>>
>
Re: [GitHub] jena pull request: Jena OSGi bundle
Posted by Mark Feblowitz <Ma...@comcast.net>.
We have these as separate bundles. I’ll be looking for potential leakage issues.
Mark
> On Nov 5, 2014, at 5:55 AM, Stian Soiland-Reyes <so...@cs.manchester.ac.uk> wrote:
>
> So in your approach you will not use the OSGi bundles of httpclient, slf4j etc.
>
> Are we sure they don't 'leak' out through any of the APIs?
>
> On 4 November 2014 18:58, Mark Feblowitz <ma...@icloud.com> wrote:
>> Basically, I’ve been including everything:
>>
>> Manifest-Version: 1.0
>> Bundle-ManifestVersion: 2
>> Bundle-Name: Jena
>> Bundle-SymbolicName: jena
>> Bundle-Version: 2.11.1.0
>> Bundle-Vendor: IBM repackage of apache-jena
>> Bundle-RequiredExecutionEnvironment: J2SE-1.5
>> Import-Package: org.osgi.framework
>> Bundle-ActivationPolicy: lazy
>> Bundle-ClassPath: lib/jena-core-2.11.1.jar,
>> lib/jena-arq-2.11.1.jar,
>> lib/jena-iri-1.0.1.jar,
>> lib/jena-tdb-1.0.1.jar,
>> lib/jcl-over-slf4j-1.6.4.jar,
>> lib/xercesImpl-2.11.0.jar,
>> lib/xml-apis-1.4.01.jar,
>> lib/log4j-1.2.16.jar,
>> lib/commons-codec-1.6.jar,
>> lib/httpclient-4.2.3.jar,
>> lib/httpcore-4.2.2.jar,
>> lib/slf4j-api-1.6.4.jar,
>> lib/slf4j-log4j12-1.6.4.jar,
>> lib/stax2-api-3.1.1.jar,
>> lib/woodstox-core-asl-4.2.0.jar,
>> .
>> Export-Package: arq,
>> arq.cmd,
>> com.hp.hpl.jena,
>> com.hp.hpl.jena.assembler,
>> com.hp.hpl.jena.datatypes,
>> com.hp.hpl.jena.datatypes.xsd,
>> com.hp.hpl.jena.ontology,
>> com.hp.hpl.jena.ontology.impl,
>> com.hp.hpl.jena.query,
>> com.hp.hpl.jena.rdf.model,
>> com.hp.hpl.jena.rdf.model.impl,
>> com.hp.hpl.jena.reasoner,
>> com.hp.hpl.jena.shared,
>> com.hp.hpl.jena.sparql.core,
>> com.hp.hpl.jena.sparql.engine.http,
>> com.hp.hpl.jena.sparql.function,
>> com.hp.hpl.jena.sparql.graph,
>> com.hp.hpl.jena.sparql.resultset,
>> com.hp.hpl.jena.sparql.sse,
>> com.hp.hpl.jena.update,
>> com.hp.hpl.jena.util,
>> com.hp.hpl.jena.vocabulary,
>> jena,
>> org.apache.commons.codec.digest,
>> org.apache.jena.riot,
>> org.apache.log4j,
>> org.slf4j,
>> org.slf4j.helpers,
>> org.slf4j.impl,
>> org.slf4j.spi
>> Eclipse-BuddyPolicy: boot
>>
>>
>> I’ll be interested in seeing whether the one from GitHub drops in and simply works. I’ll let you know.
>>
>> Mark
>>
>>
>>
>>> On Oct 31, 2014, at 9:26 PM, Stian Soiland-Reyes <so...@cs.manchester.ac.uk> wrote:
>>>
>>> I would like to hear from your experience of a custom-wrapped bundle
>>> what you decided to include or not.
>>>
>>> See my other email message in this thread..
>>>
>>> Basically in short:
>>>
>>>
>>> http://build.mygrid.org.uk/ci/job/jena-bundle/21/org.apache.jena$jena-osgi/
>>>
>>> http://repository.mygrid.org.uk/artifactory/ext-snapshot-local/org/apache/jena/jena-osgi/2.12.2-SNAPSHOT/
>>> http://repository.mygrid.org.uk/artifactory/ext-snapshot-local/org/apache/jena/jena-parent/12-SNAPSHOT/
>>>
>>>
>>>
>>> On 31 October 2014 13:27, Mark Feblowitz <ma...@icloud.com> wrote:
>>>> I’m an OSGi user, and have been using a custom-wrapped Jena OSGi bundle for more than a year.
>>>>
>>>> I’d be happy to try it out. How would I do so?
>>>>
>>>> Mark
>>>>
>>>>
>>>>
>>>>> On Oct 31, 2014, at 6:56 AM, Andy Seaborne <an...@apache.org> wrote:
>>>>>
>>>>> On 28/10/14 16:50, stain wrote:
>>>>>> GitHub user stain opened a pull request:
>>>>>>
>>>>>> https://github.com/apache/jena/pull/10
>>>>>>
>>>>>> Jena OSGi bundle
>>>>>>
>>>>>> Embedding core Jena modules in a single OSGi bundle.
>>>>>>
>>>>>> This works around classloader issues such as Jena's use of `Class.forName()`, but does not yet support other OSGi bundles to easily plug in 3rd party Jena implementations of say readers and writers.
>>>>>>
>>>>>> Modules included:
>>>>>> * jena-core
>>>>>> * jena-arq
>>>>>> * jena-tdb
>>>>>> * jena-sdb
>>>>>> * jena-iri
>>>>>
>>>>> Having one bundle for Jena makes a lot of sense as we build and release whole systems, so partial replacement of bits and pieces isn't supported/encouraged anyway. Releases may change cross module assumptions. Personally, I'd drop SDB from the included modules; it's being made a maven-only module next time, and not in the distribution binaries.
>>>>>
>>>>> What I'd really, really like is for this to be tested by other OSGi users. As far as I know, none of the committers use OSGi day-to-day (we/Epimorphics used to but when we looked at the costs/benefits we switch to a simpler, service architecture style).
>>>>>
>>>>> Stain - what would you say to advertising this on users@ (and dev@clerezza?) and seeing if we can get some user testing and validation?
>>>>>
>>>>> Andy
>>>>>
>>>>>>
>>>>>> This OSGi bundle includes a dependency on the `httpclient-osgi` and `httpcore-osgi` version. All other packages used are embeded within the OSGi bundle, making them appear on a single classloader in OSGi.
>>>>>>
>>>>>>
>>>>>>
>>>>>> You can merge this pull request into a Git repository by running:
>>>>>>
>>>>>> $ git pull https://github.com/stain/jena jena-osgi-bundle
>>>>>>
>>>>>> Alternatively you can review and apply these changes as the patch at:
>>>>>>
>>>>>> https://github.com/apache/jena/pull/10.patch
>>>>>>
>>>>>> To close this pull request, make a commit to your master/trunk branch
>>>>>> with (at least) the following in the commit message:
>>>>>>
>>>>>> This closes #10
>>>>>>
>>>>>> ----
>>>>>> commit 1957808b34a408bf0278cfb4017d6e7040eebabb
>>>>>> Author: Stian Soiland-Reyes <so...@cs.manchester.ac.uk>
>>>>>> Date: 2014-10-28T16:03:15Z
>>>>>>
>>>>>> pom tweaks so it builds
>>>>>>
>>>>>> .. also a spelling mistake tixed
>>>>>>
>>>>>> commit 5724c31d542d7c8ddf89c4333fbe4809d7783f49
>>>>>> Author: Stian Soiland-Reyes <so...@cs.manchester.ac.uk>
>>>>>> Date: 2014-10-28T16:34:59Z
>>>>>>
>>>>>> Embedding all Jena modules in a single OSGi bundle.
>>>>>>
>>>>>> commit 3bb12d0a1472977cfcd51abf392683659bac1e4d
>>>>>> Author: Stian Soiland-Reyes <so...@cs.manchester.ac.uk>
>>>>>> Date: 2014-10-28T16:38:00Z
>>>>>>
>>>>>> httpcore-osgi 4.2.5
>>>>>>
>>>>>> commit aa705c9e3e4f3b4c58924e95aa223213358b08e3
>>>>>> Author: Stian Soiland-Reyes <so...@cs.manchester.ac.uk>
>>>>>> Date: 2014-10-28T16:42:48Z
>>>>>>
>>>>>> ver.* properties as in jena-parent
>>>>>>
>>>>>> TODO: Move these properties to jena-parent?
>>>>>>
>>>>>> ----
>>>>>>
>>>>>>
>>>>>> ---
>>>>>> If your project is set up for it, you can reply to this email and have your
>>>>>> reply appear on GitHub as well. If your project does not have this feature
>>>>>> enabled and wishes so, or if the feature is enabled but not working, please
>>>>>> contact infrastructure at infrastructure@apache.org or file a JIRA ticket
>>>>>> with INFRA.
>>>>>> ---
>>>>>>
>>>>>
>>>>
>>>
>>>
>>>
>>> --
>>> Stian Soiland-Reyes, myGrid team
>>> School of Computer Science
>>> The University of Manchester
>>> http://soiland-reyes.com/stian/work/ http://orcid.org/0000-0001-9842-9718
>>
>
>
>
> --
> Stian Soiland-Reyes, myGrid team
> School of Computer Science
> The University of Manchester
> http://soiland-reyes.com/stian/work/ http://orcid.org/0000-0001-9842-9718
Re: [GitHub] jena pull request: Jena OSGi bundle
Posted by Stian Soiland-Reyes <so...@cs.manchester.ac.uk>.
Right.. then I think the httpclient and friends needs to be used as an
OSGi dependency (as my patch suggested) so that the client can access
it (and override their version), otherwise you get the classical
"HttpClient is not an HttpClient" classloader problem.
On 5 November 2014 12:34, Andy Seaborne <an...@apache.org> wrote:
> On 05/11/14 10:55, Stian Soiland-Reyes wrote:
>>
>> So in your approach you will not use the OSGi bundles of httpclient, slf4j
>> etc.
>>
>> Are we sure they don't 'leak' out through any of the APIs?
>
>
> They do - maybe only "weakly" i.e. for more detailed and specialist calls,
> not the basic/common ones.
>
> In org.apache.jena.riot.web.HttpOp, some operations work with HttpClient and
> even while Jena's HttpAuthenticator abstracts somewhat from HTTP client, at
> some level, it is exposing it.
>
> And logging, system wide control and its configuration, is a whole different
> game!
>
> Andy
>
>
>>
>> On 4 November 2014 18:58, Mark Feblowitz <ma...@icloud.com> wrote:
>>>
>>> Basically, I’ve been including everything:
>>>
>>> Manifest-Version: 1.0
>>> Bundle-ManifestVersion: 2
>>> Bundle-Name: Jena
>>> Bundle-SymbolicName: jena
>>> Bundle-Version: 2.11.1.0
>>> Bundle-Vendor: IBM repackage of apache-jena
>>> Bundle-RequiredExecutionEnvironment: J2SE-1.5
>>> Import-Package: org.osgi.framework
>>> Bundle-ActivationPolicy: lazy
>>> Bundle-ClassPath: lib/jena-core-2.11.1.jar,
>>> lib/jena-arq-2.11.1.jar,
>>> lib/jena-iri-1.0.1.jar,
>>> lib/jena-tdb-1.0.1.jar,
>>> lib/jcl-over-slf4j-1.6.4.jar,
>>> lib/xercesImpl-2.11.0.jar,
>>> lib/xml-apis-1.4.01.jar,
>>> lib/log4j-1.2.16.jar,
>>> lib/commons-codec-1.6.jar,
>>> lib/httpclient-4.2.3.jar,
>>> lib/httpcore-4.2.2.jar,
>>> lib/slf4j-api-1.6.4.jar,
>>> lib/slf4j-log4j12-1.6.4.jar,
>>> lib/stax2-api-3.1.1.jar,
>>> lib/woodstox-core-asl-4.2.0.jar,
>>> .
>>> Export-Package: arq,
>>> arq.cmd,
>>> com.hp.hpl.jena,
>>> com.hp.hpl.jena.assembler,
>>> com.hp.hpl.jena.datatypes,
>>> com.hp.hpl.jena.datatypes.xsd,
>>> com.hp.hpl.jena.ontology,
>>> com.hp.hpl.jena.ontology.impl,
>>> com.hp.hpl.jena.query,
>>> com.hp.hpl.jena.rdf.model,
>>> com.hp.hpl.jena.rdf.model.impl,
>>> com.hp.hpl.jena.reasoner,
>>> com.hp.hpl.jena.shared,
>>> com.hp.hpl.jena.sparql.core,
>>> com.hp.hpl.jena.sparql.engine.http,
>>> com.hp.hpl.jena.sparql.function,
>>> com.hp.hpl.jena.sparql.graph,
>>> com.hp.hpl.jena.sparql.resultset,
>>> com.hp.hpl.jena.sparql.sse,
>>> com.hp.hpl.jena.update,
>>> com.hp.hpl.jena.util,
>>> com.hp.hpl.jena.vocabulary,
>>> jena,
>>> org.apache.commons.codec.digest,
>>> org.apache.jena.riot,
>>> org.apache.log4j,
>>> org.slf4j,
>>> org.slf4j.helpers,
>>> org.slf4j.impl,
>>> org.slf4j.spi
>>> Eclipse-BuddyPolicy: boot
>>>
>>>
>>> I’ll be interested in seeing whether the one from GitHub drops in and
>>> simply works. I’ll let you know.
>>>
>>> Mark
>>>
>>>
>>>
>>>> On Oct 31, 2014, at 9:26 PM, Stian Soiland-Reyes
>>>> <so...@cs.manchester.ac.uk> wrote:
>>>>
>>>> I would like to hear from your experience of a custom-wrapped bundle
>>>> what you decided to include or not.
>>>>
>>>> See my other email message in this thread..
>>>>
>>>> Basically in short:
>>>>
>>>>
>>>>
>>>> http://build.mygrid.org.uk/ci/job/jena-bundle/21/org.apache.jena$jena-osgi/
>>>>
>>>>
>>>> http://repository.mygrid.org.uk/artifactory/ext-snapshot-local/org/apache/jena/jena-osgi/2.12.2-SNAPSHOT/
>>>>
>>>> http://repository.mygrid.org.uk/artifactory/ext-snapshot-local/org/apache/jena/jena-parent/12-SNAPSHOT/
>>>>
>>>>
>>>>
>>>> On 31 October 2014 13:27, Mark Feblowitz <ma...@icloud.com>
>>>> wrote:
>>>>>
>>>>> I’m an OSGi user, and have been using a custom-wrapped Jena OSGi bundle
>>>>> for more than a year.
>>>>>
>>>>> I’d be happy to try it out. How would I do so?
>>>>>
>>>>> Mark
>>>>>
>>>>>
>>>>>
>>>>>> On Oct 31, 2014, at 6:56 AM, Andy Seaborne <an...@apache.org> wrote:
>>>>>>
>>>>>> On 28/10/14 16:50, stain wrote:
>>>>>>>
>>>>>>> GitHub user stain opened a pull request:
>>>>>>>
>>>>>>> https://github.com/apache/jena/pull/10
>>>>>>>
>>>>>>> Jena OSGi bundle
>>>>>>>
>>>>>>> Embedding core Jena modules in a single OSGi bundle.
>>>>>>>
>>>>>>> This works around classloader issues such as Jena's use of
>>>>>>> `Class.forName()`, but does not yet support other OSGi bundles to easily
>>>>>>> plug in 3rd party Jena implementations of say readers and writers.
>>>>>>>
>>>>>>> Modules included:
>>>>>>> * jena-core
>>>>>>> * jena-arq
>>>>>>> * jena-tdb
>>>>>>> * jena-sdb
>>>>>>> * jena-iri
>>>>>>
>>>>>>
>>>>>> Having one bundle for Jena makes a lot of sense as we build and
>>>>>> release whole systems, so partial replacement of bits and pieces isn't
>>>>>> supported/encouraged anyway. Releases may change cross module assumptions.
>>>>>> Personally, I'd drop SDB from the included modules; it's being made a
>>>>>> maven-only module next time, and not in the distribution binaries.
>>>>>>
>>>>>> What I'd really, really like is for this to be tested by other OSGi
>>>>>> users. As far as I know, none of the committers use OSGi day-to-day
>>>>>> (we/Epimorphics used to but when we looked at the costs/benefits we switch
>>>>>> to a simpler, service architecture style).
>>>>>>
>>>>>> Stain - what would you say to advertising this on users@ (and
>>>>>> dev@clerezza?) and seeing if we can get some user testing and validation?
>>>>>>
>>>>>> Andy
>>>>>>
>>>>>>>
>>>>>>> This OSGi bundle includes a dependency on the `httpclient-osgi`
>>>>>>> and `httpcore-osgi` version. All other packages used are embeded within the
>>>>>>> OSGi bundle, making them appear on a single classloader in OSGi.
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> You can merge this pull request into a Git repository by running:
>>>>>>>
>>>>>>> $ git pull https://github.com/stain/jena jena-osgi-bundle
>>>>>>>
>>>>>>> Alternatively you can review and apply these changes as the patch at:
>>>>>>>
>>>>>>> https://github.com/apache/jena/pull/10.patch
>>>>>>>
>>>>>>> To close this pull request, make a commit to your master/trunk branch
>>>>>>> with (at least) the following in the commit message:
>>>>>>>
>>>>>>> This closes #10
>>>>>>>
>>>>>>> ----
>>>>>>> commit 1957808b34a408bf0278cfb4017d6e7040eebabb
>>>>>>> Author: Stian Soiland-Reyes <so...@cs.manchester.ac.uk>
>>>>>>> Date: 2014-10-28T16:03:15Z
>>>>>>>
>>>>>>> pom tweaks so it builds
>>>>>>>
>>>>>>> .. also a spelling mistake tixed
>>>>>>>
>>>>>>> commit 5724c31d542d7c8ddf89c4333fbe4809d7783f49
>>>>>>> Author: Stian Soiland-Reyes <so...@cs.manchester.ac.uk>
>>>>>>> Date: 2014-10-28T16:34:59Z
>>>>>>>
>>>>>>> Embedding all Jena modules in a single OSGi bundle.
>>>>>>>
>>>>>>> commit 3bb12d0a1472977cfcd51abf392683659bac1e4d
>>>>>>> Author: Stian Soiland-Reyes <so...@cs.manchester.ac.uk>
>>>>>>> Date: 2014-10-28T16:38:00Z
>>>>>>>
>>>>>>> httpcore-osgi 4.2.5
>>>>>>>
>>>>>>> commit aa705c9e3e4f3b4c58924e95aa223213358b08e3
>>>>>>> Author: Stian Soiland-Reyes <so...@cs.manchester.ac.uk>
>>>>>>> Date: 2014-10-28T16:42:48Z
>>>>>>>
>>>>>>> ver.* properties as in jena-parent
>>>>>>>
>>>>>>> TODO: Move these properties to jena-parent?
>>>>>>>
>>>>>>> ----
>>>>>>>
>>>>>>>
>>>>>>> ---
>>>>>>> If your project is set up for it, you can reply to this email and
>>>>>>> have your
>>>>>>> reply appear on GitHub as well. If your project does not have this
>>>>>>> feature
>>>>>>> enabled and wishes so, or if the feature is enabled but not working,
>>>>>>> please
>>>>>>> contact infrastructure at infrastructure@apache.org or file a JIRA
>>>>>>> ticket
>>>>>>> with INFRA.
>>>>>>> ---
>>>>>>>
>>>>>>
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> Stian Soiland-Reyes, myGrid team
>>>> School of Computer Science
>>>> The University of Manchester
>>>> http://soiland-reyes.com/stian/work/
>>>> http://orcid.org/0000-0001-9842-9718
>>>
>>>
>>
>>
>>
>
--
Stian Soiland-Reyes, myGrid team
School of Computer Science
The University of Manchester
http://soiland-reyes.com/stian/work/ http://orcid.org/0000-0001-9842-9718
Re: [GitHub] jena pull request: Jena OSGi bundle
Posted by Andy Seaborne <an...@apache.org>.
On 05/11/14 10:55, Stian Soiland-Reyes wrote:
> So in your approach you will not use the OSGi bundles of httpclient, slf4j etc.
>
> Are we sure they don't 'leak' out through any of the APIs?
They do - maybe only "weakly" i.e. for more detailed and specialist
calls, not the basic/common ones.
In org.apache.jena.riot.web.HttpOp, some operations work with HttpClient
and even while Jena's HttpAuthenticator abstracts somewhat from HTTP
client, at some level, it is exposing it.
And logging, system wide control and its configuration, is a whole
different game!
Andy
>
> On 4 November 2014 18:58, Mark Feblowitz <ma...@icloud.com> wrote:
>> Basically, I’ve been including everything:
>>
>> Manifest-Version: 1.0
>> Bundle-ManifestVersion: 2
>> Bundle-Name: Jena
>> Bundle-SymbolicName: jena
>> Bundle-Version: 2.11.1.0
>> Bundle-Vendor: IBM repackage of apache-jena
>> Bundle-RequiredExecutionEnvironment: J2SE-1.5
>> Import-Package: org.osgi.framework
>> Bundle-ActivationPolicy: lazy
>> Bundle-ClassPath: lib/jena-core-2.11.1.jar,
>> lib/jena-arq-2.11.1.jar,
>> lib/jena-iri-1.0.1.jar,
>> lib/jena-tdb-1.0.1.jar,
>> lib/jcl-over-slf4j-1.6.4.jar,
>> lib/xercesImpl-2.11.0.jar,
>> lib/xml-apis-1.4.01.jar,
>> lib/log4j-1.2.16.jar,
>> lib/commons-codec-1.6.jar,
>> lib/httpclient-4.2.3.jar,
>> lib/httpcore-4.2.2.jar,
>> lib/slf4j-api-1.6.4.jar,
>> lib/slf4j-log4j12-1.6.4.jar,
>> lib/stax2-api-3.1.1.jar,
>> lib/woodstox-core-asl-4.2.0.jar,
>> .
>> Export-Package: arq,
>> arq.cmd,
>> com.hp.hpl.jena,
>> com.hp.hpl.jena.assembler,
>> com.hp.hpl.jena.datatypes,
>> com.hp.hpl.jena.datatypes.xsd,
>> com.hp.hpl.jena.ontology,
>> com.hp.hpl.jena.ontology.impl,
>> com.hp.hpl.jena.query,
>> com.hp.hpl.jena.rdf.model,
>> com.hp.hpl.jena.rdf.model.impl,
>> com.hp.hpl.jena.reasoner,
>> com.hp.hpl.jena.shared,
>> com.hp.hpl.jena.sparql.core,
>> com.hp.hpl.jena.sparql.engine.http,
>> com.hp.hpl.jena.sparql.function,
>> com.hp.hpl.jena.sparql.graph,
>> com.hp.hpl.jena.sparql.resultset,
>> com.hp.hpl.jena.sparql.sse,
>> com.hp.hpl.jena.update,
>> com.hp.hpl.jena.util,
>> com.hp.hpl.jena.vocabulary,
>> jena,
>> org.apache.commons.codec.digest,
>> org.apache.jena.riot,
>> org.apache.log4j,
>> org.slf4j,
>> org.slf4j.helpers,
>> org.slf4j.impl,
>> org.slf4j.spi
>> Eclipse-BuddyPolicy: boot
>>
>>
>> I’ll be interested in seeing whether the one from GitHub drops in and simply works. I’ll let you know.
>>
>> Mark
>>
>>
>>
>>> On Oct 31, 2014, at 9:26 PM, Stian Soiland-Reyes <so...@cs.manchester.ac.uk> wrote:
>>>
>>> I would like to hear from your experience of a custom-wrapped bundle
>>> what you decided to include or not.
>>>
>>> See my other email message in this thread..
>>>
>>> Basically in short:
>>>
>>>
>>> http://build.mygrid.org.uk/ci/job/jena-bundle/21/org.apache.jena$jena-osgi/
>>>
>>> http://repository.mygrid.org.uk/artifactory/ext-snapshot-local/org/apache/jena/jena-osgi/2.12.2-SNAPSHOT/
>>> http://repository.mygrid.org.uk/artifactory/ext-snapshot-local/org/apache/jena/jena-parent/12-SNAPSHOT/
>>>
>>>
>>>
>>> On 31 October 2014 13:27, Mark Feblowitz <ma...@icloud.com> wrote:
>>>> I’m an OSGi user, and have been using a custom-wrapped Jena OSGi bundle for more than a year.
>>>>
>>>> I’d be happy to try it out. How would I do so?
>>>>
>>>> Mark
>>>>
>>>>
>>>>
>>>>> On Oct 31, 2014, at 6:56 AM, Andy Seaborne <an...@apache.org> wrote:
>>>>>
>>>>> On 28/10/14 16:50, stain wrote:
>>>>>> GitHub user stain opened a pull request:
>>>>>>
>>>>>> https://github.com/apache/jena/pull/10
>>>>>>
>>>>>> Jena OSGi bundle
>>>>>>
>>>>>> Embedding core Jena modules in a single OSGi bundle.
>>>>>>
>>>>>> This works around classloader issues such as Jena's use of `Class.forName()`, but does not yet support other OSGi bundles to easily plug in 3rd party Jena implementations of say readers and writers.
>>>>>>
>>>>>> Modules included:
>>>>>> * jena-core
>>>>>> * jena-arq
>>>>>> * jena-tdb
>>>>>> * jena-sdb
>>>>>> * jena-iri
>>>>>
>>>>> Having one bundle for Jena makes a lot of sense as we build and release whole systems, so partial replacement of bits and pieces isn't supported/encouraged anyway. Releases may change cross module assumptions. Personally, I'd drop SDB from the included modules; it's being made a maven-only module next time, and not in the distribution binaries.
>>>>>
>>>>> What I'd really, really like is for this to be tested by other OSGi users. As far as I know, none of the committers use OSGi day-to-day (we/Epimorphics used to but when we looked at the costs/benefits we switch to a simpler, service architecture style).
>>>>>
>>>>> Stain - what would you say to advertising this on users@ (and dev@clerezza?) and seeing if we can get some user testing and validation?
>>>>>
>>>>> Andy
>>>>>
>>>>>>
>>>>>> This OSGi bundle includes a dependency on the `httpclient-osgi` and `httpcore-osgi` version. All other packages used are embeded within the OSGi bundle, making them appear on a single classloader in OSGi.
>>>>>>
>>>>>>
>>>>>>
>>>>>> You can merge this pull request into a Git repository by running:
>>>>>>
>>>>>> $ git pull https://github.com/stain/jena jena-osgi-bundle
>>>>>>
>>>>>> Alternatively you can review and apply these changes as the patch at:
>>>>>>
>>>>>> https://github.com/apache/jena/pull/10.patch
>>>>>>
>>>>>> To close this pull request, make a commit to your master/trunk branch
>>>>>> with (at least) the following in the commit message:
>>>>>>
>>>>>> This closes #10
>>>>>>
>>>>>> ----
>>>>>> commit 1957808b34a408bf0278cfb4017d6e7040eebabb
>>>>>> Author: Stian Soiland-Reyes <so...@cs.manchester.ac.uk>
>>>>>> Date: 2014-10-28T16:03:15Z
>>>>>>
>>>>>> pom tweaks so it builds
>>>>>>
>>>>>> .. also a spelling mistake tixed
>>>>>>
>>>>>> commit 5724c31d542d7c8ddf89c4333fbe4809d7783f49
>>>>>> Author: Stian Soiland-Reyes <so...@cs.manchester.ac.uk>
>>>>>> Date: 2014-10-28T16:34:59Z
>>>>>>
>>>>>> Embedding all Jena modules in a single OSGi bundle.
>>>>>>
>>>>>> commit 3bb12d0a1472977cfcd51abf392683659bac1e4d
>>>>>> Author: Stian Soiland-Reyes <so...@cs.manchester.ac.uk>
>>>>>> Date: 2014-10-28T16:38:00Z
>>>>>>
>>>>>> httpcore-osgi 4.2.5
>>>>>>
>>>>>> commit aa705c9e3e4f3b4c58924e95aa223213358b08e3
>>>>>> Author: Stian Soiland-Reyes <so...@cs.manchester.ac.uk>
>>>>>> Date: 2014-10-28T16:42:48Z
>>>>>>
>>>>>> ver.* properties as in jena-parent
>>>>>>
>>>>>> TODO: Move these properties to jena-parent?
>>>>>>
>>>>>> ----
>>>>>>
>>>>>>
>>>>>> ---
>>>>>> If your project is set up for it, you can reply to this email and have your
>>>>>> reply appear on GitHub as well. If your project does not have this feature
>>>>>> enabled and wishes so, or if the feature is enabled but not working, please
>>>>>> contact infrastructure at infrastructure@apache.org or file a JIRA ticket
>>>>>> with INFRA.
>>>>>> ---
>>>>>>
>>>>>
>>>>
>>>
>>>
>>>
>>> --
>>> Stian Soiland-Reyes, myGrid team
>>> School of Computer Science
>>> The University of Manchester
>>> http://soiland-reyes.com/stian/work/ http://orcid.org/0000-0001-9842-9718
>>
>
>
>
Re: [GitHub] jena pull request: Jena OSGi bundle
Posted by Stian Soiland-Reyes <so...@cs.manchester.ac.uk>.
So in your approach you will not use the OSGi bundles of httpclient, slf4j etc.
Are we sure they don't 'leak' out through any of the APIs?
On 4 November 2014 18:58, Mark Feblowitz <ma...@icloud.com> wrote:
> Basically, I’ve been including everything:
>
> Manifest-Version: 1.0
> Bundle-ManifestVersion: 2
> Bundle-Name: Jena
> Bundle-SymbolicName: jena
> Bundle-Version: 2.11.1.0
> Bundle-Vendor: IBM repackage of apache-jena
> Bundle-RequiredExecutionEnvironment: J2SE-1.5
> Import-Package: org.osgi.framework
> Bundle-ActivationPolicy: lazy
> Bundle-ClassPath: lib/jena-core-2.11.1.jar,
> lib/jena-arq-2.11.1.jar,
> lib/jena-iri-1.0.1.jar,
> lib/jena-tdb-1.0.1.jar,
> lib/jcl-over-slf4j-1.6.4.jar,
> lib/xercesImpl-2.11.0.jar,
> lib/xml-apis-1.4.01.jar,
> lib/log4j-1.2.16.jar,
> lib/commons-codec-1.6.jar,
> lib/httpclient-4.2.3.jar,
> lib/httpcore-4.2.2.jar,
> lib/slf4j-api-1.6.4.jar,
> lib/slf4j-log4j12-1.6.4.jar,
> lib/stax2-api-3.1.1.jar,
> lib/woodstox-core-asl-4.2.0.jar,
> .
> Export-Package: arq,
> arq.cmd,
> com.hp.hpl.jena,
> com.hp.hpl.jena.assembler,
> com.hp.hpl.jena.datatypes,
> com.hp.hpl.jena.datatypes.xsd,
> com.hp.hpl.jena.ontology,
> com.hp.hpl.jena.ontology.impl,
> com.hp.hpl.jena.query,
> com.hp.hpl.jena.rdf.model,
> com.hp.hpl.jena.rdf.model.impl,
> com.hp.hpl.jena.reasoner,
> com.hp.hpl.jena.shared,
> com.hp.hpl.jena.sparql.core,
> com.hp.hpl.jena.sparql.engine.http,
> com.hp.hpl.jena.sparql.function,
> com.hp.hpl.jena.sparql.graph,
> com.hp.hpl.jena.sparql.resultset,
> com.hp.hpl.jena.sparql.sse,
> com.hp.hpl.jena.update,
> com.hp.hpl.jena.util,
> com.hp.hpl.jena.vocabulary,
> jena,
> org.apache.commons.codec.digest,
> org.apache.jena.riot,
> org.apache.log4j,
> org.slf4j,
> org.slf4j.helpers,
> org.slf4j.impl,
> org.slf4j.spi
> Eclipse-BuddyPolicy: boot
>
>
> I’ll be interested in seeing whether the one from GitHub drops in and simply works. I’ll let you know.
>
> Mark
>
>
>
>> On Oct 31, 2014, at 9:26 PM, Stian Soiland-Reyes <so...@cs.manchester.ac.uk> wrote:
>>
>> I would like to hear from your experience of a custom-wrapped bundle
>> what you decided to include or not.
>>
>> See my other email message in this thread..
>>
>> Basically in short:
>>
>>
>> http://build.mygrid.org.uk/ci/job/jena-bundle/21/org.apache.jena$jena-osgi/
>>
>> http://repository.mygrid.org.uk/artifactory/ext-snapshot-local/org/apache/jena/jena-osgi/2.12.2-SNAPSHOT/
>> http://repository.mygrid.org.uk/artifactory/ext-snapshot-local/org/apache/jena/jena-parent/12-SNAPSHOT/
>>
>>
>>
>> On 31 October 2014 13:27, Mark Feblowitz <ma...@icloud.com> wrote:
>>> I’m an OSGi user, and have been using a custom-wrapped Jena OSGi bundle for more than a year.
>>>
>>> I’d be happy to try it out. How would I do so?
>>>
>>> Mark
>>>
>>>
>>>
>>>> On Oct 31, 2014, at 6:56 AM, Andy Seaborne <an...@apache.org> wrote:
>>>>
>>>> On 28/10/14 16:50, stain wrote:
>>>>> GitHub user stain opened a pull request:
>>>>>
>>>>> https://github.com/apache/jena/pull/10
>>>>>
>>>>> Jena OSGi bundle
>>>>>
>>>>> Embedding core Jena modules in a single OSGi bundle.
>>>>>
>>>>> This works around classloader issues such as Jena's use of `Class.forName()`, but does not yet support other OSGi bundles to easily plug in 3rd party Jena implementations of say readers and writers.
>>>>>
>>>>> Modules included:
>>>>> * jena-core
>>>>> * jena-arq
>>>>> * jena-tdb
>>>>> * jena-sdb
>>>>> * jena-iri
>>>>
>>>> Having one bundle for Jena makes a lot of sense as we build and release whole systems, so partial replacement of bits and pieces isn't supported/encouraged anyway. Releases may change cross module assumptions. Personally, I'd drop SDB from the included modules; it's being made a maven-only module next time, and not in the distribution binaries.
>>>>
>>>> What I'd really, really like is for this to be tested by other OSGi users. As far as I know, none of the committers use OSGi day-to-day (we/Epimorphics used to but when we looked at the costs/benefits we switch to a simpler, service architecture style).
>>>>
>>>> Stain - what would you say to advertising this on users@ (and dev@clerezza?) and seeing if we can get some user testing and validation?
>>>>
>>>> Andy
>>>>
>>>>>
>>>>> This OSGi bundle includes a dependency on the `httpclient-osgi` and `httpcore-osgi` version. All other packages used are embeded within the OSGi bundle, making them appear on a single classloader in OSGi.
>>>>>
>>>>>
>>>>>
>>>>> You can merge this pull request into a Git repository by running:
>>>>>
>>>>> $ git pull https://github.com/stain/jena jena-osgi-bundle
>>>>>
>>>>> Alternatively you can review and apply these changes as the patch at:
>>>>>
>>>>> https://github.com/apache/jena/pull/10.patch
>>>>>
>>>>> To close this pull request, make a commit to your master/trunk branch
>>>>> with (at least) the following in the commit message:
>>>>>
>>>>> This closes #10
>>>>>
>>>>> ----
>>>>> commit 1957808b34a408bf0278cfb4017d6e7040eebabb
>>>>> Author: Stian Soiland-Reyes <so...@cs.manchester.ac.uk>
>>>>> Date: 2014-10-28T16:03:15Z
>>>>>
>>>>> pom tweaks so it builds
>>>>>
>>>>> .. also a spelling mistake tixed
>>>>>
>>>>> commit 5724c31d542d7c8ddf89c4333fbe4809d7783f49
>>>>> Author: Stian Soiland-Reyes <so...@cs.manchester.ac.uk>
>>>>> Date: 2014-10-28T16:34:59Z
>>>>>
>>>>> Embedding all Jena modules in a single OSGi bundle.
>>>>>
>>>>> commit 3bb12d0a1472977cfcd51abf392683659bac1e4d
>>>>> Author: Stian Soiland-Reyes <so...@cs.manchester.ac.uk>
>>>>> Date: 2014-10-28T16:38:00Z
>>>>>
>>>>> httpcore-osgi 4.2.5
>>>>>
>>>>> commit aa705c9e3e4f3b4c58924e95aa223213358b08e3
>>>>> Author: Stian Soiland-Reyes <so...@cs.manchester.ac.uk>
>>>>> Date: 2014-10-28T16:42:48Z
>>>>>
>>>>> ver.* properties as in jena-parent
>>>>>
>>>>> TODO: Move these properties to jena-parent?
>>>>>
>>>>> ----
>>>>>
>>>>>
>>>>> ---
>>>>> If your project is set up for it, you can reply to this email and have your
>>>>> reply appear on GitHub as well. If your project does not have this feature
>>>>> enabled and wishes so, or if the feature is enabled but not working, please
>>>>> contact infrastructure at infrastructure@apache.org or file a JIRA ticket
>>>>> with INFRA.
>>>>> ---
>>>>>
>>>>
>>>
>>
>>
>>
>> --
>> Stian Soiland-Reyes, myGrid team
>> School of Computer Science
>> The University of Manchester
>> http://soiland-reyes.com/stian/work/ http://orcid.org/0000-0001-9842-9718
>
--
Stian Soiland-Reyes, myGrid team
School of Computer Science
The University of Manchester
http://soiland-reyes.com/stian/work/ http://orcid.org/0000-0001-9842-9718
Re: [GitHub] jena pull request: Jena OSGi bundle
Posted by Stian Soiland-Reyes <so...@cs.manchester.ac.uk>.
First of all, I don't know if you are testing mine or Mark's bundle..
I'll assume mine from
http://repository.mygrid.org.uk/artifactory/ext-snapshot-local/org/apache/jena/jena-osgi/2.12.2-SNAPSHOT/jena-osgi-2.12.2-20141101.003350-4.jar
I stated in my longer email
(http://mail-archives.apache.org/mod_mbox/jena-dev/201411.mbox/browser)
that you also need to have these OSGi bundles added:
* org.apache.httpcomponents:
httpclient-osgi:jar:4.2.6
* org.apache.httpcomponents:httpcore-osgi:jar:4.2.5
* com.fasterxml.jackson.core:jackson-core:jar:2.3.3
* com.fasterxml.jackson.core:jackson-databind:jar:2.3.3
* com.fasterxml.jackson.core:jackson-annotations:jar:2.3.0
* org.apache.commons:commons-csv:jar:1.0
* org.apache.thrift:libthrift:jar:0.9.1
* org.apache.commons:commons-lang3:jar:3.1
* org.slf4j:jcl-over-slf4j:jar:1.7.6
* org.slf4j:slf4j-api:jar:1.7.6
* org.slf4j:slf4j-log4j12:jar:1.7.6
* log4j:log4j:jar:1.2.17
I embedded those two, xerces and xml-apis, as I could not find
official OSGi versions of them. Do you know of any? If not then they
will have to be assumed to "magically exist on the system classloader"
which is not ideal.
Perhaps:
<groupId>org.apache.xerces</groupId>
<artifactId>com.springsource.org.apache.xerces</artifactId>
<version>2.9.1</version>
http://repository.springsource.com/maven/bundles/external/org/apache/xerces/com.springsource.org.apache.xerces/2.9.1/com.springsource.org.apache.xerces-2.9.1.jar
but it would mean adding a springsource maven repository - perhaps
this is OK within the jena-osgi module only?
The magic of the OSGi bundle Maven plugin is not quite to my liking,
so I can get that it would put some rubbish import/exports - like Jena
has 200 packages with cross-usage, so that is exposed by just looking
at the method signatures, e.g. it generates:
com.hp.hpl.jena.reasoner.transitiveReasoner;uses:="com.hp.hpl.jena.graph,com.hp.hpl.jena.rdf.model,com.hp.hpl.jena.reasoner,com.hp.hpl.jena.util.iterator";version="2.12.2"
which in a way makes sense, given that
https://jena.apache.org/documentation/javadoc/jena/com/hp/hpl/jena/reasoner/transitiveReasoner/TransitiveEngine.html
and friends accept and return objects from those other packages. So if
you, outside Jena, wants to use transitiveReasoner, you need to also
have those other Jena packages.
Now, half of these packages might not need to be exported at all - the
plugin just ignores those that are called .impl -- but I don't know
enough about the structure to know which other packages in Jena can be
barred from exported (e.g. implementation only packages).
Which imports were not satisfied? How did you add them in Eclipse? I
can try to reproduce.
On 4 November 2014 21:38, Mark Feblowitz <Ma...@comcast.net> wrote:
> In looking at the posted OSGi bundle I notice some items that we decided not to include in ours:
>
> xercesImpl-2.11.0.jar
> xml-apis-1.4.01.jar
>
> For reasons having to do with differences between Oracle Java and IBM Java, and also issues with development on Macs, we decided to have these be resolved in other ways.
>
> Now, on to the meat of the issue: what, if anything, needs to be done with the provided jar to prepare it for use?
>
> I’ve dropped it into place, as is, and am seeing terrible things :-S - basically, many of the core dependencies look to have been exported for subsequent import. I was able to confirm this, to some extent, by unjar’ing and loading the bundle into eclipse. There are quite a few unsatisfied exports.
>
> Any suggestions?
>
> Thanks,
>
> Mark
>
>
>
>> On Nov 4, 2014, at 1:58 PM, Mark Feblowitz <ma...@icloud.com> wrote:
>>
>> Basically, I’ve been including everything:
>>
>> Manifest-Version: 1.0
>> Bundle-ManifestVersion: 2
>> Bundle-Name: Jena
>> Bundle-SymbolicName: jena
>> Bundle-Version: 2.11.1.0
>> Bundle-Vendor: IBM repackage of apache-jena
>> Bundle-RequiredExecutionEnvironment: J2SE-1.5
>> Import-Package: org.osgi.framework
>> Bundle-ActivationPolicy: lazy
>> Bundle-ClassPath: lib/jena-core-2.11.1.jar,
>> lib/jena-arq-2.11.1.jar,
>> lib/jena-iri-1.0.1.jar,
>> lib/jena-tdb-1.0.1.jar,
>> lib/jcl-over-slf4j-1.6.4.jar,
>> lib/xercesImpl-2.11.0.jar,
>> lib/xml-apis-1.4.01.jar,
>> lib/log4j-1.2.16.jar,
>> lib/commons-codec-1.6.jar,
>> lib/httpclient-4.2.3.jar,
>> lib/httpcore-4.2.2.jar,
>> lib/slf4j-api-1.6.4.jar,
>> lib/slf4j-log4j12-1.6.4.jar,
>> lib/stax2-api-3.1.1.jar,
>> lib/woodstox-core-asl-4.2.0.jar,
>> .
>> Export-Package: arq,
>> arq.cmd,
>> com.hp.hpl.jena,
>> com.hp.hpl.jena.assembler,
>> com.hp.hpl.jena.datatypes,
>> com.hp.hpl.jena.datatypes.xsd,
>> com.hp.hpl.jena.ontology,
>> com.hp.hpl.jena.ontology.impl,
>> com.hp.hpl.jena.query,
>> com.hp.hpl.jena.rdf.model,
>> com.hp.hpl.jena.rdf.model.impl,
>> com.hp.hpl.jena.reasoner,
>> com.hp.hpl.jena.shared,
>> com.hp.hpl.jena.sparql.core,
>> com.hp.hpl.jena.sparql.engine.http,
>> com.hp.hpl.jena.sparql.function,
>> com.hp.hpl.jena.sparql.graph,
>> com.hp.hpl.jena.sparql.resultset,
>> com.hp.hpl.jena.sparql.sse,
>> com.hp.hpl.jena.update,
>> com.hp.hpl.jena.util,
>> com.hp.hpl.jena.vocabulary,
>> jena,
>> org.apache.commons.codec.digest,
>> org.apache.jena.riot,
>> org.apache.log4j,
>> org.slf4j,
>> org.slf4j.helpers,
>> org.slf4j.impl,
>> org.slf4j.spi
>> Eclipse-BuddyPolicy: boot
>>
>>
>> I’ll be interested in seeing whether the one from GitHub drops in and simply works. I’ll let you know.
>>
>> Mark
>>
>>
>>
>>> On Oct 31, 2014, at 9:26 PM, Stian Soiland-Reyes <so...@cs.manchester.ac.uk> wrote:
>>>
>>> I would like to hear from your experience of a custom-wrapped bundle
>>> what you decided to include or not.
>>>
>>> See my other email message in this thread..
>>>
>>> Basically in short:
>>>
>>>
>>> http://build.mygrid.org.uk/ci/job/jena-bundle/21/org.apache.jena$jena-osgi/
>>>
>>> http://repository.mygrid.org.uk/artifactory/ext-snapshot-local/org/apache/jena/jena-osgi/2.12.2-SNAPSHOT/
>>> http://repository.mygrid.org.uk/artifactory/ext-snapshot-local/org/apache/jena/jena-parent/12-SNAPSHOT/
>>>
>>>
>>>
>>> On 31 October 2014 13:27, Mark Feblowitz <ma...@icloud.com> wrote:
>>>> I’m an OSGi user, and have been using a custom-wrapped Jena OSGi bundle for more than a year.
>>>>
>>>> I’d be happy to try it out. How would I do so?
>>>>
>>>> Mark
>>>>
>>>>
>>>>
>>>>> On Oct 31, 2014, at 6:56 AM, Andy Seaborne <an...@apache.org> wrote:
>>>>>
>>>>> On 28/10/14 16:50, stain wrote:
>>>>>> GitHub user stain opened a pull request:
>>>>>>
>>>>>> https://github.com/apache/jena/pull/10
>>>>>>
>>>>>> Jena OSGi bundle
>>>>>>
>>>>>> Embedding core Jena modules in a single OSGi bundle.
>>>>>>
>>>>>> This works around classloader issues such as Jena's use of `Class.forName()`, but does not yet support other OSGi bundles to easily plug in 3rd party Jena implementations of say readers and writers.
>>>>>>
>>>>>> Modules included:
>>>>>> * jena-core
>>>>>> * jena-arq
>>>>>> * jena-tdb
>>>>>> * jena-sdb
>>>>>> * jena-iri
>>>>>
>>>>> Having one bundle for Jena makes a lot of sense as we build and release whole systems, so partial replacement of bits and pieces isn't supported/encouraged anyway. Releases may change cross module assumptions. Personally, I'd drop SDB from the included modules; it's being made a maven-only module next time, and not in the distribution binaries.
>>>>>
>>>>> What I'd really, really like is for this to be tested by other OSGi users. As far as I know, none of the committers use OSGi day-to-day (we/Epimorphics used to but when we looked at the costs/benefits we switch to a simpler, service architecture style).
>>>>>
>>>>> Stain - what would you say to advertising this on users@ (and dev@clerezza?) and seeing if we can get some user testing and validation?
>>>>>
>>>>> Andy
>>>>>
>>>>>>
>>>>>> This OSGi bundle includes a dependency on the `httpclient-osgi` and `httpcore-osgi` version. All other packages used are embeded within the OSGi bundle, making them appear on a single classloader in OSGi.
>>>>>>
>>>>>>
>>>>>>
>>>>>> You can merge this pull request into a Git repository by running:
>>>>>>
>>>>>> $ git pull https://github.com/stain/jena jena-osgi-bundle
>>>>>>
>>>>>> Alternatively you can review and apply these changes as the patch at:
>>>>>>
>>>>>> https://github.com/apache/jena/pull/10.patch
>>>>>>
>>>>>> To close this pull request, make a commit to your master/trunk branch
>>>>>> with (at least) the following in the commit message:
>>>>>>
>>>>>> This closes #10
>>>>>>
>>>>>> ----
>>>>>> commit 1957808b34a408bf0278cfb4017d6e7040eebabb
>>>>>> Author: Stian Soiland-Reyes <so...@cs.manchester.ac.uk>
>>>>>> Date: 2014-10-28T16:03:15Z
>>>>>>
>>>>>> pom tweaks so it builds
>>>>>>
>>>>>> .. also a spelling mistake tixed
>>>>>>
>>>>>> commit 5724c31d542d7c8ddf89c4333fbe4809d7783f49
>>>>>> Author: Stian Soiland-Reyes <so...@cs.manchester.ac.uk>
>>>>>> Date: 2014-10-28T16:34:59Z
>>>>>>
>>>>>> Embedding all Jena modules in a single OSGi bundle.
>>>>>>
>>>>>> commit 3bb12d0a1472977cfcd51abf392683659bac1e4d
>>>>>> Author: Stian Soiland-Reyes <so...@cs.manchester.ac.uk>
>>>>>> Date: 2014-10-28T16:38:00Z
>>>>>>
>>>>>> httpcore-osgi 4.2.5
>>>>>>
>>>>>> commit aa705c9e3e4f3b4c58924e95aa223213358b08e3
>>>>>> Author: Stian Soiland-Reyes <so...@cs.manchester.ac.uk>
>>>>>> Date: 2014-10-28T16:42:48Z
>>>>>>
>>>>>> ver.* properties as in jena-parent
>>>>>>
>>>>>> TODO: Move these properties to jena-parent?
>>>>>>
>>>>>> ----
>>>>>>
>>>>>>
>>>>>> ---
>>>>>> If your project is set up for it, you can reply to this email and have your
>>>>>> reply appear on GitHub as well. If your project does not have this feature
>>>>>> enabled and wishes so, or if the feature is enabled but not working, please
>>>>>> contact infrastructure at infrastructure@apache.org or file a JIRA ticket
>>>>>> with INFRA.
>>>>>> ---
>>>>>>
>>>>>
>>>>
>>>
>>>
>>>
>>> --
>>> Stian Soiland-Reyes, myGrid team
>>> School of Computer Science
>>> The University of Manchester
>>> http://soiland-reyes.com/stian/work/ http://orcid.org/0000-0001-9842-9718
>>
>
--
Stian Soiland-Reyes, myGrid team
School of Computer Science
The University of Manchester
http://soiland-reyes.com/stian/work/ http://orcid.org/0000-0001-9842-9718
Re: [GitHub] jena pull request: Jena OSGi bundle
Posted by Mark Feblowitz <Ma...@comcast.net>.
In looking at the posted OSGi bundle I notice some items that we decided not to include in ours:
xercesImpl-2.11.0.jar
xml-apis-1.4.01.jar
For reasons having to do with differences between Oracle Java and IBM Java, and also issues with development on Macs, we decided to have these be resolved in other ways.
Now, on to the meat of the issue: what, if anything, needs to be done with the provided jar to prepare it for use?
I’ve dropped it into place, as is, and am seeing terrible things :-S - basically, many of the core dependencies look to have been exported for subsequent import. I was able to confirm this, to some extent, by unjar’ing and loading the bundle into eclipse. There are quite a few unsatisfied exports.
Any suggestions?
Thanks,
Mark
> On Nov 4, 2014, at 1:58 PM, Mark Feblowitz <ma...@icloud.com> wrote:
>
> Basically, I’ve been including everything:
>
> Manifest-Version: 1.0
> Bundle-ManifestVersion: 2
> Bundle-Name: Jena
> Bundle-SymbolicName: jena
> Bundle-Version: 2.11.1.0
> Bundle-Vendor: IBM repackage of apache-jena
> Bundle-RequiredExecutionEnvironment: J2SE-1.5
> Import-Package: org.osgi.framework
> Bundle-ActivationPolicy: lazy
> Bundle-ClassPath: lib/jena-core-2.11.1.jar,
> lib/jena-arq-2.11.1.jar,
> lib/jena-iri-1.0.1.jar,
> lib/jena-tdb-1.0.1.jar,
> lib/jcl-over-slf4j-1.6.4.jar,
> lib/xercesImpl-2.11.0.jar,
> lib/xml-apis-1.4.01.jar,
> lib/log4j-1.2.16.jar,
> lib/commons-codec-1.6.jar,
> lib/httpclient-4.2.3.jar,
> lib/httpcore-4.2.2.jar,
> lib/slf4j-api-1.6.4.jar,
> lib/slf4j-log4j12-1.6.4.jar,
> lib/stax2-api-3.1.1.jar,
> lib/woodstox-core-asl-4.2.0.jar,
> .
> Export-Package: arq,
> arq.cmd,
> com.hp.hpl.jena,
> com.hp.hpl.jena.assembler,
> com.hp.hpl.jena.datatypes,
> com.hp.hpl.jena.datatypes.xsd,
> com.hp.hpl.jena.ontology,
> com.hp.hpl.jena.ontology.impl,
> com.hp.hpl.jena.query,
> com.hp.hpl.jena.rdf.model,
> com.hp.hpl.jena.rdf.model.impl,
> com.hp.hpl.jena.reasoner,
> com.hp.hpl.jena.shared,
> com.hp.hpl.jena.sparql.core,
> com.hp.hpl.jena.sparql.engine.http,
> com.hp.hpl.jena.sparql.function,
> com.hp.hpl.jena.sparql.graph,
> com.hp.hpl.jena.sparql.resultset,
> com.hp.hpl.jena.sparql.sse,
> com.hp.hpl.jena.update,
> com.hp.hpl.jena.util,
> com.hp.hpl.jena.vocabulary,
> jena,
> org.apache.commons.codec.digest,
> org.apache.jena.riot,
> org.apache.log4j,
> org.slf4j,
> org.slf4j.helpers,
> org.slf4j.impl,
> org.slf4j.spi
> Eclipse-BuddyPolicy: boot
>
>
> I’ll be interested in seeing whether the one from GitHub drops in and simply works. I’ll let you know.
>
> Mark
>
>
>
>> On Oct 31, 2014, at 9:26 PM, Stian Soiland-Reyes <so...@cs.manchester.ac.uk> wrote:
>>
>> I would like to hear from your experience of a custom-wrapped bundle
>> what you decided to include or not.
>>
>> See my other email message in this thread..
>>
>> Basically in short:
>>
>>
>> http://build.mygrid.org.uk/ci/job/jena-bundle/21/org.apache.jena$jena-osgi/
>>
>> http://repository.mygrid.org.uk/artifactory/ext-snapshot-local/org/apache/jena/jena-osgi/2.12.2-SNAPSHOT/
>> http://repository.mygrid.org.uk/artifactory/ext-snapshot-local/org/apache/jena/jena-parent/12-SNAPSHOT/
>>
>>
>>
>> On 31 October 2014 13:27, Mark Feblowitz <ma...@icloud.com> wrote:
>>> I’m an OSGi user, and have been using a custom-wrapped Jena OSGi bundle for more than a year.
>>>
>>> I’d be happy to try it out. How would I do so?
>>>
>>> Mark
>>>
>>>
>>>
>>>> On Oct 31, 2014, at 6:56 AM, Andy Seaborne <an...@apache.org> wrote:
>>>>
>>>> On 28/10/14 16:50, stain wrote:
>>>>> GitHub user stain opened a pull request:
>>>>>
>>>>> https://github.com/apache/jena/pull/10
>>>>>
>>>>> Jena OSGi bundle
>>>>>
>>>>> Embedding core Jena modules in a single OSGi bundle.
>>>>>
>>>>> This works around classloader issues such as Jena's use of `Class.forName()`, but does not yet support other OSGi bundles to easily plug in 3rd party Jena implementations of say readers and writers.
>>>>>
>>>>> Modules included:
>>>>> * jena-core
>>>>> * jena-arq
>>>>> * jena-tdb
>>>>> * jena-sdb
>>>>> * jena-iri
>>>>
>>>> Having one bundle for Jena makes a lot of sense as we build and release whole systems, so partial replacement of bits and pieces isn't supported/encouraged anyway. Releases may change cross module assumptions. Personally, I'd drop SDB from the included modules; it's being made a maven-only module next time, and not in the distribution binaries.
>>>>
>>>> What I'd really, really like is for this to be tested by other OSGi users. As far as I know, none of the committers use OSGi day-to-day (we/Epimorphics used to but when we looked at the costs/benefits we switch to a simpler, service architecture style).
>>>>
>>>> Stain - what would you say to advertising this on users@ (and dev@clerezza?) and seeing if we can get some user testing and validation?
>>>>
>>>> Andy
>>>>
>>>>>
>>>>> This OSGi bundle includes a dependency on the `httpclient-osgi` and `httpcore-osgi` version. All other packages used are embeded within the OSGi bundle, making them appear on a single classloader in OSGi.
>>>>>
>>>>>
>>>>>
>>>>> You can merge this pull request into a Git repository by running:
>>>>>
>>>>> $ git pull https://github.com/stain/jena jena-osgi-bundle
>>>>>
>>>>> Alternatively you can review and apply these changes as the patch at:
>>>>>
>>>>> https://github.com/apache/jena/pull/10.patch
>>>>>
>>>>> To close this pull request, make a commit to your master/trunk branch
>>>>> with (at least) the following in the commit message:
>>>>>
>>>>> This closes #10
>>>>>
>>>>> ----
>>>>> commit 1957808b34a408bf0278cfb4017d6e7040eebabb
>>>>> Author: Stian Soiland-Reyes <so...@cs.manchester.ac.uk>
>>>>> Date: 2014-10-28T16:03:15Z
>>>>>
>>>>> pom tweaks so it builds
>>>>>
>>>>> .. also a spelling mistake tixed
>>>>>
>>>>> commit 5724c31d542d7c8ddf89c4333fbe4809d7783f49
>>>>> Author: Stian Soiland-Reyes <so...@cs.manchester.ac.uk>
>>>>> Date: 2014-10-28T16:34:59Z
>>>>>
>>>>> Embedding all Jena modules in a single OSGi bundle.
>>>>>
>>>>> commit 3bb12d0a1472977cfcd51abf392683659bac1e4d
>>>>> Author: Stian Soiland-Reyes <so...@cs.manchester.ac.uk>
>>>>> Date: 2014-10-28T16:38:00Z
>>>>>
>>>>> httpcore-osgi 4.2.5
>>>>>
>>>>> commit aa705c9e3e4f3b4c58924e95aa223213358b08e3
>>>>> Author: Stian Soiland-Reyes <so...@cs.manchester.ac.uk>
>>>>> Date: 2014-10-28T16:42:48Z
>>>>>
>>>>> ver.* properties as in jena-parent
>>>>>
>>>>> TODO: Move these properties to jena-parent?
>>>>>
>>>>> ----
>>>>>
>>>>>
>>>>> ---
>>>>> If your project is set up for it, you can reply to this email and have your
>>>>> reply appear on GitHub as well. If your project does not have this feature
>>>>> enabled and wishes so, or if the feature is enabled but not working, please
>>>>> contact infrastructure at infrastructure@apache.org or file a JIRA ticket
>>>>> with INFRA.
>>>>> ---
>>>>>
>>>>
>>>
>>
>>
>>
>> --
>> Stian Soiland-Reyes, myGrid team
>> School of Computer Science
>> The University of Manchester
>> http://soiland-reyes.com/stian/work/ http://orcid.org/0000-0001-9842-9718
>
Re: [GitHub] jena pull request: Jena OSGi bundle
Posted by Mark Feblowitz <ma...@icloud.com>.
In looking at the posted OSGi bundle I notice some items that we decided not to include in ours:
xercesImpl-2.11.0.jar
xml-apis-1.4.01.jar
For reasons having to do with differences between Oracle Java and IBM Java, and also issues with development on Macs, we decided to have these be resolved in other ways.
Now, on to the meat of the issue: what, if anything, needs to be done with the provided jar to prepare it for use?
I’ve dropped it into place, as is, and am seeing terrible things :-S - basically, many of the core dependencies look to have been exported for subsequent import. I was able to confirm this, to some extent, by unjar’ing and loading the bundle into eclipse. There are quite a few unsatisfied exports.
Any suggestions?
Thanks,
Mark
> On Nov 4, 2014, at 1:58 PM, Mark Feblowitz <ma...@icloud.com> wrote:
>
> Basically, I’ve been including everything:
>
> Manifest-Version: 1.0
> Bundle-ManifestVersion: 2
> Bundle-Name: Jena
> Bundle-SymbolicName: jena
> Bundle-Version: 2.11.1.0
> Bundle-Vendor: IBM repackage of apache-jena
> Bundle-RequiredExecutionEnvironment: J2SE-1.5
> Import-Package: org.osgi.framework
> Bundle-ActivationPolicy: lazy
> Bundle-ClassPath: lib/jena-core-2.11.1.jar,
> lib/jena-arq-2.11.1.jar,
> lib/jena-iri-1.0.1.jar,
> lib/jena-tdb-1.0.1.jar,
> lib/jcl-over-slf4j-1.6.4.jar,
> lib/xercesImpl-2.11.0.jar,
> lib/xml-apis-1.4.01.jar,
> lib/log4j-1.2.16.jar,
> lib/commons-codec-1.6.jar,
> lib/httpclient-4.2.3.jar,
> lib/httpcore-4.2.2.jar,
> lib/slf4j-api-1.6.4.jar,
> lib/slf4j-log4j12-1.6.4.jar,
> lib/stax2-api-3.1.1.jar,
> lib/woodstox-core-asl-4.2.0.jar,
> .
> Export-Package: arq,
> arq.cmd,
> com.hp.hpl.jena,
> com.hp.hpl.jena.assembler,
> com.hp.hpl.jena.datatypes,
> com.hp.hpl.jena.datatypes.xsd,
> com.hp.hpl.jena.ontology,
> com.hp.hpl.jena.ontology.impl,
> com.hp.hpl.jena.query,
> com.hp.hpl.jena.rdf.model,
> com.hp.hpl.jena.rdf.model.impl,
> com.hp.hpl.jena.reasoner,
> com.hp.hpl.jena.shared,
> com.hp.hpl.jena.sparql.core,
> com.hp.hpl.jena.sparql.engine.http,
> com.hp.hpl.jena.sparql.function,
> com.hp.hpl.jena.sparql.graph,
> com.hp.hpl.jena.sparql.resultset,
> com.hp.hpl.jena.sparql.sse,
> com.hp.hpl.jena.update,
> com.hp.hpl.jena.util,
> com.hp.hpl.jena.vocabulary,
> jena,
> org.apache.commons.codec.digest,
> org.apache.jena.riot,
> org.apache.log4j,
> org.slf4j,
> org.slf4j.helpers,
> org.slf4j.impl,
> org.slf4j.spi
> Eclipse-BuddyPolicy: boot
>
>
> I’ll be interested in seeing whether the one from GitHub drops in and simply works. I’ll let you know.
>
> Mark
>
>
>
>> On Oct 31, 2014, at 9:26 PM, Stian Soiland-Reyes <so...@cs.manchester.ac.uk> wrote:
>>
>> I would like to hear from your experience of a custom-wrapped bundle
>> what you decided to include or not.
>>
>> See my other email message in this thread..
>>
>> Basically in short:
>>
>>
>> http://build.mygrid.org.uk/ci/job/jena-bundle/21/org.apache.jena$jena-osgi/
>>
>> http://repository.mygrid.org.uk/artifactory/ext-snapshot-local/org/apache/jena/jena-osgi/2.12.2-SNAPSHOT/
>> http://repository.mygrid.org.uk/artifactory/ext-snapshot-local/org/apache/jena/jena-parent/12-SNAPSHOT/
>>
>>
>>
>> On 31 October 2014 13:27, Mark Feblowitz <ma...@icloud.com> wrote:
>>> I’m an OSGi user, and have been using a custom-wrapped Jena OSGi bundle for more than a year.
>>>
>>> I’d be happy to try it out. How would I do so?
>>>
>>> Mark
>>>
>>>
>>>
>>>> On Oct 31, 2014, at 6:56 AM, Andy Seaborne <an...@apache.org> wrote:
>>>>
>>>> On 28/10/14 16:50, stain wrote:
>>>>> GitHub user stain opened a pull request:
>>>>>
>>>>> https://github.com/apache/jena/pull/10
>>>>>
>>>>> Jena OSGi bundle
>>>>>
>>>>> Embedding core Jena modules in a single OSGi bundle.
>>>>>
>>>>> This works around classloader issues such as Jena's use of `Class.forName()`, but does not yet support other OSGi bundles to easily plug in 3rd party Jena implementations of say readers and writers.
>>>>>
>>>>> Modules included:
>>>>> * jena-core
>>>>> * jena-arq
>>>>> * jena-tdb
>>>>> * jena-sdb
>>>>> * jena-iri
>>>>
>>>> Having one bundle for Jena makes a lot of sense as we build and release whole systems, so partial replacement of bits and pieces isn't supported/encouraged anyway. Releases may change cross module assumptions. Personally, I'd drop SDB from the included modules; it's being made a maven-only module next time, and not in the distribution binaries.
>>>>
>>>> What I'd really, really like is for this to be tested by other OSGi users. As far as I know, none of the committers use OSGi day-to-day (we/Epimorphics used to but when we looked at the costs/benefits we switch to a simpler, service architecture style).
>>>>
>>>> Stain - what would you say to advertising this on users@ (and dev@clerezza?) and seeing if we can get some user testing and validation?
>>>>
>>>> Andy
>>>>
>>>>>
>>>>> This OSGi bundle includes a dependency on the `httpclient-osgi` and `httpcore-osgi` version. All other packages used are embeded within the OSGi bundle, making them appear on a single classloader in OSGi.
>>>>>
>>>>>
>>>>>
>>>>> You can merge this pull request into a Git repository by running:
>>>>>
>>>>> $ git pull https://github.com/stain/jena jena-osgi-bundle
>>>>>
>>>>> Alternatively you can review and apply these changes as the patch at:
>>>>>
>>>>> https://github.com/apache/jena/pull/10.patch
>>>>>
>>>>> To close this pull request, make a commit to your master/trunk branch
>>>>> with (at least) the following in the commit message:
>>>>>
>>>>> This closes #10
>>>>>
>>>>> ----
>>>>> commit 1957808b34a408bf0278cfb4017d6e7040eebabb
>>>>> Author: Stian Soiland-Reyes <so...@cs.manchester.ac.uk>
>>>>> Date: 2014-10-28T16:03:15Z
>>>>>
>>>>> pom tweaks so it builds
>>>>>
>>>>> .. also a spelling mistake tixed
>>>>>
>>>>> commit 5724c31d542d7c8ddf89c4333fbe4809d7783f49
>>>>> Author: Stian Soiland-Reyes <so...@cs.manchester.ac.uk>
>>>>> Date: 2014-10-28T16:34:59Z
>>>>>
>>>>> Embedding all Jena modules in a single OSGi bundle.
>>>>>
>>>>> commit 3bb12d0a1472977cfcd51abf392683659bac1e4d
>>>>> Author: Stian Soiland-Reyes <so...@cs.manchester.ac.uk>
>>>>> Date: 2014-10-28T16:38:00Z
>>>>>
>>>>> httpcore-osgi 4.2.5
>>>>>
>>>>> commit aa705c9e3e4f3b4c58924e95aa223213358b08e3
>>>>> Author: Stian Soiland-Reyes <so...@cs.manchester.ac.uk>
>>>>> Date: 2014-10-28T16:42:48Z
>>>>>
>>>>> ver.* properties as in jena-parent
>>>>>
>>>>> TODO: Move these properties to jena-parent?
>>>>>
>>>>> ----
>>>>>
>>>>>
>>>>> ---
>>>>> If your project is set up for it, you can reply to this email and have your
>>>>> reply appear on GitHub as well. If your project does not have this feature
>>>>> enabled and wishes so, or if the feature is enabled but not working, please
>>>>> contact infrastructure at infrastructure@apache.org or file a JIRA ticket
>>>>> with INFRA.
>>>>> ---
>>>>>
>>>>
>>>
>>
>>
>>
>> --
>> Stian Soiland-Reyes, myGrid team
>> School of Computer Science
>> The University of Manchester
>> http://soiland-reyes.com/stian/work/ http://orcid.org/0000-0001-9842-9718
>
Re: [GitHub] jena pull request: Jena OSGi bundle
Posted by Mark Feblowitz <ma...@icloud.com>.
Basically, I’ve been including everything:
Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: Jena
Bundle-SymbolicName: jena
Bundle-Version: 2.11.1.0
Bundle-Vendor: IBM repackage of apache-jena
Bundle-RequiredExecutionEnvironment: J2SE-1.5
Import-Package: org.osgi.framework
Bundle-ActivationPolicy: lazy
Bundle-ClassPath: lib/jena-core-2.11.1.jar,
lib/jena-arq-2.11.1.jar,
lib/jena-iri-1.0.1.jar,
lib/jena-tdb-1.0.1.jar,
lib/jcl-over-slf4j-1.6.4.jar,
lib/xercesImpl-2.11.0.jar,
lib/xml-apis-1.4.01.jar,
lib/log4j-1.2.16.jar,
lib/commons-codec-1.6.jar,
lib/httpclient-4.2.3.jar,
lib/httpcore-4.2.2.jar,
lib/slf4j-api-1.6.4.jar,
lib/slf4j-log4j12-1.6.4.jar,
lib/stax2-api-3.1.1.jar,
lib/woodstox-core-asl-4.2.0.jar,
.
Export-Package: arq,
arq.cmd,
com.hp.hpl.jena,
com.hp.hpl.jena.assembler,
com.hp.hpl.jena.datatypes,
com.hp.hpl.jena.datatypes.xsd,
com.hp.hpl.jena.ontology,
com.hp.hpl.jena.ontology.impl,
com.hp.hpl.jena.query,
com.hp.hpl.jena.rdf.model,
com.hp.hpl.jena.rdf.model.impl,
com.hp.hpl.jena.reasoner,
com.hp.hpl.jena.shared,
com.hp.hpl.jena.sparql.core,
com.hp.hpl.jena.sparql.engine.http,
com.hp.hpl.jena.sparql.function,
com.hp.hpl.jena.sparql.graph,
com.hp.hpl.jena.sparql.resultset,
com.hp.hpl.jena.sparql.sse,
com.hp.hpl.jena.update,
com.hp.hpl.jena.util,
com.hp.hpl.jena.vocabulary,
jena,
org.apache.commons.codec.digest,
org.apache.jena.riot,
org.apache.log4j,
org.slf4j,
org.slf4j.helpers,
org.slf4j.impl,
org.slf4j.spi
Eclipse-BuddyPolicy: boot
I’ll be interested in seeing whether the one from GitHub drops in and simply works. I’ll let you know.
Mark
> On Oct 31, 2014, at 9:26 PM, Stian Soiland-Reyes <so...@cs.manchester.ac.uk> wrote:
>
> I would like to hear from your experience of a custom-wrapped bundle
> what you decided to include or not.
>
> See my other email message in this thread..
>
> Basically in short:
>
>
> http://build.mygrid.org.uk/ci/job/jena-bundle/21/org.apache.jena$jena-osgi/
>
> http://repository.mygrid.org.uk/artifactory/ext-snapshot-local/org/apache/jena/jena-osgi/2.12.2-SNAPSHOT/
> http://repository.mygrid.org.uk/artifactory/ext-snapshot-local/org/apache/jena/jena-parent/12-SNAPSHOT/
>
>
>
> On 31 October 2014 13:27, Mark Feblowitz <ma...@icloud.com> wrote:
>> I’m an OSGi user, and have been using a custom-wrapped Jena OSGi bundle for more than a year.
>>
>> I’d be happy to try it out. How would I do so?
>>
>> Mark
>>
>>
>>
>>> On Oct 31, 2014, at 6:56 AM, Andy Seaborne <an...@apache.org> wrote:
>>>
>>> On 28/10/14 16:50, stain wrote:
>>>> GitHub user stain opened a pull request:
>>>>
>>>> https://github.com/apache/jena/pull/10
>>>>
>>>> Jena OSGi bundle
>>>>
>>>> Embedding core Jena modules in a single OSGi bundle.
>>>>
>>>> This works around classloader issues such as Jena's use of `Class.forName()`, but does not yet support other OSGi bundles to easily plug in 3rd party Jena implementations of say readers and writers.
>>>>
>>>> Modules included:
>>>> * jena-core
>>>> * jena-arq
>>>> * jena-tdb
>>>> * jena-sdb
>>>> * jena-iri
>>>
>>> Having one bundle for Jena makes a lot of sense as we build and release whole systems, so partial replacement of bits and pieces isn't supported/encouraged anyway. Releases may change cross module assumptions. Personally, I'd drop SDB from the included modules; it's being made a maven-only module next time, and not in the distribution binaries.
>>>
>>> What I'd really, really like is for this to be tested by other OSGi users. As far as I know, none of the committers use OSGi day-to-day (we/Epimorphics used to but when we looked at the costs/benefits we switch to a simpler, service architecture style).
>>>
>>> Stain - what would you say to advertising this on users@ (and dev@clerezza?) and seeing if we can get some user testing and validation?
>>>
>>> Andy
>>>
>>>>
>>>> This OSGi bundle includes a dependency on the `httpclient-osgi` and `httpcore-osgi` version. All other packages used are embeded within the OSGi bundle, making them appear on a single classloader in OSGi.
>>>>
>>>>
>>>>
>>>> You can merge this pull request into a Git repository by running:
>>>>
>>>> $ git pull https://github.com/stain/jena jena-osgi-bundle
>>>>
>>>> Alternatively you can review and apply these changes as the patch at:
>>>>
>>>> https://github.com/apache/jena/pull/10.patch
>>>>
>>>> To close this pull request, make a commit to your master/trunk branch
>>>> with (at least) the following in the commit message:
>>>>
>>>> This closes #10
>>>>
>>>> ----
>>>> commit 1957808b34a408bf0278cfb4017d6e7040eebabb
>>>> Author: Stian Soiland-Reyes <so...@cs.manchester.ac.uk>
>>>> Date: 2014-10-28T16:03:15Z
>>>>
>>>> pom tweaks so it builds
>>>>
>>>> .. also a spelling mistake tixed
>>>>
>>>> commit 5724c31d542d7c8ddf89c4333fbe4809d7783f49
>>>> Author: Stian Soiland-Reyes <so...@cs.manchester.ac.uk>
>>>> Date: 2014-10-28T16:34:59Z
>>>>
>>>> Embedding all Jena modules in a single OSGi bundle.
>>>>
>>>> commit 3bb12d0a1472977cfcd51abf392683659bac1e4d
>>>> Author: Stian Soiland-Reyes <so...@cs.manchester.ac.uk>
>>>> Date: 2014-10-28T16:38:00Z
>>>>
>>>> httpcore-osgi 4.2.5
>>>>
>>>> commit aa705c9e3e4f3b4c58924e95aa223213358b08e3
>>>> Author: Stian Soiland-Reyes <so...@cs.manchester.ac.uk>
>>>> Date: 2014-10-28T16:42:48Z
>>>>
>>>> ver.* properties as in jena-parent
>>>>
>>>> TODO: Move these properties to jena-parent?
>>>>
>>>> ----
>>>>
>>>>
>>>> ---
>>>> If your project is set up for it, you can reply to this email and have your
>>>> reply appear on GitHub as well. If your project does not have this feature
>>>> enabled and wishes so, or if the feature is enabled but not working, please
>>>> contact infrastructure at infrastructure@apache.org or file a JIRA ticket
>>>> with INFRA.
>>>> ---
>>>>
>>>
>>
>
>
>
> --
> Stian Soiland-Reyes, myGrid team
> School of Computer Science
> The University of Manchester
> http://soiland-reyes.com/stian/work/ http://orcid.org/0000-0001-9842-9718
Re: [GitHub] jena pull request: Jena OSGi bundle
Posted by Mark Feblowitz <Ma...@comcast.net>.
As a consumer, I have no trouble having a single, potentially larger than necessary bundle, rather than several that I have to manage. And when it comes time for an upgrade, I’m happy to know that I don’t have to dedicate a portion of a day figuring out what needs to be removed, to prevent version collision issues.
Related to the leakage issue, it seems to work better for me to have separate bundles for widely used open source, but the convenience of having a self-contained and relatively complete bundle is appealing, just so long as there’s no leakage. BTW, usage does tend to winge a bit about the multiple sources of particular bundles. So far I’ve been able to ignore the complaints.
Mark
> On Nov 5, 2014, at 7:13 AM, Andy Seaborne <an...@apache.org> wrote:
>
> What I (still) don't understand is the use case for separate bundles per separate jena module. (not that I'm an OSGi user ATM)
>
> The contract around a Jena release is that the whole thing works together. There aren't independent releases of ARQ and core, say. It has been done as independent jars a while ago but the net result was just version confusion. That's also why they have the same version numbers nowadays. The separation of modules is "internal" rathe rthan an external contract.
>
> And yet people still manage to create mixed up combinations of jars so I wonder if the main jar ought not to be one combined jena jar (c.f. apache-jena-libs except that's a POM). Keep the dependencies separate.
>
> Is there a real need for separate jena-* nowadays? Or is it just a source of confusion and mistakes?
>
> Andy
>
>
> On 04/11/14 10:54, Reto Gmür wrote:
>> Hi
>>
>> In the clerezza project we have been wrapping jena for a while as OSGi
>> bundles.
>>
>> Recently it got split up into different bundles. The source (i.e. the poms)
>> can be seen here:
>>
>> https://github.com/apache/clerezza/tree/master/ext
>>
>> Cheers,
>> Reto
>>
>> On Sat, Nov 1, 2014 at 2:26 AM, Stian Soiland-Reyes <
>> soiland-reyes@cs.manchester.ac.uk> wrote:
>>
>>> I would like to hear from your experience of a custom-wrapped bundle
>>> what you decided to include or not.
>>>
>>> See my other email message in this thread..
>>>
>>> Basically in short:
>>>
>>>
>>> http://build.mygrid.org.uk/ci/job/jena-bundle/21/org.apache.jena$jena-osgi/
>>>
>>>
>>> http://repository.mygrid.org.uk/artifactory/ext-snapshot-local/org/apache/jena/jena-osgi/2.12.2-SNAPSHOT/
>>>
>>> http://repository.mygrid.org.uk/artifactory/ext-snapshot-local/org/apache/jena/jena-parent/12-SNAPSHOT/
>>>
>>>
>>>
>
Re: [GitHub] jena pull request: Jena OSGi bundle
Posted by Stian Soiland-Reyes <so...@cs.manchester.ac.uk>.
> There is some argument for
>
> jena-ogsi-core = iri+core+arq
>
> and no TDB.
OK, perhaps that is right. I only reflected what was in the distro - I
must admit I have poor understanding of what TDB and SDB is and when
they would be used :-(
But if we exclude jena-tdb and jena-sdb from jena-osgi - then what
about OSGi users who need those? jena-tdb-osgi etc? Or do we make
them native osgi bundles?
I believe it is simpler if Jena is either fully OSGified (e.g. every
module is a bundle, and we sort out the class.forName() issues) - or
that there is a single jena-osgi module. A hybrid approach requires
mirroring of every module that is to be OSGified - and increases the
risk of duplicates - as in the clerezza approach.
With time I can try to help with sorting out the
services/classforname-thingies - but it requires a fair bit of digging
and testing.
For instance RDFReaderFImpl.getReader(String lang) in core reads a map
of langToClassName registered with setBaseReaderClassName.
We can make setBaseReaderClassName deprecated, and add
setBaseReaderClass(String lang, Class readerClass) and instead keep a
map of the actual classes. The original method can use a few tricks
to try to resolve the class from the registering method (e.g.
contextclassloader, or as Class.forName does with looking two steps up
the stack frame (!)).
>> c) Separation of concern - A is the API, B is the implementation.
>> Almost nobody should use B directly.
> Valuable if there are multiple independent implementations of A, otherwise
> it's more internal/development style, I would say.
Right, if using that approach, it would be more of a kind of
double-lock - more applicable to larger projects with many modules. In
my experience it is easy to take this too far :-(
--
Stian Soiland-Reyes, myGrid team
School of Computer Science
The University of Manchester
http://soiland-reyes.com/stian/work/ http://orcid.org/0000-0001-9842-9718
Re: [GitHub] jena pull request: Jena OSGi bundle
Posted by Andy Seaborne <an...@apache.org>.
On 05/11/14 12:36, Stian Soiland-Reyes wrote:
> The main reasons I see for keeping separate modules:
Good list - let me see
>
> a) Version independence - A moves at a different pace than B, say B
> v2.0 break things for users of B v.1.3 - while A v1.4 users should not
> care.
No longer happens for jena-* modules. We could be more formal about he
groups of modules that go together.
> b) Dependency requirements - A requires significantly different set of
> dependencies than B - e.g. pulls in the OWLAPI
There is some argument for
jena-ogsi-core = iri+core+arq
and no TDB.
> c) Separation of concern - A is the API, B is the implementation.
> Almost nobody should use B directly.
Valuable if there are multiple independent implementations of A,
otherwise it's more internal/development style, I would say.
> d) Avoiding spaghetti - B depends on A and C, C depends on A
Yes, well, ...
>
>
> FYI, here's the dependency graphs:
>
> jena-core
>
> [INFO] org.apache.jena:jena-core:jar:2.12.2-SNAPSHOT
> [INFO] +- junit:junit:jar:4.11:test
> [INFO] | \- org.hamcrest:hamcrest-core:jar:1.3:test
> [INFO] +- org.slf4j:slf4j-api:jar:1.7.6:compile
> [INFO] +- org.apache.jena:jena-iri:jar:1.1.2-SNAPSHOT:compile
> [INFO] +- xerces:xercesImpl:jar:2.11.0:compile
> [INFO] | \- xml-apis:xml-apis:jar:1.4.01:compile
> [INFO] +- org.slf4j:slf4j-log4j12:jar:1.7.6:compile
> [INFO] \- log4j:log4j:jar:1.2.17:compile
The latter is nearly fixed - logging is needed by commands so have a
separate jena-cmds and it should "just work"(tm).
> [INFO] org.apache.jena:jena-arq:jar:2.12.2-SNAPSHOT
> [INFO] +- org.apache.jena:jena-core:jar:2.12.2-SNAPSHOT:compile
> [INFO] | +- org.apache.jena:jena-iri:jar:1.1.2-SNAPSHOT:compile
> [INFO] | \- xerces:xercesImpl:jar:2.11.0:compile
> [INFO] | \- xml-apis:xml-apis:jar:1.4.01:compile
> [INFO] +- org.apache.jena:jena-core:jar:tests:2.12.2-SNAPSHOT:test
> [INFO] +- org.apache.httpcomponents:httpclient:jar:4.2.6:compile
> [INFO] | +- org.apache.httpcomponents:httpcore:jar:4.2.5:compile
> [INFO] | \- commons-codec:commons-codec:jar:1.6:compile
> [INFO] +- com.github.jsonld-java:jsonld-java:jar:0.5.0:compile
> [INFO] | +- com.fasterxml.jackson.core:jackson-core:jar:2.3.3:compile
> [INFO] | \- com.fasterxml.jackson.core:jackson-databind:jar:2.3.3:compile
> [INFO] | \- com.fasterxml.jackson.core:jackson-annotations:jar:2.3.0:compile
> [INFO] +- org.apache.httpcomponents:httpclient-cache:jar:4.2.6:compile
> [INFO] +- org.apache.thrift:libthrift:jar:0.9.1:compile
> [INFO] | \- org.apache.commons:commons-lang3:jar:3.1:compile
> [INFO] +- org.slf4j:jcl-over-slf4j:jar:1.7.6:compile
> [INFO] +- org.apache.commons:commons-csv:jar:1.0:compile
> [INFO] +- junit:junit:jar:4.11:test
> [INFO] | \- org.hamcrest:hamcrest-core:jar:1.3:test
> [INFO] +- org.slf4j:slf4j-api:jar:1.7.6:compile
> [INFO] +- org.slf4j:slf4j-log4j12:jar:1.7.6:compile
> [INFO] \- log4j:log4j:jar:1.2.17:compile
>
> jena-iri
>
> [INFO] org.apache.jena:jena-iri:jar:1.1.2-SNAPSHOT
> [INFO] +- junit:junit:jar:4.11:test
> [INFO] | \- org.hamcrest:hamcrest-core:jar:1.3:test
> [INFO] +- org.slf4j:slf4j-api:jar:1.7.6:compile
> [INFO] +- org.slf4j:slf4j-log4j12:jar:1.7.6:compile
> [INFO] \- log4j:log4j:jar:1.2.17:compile
>
>
>
> jena-arq seems to pull in quite a fair bit more than jena-core..
Yes - for HTTP stuff and json-ld mainly.
And jcl-over-slf4j to cope with the different choices of dependencies in
their logging ... :-(
Andy
>
> On 5 November 2014 12:13, Andy Seaborne <an...@apache.org> wrote:
>> What I (still) don't understand is the use case for separate bundles per
>> separate jena module. (not that I'm an OSGi user ATM)
>>
>> The contract around a Jena release is that the whole thing works together.
>> There aren't independent releases of ARQ and core, say. It has been done as
>> independent jars a while ago but the net result was just version confusion.
>> That's also why they have the same version numbers nowadays. The separation
>> of modules is "internal" rathe rthan an external contract.
>>
>> And yet people still manage to create mixed up combinations of jars so I
>> wonder if the main jar ought not to be one combined jena jar (c.f.
>> apache-jena-libs except that's a POM). Keep the dependencies separate.
>>
>> Is there a real need for separate jena-* nowadays? Or is it just a source
>> of confusion and mistakes?
>>
>> Andy
>>
>>
>>
>> On 04/11/14 10:54, Reto Gmür wrote:
>>>
>>> Hi
>>>
>>> In the clerezza project we have been wrapping jena for a while as OSGi
>>> bundles.
>>>
>>> Recently it got split up into different bundles. The source (i.e. the
>>> poms)
>>> can be seen here:
>>>
>>> https://github.com/apache/clerezza/tree/master/ext
>>>
>>> Cheers,
>>> Reto
>>>
>>> On Sat, Nov 1, 2014 at 2:26 AM, Stian Soiland-Reyes <
>>> soiland-reyes@cs.manchester.ac.uk> wrote:
>>>
>>>> I would like to hear from your experience of a custom-wrapped bundle
>>>> what you decided to include or not.
>>>>
>>>> See my other email message in this thread..
>>>>
>>>> Basically in short:
>>>>
>>>>
>>>>
>>>> http://build.mygrid.org.uk/ci/job/jena-bundle/21/org.apache.jena$jena-osgi/
>>>>
>>>>
>>>>
>>>> http://repository.mygrid.org.uk/artifactory/ext-snapshot-local/org/apache/jena/jena-osgi/2.12.2-SNAPSHOT/
>>>>
>>>>
>>>> http://repository.mygrid.org.uk/artifactory/ext-snapshot-local/org/apache/jena/jena-parent/12-SNAPSHOT/
>>>>
>>>>
>>>>
>>
>
>
>
Re: [GitHub] jena pull request: Jena OSGi bundle
Posted by Stian Soiland-Reyes <so...@cs.manchester.ac.uk>.
The main reasons I see for keeping separate modules:
a) Version independence - A moves at a different pace than B, say B
v2.0 break things for users of B v.1.3 - while A v1.4 users should not
care.
b) Dependency requirements - A requires significantly different set of
dependencies than B - e.g. pulls in the OWLAPI
c) Separation of concern - A is the API, B is the implementation.
Almost nobody should use B directly.
d) Avoiding spaghetti - B depends on A and C, C depends on A
FYI, here's the dependency graphs:
jena-core
[INFO] org.apache.jena:jena-core:jar:2.12.2-SNAPSHOT
[INFO] +- junit:junit:jar:4.11:test
[INFO] | \- org.hamcrest:hamcrest-core:jar:1.3:test
[INFO] +- org.slf4j:slf4j-api:jar:1.7.6:compile
[INFO] +- org.apache.jena:jena-iri:jar:1.1.2-SNAPSHOT:compile
[INFO] +- xerces:xercesImpl:jar:2.11.0:compile
[INFO] | \- xml-apis:xml-apis:jar:1.4.01:compile
[INFO] +- org.slf4j:slf4j-log4j12:jar:1.7.6:compile
[INFO] \- log4j:log4j:jar:1.2.17:compile
[INFO] org.apache.jena:jena-arq:jar:2.12.2-SNAPSHOT
[INFO] +- org.apache.jena:jena-core:jar:2.12.2-SNAPSHOT:compile
[INFO] | +- org.apache.jena:jena-iri:jar:1.1.2-SNAPSHOT:compile
[INFO] | \- xerces:xercesImpl:jar:2.11.0:compile
[INFO] | \- xml-apis:xml-apis:jar:1.4.01:compile
[INFO] +- org.apache.jena:jena-core:jar:tests:2.12.2-SNAPSHOT:test
[INFO] +- org.apache.httpcomponents:httpclient:jar:4.2.6:compile
[INFO] | +- org.apache.httpcomponents:httpcore:jar:4.2.5:compile
[INFO] | \- commons-codec:commons-codec:jar:1.6:compile
[INFO] +- com.github.jsonld-java:jsonld-java:jar:0.5.0:compile
[INFO] | +- com.fasterxml.jackson.core:jackson-core:jar:2.3.3:compile
[INFO] | \- com.fasterxml.jackson.core:jackson-databind:jar:2.3.3:compile
[INFO] | \- com.fasterxml.jackson.core:jackson-annotations:jar:2.3.0:compile
[INFO] +- org.apache.httpcomponents:httpclient-cache:jar:4.2.6:compile
[INFO] +- org.apache.thrift:libthrift:jar:0.9.1:compile
[INFO] | \- org.apache.commons:commons-lang3:jar:3.1:compile
[INFO] +- org.slf4j:jcl-over-slf4j:jar:1.7.6:compile
[INFO] +- org.apache.commons:commons-csv:jar:1.0:compile
[INFO] +- junit:junit:jar:4.11:test
[INFO] | \- org.hamcrest:hamcrest-core:jar:1.3:test
[INFO] +- org.slf4j:slf4j-api:jar:1.7.6:compile
[INFO] +- org.slf4j:slf4j-log4j12:jar:1.7.6:compile
[INFO] \- log4j:log4j:jar:1.2.17:compile
jena-iri
[INFO] org.apache.jena:jena-iri:jar:1.1.2-SNAPSHOT
[INFO] +- junit:junit:jar:4.11:test
[INFO] | \- org.hamcrest:hamcrest-core:jar:1.3:test
[INFO] +- org.slf4j:slf4j-api:jar:1.7.6:compile
[INFO] +- org.slf4j:slf4j-log4j12:jar:1.7.6:compile
[INFO] \- log4j:log4j:jar:1.2.17:compile
jena-arq seems to pull in quite a fair bit more than jena-core..
On 5 November 2014 12:13, Andy Seaborne <an...@apache.org> wrote:
> What I (still) don't understand is the use case for separate bundles per
> separate jena module. (not that I'm an OSGi user ATM)
>
> The contract around a Jena release is that the whole thing works together.
> There aren't independent releases of ARQ and core, say. It has been done as
> independent jars a while ago but the net result was just version confusion.
> That's also why they have the same version numbers nowadays. The separation
> of modules is "internal" rathe rthan an external contract.
>
> And yet people still manage to create mixed up combinations of jars so I
> wonder if the main jar ought not to be one combined jena jar (c.f.
> apache-jena-libs except that's a POM). Keep the dependencies separate.
>
> Is there a real need for separate jena-* nowadays? Or is it just a source
> of confusion and mistakes?
>
> Andy
>
>
>
> On 04/11/14 10:54, Reto Gmür wrote:
>>
>> Hi
>>
>> In the clerezza project we have been wrapping jena for a while as OSGi
>> bundles.
>>
>> Recently it got split up into different bundles. The source (i.e. the
>> poms)
>> can be seen here:
>>
>> https://github.com/apache/clerezza/tree/master/ext
>>
>> Cheers,
>> Reto
>>
>> On Sat, Nov 1, 2014 at 2:26 AM, Stian Soiland-Reyes <
>> soiland-reyes@cs.manchester.ac.uk> wrote:
>>
>>> I would like to hear from your experience of a custom-wrapped bundle
>>> what you decided to include or not.
>>>
>>> See my other email message in this thread..
>>>
>>> Basically in short:
>>>
>>>
>>>
>>> http://build.mygrid.org.uk/ci/job/jena-bundle/21/org.apache.jena$jena-osgi/
>>>
>>>
>>>
>>> http://repository.mygrid.org.uk/artifactory/ext-snapshot-local/org/apache/jena/jena-osgi/2.12.2-SNAPSHOT/
>>>
>>>
>>> http://repository.mygrid.org.uk/artifactory/ext-snapshot-local/org/apache/jena/jena-parent/12-SNAPSHOT/
>>>
>>>
>>>
>
--
Stian Soiland-Reyes, myGrid team
School of Computer Science
The University of Manchester
http://soiland-reyes.com/stian/work/ http://orcid.org/0000-0001-9842-9718
Re: [GitHub] jena pull request: Jena OSGi bundle
Posted by Andy Seaborne <an...@apache.org>.
What I (still) don't understand is the use case for separate bundles per
separate jena module. (not that I'm an OSGi user ATM)
The contract around a Jena release is that the whole thing works
together. There aren't independent releases of ARQ and core, say. It
has been done as independent jars a while ago but the net result was
just version confusion. That's also why they have the same version
numbers nowadays. The separation of modules is "internal" rathe rthan
an external contract.
And yet people still manage to create mixed up combinations of jars so I
wonder if the main jar ought not to be one combined jena jar (c.f.
apache-jena-libs except that's a POM). Keep the dependencies separate.
Is there a real need for separate jena-* nowadays? Or is it just a
source of confusion and mistakes?
Andy
On 04/11/14 10:54, Reto Gmür wrote:
> Hi
>
> In the clerezza project we have been wrapping jena for a while as OSGi
> bundles.
>
> Recently it got split up into different bundles. The source (i.e. the poms)
> can be seen here:
>
> https://github.com/apache/clerezza/tree/master/ext
>
> Cheers,
> Reto
>
> On Sat, Nov 1, 2014 at 2:26 AM, Stian Soiland-Reyes <
> soiland-reyes@cs.manchester.ac.uk> wrote:
>
>> I would like to hear from your experience of a custom-wrapped bundle
>> what you decided to include or not.
>>
>> See my other email message in this thread..
>>
>> Basically in short:
>>
>>
>> http://build.mygrid.org.uk/ci/job/jena-bundle/21/org.apache.jena$jena-osgi/
>>
>>
>> http://repository.mygrid.org.uk/artifactory/ext-snapshot-local/org/apache/jena/jena-osgi/2.12.2-SNAPSHOT/
>>
>> http://repository.mygrid.org.uk/artifactory/ext-snapshot-local/org/apache/jena/jena-parent/12-SNAPSHOT/
>>
>>
>>
Re: [GitHub] jena pull request: Jena OSGi bundle
Posted by Reto Gmür <re...@wymiwyg.com>.
On Wed, Nov 5, 2014 at 10:45 AM, Rob Vesse <rv...@dotnetrdf.org> wrote:
> Yes longer term (and now we have moved to Java 7) it would be best to
> avoid dynamic class loading where possible and use the Java 7
> ServiceLoader paradigm instead.
>
> Some of the existing stuff is because of the existing module structure
> meaning that it is actually preferable to use the ARQ implementations over
> some things in Jena Core (e.g. readers and writers) but the module
> structure means Jena-Core can't guarantee the presence. We have talked
> about restructuring the modules longer term (I.e. Jena3) which would also
> resolve some of this kind of problem and avoid any need for ServiceLoader
> or dynamic class loading in places
>
> However there will likely still be some places where dynamic class loading
> would need to remain e.g. Jena assembler, use of java: URIs for extension
> functions because they are useful features
>
It would be good if this dynamism is provided in a platform dependent
manner. ServiceLoader for plain java and OSGi services for OSGi. That's
what we do in clerezza for loading thing like serializers, parser or even
storage backend or sparql provider.
Reto
>
> Rob
>
> On 04/11/2014 09:54, "Minto van der Sluis" <mi...@xup.nl> wrote:
>
> >Hi,
> >
> >If I recall correctly it is required due Jena using dynamic class
> >loading (Class.forName). Doing a grep on my "not updated in a long time"
> >checkout reveals 38 occurrences.
> >
> >If Jena is considering to provide OSGi bundles maybe then reconsider
> >using an alternative for dynamic class loading.
> >
> >Regards,
> >
> >Minto
> >
> >
> >
> >
> >Reto Gmür schreef op 4-11-2014 14:32:
> >> Hi Stian,
> >>
> >> If I understood and remember correctly the problem are circular
> >> dependencies between jena artifacts and packages occurring in multiple
> >> jars. I'm sure Minto (CC) can tell you the reasons more.
> >>
> >> If providing OSGi bundles becomes part of Jena then maybe the root
> >> cause of requiring this rather ugly dynamic imports and split-packages
> >> can be addressed. This is likely to be beneficial to the overall design.
> >>
> >> Cheers,
> >> Reto
> >>
> >> On Tue, Nov 4, 2014 at 2:15 PM, Stian Soiland-Reyes
> >> <soiland-reyes@cs.manchester.ac.uk
> >> <ma...@cs.manchester.ac.uk>> wrote:
> >>
> >> Reto, what was the reason for why Clerezza made the
> >> clerezza.osgi.dynamicimport.pkg indirect properties?
> >>
> >> Not sure I quite get this property:
> >>
> >>
> >>
> >><clerezza.osgi.export>${clerezza.osgi.export.pkg}*;version=${pkgVersion};
> >>-split-package:=merge-first
> >> </clerezza.osgi.export>
> >>
> >>
> >>
> >>
> >> On 4 November 2014 13:12, Stian Soiland-Reyes
> >> <soiland-reyes@cs.manchester.ac.uk
> >> <ma...@cs.manchester.ac.uk>> wrote:
> >> > If you found that splitting it up into different bundles works,
> >>then
> >> > perhaps we should not need to have any wrapping bundles at all,
> >>and
> >> > can just add the <packaging>bundle</packaging> stuff to the main
> >> > modules?
> >> >
> >> >
> >> >
> >> > On 4 November 2014 10:54, Reto Gmür <reto@apache.org
> >> <ma...@apache.org>> wrote:
> >> >> Hi
> >> >>
> >> >> In the clerezza project we have been wrapping jena for a while
> >> as OSGi
> >> >> bundles.
> >> >>
> >> >> Recently it got split up into different bundles. The source
> >> (i.e. the poms)
> >> >> can be seen here:
> >> >>
> >> >> https://github.com/apache/clerezza/tree/master/ext
> >> >>
> >> >> Cheers,
> >> >> Reto
> >> >>
> >> >> On Sat, Nov 1, 2014 at 2:26 AM, Stian Soiland-Reyes <
> >> >> soiland-reyes@cs.manchester.ac.uk
> >> <ma...@cs.manchester.ac.uk>> wrote:
> >> >>
> >> >>> I would like to hear from your experience of a custom-wrapped
> >> bundle
> >> >>> what you decided to include or not.
> >> >>>
> >> >>> See my other email message in this thread..
> >> >>>
> >> >>> Basically in short:
> >> >>>
> >> >>>
> >> >>>
> >>
> >>
> http://build.mygrid.org.uk/ci/job/jena-bundle/21/org.apache.jena$jena-osg
> >>i/
> >> >>>
> >> >>>
> >> >>>
> >>
> >>
> http://repository.mygrid.org.uk/artifactory/ext-snapshot-local/org/apache
> >>/jena/jena-osgi/2.12.2-SNAPSHOT/
> >> >>>
> >> >>>
> >>
> >>
> http://repository.mygrid.org.uk/artifactory/ext-snapshot-local/org/apache
> >>/jena/jena-parent/12-SNAPSHOT/
> >> >>>
> >> >>>
> >> >>>
> >> >>> On 31 October 2014 13:27, Mark Feblowitz
> >> <markfeblowitz@icloud.com <ma...@icloud.com>> wrote:
> >> >>> > I’m an OSGi user, and have been using a custom-wrapped Jena
> >> OSGi bundle
> >> >>> for more than a year.
> >> >>> >
> >> >>> > I’d be happy to try it out. How would I do so?
> >> >>> >
> >> >>> > Mark
> >> >>> >
> >> >>> >
> >> >>> >
> >> >>> >> On Oct 31, 2014, at 6:56 AM, Andy Seaborne <andy@apache.org
> >> <ma...@apache.org>> wrote:
> >> >>> >>
> >> >>> >> On 28/10/14 16:50, stain wrote:
> >> >>> >>> GitHub user stain opened a pull request:
> >> >>> >>>
> >> >>> >>> https://github.com/apache/jena/pull/10
> >> >>> >>>
> >> >>> >>> Jena OSGi bundle
> >> >>> >>>
> >> >>> >>> Embedding core Jena modules in a single OSGi bundle.
> >> >>> >>>
> >> >>> >>> This works around classloader issues such as Jena's use
> >>of
> >> >>> `Class.forName()`, but does not yet support other OSGi bundles
> >> to easily
> >> >>> plug in 3rd party Jena implementations of say readers and
> >>writers.
> >> >>> >>>
> >> >>> >>> Modules included:
> >> >>> >>> * jena-core
> >> >>> >>> * jena-arq
> >> >>> >>> * jena-tdb
> >> >>> >>> * jena-sdb
> >> >>> >>> * jena-iri
> >> >>> >>
> >> >>> >> Having one bundle for Jena makes a lot of sense as we build
> >> and release
> >> >>> whole systems, so partial replacement of bits and pieces isn't
> >> >>> supported/encouraged anyway. Releases may change cross module
> >> >>> assumptions. Personally, I'd drop SDB from the included
> >> modules; it's
> >> >>> being made a maven-only module next time, and not in the
> >> distribution
> >> >>> binaries.
> >> >>> >>
> >> >>> >> What I'd really, really like is for this to be tested by
> >> other OSGi
> >> >>> users. As far as I know, none of the committers use OSGi
> >> day-to-day
> >> >>> (we/Epimorphics used to but when we looked at the
> >> costs/benefits we switch
> >> >>> to a simpler, service architecture style).
> >> >>> >>
> >> >>> >> Stain - what would you say to advertising this on users@
> (and
> >> >>> dev@clerezza?) and seeing if we can get some user testing and
> >> validation?
> >> >>> >>
> >> >>> >> Andy
> >> >>> >>
> >> >>> >>>
> >> >>> >>> This OSGi bundle includes a dependency on the
> >> `httpclient-osgi`
> >> >>> and `httpcore-osgi` version. All other packages used are
> >> embeded within the
> >> >>> OSGi bundle, making them appear on a single classloader in OSGi.
> >> >>> >>>
> >> >>> >>>
> >> >>> >>>
> >> >>> >>> You can merge this pull request into a Git repository by
> >> running:
> >> >>> >>>
> >> >>> >>> $ git pull https://github.com/stain/jena
> >>jena-osgi-bundle
> >> >>> >>>
> >> >>> >>> Alternatively you can review and apply these changes as
> >> the patch at:
> >> >>> >>>
> >> >>> >>> https://github.com/apache/jena/pull/10.patch
> >> >>> >>>
> >> >>> >>> To close this pull request, make a commit to your
> >> master/trunk branch
> >> >>> >>> with (at least) the following in the commit message:
> >> >>> >>>
> >> >>> >>> This closes #10
> >> >>> >>>
> >> >>> >>> ----
> >> >>> >>> commit 1957808b34a408bf0278cfb4017d6e7040eebabb
> >> >>> >>> Author: Stian Soiland-Reyes
> >> <soiland-reyes@cs.manchester.ac.uk
> >> <ma...@cs.manchester.ac.uk>>
> >> >>> >>> Date: 2014-10-28T16:03:15Z
> >> >>> >>>
> >> >>> >>> pom tweaks so it builds
> >> >>> >>>
> >> >>> >>> .. also a spelling mistake tixed
> >> >>> >>>
> >> >>> >>> commit 5724c31d542d7c8ddf89c4333fbe4809d7783f49
> >> >>> >>> Author: Stian Soiland-Reyes
> >> <soiland-reyes@cs.manchester.ac.uk
> >> <ma...@cs.manchester.ac.uk>>
> >> >>> >>> Date: 2014-10-28T16:34:59Z
> >> >>> >>>
> >> >>> >>> Embedding all Jena modules in a single OSGi bundle.
> >> >>> >>>
> >> >>> >>> commit 3bb12d0a1472977cfcd51abf392683659bac1e4d
> >> >>> >>> Author: Stian Soiland-Reyes
> >> <soiland-reyes@cs.manchester.ac.uk
> >> <ma...@cs.manchester.ac.uk>>
> >> >>> >>> Date: 2014-10-28T16:38:00Z
> >> >>> >>>
> >> >>> >>> httpcore-osgi 4.2.5
> >> >>> >>>
> >> >>> >>> commit aa705c9e3e4f3b4c58924e95aa223213358b08e3
> >> >>> >>> Author: Stian Soiland-Reyes
> >> <soiland-reyes@cs.manchester.ac.uk
> >> <ma...@cs.manchester.ac.uk>>
> >> >>> >>> Date: 2014-10-28T16:42:48Z
> >> >>> >>>
> >> >>> >>> ver.* properties as in jena-parent
> >> >>> >>>
> >> >>> >>> TODO: Move these properties to jena-parent?
> >> >>> >>>
> >> >>> >>> ----
> >> >>> >>>
> >> >>> >>>
> >> >>> >>> ---
> >> >>> >>> If your project is set up for it, you can reply to this
> >> email and have
> >> >>> your
> >> >>> >>> reply appear on GitHub as well. If your project does not
> >> have this
> >> >>> feature
> >> >>> >>> enabled and wishes so, or if the feature is enabled but
> >> not working,
> >> >>> please
> >> >>> >>> contact infrastructure at infrastructure@apache.org
> >> <ma...@apache.org> or file a JIRA
> >> >>> ticket
> >> >>> >>> with INFRA.
> >> >>> >>> ---
> >> >>> >>>
> >> >>> >>
> >> >>> >
> >> >>>
> >> >>>
> >> >>>
> >> >>> --
> >> >>> Stian Soiland-Reyes, myGrid team
> >> >>> School of Computer Science
> >> >>> The University of Manchester
> >> >>> http://soiland-reyes.com/stian/work/
> >> http://orcid.org/0000-0001-9842-9718
> >> >>>
> >> >
> >> >
> >> >
> >> > --
> >> > Stian Soiland-Reyes, myGrid team
> >> > School of Computer Science
> >> > The University of Manchester
> >> > http://soiland-reyes.com/stian/work/
> >> http://orcid.org/0000-0001-9842-9718
> >>
> >>
> >>
> >> --
> >> Stian Soiland-Reyes, myGrid team
> >> School of Computer Science
> >> The University of Manchester
> >> http://soiland-reyes.com/stian/work/
> >> http://orcid.org/0000-0001-9842-9718
> >>
> >>
> >
> >
> >--
> >ir. ing. Minto van der Sluis
> >Software innovator / renovator
> >Xup BV
> >
> >Mobiel: +31 (0) 626 014541
> >
>
>
>
>
>
Re: [GitHub] jena pull request: Jena OSGi bundle
Posted by Stian Soiland-Reyes <so...@cs.manchester.ac.uk>.
We've been using ServiceLoader together with OSGi in taverna-scufl2.
You have to kind of allow your application to do both: e.g. you can
have setters and getters that can be injected in with OSGi Spring
services - and then if they have not been set (null), populate with
service loader.
https://github.com/taverna/taverna-scufl2/blob/master/scufl2-api/src/main/java/uk/org/taverna/scufl2/api/io/WorkflowBundleIO.java#L144
falls back to ServiceLoader in
https://github.com/taverna/taverna-scufl2/blob/master/scufl2-api/src/main/java/uk/org/taverna/scufl2/api/io/WorkflowBundleIO.java#L83
Implementations are listed both in ServiceLoader style:
https://github.com/taverna/taverna-scufl2/blob/master/scufl2-api/src/main/resources/META-INF/services/uk.org.taverna.scufl2.api.io.WorkflowBundleReader
and wired up as Spring services:
https://github.com/taverna/taverna-scufl2/blob/master/scufl2-api/src/main/resources/META-INF/spring/scufl2-api-context-osgi.xml#L8
https://github.com/taverna/taverna-scufl2/blob/master/scufl2-api/src/main/resources/META-INF/spring/scufl2-api-context.xml
On 5 November 2014 11:49, Andy Seaborne <an...@apache.org> wrote:
> Restructuring is certainly the way to go in the case of ARQ modifying core.
> The simple solution is merge the codebases then restructure at leisure, and
> that isn't a Jena3 issue.
>
> What is the experience of ServiceLoader and how does it (and
> "META-INF/services/") interact with OSGi? ServiceLoader contains calls to
> Class.forName.
>
> Andy
>
>
>
> On 05/11/14 09:45, Rob Vesse wrote:
>>
>> Yes longer term (and now we have moved to Java 7) it would be best to
>> avoid dynamic class loading where possible and use the Java 7
>> ServiceLoader paradigm instead.
>>
>> Some of the existing stuff is because of the existing module structure
>> meaning that it is actually preferable to use the ARQ implementations over
>> some things in Jena Core (e.g. readers and writers) but the module
>> structure means Jena-Core can't guarantee the presence. We have talked
>> about restructuring the modules longer term (I.e. Jena3) which would also
>> resolve some of this kind of problem and avoid any need for ServiceLoader
>> or dynamic class loading in places
>>
>> However there will likely still be some places where dynamic class loading
>> would need to remain e.g. Jena assembler, use of java: URIs for extension
>> functions because they are useful features
>>
>> Rob
>>
>> On 04/11/2014 09:54, "Minto van der Sluis" <mi...@xup.nl> wrote:
>>
>>> Hi,
>>>
>>> If I recall correctly it is required due Jena using dynamic class
>>> loading (Class.forName). Doing a grep on my "not updated in a long time"
>>> checkout reveals 38 occurrences.
>>>
>>> If Jena is considering to provide OSGi bundles maybe then reconsider
>>> using an alternative for dynamic class loading.
>>>
>>> Regards,
>>>
>>> Minto
>>>
>>>
>>>
>>>
>>> Reto Gmür schreef op 4-11-2014 14:32:
>>>>
>>>> Hi Stian,
>>>>
>>>> If I understood and remember correctly the problem are circular
>>>> dependencies between jena artifacts and packages occurring in multiple
>>>> jars. I'm sure Minto (CC) can tell you the reasons more.
>>>>
>>>> If providing OSGi bundles becomes part of Jena then maybe the root
>>>> cause of requiring this rather ugly dynamic imports and split-packages
>>>> can be addressed. This is likely to be beneficial to the overall design.
>>>>
>>>> Cheers,
>>>> Reto
>>>>
>>>> On Tue, Nov 4, 2014 at 2:15 PM, Stian Soiland-Reyes
>>>> <soiland-reyes@cs.manchester.ac.uk
>>>> <ma...@cs.manchester.ac.uk>> wrote:
>>>>
>>>> Reto, what was the reason for why Clerezza made the
>>>> clerezza.osgi.dynamicimport.pkg indirect properties?
>>>>
>>>> Not sure I quite get this property:
>>>>
>>>>
>>>>
>>>>
>>>> <clerezza.osgi.export>${clerezza.osgi.export.pkg}*;version=${pkgVersion};
>>>> -split-package:=merge-first
>>>> </clerezza.osgi.export>
>>>>
>>>>
>>>>
>>>>
>>>> On 4 November 2014 13:12, Stian Soiland-Reyes
>>>> <soiland-reyes@cs.manchester.ac.uk
>>>> <ma...@cs.manchester.ac.uk>> wrote:
>>>> > If you found that splitting it up into different bundles works,
>>>> then
>>>> > perhaps we should not need to have any wrapping bundles at all,
>>>> and
>>>> > can just add the <packaging>bundle</packaging> stuff to the main
>>>> > modules?
>>>> >
>>>> >
>>>> >
>>>> > On 4 November 2014 10:54, Reto Gmür <reto@apache.org
>>>> <ma...@apache.org>> wrote:
>>>> >> Hi
>>>> >>
>>>> >> In the clerezza project we have been wrapping jena for a while
>>>> as OSGi
>>>> >> bundles.
>>>> >>
>>>> >> Recently it got split up into different bundles. The source
>>>> (i.e. the poms)
>>>> >> can be seen here:
>>>> >>
>>>> >> https://github.com/apache/clerezza/tree/master/ext
>>>> >>
>>>> >> Cheers,
>>>> >> Reto
>>>> >>
>>>> >> On Sat, Nov 1, 2014 at 2:26 AM, Stian Soiland-Reyes <
>>>> >> soiland-reyes@cs.manchester.ac.uk
>>>> <ma...@cs.manchester.ac.uk>> wrote:
>>>> >>
>>>> >>> I would like to hear from your experience of a custom-wrapped
>>>> bundle
>>>> >>> what you decided to include or not.
>>>> >>>
>>>> >>> See my other email message in this thread..
>>>> >>>
>>>> >>> Basically in short:
>>>> >>>
>>>> >>>
>>>> >>>
>>>>
>>>>
>>>> http://build.mygrid.org.uk/ci/job/jena-bundle/21/org.apache.jena$jena-osg
>>>> i/
>>>> >>>
>>>> >>>
>>>> >>>
>>>>
>>>>
>>>> http://repository.mygrid.org.uk/artifactory/ext-snapshot-local/org/apache
>>>> /jena/jena-osgi/2.12.2-SNAPSHOT/
>>>> >>>
>>>> >>>
>>>>
>>>>
>>>> http://repository.mygrid.org.uk/artifactory/ext-snapshot-local/org/apache
>>>> /jena/jena-parent/12-SNAPSHOT/
>>>> >>>
>>>> >>>
>>>> >>>
>>>> >>> On 31 October 2014 13:27, Mark Feblowitz
>>>> <markfeblowitz@icloud.com <ma...@icloud.com>> wrote:
>>>> >>> > I’m an OSGi user, and have been using a custom-wrapped Jena
>>>> OSGi bundle
>>>> >>> for more than a year.
>>>> >>> >
>>>> >>> > I’d be happy to try it out. How would I do so?
>>>> >>> >
>>>> >>> > Mark
>>>> >>> >
>>>> >>> >
>>>> >>> >
>>>> >>> >> On Oct 31, 2014, at 6:56 AM, Andy Seaborne <andy@apache.org
>>>> <ma...@apache.org>> wrote:
>>>> >>> >>
>>>> >>> >> On 28/10/14 16:50, stain wrote:
>>>> >>> >>> GitHub user stain opened a pull request:
>>>> >>> >>>
>>>> >>> >>> https://github.com/apache/jena/pull/10
>>>> >>> >>>
>>>> >>> >>> Jena OSGi bundle
>>>> >>> >>>
>>>> >>> >>> Embedding core Jena modules in a single OSGi bundle.
>>>> >>> >>>
>>>> >>> >>> This works around classloader issues such as Jena's use
>>>> of
>>>> >>> `Class.forName()`, but does not yet support other OSGi bundles
>>>> to easily
>>>> >>> plug in 3rd party Jena implementations of say readers and
>>>> writers.
>>>> >>> >>>
>>>> >>> >>> Modules included:
>>>> >>> >>> * jena-core
>>>> >>> >>> * jena-arq
>>>> >>> >>> * jena-tdb
>>>> >>> >>> * jena-sdb
>>>> >>> >>> * jena-iri
>>>> >>> >>
>>>> >>> >> Having one bundle for Jena makes a lot of sense as we build
>>>> and release
>>>> >>> whole systems, so partial replacement of bits and pieces isn't
>>>> >>> supported/encouraged anyway. Releases may change cross module
>>>> >>> assumptions. Personally, I'd drop SDB from the included
>>>> modules; it's
>>>> >>> being made a maven-only module next time, and not in the
>>>> distribution
>>>> >>> binaries.
>>>> >>> >>
>>>> >>> >> What I'd really, really like is for this to be tested by
>>>> other OSGi
>>>> >>> users. As far as I know, none of the committers use OSGi
>>>> day-to-day
>>>> >>> (we/Epimorphics used to but when we looked at the
>>>> costs/benefits we switch
>>>> >>> to a simpler, service architecture style).
>>>> >>> >>
>>>> >>> >> Stain - what would you say to advertising this on users@
>>>> (and
>>>> >>> dev@clerezza?) and seeing if we can get some user testing and
>>>> validation?
>>>> >>> >>
>>>> >>> >> Andy
>>>> >>> >>
>>>> >>> >>>
>>>> >>> >>> This OSGi bundle includes a dependency on the
>>>> `httpclient-osgi`
>>>> >>> and `httpcore-osgi` version. All other packages used are
>>>> embeded within the
>>>> >>> OSGi bundle, making them appear on a single classloader in
>>>> OSGi.
>>>> >>> >>>
>>>> >>> >>>
>>>> >>> >>>
>>>> >>> >>> You can merge this pull request into a Git repository by
>>>> running:
>>>> >>> >>>
>>>> >>> >>> $ git pull https://github.com/stain/jena
>>>> jena-osgi-bundle
>>>> >>> >>>
>>>> >>> >>> Alternatively you can review and apply these changes as
>>>> the patch at:
>>>> >>> >>>
>>>> >>> >>> https://github.com/apache/jena/pull/10.patch
>>>> >>> >>>
>>>> >>> >>> To close this pull request, make a commit to your
>>>> master/trunk branch
>>>> >>> >>> with (at least) the following in the commit message:
>>>> >>> >>>
>>>> >>> >>> This closes #10
>>>> >>> >>>
>>>> >>> >>> ----
>>>> >>> >>> commit 1957808b34a408bf0278cfb4017d6e7040eebabb
>>>> >>> >>> Author: Stian Soiland-Reyes
>>>> <soiland-reyes@cs.manchester.ac.uk
>>>> <ma...@cs.manchester.ac.uk>>
>>>> >>> >>> Date: 2014-10-28T16:03:15Z
>>>> >>> >>>
>>>> >>> >>> pom tweaks so it builds
>>>> >>> >>>
>>>> >>> >>> .. also a spelling mistake tixed
>>>> >>> >>>
>>>> >>> >>> commit 5724c31d542d7c8ddf89c4333fbe4809d7783f49
>>>> >>> >>> Author: Stian Soiland-Reyes
>>>> <soiland-reyes@cs.manchester.ac.uk
>>>> <ma...@cs.manchester.ac.uk>>
>>>> >>> >>> Date: 2014-10-28T16:34:59Z
>>>> >>> >>>
>>>> >>> >>> Embedding all Jena modules in a single OSGi bundle.
>>>> >>> >>>
>>>> >>> >>> commit 3bb12d0a1472977cfcd51abf392683659bac1e4d
>>>> >>> >>> Author: Stian Soiland-Reyes
>>>> <soiland-reyes@cs.manchester.ac.uk
>>>> <ma...@cs.manchester.ac.uk>>
>>>> >>> >>> Date: 2014-10-28T16:38:00Z
>>>> >>> >>>
>>>> >>> >>> httpcore-osgi 4.2.5
>>>> >>> >>>
>>>> >>> >>> commit aa705c9e3e4f3b4c58924e95aa223213358b08e3
>>>> >>> >>> Author: Stian Soiland-Reyes
>>>> <soiland-reyes@cs.manchester.ac.uk
>>>> <ma...@cs.manchester.ac.uk>>
>>>> >>> >>> Date: 2014-10-28T16:42:48Z
>>>> >>> >>>
>>>> >>> >>> ver.* properties as in jena-parent
>>>> >>> >>>
>>>> >>> >>> TODO: Move these properties to jena-parent?
>>>> >>> >>>
>>>> >>> >>> ----
>>>> >>> >>>
>>>> >>> >>>
>>>> >>> >>> ---
>>>> >>> >>> If your project is set up for it, you can reply to this
>>>> email and have
>>>> >>> your
>>>> >>> >>> reply appear on GitHub as well. If your project does not
>>>> have this
>>>> >>> feature
>>>> >>> >>> enabled and wishes so, or if the feature is enabled but
>>>> not working,
>>>> >>> please
>>>> >>> >>> contact infrastructure at infrastructure@apache.org
>>>> <ma...@apache.org> or file a JIRA
>>>> >>> ticket
>>>> >>> >>> with INFRA.
>>>> >>> >>> ---
>>>> >>> >>>
>>>> >>> >>
>>>> >>> >
>>>> >>>
>>>> >>>
>>>> >>>
>>>> >>> --
>>>> >>> Stian Soiland-Reyes, myGrid team
>>>> >>> School of Computer Science
>>>> >>> The University of Manchester
>>>> >>> http://soiland-reyes.com/stian/work/
>>>> http://orcid.org/0000-0001-9842-9718
>>>> >>>
>>>> >
>>>> >
>>>> >
>>>> > --
>>>> > Stian Soiland-Reyes, myGrid team
>>>> > School of Computer Science
>>>> > The University of Manchester
>>>> > http://soiland-reyes.com/stian/work/
>>>> http://orcid.org/0000-0001-9842-9718
>>>>
>>>>
>>>>
>>>> --
>>>> Stian Soiland-Reyes, myGrid team
>>>> School of Computer Science
>>>> The University of Manchester
>>>> http://soiland-reyes.com/stian/work/
>>>> http://orcid.org/0000-0001-9842-9718
>>>>
>>>>
>>>
>>>
>>> --
>>> ir. ing. Minto van der Sluis
>>> Software innovator / renovator
>>> Xup BV
>>>
>>> Mobiel: +31 (0) 626 014541
>>>
>>
>>
>>
>>
>
--
Stian Soiland-Reyes, myGrid team
School of Computer Science
The University of Manchester
http://soiland-reyes.com/stian/work/ http://orcid.org/0000-0001-9842-9718
Re: [GitHub] jena pull request: Jena OSGi bundle
Posted by Andy Seaborne <an...@apache.org>.
Restructuring is certainly the way to go in the case of ARQ modifying
core. The simple solution is merge the codebases then restructure at
leisure, and that isn't a Jena3 issue.
What is the experience of ServiceLoader and how does it (and
"META-INF/services/") interact with OSGi? ServiceLoader contains calls
to Class.forName.
Andy
On 05/11/14 09:45, Rob Vesse wrote:
> Yes longer term (and now we have moved to Java 7) it would be best to
> avoid dynamic class loading where possible and use the Java 7
> ServiceLoader paradigm instead.
>
> Some of the existing stuff is because of the existing module structure
> meaning that it is actually preferable to use the ARQ implementations over
> some things in Jena Core (e.g. readers and writers) but the module
> structure means Jena-Core can't guarantee the presence. We have talked
> about restructuring the modules longer term (I.e. Jena3) which would also
> resolve some of this kind of problem and avoid any need for ServiceLoader
> or dynamic class loading in places
>
> However there will likely still be some places where dynamic class loading
> would need to remain e.g. Jena assembler, use of java: URIs for extension
> functions because they are useful features
>
> Rob
>
> On 04/11/2014 09:54, "Minto van der Sluis" <mi...@xup.nl> wrote:
>
>> Hi,
>>
>> If I recall correctly it is required due Jena using dynamic class
>> loading (Class.forName). Doing a grep on my "not updated in a long time"
>> checkout reveals 38 occurrences.
>>
>> If Jena is considering to provide OSGi bundles maybe then reconsider
>> using an alternative for dynamic class loading.
>>
>> Regards,
>>
>> Minto
>>
>>
>>
>>
>> Reto Gmür schreef op 4-11-2014 14:32:
>>> Hi Stian,
>>>
>>> If I understood and remember correctly the problem are circular
>>> dependencies between jena artifacts and packages occurring in multiple
>>> jars. I'm sure Minto (CC) can tell you the reasons more.
>>>
>>> If providing OSGi bundles becomes part of Jena then maybe the root
>>> cause of requiring this rather ugly dynamic imports and split-packages
>>> can be addressed. This is likely to be beneficial to the overall design.
>>>
>>> Cheers,
>>> Reto
>>>
>>> On Tue, Nov 4, 2014 at 2:15 PM, Stian Soiland-Reyes
>>> <soiland-reyes@cs.manchester.ac.uk
>>> <ma...@cs.manchester.ac.uk>> wrote:
>>>
>>> Reto, what was the reason for why Clerezza made the
>>> clerezza.osgi.dynamicimport.pkg indirect properties?
>>>
>>> Not sure I quite get this property:
>>>
>>>
>>>
>>> <clerezza.osgi.export>${clerezza.osgi.export.pkg}*;version=${pkgVersion};
>>> -split-package:=merge-first
>>> </clerezza.osgi.export>
>>>
>>>
>>>
>>>
>>> On 4 November 2014 13:12, Stian Soiland-Reyes
>>> <soiland-reyes@cs.manchester.ac.uk
>>> <ma...@cs.manchester.ac.uk>> wrote:
>>> > If you found that splitting it up into different bundles works,
>>> then
>>> > perhaps we should not need to have any wrapping bundles at all,
>>> and
>>> > can just add the <packaging>bundle</packaging> stuff to the main
>>> > modules?
>>> >
>>> >
>>> >
>>> > On 4 November 2014 10:54, Reto Gmür <reto@apache.org
>>> <ma...@apache.org>> wrote:
>>> >> Hi
>>> >>
>>> >> In the clerezza project we have been wrapping jena for a while
>>> as OSGi
>>> >> bundles.
>>> >>
>>> >> Recently it got split up into different bundles. The source
>>> (i.e. the poms)
>>> >> can be seen here:
>>> >>
>>> >> https://github.com/apache/clerezza/tree/master/ext
>>> >>
>>> >> Cheers,
>>> >> Reto
>>> >>
>>> >> On Sat, Nov 1, 2014 at 2:26 AM, Stian Soiland-Reyes <
>>> >> soiland-reyes@cs.manchester.ac.uk
>>> <ma...@cs.manchester.ac.uk>> wrote:
>>> >>
>>> >>> I would like to hear from your experience of a custom-wrapped
>>> bundle
>>> >>> what you decided to include or not.
>>> >>>
>>> >>> See my other email message in this thread..
>>> >>>
>>> >>> Basically in short:
>>> >>>
>>> >>>
>>> >>>
>>>
>>> http://build.mygrid.org.uk/ci/job/jena-bundle/21/org.apache.jena$jena-osg
>>> i/
>>> >>>
>>> >>>
>>> >>>
>>>
>>> http://repository.mygrid.org.uk/artifactory/ext-snapshot-local/org/apache
>>> /jena/jena-osgi/2.12.2-SNAPSHOT/
>>> >>>
>>> >>>
>>>
>>> http://repository.mygrid.org.uk/artifactory/ext-snapshot-local/org/apache
>>> /jena/jena-parent/12-SNAPSHOT/
>>> >>>
>>> >>>
>>> >>>
>>> >>> On 31 October 2014 13:27, Mark Feblowitz
>>> <markfeblowitz@icloud.com <ma...@icloud.com>> wrote:
>>> >>> > I’m an OSGi user, and have been using a custom-wrapped Jena
>>> OSGi bundle
>>> >>> for more than a year.
>>> >>> >
>>> >>> > I’d be happy to try it out. How would I do so?
>>> >>> >
>>> >>> > Mark
>>> >>> >
>>> >>> >
>>> >>> >
>>> >>> >> On Oct 31, 2014, at 6:56 AM, Andy Seaborne <andy@apache.org
>>> <ma...@apache.org>> wrote:
>>> >>> >>
>>> >>> >> On 28/10/14 16:50, stain wrote:
>>> >>> >>> GitHub user stain opened a pull request:
>>> >>> >>>
>>> >>> >>> https://github.com/apache/jena/pull/10
>>> >>> >>>
>>> >>> >>> Jena OSGi bundle
>>> >>> >>>
>>> >>> >>> Embedding core Jena modules in a single OSGi bundle.
>>> >>> >>>
>>> >>> >>> This works around classloader issues such as Jena's use
>>> of
>>> >>> `Class.forName()`, but does not yet support other OSGi bundles
>>> to easily
>>> >>> plug in 3rd party Jena implementations of say readers and
>>> writers.
>>> >>> >>>
>>> >>> >>> Modules included:
>>> >>> >>> * jena-core
>>> >>> >>> * jena-arq
>>> >>> >>> * jena-tdb
>>> >>> >>> * jena-sdb
>>> >>> >>> * jena-iri
>>> >>> >>
>>> >>> >> Having one bundle for Jena makes a lot of sense as we build
>>> and release
>>> >>> whole systems, so partial replacement of bits and pieces isn't
>>> >>> supported/encouraged anyway. Releases may change cross module
>>> >>> assumptions. Personally, I'd drop SDB from the included
>>> modules; it's
>>> >>> being made a maven-only module next time, and not in the
>>> distribution
>>> >>> binaries.
>>> >>> >>
>>> >>> >> What I'd really, really like is for this to be tested by
>>> other OSGi
>>> >>> users. As far as I know, none of the committers use OSGi
>>> day-to-day
>>> >>> (we/Epimorphics used to but when we looked at the
>>> costs/benefits we switch
>>> >>> to a simpler, service architecture style).
>>> >>> >>
>>> >>> >> Stain - what would you say to advertising this on users@ (and
>>> >>> dev@clerezza?) and seeing if we can get some user testing and
>>> validation?
>>> >>> >>
>>> >>> >> Andy
>>> >>> >>
>>> >>> >>>
>>> >>> >>> This OSGi bundle includes a dependency on the
>>> `httpclient-osgi`
>>> >>> and `httpcore-osgi` version. All other packages used are
>>> embeded within the
>>> >>> OSGi bundle, making them appear on a single classloader in OSGi.
>>> >>> >>>
>>> >>> >>>
>>> >>> >>>
>>> >>> >>> You can merge this pull request into a Git repository by
>>> running:
>>> >>> >>>
>>> >>> >>> $ git pull https://github.com/stain/jena
>>> jena-osgi-bundle
>>> >>> >>>
>>> >>> >>> Alternatively you can review and apply these changes as
>>> the patch at:
>>> >>> >>>
>>> >>> >>> https://github.com/apache/jena/pull/10.patch
>>> >>> >>>
>>> >>> >>> To close this pull request, make a commit to your
>>> master/trunk branch
>>> >>> >>> with (at least) the following in the commit message:
>>> >>> >>>
>>> >>> >>> This closes #10
>>> >>> >>>
>>> >>> >>> ----
>>> >>> >>> commit 1957808b34a408bf0278cfb4017d6e7040eebabb
>>> >>> >>> Author: Stian Soiland-Reyes
>>> <soiland-reyes@cs.manchester.ac.uk
>>> <ma...@cs.manchester.ac.uk>>
>>> >>> >>> Date: 2014-10-28T16:03:15Z
>>> >>> >>>
>>> >>> >>> pom tweaks so it builds
>>> >>> >>>
>>> >>> >>> .. also a spelling mistake tixed
>>> >>> >>>
>>> >>> >>> commit 5724c31d542d7c8ddf89c4333fbe4809d7783f49
>>> >>> >>> Author: Stian Soiland-Reyes
>>> <soiland-reyes@cs.manchester.ac.uk
>>> <ma...@cs.manchester.ac.uk>>
>>> >>> >>> Date: 2014-10-28T16:34:59Z
>>> >>> >>>
>>> >>> >>> Embedding all Jena modules in a single OSGi bundle.
>>> >>> >>>
>>> >>> >>> commit 3bb12d0a1472977cfcd51abf392683659bac1e4d
>>> >>> >>> Author: Stian Soiland-Reyes
>>> <soiland-reyes@cs.manchester.ac.uk
>>> <ma...@cs.manchester.ac.uk>>
>>> >>> >>> Date: 2014-10-28T16:38:00Z
>>> >>> >>>
>>> >>> >>> httpcore-osgi 4.2.5
>>> >>> >>>
>>> >>> >>> commit aa705c9e3e4f3b4c58924e95aa223213358b08e3
>>> >>> >>> Author: Stian Soiland-Reyes
>>> <soiland-reyes@cs.manchester.ac.uk
>>> <ma...@cs.manchester.ac.uk>>
>>> >>> >>> Date: 2014-10-28T16:42:48Z
>>> >>> >>>
>>> >>> >>> ver.* properties as in jena-parent
>>> >>> >>>
>>> >>> >>> TODO: Move these properties to jena-parent?
>>> >>> >>>
>>> >>> >>> ----
>>> >>> >>>
>>> >>> >>>
>>> >>> >>> ---
>>> >>> >>> If your project is set up for it, you can reply to this
>>> email and have
>>> >>> your
>>> >>> >>> reply appear on GitHub as well. If your project does not
>>> have this
>>> >>> feature
>>> >>> >>> enabled and wishes so, or if the feature is enabled but
>>> not working,
>>> >>> please
>>> >>> >>> contact infrastructure at infrastructure@apache.org
>>> <ma...@apache.org> or file a JIRA
>>> >>> ticket
>>> >>> >>> with INFRA.
>>> >>> >>> ---
>>> >>> >>>
>>> >>> >>
>>> >>> >
>>> >>>
>>> >>>
>>> >>>
>>> >>> --
>>> >>> Stian Soiland-Reyes, myGrid team
>>> >>> School of Computer Science
>>> >>> The University of Manchester
>>> >>> http://soiland-reyes.com/stian/work/
>>> http://orcid.org/0000-0001-9842-9718
>>> >>>
>>> >
>>> >
>>> >
>>> > --
>>> > Stian Soiland-Reyes, myGrid team
>>> > School of Computer Science
>>> > The University of Manchester
>>> > http://soiland-reyes.com/stian/work/
>>> http://orcid.org/0000-0001-9842-9718
>>>
>>>
>>>
>>> --
>>> Stian Soiland-Reyes, myGrid team
>>> School of Computer Science
>>> The University of Manchester
>>> http://soiland-reyes.com/stian/work/
>>> http://orcid.org/0000-0001-9842-9718
>>>
>>>
>>
>>
>> --
>> ir. ing. Minto van der Sluis
>> Software innovator / renovator
>> Xup BV
>>
>> Mobiel: +31 (0) 626 014541
>>
>
>
>
>
Re: [GitHub] jena pull request: Jena OSGi bundle
Posted by Rob Vesse <rv...@dotnetrdf.org>.
Yes longer term (and now we have moved to Java 7) it would be best to
avoid dynamic class loading where possible and use the Java 7
ServiceLoader paradigm instead.
Some of the existing stuff is because of the existing module structure
meaning that it is actually preferable to use the ARQ implementations over
some things in Jena Core (e.g. readers and writers) but the module
structure means Jena-Core can't guarantee the presence. We have talked
about restructuring the modules longer term (I.e. Jena3) which would also
resolve some of this kind of problem and avoid any need for ServiceLoader
or dynamic class loading in places
However there will likely still be some places where dynamic class loading
would need to remain e.g. Jena assembler, use of java: URIs for extension
functions because they are useful features
Rob
On 04/11/2014 09:54, "Minto van der Sluis" <mi...@xup.nl> wrote:
>Hi,
>
>If I recall correctly it is required due Jena using dynamic class
>loading (Class.forName). Doing a grep on my "not updated in a long time"
>checkout reveals 38 occurrences.
>
>If Jena is considering to provide OSGi bundles maybe then reconsider
>using an alternative for dynamic class loading.
>
>Regards,
>
>Minto
>
>
>
>
>Reto Gmür schreef op 4-11-2014 14:32:
>> Hi Stian,
>>
>> If I understood and remember correctly the problem are circular
>> dependencies between jena artifacts and packages occurring in multiple
>> jars. I'm sure Minto (CC) can tell you the reasons more.
>>
>> If providing OSGi bundles becomes part of Jena then maybe the root
>> cause of requiring this rather ugly dynamic imports and split-packages
>> can be addressed. This is likely to be beneficial to the overall design.
>>
>> Cheers,
>> Reto
>>
>> On Tue, Nov 4, 2014 at 2:15 PM, Stian Soiland-Reyes
>> <soiland-reyes@cs.manchester.ac.uk
>> <ma...@cs.manchester.ac.uk>> wrote:
>>
>> Reto, what was the reason for why Clerezza made the
>> clerezza.osgi.dynamicimport.pkg indirect properties?
>>
>> Not sure I quite get this property:
>>
>>
>>
>><clerezza.osgi.export>${clerezza.osgi.export.pkg}*;version=${pkgVersion};
>>-split-package:=merge-first
>> </clerezza.osgi.export>
>>
>>
>>
>>
>> On 4 November 2014 13:12, Stian Soiland-Reyes
>> <soiland-reyes@cs.manchester.ac.uk
>> <ma...@cs.manchester.ac.uk>> wrote:
>> > If you found that splitting it up into different bundles works,
>>then
>> > perhaps we should not need to have any wrapping bundles at all,
>>and
>> > can just add the <packaging>bundle</packaging> stuff to the main
>> > modules?
>> >
>> >
>> >
>> > On 4 November 2014 10:54, Reto Gmür <reto@apache.org
>> <ma...@apache.org>> wrote:
>> >> Hi
>> >>
>> >> In the clerezza project we have been wrapping jena for a while
>> as OSGi
>> >> bundles.
>> >>
>> >> Recently it got split up into different bundles. The source
>> (i.e. the poms)
>> >> can be seen here:
>> >>
>> >> https://github.com/apache/clerezza/tree/master/ext
>> >>
>> >> Cheers,
>> >> Reto
>> >>
>> >> On Sat, Nov 1, 2014 at 2:26 AM, Stian Soiland-Reyes <
>> >> soiland-reyes@cs.manchester.ac.uk
>> <ma...@cs.manchester.ac.uk>> wrote:
>> >>
>> >>> I would like to hear from your experience of a custom-wrapped
>> bundle
>> >>> what you decided to include or not.
>> >>>
>> >>> See my other email message in this thread..
>> >>>
>> >>> Basically in short:
>> >>>
>> >>>
>> >>>
>>
>>http://build.mygrid.org.uk/ci/job/jena-bundle/21/org.apache.jena$jena-osg
>>i/
>> >>>
>> >>>
>> >>>
>>
>>http://repository.mygrid.org.uk/artifactory/ext-snapshot-local/org/apache
>>/jena/jena-osgi/2.12.2-SNAPSHOT/
>> >>>
>> >>>
>>
>>http://repository.mygrid.org.uk/artifactory/ext-snapshot-local/org/apache
>>/jena/jena-parent/12-SNAPSHOT/
>> >>>
>> >>>
>> >>>
>> >>> On 31 October 2014 13:27, Mark Feblowitz
>> <markfeblowitz@icloud.com <ma...@icloud.com>> wrote:
>> >>> > I’m an OSGi user, and have been using a custom-wrapped Jena
>> OSGi bundle
>> >>> for more than a year.
>> >>> >
>> >>> > I’d be happy to try it out. How would I do so?
>> >>> >
>> >>> > Mark
>> >>> >
>> >>> >
>> >>> >
>> >>> >> On Oct 31, 2014, at 6:56 AM, Andy Seaborne <andy@apache.org
>> <ma...@apache.org>> wrote:
>> >>> >>
>> >>> >> On 28/10/14 16:50, stain wrote:
>> >>> >>> GitHub user stain opened a pull request:
>> >>> >>>
>> >>> >>> https://github.com/apache/jena/pull/10
>> >>> >>>
>> >>> >>> Jena OSGi bundle
>> >>> >>>
>> >>> >>> Embedding core Jena modules in a single OSGi bundle.
>> >>> >>>
>> >>> >>> This works around classloader issues such as Jena's use
>>of
>> >>> `Class.forName()`, but does not yet support other OSGi bundles
>> to easily
>> >>> plug in 3rd party Jena implementations of say readers and
>>writers.
>> >>> >>>
>> >>> >>> Modules included:
>> >>> >>> * jena-core
>> >>> >>> * jena-arq
>> >>> >>> * jena-tdb
>> >>> >>> * jena-sdb
>> >>> >>> * jena-iri
>> >>> >>
>> >>> >> Having one bundle for Jena makes a lot of sense as we build
>> and release
>> >>> whole systems, so partial replacement of bits and pieces isn't
>> >>> supported/encouraged anyway. Releases may change cross module
>> >>> assumptions. Personally, I'd drop SDB from the included
>> modules; it's
>> >>> being made a maven-only module next time, and not in the
>> distribution
>> >>> binaries.
>> >>> >>
>> >>> >> What I'd really, really like is for this to be tested by
>> other OSGi
>> >>> users. As far as I know, none of the committers use OSGi
>> day-to-day
>> >>> (we/Epimorphics used to but when we looked at the
>> costs/benefits we switch
>> >>> to a simpler, service architecture style).
>> >>> >>
>> >>> >> Stain - what would you say to advertising this on users@ (and
>> >>> dev@clerezza?) and seeing if we can get some user testing and
>> validation?
>> >>> >>
>> >>> >> Andy
>> >>> >>
>> >>> >>>
>> >>> >>> This OSGi bundle includes a dependency on the
>> `httpclient-osgi`
>> >>> and `httpcore-osgi` version. All other packages used are
>> embeded within the
>> >>> OSGi bundle, making them appear on a single classloader in OSGi.
>> >>> >>>
>> >>> >>>
>> >>> >>>
>> >>> >>> You can merge this pull request into a Git repository by
>> running:
>> >>> >>>
>> >>> >>> $ git pull https://github.com/stain/jena
>>jena-osgi-bundle
>> >>> >>>
>> >>> >>> Alternatively you can review and apply these changes as
>> the patch at:
>> >>> >>>
>> >>> >>> https://github.com/apache/jena/pull/10.patch
>> >>> >>>
>> >>> >>> To close this pull request, make a commit to your
>> master/trunk branch
>> >>> >>> with (at least) the following in the commit message:
>> >>> >>>
>> >>> >>> This closes #10
>> >>> >>>
>> >>> >>> ----
>> >>> >>> commit 1957808b34a408bf0278cfb4017d6e7040eebabb
>> >>> >>> Author: Stian Soiland-Reyes
>> <soiland-reyes@cs.manchester.ac.uk
>> <ma...@cs.manchester.ac.uk>>
>> >>> >>> Date: 2014-10-28T16:03:15Z
>> >>> >>>
>> >>> >>> pom tweaks so it builds
>> >>> >>>
>> >>> >>> .. also a spelling mistake tixed
>> >>> >>>
>> >>> >>> commit 5724c31d542d7c8ddf89c4333fbe4809d7783f49
>> >>> >>> Author: Stian Soiland-Reyes
>> <soiland-reyes@cs.manchester.ac.uk
>> <ma...@cs.manchester.ac.uk>>
>> >>> >>> Date: 2014-10-28T16:34:59Z
>> >>> >>>
>> >>> >>> Embedding all Jena modules in a single OSGi bundle.
>> >>> >>>
>> >>> >>> commit 3bb12d0a1472977cfcd51abf392683659bac1e4d
>> >>> >>> Author: Stian Soiland-Reyes
>> <soiland-reyes@cs.manchester.ac.uk
>> <ma...@cs.manchester.ac.uk>>
>> >>> >>> Date: 2014-10-28T16:38:00Z
>> >>> >>>
>> >>> >>> httpcore-osgi 4.2.5
>> >>> >>>
>> >>> >>> commit aa705c9e3e4f3b4c58924e95aa223213358b08e3
>> >>> >>> Author: Stian Soiland-Reyes
>> <soiland-reyes@cs.manchester.ac.uk
>> <ma...@cs.manchester.ac.uk>>
>> >>> >>> Date: 2014-10-28T16:42:48Z
>> >>> >>>
>> >>> >>> ver.* properties as in jena-parent
>> >>> >>>
>> >>> >>> TODO: Move these properties to jena-parent?
>> >>> >>>
>> >>> >>> ----
>> >>> >>>
>> >>> >>>
>> >>> >>> ---
>> >>> >>> If your project is set up for it, you can reply to this
>> email and have
>> >>> your
>> >>> >>> reply appear on GitHub as well. If your project does not
>> have this
>> >>> feature
>> >>> >>> enabled and wishes so, or if the feature is enabled but
>> not working,
>> >>> please
>> >>> >>> contact infrastructure at infrastructure@apache.org
>> <ma...@apache.org> or file a JIRA
>> >>> ticket
>> >>> >>> with INFRA.
>> >>> >>> ---
>> >>> >>>
>> >>> >>
>> >>> >
>> >>>
>> >>>
>> >>>
>> >>> --
>> >>> Stian Soiland-Reyes, myGrid team
>> >>> School of Computer Science
>> >>> The University of Manchester
>> >>> http://soiland-reyes.com/stian/work/
>> http://orcid.org/0000-0001-9842-9718
>> >>>
>> >
>> >
>> >
>> > --
>> > Stian Soiland-Reyes, myGrid team
>> > School of Computer Science
>> > The University of Manchester
>> > http://soiland-reyes.com/stian/work/
>> http://orcid.org/0000-0001-9842-9718
>>
>>
>>
>> --
>> Stian Soiland-Reyes, myGrid team
>> School of Computer Science
>> The University of Manchester
>> http://soiland-reyes.com/stian/work/
>> http://orcid.org/0000-0001-9842-9718
>>
>>
>
>
>--
>ir. ing. Minto van der Sluis
>Software innovator / renovator
>Xup BV
>
>Mobiel: +31 (0) 626 014541
>
Re: [GitHub] jena pull request: Jena OSGi bundle
Posted by Minto van der Sluis <mi...@xup.nl>.
Hi,
If I recall correctly it is required due Jena using dynamic class
loading (Class.forName). Doing a grep on my "not updated in a long time"
checkout reveals 38 occurrences.
If Jena is considering to provide OSGi bundles maybe then reconsider
using an alternative for dynamic class loading.
Regards,
Minto
Reto Gmür schreef op 4-11-2014 14:32:
> Hi Stian,
>
> If I understood and remember correctly the problem are circular
> dependencies between jena artifacts and packages occurring in multiple
> jars. I'm sure Minto (CC) can tell you the reasons more.
>
> If providing OSGi bundles becomes part of Jena then maybe the root
> cause of requiring this rather ugly dynamic imports and split-packages
> can be addressed. This is likely to be beneficial to the overall design.
>
> Cheers,
> Reto
>
> On Tue, Nov 4, 2014 at 2:15 PM, Stian Soiland-Reyes
> <soiland-reyes@cs.manchester.ac.uk
> <ma...@cs.manchester.ac.uk>> wrote:
>
> Reto, what was the reason for why Clerezza made the
> clerezza.osgi.dynamicimport.pkg indirect properties?
>
> Not sure I quite get this property:
>
>
> <clerezza.osgi.export>${clerezza.osgi.export.pkg}*;version=${pkgVersion};-split-package:=merge-first
> </clerezza.osgi.export>
>
>
>
>
> On 4 November 2014 13:12, Stian Soiland-Reyes
> <soiland-reyes@cs.manchester.ac.uk
> <ma...@cs.manchester.ac.uk>> wrote:
> > If you found that splitting it up into different bundles works, then
> > perhaps we should not need to have any wrapping bundles at all, and
> > can just add the <packaging>bundle</packaging> stuff to the main
> > modules?
> >
> >
> >
> > On 4 November 2014 10:54, Reto Gmür <reto@apache.org
> <ma...@apache.org>> wrote:
> >> Hi
> >>
> >> In the clerezza project we have been wrapping jena for a while
> as OSGi
> >> bundles.
> >>
> >> Recently it got split up into different bundles. The source
> (i.e. the poms)
> >> can be seen here:
> >>
> >> https://github.com/apache/clerezza/tree/master/ext
> >>
> >> Cheers,
> >> Reto
> >>
> >> On Sat, Nov 1, 2014 at 2:26 AM, Stian Soiland-Reyes <
> >> soiland-reyes@cs.manchester.ac.uk
> <ma...@cs.manchester.ac.uk>> wrote:
> >>
> >>> I would like to hear from your experience of a custom-wrapped
> bundle
> >>> what you decided to include or not.
> >>>
> >>> See my other email message in this thread..
> >>>
> >>> Basically in short:
> >>>
> >>>
> >>>
> http://build.mygrid.org.uk/ci/job/jena-bundle/21/org.apache.jena$jena-osgi/
> >>>
> >>>
> >>>
> http://repository.mygrid.org.uk/artifactory/ext-snapshot-local/org/apache/jena/jena-osgi/2.12.2-SNAPSHOT/
> >>>
> >>>
> http://repository.mygrid.org.uk/artifactory/ext-snapshot-local/org/apache/jena/jena-parent/12-SNAPSHOT/
> >>>
> >>>
> >>>
> >>> On 31 October 2014 13:27, Mark Feblowitz
> <markfeblowitz@icloud.com <ma...@icloud.com>> wrote:
> >>> > I’m an OSGi user, and have been using a custom-wrapped Jena
> OSGi bundle
> >>> for more than a year.
> >>> >
> >>> > I’d be happy to try it out. How would I do so?
> >>> >
> >>> > Mark
> >>> >
> >>> >
> >>> >
> >>> >> On Oct 31, 2014, at 6:56 AM, Andy Seaborne <andy@apache.org
> <ma...@apache.org>> wrote:
> >>> >>
> >>> >> On 28/10/14 16:50, stain wrote:
> >>> >>> GitHub user stain opened a pull request:
> >>> >>>
> >>> >>> https://github.com/apache/jena/pull/10
> >>> >>>
> >>> >>> Jena OSGi bundle
> >>> >>>
> >>> >>> Embedding core Jena modules in a single OSGi bundle.
> >>> >>>
> >>> >>> This works around classloader issues such as Jena's use of
> >>> `Class.forName()`, but does not yet support other OSGi bundles
> to easily
> >>> plug in 3rd party Jena implementations of say readers and writers.
> >>> >>>
> >>> >>> Modules included:
> >>> >>> * jena-core
> >>> >>> * jena-arq
> >>> >>> * jena-tdb
> >>> >>> * jena-sdb
> >>> >>> * jena-iri
> >>> >>
> >>> >> Having one bundle for Jena makes a lot of sense as we build
> and release
> >>> whole systems, so partial replacement of bits and pieces isn't
> >>> supported/encouraged anyway. Releases may change cross module
> >>> assumptions. Personally, I'd drop SDB from the included
> modules; it's
> >>> being made a maven-only module next time, and not in the
> distribution
> >>> binaries.
> >>> >>
> >>> >> What I'd really, really like is for this to be tested by
> other OSGi
> >>> users. As far as I know, none of the committers use OSGi
> day-to-day
> >>> (we/Epimorphics used to but when we looked at the
> costs/benefits we switch
> >>> to a simpler, service architecture style).
> >>> >>
> >>> >> Stain - what would you say to advertising this on users@ (and
> >>> dev@clerezza?) and seeing if we can get some user testing and
> validation?
> >>> >>
> >>> >> Andy
> >>> >>
> >>> >>>
> >>> >>> This OSGi bundle includes a dependency on the
> `httpclient-osgi`
> >>> and `httpcore-osgi` version. All other packages used are
> embeded within the
> >>> OSGi bundle, making them appear on a single classloader in OSGi.
> >>> >>>
> >>> >>>
> >>> >>>
> >>> >>> You can merge this pull request into a Git repository by
> running:
> >>> >>>
> >>> >>> $ git pull https://github.com/stain/jena jena-osgi-bundle
> >>> >>>
> >>> >>> Alternatively you can review and apply these changes as
> the patch at:
> >>> >>>
> >>> >>> https://github.com/apache/jena/pull/10.patch
> >>> >>>
> >>> >>> To close this pull request, make a commit to your
> master/trunk branch
> >>> >>> with (at least) the following in the commit message:
> >>> >>>
> >>> >>> This closes #10
> >>> >>>
> >>> >>> ----
> >>> >>> commit 1957808b34a408bf0278cfb4017d6e7040eebabb
> >>> >>> Author: Stian Soiland-Reyes
> <soiland-reyes@cs.manchester.ac.uk
> <ma...@cs.manchester.ac.uk>>
> >>> >>> Date: 2014-10-28T16:03:15Z
> >>> >>>
> >>> >>> pom tweaks so it builds
> >>> >>>
> >>> >>> .. also a spelling mistake tixed
> >>> >>>
> >>> >>> commit 5724c31d542d7c8ddf89c4333fbe4809d7783f49
> >>> >>> Author: Stian Soiland-Reyes
> <soiland-reyes@cs.manchester.ac.uk
> <ma...@cs.manchester.ac.uk>>
> >>> >>> Date: 2014-10-28T16:34:59Z
> >>> >>>
> >>> >>> Embedding all Jena modules in a single OSGi bundle.
> >>> >>>
> >>> >>> commit 3bb12d0a1472977cfcd51abf392683659bac1e4d
> >>> >>> Author: Stian Soiland-Reyes
> <soiland-reyes@cs.manchester.ac.uk
> <ma...@cs.manchester.ac.uk>>
> >>> >>> Date: 2014-10-28T16:38:00Z
> >>> >>>
> >>> >>> httpcore-osgi 4.2.5
> >>> >>>
> >>> >>> commit aa705c9e3e4f3b4c58924e95aa223213358b08e3
> >>> >>> Author: Stian Soiland-Reyes
> <soiland-reyes@cs.manchester.ac.uk
> <ma...@cs.manchester.ac.uk>>
> >>> >>> Date: 2014-10-28T16:42:48Z
> >>> >>>
> >>> >>> ver.* properties as in jena-parent
> >>> >>>
> >>> >>> TODO: Move these properties to jena-parent?
> >>> >>>
> >>> >>> ----
> >>> >>>
> >>> >>>
> >>> >>> ---
> >>> >>> If your project is set up for it, you can reply to this
> email and have
> >>> your
> >>> >>> reply appear on GitHub as well. If your project does not
> have this
> >>> feature
> >>> >>> enabled and wishes so, or if the feature is enabled but
> not working,
> >>> please
> >>> >>> contact infrastructure at infrastructure@apache.org
> <ma...@apache.org> or file a JIRA
> >>> ticket
> >>> >>> with INFRA.
> >>> >>> ---
> >>> >>>
> >>> >>
> >>> >
> >>>
> >>>
> >>>
> >>> --
> >>> Stian Soiland-Reyes, myGrid team
> >>> School of Computer Science
> >>> The University of Manchester
> >>> http://soiland-reyes.com/stian/work/
> http://orcid.org/0000-0001-9842-9718
> >>>
> >
> >
> >
> > --
> > Stian Soiland-Reyes, myGrid team
> > School of Computer Science
> > The University of Manchester
> > http://soiland-reyes.com/stian/work/
> http://orcid.org/0000-0001-9842-9718
>
>
>
> --
> Stian Soiland-Reyes, myGrid team
> School of Computer Science
> The University of Manchester
> http://soiland-reyes.com/stian/work/
> http://orcid.org/0000-0001-9842-9718
>
>
--
ir. ing. Minto van der Sluis
Software innovator / renovator
Xup BV
Mobiel: +31 (0) 626 014541
Re: [GitHub] jena pull request: Jena OSGi bundle
Posted by Stian Soiland-Reyes <so...@cs.manchester.ac.uk>.
Ah, exactly.. so say your jena-arq bundle does not depend on the
jena-core bundle at runtime, but simply embeds all of jena-arq AND
jena-core classes. So if both bundles are loaded at the same time..
troubles arise.
I think we really need to do something about these
intra-dependencies.. it is hinting that jena-core and jena-arq should
no longer be separate modules.
Is it mainly the legacy loading stuff replaced by RIOT that is causing
issues? Can it be reworked by registering by class instead of by
classname, thus avoiding class.forName?
On 4 November 2014 13:32, Reto Gmür <re...@apache.org> wrote:
> Hi Stian,
>
> If I understood and remember correctly the problem are circular
> dependencies between jena artifacts and packages occurring in multiple
> jars. I'm sure Minto (CC) can tell you the reasons more.
>
> If providing OSGi bundles becomes part of Jena then maybe the root cause of
> requiring this rather ugly dynamic imports and split-packages can be
> addressed. This is likely to be beneficial to the overall design.
>
> Cheers,
> Reto
>
> On Tue, Nov 4, 2014 at 2:15 PM, Stian Soiland-Reyes <
> soiland-reyes@cs.manchester.ac.uk> wrote:
>
>> Reto, what was the reason for why Clerezza made the
>> clerezza.osgi.dynamicimport.pkg indirect properties?
>>
>> Not sure I quite get this property:
>>
>>
>>
>> <clerezza.osgi.export>${clerezza.osgi.export.pkg}*;version=${pkgVersion};-split-package:=merge-first
>> </clerezza.osgi.export>
>>
>>
>>
>>
>> On 4 November 2014 13:12, Stian Soiland-Reyes
>> <so...@cs.manchester.ac.uk> wrote:
>> > If you found that splitting it up into different bundles works, then
>> > perhaps we should not need to have any wrapping bundles at all, and
>> > can just add the <packaging>bundle</packaging> stuff to the main
>> > modules?
>> >
>> >
>> >
>> > On 4 November 2014 10:54, Reto Gmür <re...@apache.org> wrote:
>> >> Hi
>> >>
>> >> In the clerezza project we have been wrapping jena for a while as OSGi
>> >> bundles.
>> >>
>> >> Recently it got split up into different bundles. The source (i.e. the
>> poms)
>> >> can be seen here:
>> >>
>> >> https://github.com/apache/clerezza/tree/master/ext
>> >>
>> >> Cheers,
>> >> Reto
>> >>
>> >> On Sat, Nov 1, 2014 at 2:26 AM, Stian Soiland-Reyes <
>> >> soiland-reyes@cs.manchester.ac.uk> wrote:
>> >>
>> >>> I would like to hear from your experience of a custom-wrapped bundle
>> >>> what you decided to include or not.
>> >>>
>> >>> See my other email message in this thread..
>> >>>
>> >>> Basically in short:
>> >>>
>> >>>
>> >>>
>> http://build.mygrid.org.uk/ci/job/jena-bundle/21/org.apache.jena$jena-osgi/
>> >>>
>> >>>
>> >>>
>> http://repository.mygrid.org.uk/artifactory/ext-snapshot-local/org/apache/jena/jena-osgi/2.12.2-SNAPSHOT/
>> >>>
>> >>>
>> http://repository.mygrid.org.uk/artifactory/ext-snapshot-local/org/apache/jena/jena-parent/12-SNAPSHOT/
>> >>>
>> >>>
>> >>>
>> >>> On 31 October 2014 13:27, Mark Feblowitz <ma...@icloud.com>
>> wrote:
>> >>> > I’m an OSGi user, and have been using a custom-wrapped Jena OSGi
>> bundle
>> >>> for more than a year.
>> >>> >
>> >>> > I’d be happy to try it out. How would I do so?
>> >>> >
>> >>> > Mark
>> >>> >
>> >>> >
>> >>> >
>> >>> >> On Oct 31, 2014, at 6:56 AM, Andy Seaborne <an...@apache.org> wrote:
>> >>> >>
>> >>> >> On 28/10/14 16:50, stain wrote:
>> >>> >>> GitHub user stain opened a pull request:
>> >>> >>>
>> >>> >>> https://github.com/apache/jena/pull/10
>> >>> >>>
>> >>> >>> Jena OSGi bundle
>> >>> >>>
>> >>> >>> Embedding core Jena modules in a single OSGi bundle.
>> >>> >>>
>> >>> >>> This works around classloader issues such as Jena's use of
>> >>> `Class.forName()`, but does not yet support other OSGi bundles to
>> easily
>> >>> plug in 3rd party Jena implementations of say readers and writers.
>> >>> >>>
>> >>> >>> Modules included:
>> >>> >>> * jena-core
>> >>> >>> * jena-arq
>> >>> >>> * jena-tdb
>> >>> >>> * jena-sdb
>> >>> >>> * jena-iri
>> >>> >>
>> >>> >> Having one bundle for Jena makes a lot of sense as we build and
>> release
>> >>> whole systems, so partial replacement of bits and pieces isn't
>> >>> supported/encouraged anyway. Releases may change cross module
>> >>> assumptions. Personally, I'd drop SDB from the included modules; it's
>> >>> being made a maven-only module next time, and not in the distribution
>> >>> binaries.
>> >>> >>
>> >>> >> What I'd really, really like is for this to be tested by other OSGi
>> >>> users. As far as I know, none of the committers use OSGi day-to-day
>> >>> (we/Epimorphics used to but when we looked at the costs/benefits we
>> switch
>> >>> to a simpler, service architecture style).
>> >>> >>
>> >>> >> Stain - what would you say to advertising this on users@ (and
>> >>> dev@clerezza?) and seeing if we can get some user testing and
>> validation?
>> >>> >>
>> >>> >> Andy
>> >>> >>
>> >>> >>>
>> >>> >>> This OSGi bundle includes a dependency on the `httpclient-osgi`
>> >>> and `httpcore-osgi` version. All other packages used are embeded
>> within the
>> >>> OSGi bundle, making them appear on a single classloader in OSGi.
>> >>> >>>
>> >>> >>>
>> >>> >>>
>> >>> >>> You can merge this pull request into a Git repository by running:
>> >>> >>>
>> >>> >>> $ git pull https://github.com/stain/jena jena-osgi-bundle
>> >>> >>>
>> >>> >>> Alternatively you can review and apply these changes as the patch
>> at:
>> >>> >>>
>> >>> >>> https://github.com/apache/jena/pull/10.patch
>> >>> >>>
>> >>> >>> To close this pull request, make a commit to your master/trunk
>> branch
>> >>> >>> with (at least) the following in the commit message:
>> >>> >>>
>> >>> >>> This closes #10
>> >>> >>>
>> >>> >>> ----
>> >>> >>> commit 1957808b34a408bf0278cfb4017d6e7040eebabb
>> >>> >>> Author: Stian Soiland-Reyes <so...@cs.manchester.ac.uk>
>> >>> >>> Date: 2014-10-28T16:03:15Z
>> >>> >>>
>> >>> >>> pom tweaks so it builds
>> >>> >>>
>> >>> >>> .. also a spelling mistake tixed
>> >>> >>>
>> >>> >>> commit 5724c31d542d7c8ddf89c4333fbe4809d7783f49
>> >>> >>> Author: Stian Soiland-Reyes <so...@cs.manchester.ac.uk>
>> >>> >>> Date: 2014-10-28T16:34:59Z
>> >>> >>>
>> >>> >>> Embedding all Jena modules in a single OSGi bundle.
>> >>> >>>
>> >>> >>> commit 3bb12d0a1472977cfcd51abf392683659bac1e4d
>> >>> >>> Author: Stian Soiland-Reyes <so...@cs.manchester.ac.uk>
>> >>> >>> Date: 2014-10-28T16:38:00Z
>> >>> >>>
>> >>> >>> httpcore-osgi 4.2.5
>> >>> >>>
>> >>> >>> commit aa705c9e3e4f3b4c58924e95aa223213358b08e3
>> >>> >>> Author: Stian Soiland-Reyes <so...@cs.manchester.ac.uk>
>> >>> >>> Date: 2014-10-28T16:42:48Z
>> >>> >>>
>> >>> >>> ver.* properties as in jena-parent
>> >>> >>>
>> >>> >>> TODO: Move these properties to jena-parent?
>> >>> >>>
>> >>> >>> ----
>> >>> >>>
>> >>> >>>
>> >>> >>> ---
>> >>> >>> If your project is set up for it, you can reply to this email and
>> have
>> >>> your
>> >>> >>> reply appear on GitHub as well. If your project does not have this
>> >>> feature
>> >>> >>> enabled and wishes so, or if the feature is enabled but not
>> working,
>> >>> please
>> >>> >>> contact infrastructure at infrastructure@apache.org or file a JIRA
>> >>> ticket
>> >>> >>> with INFRA.
>> >>> >>> ---
>> >>> >>>
>> >>> >>
>> >>> >
>> >>>
>> >>>
>> >>>
>> >>> --
>> >>> Stian Soiland-Reyes, myGrid team
>> >>> School of Computer Science
>> >>> The University of Manchester
>> >>> http://soiland-reyes.com/stian/work/
>> http://orcid.org/0000-0001-9842-9718
>> >>>
>> >
>> >
>> >
>> > --
>> > Stian Soiland-Reyes, myGrid team
>> > School of Computer Science
>> > The University of Manchester
>> > http://soiland-reyes.com/stian/work/
>> http://orcid.org/0000-0001-9842-9718
>>
>>
>>
>> --
>> Stian Soiland-Reyes, myGrid team
>> School of Computer Science
>> The University of Manchester
>> http://soiland-reyes.com/stian/work/ http://orcid.org/0000-0001-9842-9718
>>
--
Stian Soiland-Reyes, myGrid team
School of Computer Science
The University of Manchester
http://soiland-reyes.com/stian/work/ http://orcid.org/0000-0001-9842-9718
Re: [GitHub] jena pull request: Jena OSGi bundle
Posted by Reto Gmür <re...@apache.org>.
Hi Stian,
If I understood and remember correctly the problem are circular
dependencies between jena artifacts and packages occurring in multiple
jars. I'm sure Minto (CC) can tell you the reasons more.
If providing OSGi bundles becomes part of Jena then maybe the root cause of
requiring this rather ugly dynamic imports and split-packages can be
addressed. This is likely to be beneficial to the overall design.
Cheers,
Reto
On Tue, Nov 4, 2014 at 2:15 PM, Stian Soiland-Reyes <
soiland-reyes@cs.manchester.ac.uk> wrote:
> Reto, what was the reason for why Clerezza made the
> clerezza.osgi.dynamicimport.pkg indirect properties?
>
> Not sure I quite get this property:
>
>
>
> <clerezza.osgi.export>${clerezza.osgi.export.pkg}*;version=${pkgVersion};-split-package:=merge-first
> </clerezza.osgi.export>
>
>
>
>
> On 4 November 2014 13:12, Stian Soiland-Reyes
> <so...@cs.manchester.ac.uk> wrote:
> > If you found that splitting it up into different bundles works, then
> > perhaps we should not need to have any wrapping bundles at all, and
> > can just add the <packaging>bundle</packaging> stuff to the main
> > modules?
> >
> >
> >
> > On 4 November 2014 10:54, Reto Gmür <re...@apache.org> wrote:
> >> Hi
> >>
> >> In the clerezza project we have been wrapping jena for a while as OSGi
> >> bundles.
> >>
> >> Recently it got split up into different bundles. The source (i.e. the
> poms)
> >> can be seen here:
> >>
> >> https://github.com/apache/clerezza/tree/master/ext
> >>
> >> Cheers,
> >> Reto
> >>
> >> On Sat, Nov 1, 2014 at 2:26 AM, Stian Soiland-Reyes <
> >> soiland-reyes@cs.manchester.ac.uk> wrote:
> >>
> >>> I would like to hear from your experience of a custom-wrapped bundle
> >>> what you decided to include or not.
> >>>
> >>> See my other email message in this thread..
> >>>
> >>> Basically in short:
> >>>
> >>>
> >>>
> http://build.mygrid.org.uk/ci/job/jena-bundle/21/org.apache.jena$jena-osgi/
> >>>
> >>>
> >>>
> http://repository.mygrid.org.uk/artifactory/ext-snapshot-local/org/apache/jena/jena-osgi/2.12.2-SNAPSHOT/
> >>>
> >>>
> http://repository.mygrid.org.uk/artifactory/ext-snapshot-local/org/apache/jena/jena-parent/12-SNAPSHOT/
> >>>
> >>>
> >>>
> >>> On 31 October 2014 13:27, Mark Feblowitz <ma...@icloud.com>
> wrote:
> >>> > I’m an OSGi user, and have been using a custom-wrapped Jena OSGi
> bundle
> >>> for more than a year.
> >>> >
> >>> > I’d be happy to try it out. How would I do so?
> >>> >
> >>> > Mark
> >>> >
> >>> >
> >>> >
> >>> >> On Oct 31, 2014, at 6:56 AM, Andy Seaborne <an...@apache.org> wrote:
> >>> >>
> >>> >> On 28/10/14 16:50, stain wrote:
> >>> >>> GitHub user stain opened a pull request:
> >>> >>>
> >>> >>> https://github.com/apache/jena/pull/10
> >>> >>>
> >>> >>> Jena OSGi bundle
> >>> >>>
> >>> >>> Embedding core Jena modules in a single OSGi bundle.
> >>> >>>
> >>> >>> This works around classloader issues such as Jena's use of
> >>> `Class.forName()`, but does not yet support other OSGi bundles to
> easily
> >>> plug in 3rd party Jena implementations of say readers and writers.
> >>> >>>
> >>> >>> Modules included:
> >>> >>> * jena-core
> >>> >>> * jena-arq
> >>> >>> * jena-tdb
> >>> >>> * jena-sdb
> >>> >>> * jena-iri
> >>> >>
> >>> >> Having one bundle for Jena makes a lot of sense as we build and
> release
> >>> whole systems, so partial replacement of bits and pieces isn't
> >>> supported/encouraged anyway. Releases may change cross module
> >>> assumptions. Personally, I'd drop SDB from the included modules; it's
> >>> being made a maven-only module next time, and not in the distribution
> >>> binaries.
> >>> >>
> >>> >> What I'd really, really like is for this to be tested by other OSGi
> >>> users. As far as I know, none of the committers use OSGi day-to-day
> >>> (we/Epimorphics used to but when we looked at the costs/benefits we
> switch
> >>> to a simpler, service architecture style).
> >>> >>
> >>> >> Stain - what would you say to advertising this on users@ (and
> >>> dev@clerezza?) and seeing if we can get some user testing and
> validation?
> >>> >>
> >>> >> Andy
> >>> >>
> >>> >>>
> >>> >>> This OSGi bundle includes a dependency on the `httpclient-osgi`
> >>> and `httpcore-osgi` version. All other packages used are embeded
> within the
> >>> OSGi bundle, making them appear on a single classloader in OSGi.
> >>> >>>
> >>> >>>
> >>> >>>
> >>> >>> You can merge this pull request into a Git repository by running:
> >>> >>>
> >>> >>> $ git pull https://github.com/stain/jena jena-osgi-bundle
> >>> >>>
> >>> >>> Alternatively you can review and apply these changes as the patch
> at:
> >>> >>>
> >>> >>> https://github.com/apache/jena/pull/10.patch
> >>> >>>
> >>> >>> To close this pull request, make a commit to your master/trunk
> branch
> >>> >>> with (at least) the following in the commit message:
> >>> >>>
> >>> >>> This closes #10
> >>> >>>
> >>> >>> ----
> >>> >>> commit 1957808b34a408bf0278cfb4017d6e7040eebabb
> >>> >>> Author: Stian Soiland-Reyes <so...@cs.manchester.ac.uk>
> >>> >>> Date: 2014-10-28T16:03:15Z
> >>> >>>
> >>> >>> pom tweaks so it builds
> >>> >>>
> >>> >>> .. also a spelling mistake tixed
> >>> >>>
> >>> >>> commit 5724c31d542d7c8ddf89c4333fbe4809d7783f49
> >>> >>> Author: Stian Soiland-Reyes <so...@cs.manchester.ac.uk>
> >>> >>> Date: 2014-10-28T16:34:59Z
> >>> >>>
> >>> >>> Embedding all Jena modules in a single OSGi bundle.
> >>> >>>
> >>> >>> commit 3bb12d0a1472977cfcd51abf392683659bac1e4d
> >>> >>> Author: Stian Soiland-Reyes <so...@cs.manchester.ac.uk>
> >>> >>> Date: 2014-10-28T16:38:00Z
> >>> >>>
> >>> >>> httpcore-osgi 4.2.5
> >>> >>>
> >>> >>> commit aa705c9e3e4f3b4c58924e95aa223213358b08e3
> >>> >>> Author: Stian Soiland-Reyes <so...@cs.manchester.ac.uk>
> >>> >>> Date: 2014-10-28T16:42:48Z
> >>> >>>
> >>> >>> ver.* properties as in jena-parent
> >>> >>>
> >>> >>> TODO: Move these properties to jena-parent?
> >>> >>>
> >>> >>> ----
> >>> >>>
> >>> >>>
> >>> >>> ---
> >>> >>> If your project is set up for it, you can reply to this email and
> have
> >>> your
> >>> >>> reply appear on GitHub as well. If your project does not have this
> >>> feature
> >>> >>> enabled and wishes so, or if the feature is enabled but not
> working,
> >>> please
> >>> >>> contact infrastructure at infrastructure@apache.org or file a JIRA
> >>> ticket
> >>> >>> with INFRA.
> >>> >>> ---
> >>> >>>
> >>> >>
> >>> >
> >>>
> >>>
> >>>
> >>> --
> >>> Stian Soiland-Reyes, myGrid team
> >>> School of Computer Science
> >>> The University of Manchester
> >>> http://soiland-reyes.com/stian/work/
> http://orcid.org/0000-0001-9842-9718
> >>>
> >
> >
> >
> > --
> > Stian Soiland-Reyes, myGrid team
> > School of Computer Science
> > The University of Manchester
> > http://soiland-reyes.com/stian/work/
> http://orcid.org/0000-0001-9842-9718
>
>
>
> --
> Stian Soiland-Reyes, myGrid team
> School of Computer Science
> The University of Manchester
> http://soiland-reyes.com/stian/work/ http://orcid.org/0000-0001-9842-9718
>
Re: [GitHub] jena pull request: Jena OSGi bundle
Posted by Stian Soiland-Reyes <so...@cs.manchester.ac.uk>.
Reto, what was the reason for why Clerezza made the
clerezza.osgi.dynamicimport.pkg indirect properties?
Not sure I quite get this property:
<clerezza.osgi.export>${clerezza.osgi.export.pkg}*;version=${pkgVersion};-split-package:=merge-first
</clerezza.osgi.export>
On 4 November 2014 13:12, Stian Soiland-Reyes
<so...@cs.manchester.ac.uk> wrote:
> If you found that splitting it up into different bundles works, then
> perhaps we should not need to have any wrapping bundles at all, and
> can just add the <packaging>bundle</packaging> stuff to the main
> modules?
>
>
>
> On 4 November 2014 10:54, Reto Gmür <re...@apache.org> wrote:
>> Hi
>>
>> In the clerezza project we have been wrapping jena for a while as OSGi
>> bundles.
>>
>> Recently it got split up into different bundles. The source (i.e. the poms)
>> can be seen here:
>>
>> https://github.com/apache/clerezza/tree/master/ext
>>
>> Cheers,
>> Reto
>>
>> On Sat, Nov 1, 2014 at 2:26 AM, Stian Soiland-Reyes <
>> soiland-reyes@cs.manchester.ac.uk> wrote:
>>
>>> I would like to hear from your experience of a custom-wrapped bundle
>>> what you decided to include or not.
>>>
>>> See my other email message in this thread..
>>>
>>> Basically in short:
>>>
>>>
>>> http://build.mygrid.org.uk/ci/job/jena-bundle/21/org.apache.jena$jena-osgi/
>>>
>>>
>>> http://repository.mygrid.org.uk/artifactory/ext-snapshot-local/org/apache/jena/jena-osgi/2.12.2-SNAPSHOT/
>>>
>>> http://repository.mygrid.org.uk/artifactory/ext-snapshot-local/org/apache/jena/jena-parent/12-SNAPSHOT/
>>>
>>>
>>>
>>> On 31 October 2014 13:27, Mark Feblowitz <ma...@icloud.com> wrote:
>>> > I’m an OSGi user, and have been using a custom-wrapped Jena OSGi bundle
>>> for more than a year.
>>> >
>>> > I’d be happy to try it out. How would I do so?
>>> >
>>> > Mark
>>> >
>>> >
>>> >
>>> >> On Oct 31, 2014, at 6:56 AM, Andy Seaborne <an...@apache.org> wrote:
>>> >>
>>> >> On 28/10/14 16:50, stain wrote:
>>> >>> GitHub user stain opened a pull request:
>>> >>>
>>> >>> https://github.com/apache/jena/pull/10
>>> >>>
>>> >>> Jena OSGi bundle
>>> >>>
>>> >>> Embedding core Jena modules in a single OSGi bundle.
>>> >>>
>>> >>> This works around classloader issues such as Jena's use of
>>> `Class.forName()`, but does not yet support other OSGi bundles to easily
>>> plug in 3rd party Jena implementations of say readers and writers.
>>> >>>
>>> >>> Modules included:
>>> >>> * jena-core
>>> >>> * jena-arq
>>> >>> * jena-tdb
>>> >>> * jena-sdb
>>> >>> * jena-iri
>>> >>
>>> >> Having one bundle for Jena makes a lot of sense as we build and release
>>> whole systems, so partial replacement of bits and pieces isn't
>>> supported/encouraged anyway. Releases may change cross module
>>> assumptions. Personally, I'd drop SDB from the included modules; it's
>>> being made a maven-only module next time, and not in the distribution
>>> binaries.
>>> >>
>>> >> What I'd really, really like is for this to be tested by other OSGi
>>> users. As far as I know, none of the committers use OSGi day-to-day
>>> (we/Epimorphics used to but when we looked at the costs/benefits we switch
>>> to a simpler, service architecture style).
>>> >>
>>> >> Stain - what would you say to advertising this on users@ (and
>>> dev@clerezza?) and seeing if we can get some user testing and validation?
>>> >>
>>> >> Andy
>>> >>
>>> >>>
>>> >>> This OSGi bundle includes a dependency on the `httpclient-osgi`
>>> and `httpcore-osgi` version. All other packages used are embeded within the
>>> OSGi bundle, making them appear on a single classloader in OSGi.
>>> >>>
>>> >>>
>>> >>>
>>> >>> You can merge this pull request into a Git repository by running:
>>> >>>
>>> >>> $ git pull https://github.com/stain/jena jena-osgi-bundle
>>> >>>
>>> >>> Alternatively you can review and apply these changes as the patch at:
>>> >>>
>>> >>> https://github.com/apache/jena/pull/10.patch
>>> >>>
>>> >>> To close this pull request, make a commit to your master/trunk branch
>>> >>> with (at least) the following in the commit message:
>>> >>>
>>> >>> This closes #10
>>> >>>
>>> >>> ----
>>> >>> commit 1957808b34a408bf0278cfb4017d6e7040eebabb
>>> >>> Author: Stian Soiland-Reyes <so...@cs.manchester.ac.uk>
>>> >>> Date: 2014-10-28T16:03:15Z
>>> >>>
>>> >>> pom tweaks so it builds
>>> >>>
>>> >>> .. also a spelling mistake tixed
>>> >>>
>>> >>> commit 5724c31d542d7c8ddf89c4333fbe4809d7783f49
>>> >>> Author: Stian Soiland-Reyes <so...@cs.manchester.ac.uk>
>>> >>> Date: 2014-10-28T16:34:59Z
>>> >>>
>>> >>> Embedding all Jena modules in a single OSGi bundle.
>>> >>>
>>> >>> commit 3bb12d0a1472977cfcd51abf392683659bac1e4d
>>> >>> Author: Stian Soiland-Reyes <so...@cs.manchester.ac.uk>
>>> >>> Date: 2014-10-28T16:38:00Z
>>> >>>
>>> >>> httpcore-osgi 4.2.5
>>> >>>
>>> >>> commit aa705c9e3e4f3b4c58924e95aa223213358b08e3
>>> >>> Author: Stian Soiland-Reyes <so...@cs.manchester.ac.uk>
>>> >>> Date: 2014-10-28T16:42:48Z
>>> >>>
>>> >>> ver.* properties as in jena-parent
>>> >>>
>>> >>> TODO: Move these properties to jena-parent?
>>> >>>
>>> >>> ----
>>> >>>
>>> >>>
>>> >>> ---
>>> >>> If your project is set up for it, you can reply to this email and have
>>> your
>>> >>> reply appear on GitHub as well. If your project does not have this
>>> feature
>>> >>> enabled and wishes so, or if the feature is enabled but not working,
>>> please
>>> >>> contact infrastructure at infrastructure@apache.org or file a JIRA
>>> ticket
>>> >>> with INFRA.
>>> >>> ---
>>> >>>
>>> >>
>>> >
>>>
>>>
>>>
>>> --
>>> Stian Soiland-Reyes, myGrid team
>>> School of Computer Science
>>> The University of Manchester
>>> http://soiland-reyes.com/stian/work/ http://orcid.org/0000-0001-9842-9718
>>>
>
>
>
> --
> Stian Soiland-Reyes, myGrid team
> School of Computer Science
> The University of Manchester
> http://soiland-reyes.com/stian/work/ http://orcid.org/0000-0001-9842-9718
--
Stian Soiland-Reyes, myGrid team
School of Computer Science
The University of Manchester
http://soiland-reyes.com/stian/work/ http://orcid.org/0000-0001-9842-9718
Re: [GitHub] jena pull request: Jena OSGi bundle
Posted by Stian Soiland-Reyes <so...@cs.manchester.ac.uk>.
If you found that splitting it up into different bundles works, then
perhaps we should not need to have any wrapping bundles at all, and
can just add the <packaging>bundle</packaging> stuff to the main
modules?
On 4 November 2014 10:54, Reto Gmür <re...@apache.org> wrote:
> Hi
>
> In the clerezza project we have been wrapping jena for a while as OSGi
> bundles.
>
> Recently it got split up into different bundles. The source (i.e. the poms)
> can be seen here:
>
> https://github.com/apache/clerezza/tree/master/ext
>
> Cheers,
> Reto
>
> On Sat, Nov 1, 2014 at 2:26 AM, Stian Soiland-Reyes <
> soiland-reyes@cs.manchester.ac.uk> wrote:
>
>> I would like to hear from your experience of a custom-wrapped bundle
>> what you decided to include or not.
>>
>> See my other email message in this thread..
>>
>> Basically in short:
>>
>>
>> http://build.mygrid.org.uk/ci/job/jena-bundle/21/org.apache.jena$jena-osgi/
>>
>>
>> http://repository.mygrid.org.uk/artifactory/ext-snapshot-local/org/apache/jena/jena-osgi/2.12.2-SNAPSHOT/
>>
>> http://repository.mygrid.org.uk/artifactory/ext-snapshot-local/org/apache/jena/jena-parent/12-SNAPSHOT/
>>
>>
>>
>> On 31 October 2014 13:27, Mark Feblowitz <ma...@icloud.com> wrote:
>> > I’m an OSGi user, and have been using a custom-wrapped Jena OSGi bundle
>> for more than a year.
>> >
>> > I’d be happy to try it out. How would I do so?
>> >
>> > Mark
>> >
>> >
>> >
>> >> On Oct 31, 2014, at 6:56 AM, Andy Seaborne <an...@apache.org> wrote:
>> >>
>> >> On 28/10/14 16:50, stain wrote:
>> >>> GitHub user stain opened a pull request:
>> >>>
>> >>> https://github.com/apache/jena/pull/10
>> >>>
>> >>> Jena OSGi bundle
>> >>>
>> >>> Embedding core Jena modules in a single OSGi bundle.
>> >>>
>> >>> This works around classloader issues such as Jena's use of
>> `Class.forName()`, but does not yet support other OSGi bundles to easily
>> plug in 3rd party Jena implementations of say readers and writers.
>> >>>
>> >>> Modules included:
>> >>> * jena-core
>> >>> * jena-arq
>> >>> * jena-tdb
>> >>> * jena-sdb
>> >>> * jena-iri
>> >>
>> >> Having one bundle for Jena makes a lot of sense as we build and release
>> whole systems, so partial replacement of bits and pieces isn't
>> supported/encouraged anyway. Releases may change cross module
>> assumptions. Personally, I'd drop SDB from the included modules; it's
>> being made a maven-only module next time, and not in the distribution
>> binaries.
>> >>
>> >> What I'd really, really like is for this to be tested by other OSGi
>> users. As far as I know, none of the committers use OSGi day-to-day
>> (we/Epimorphics used to but when we looked at the costs/benefits we switch
>> to a simpler, service architecture style).
>> >>
>> >> Stain - what would you say to advertising this on users@ (and
>> dev@clerezza?) and seeing if we can get some user testing and validation?
>> >>
>> >> Andy
>> >>
>> >>>
>> >>> This OSGi bundle includes a dependency on the `httpclient-osgi`
>> and `httpcore-osgi` version. All other packages used are embeded within the
>> OSGi bundle, making them appear on a single classloader in OSGi.
>> >>>
>> >>>
>> >>>
>> >>> You can merge this pull request into a Git repository by running:
>> >>>
>> >>> $ git pull https://github.com/stain/jena jena-osgi-bundle
>> >>>
>> >>> Alternatively you can review and apply these changes as the patch at:
>> >>>
>> >>> https://github.com/apache/jena/pull/10.patch
>> >>>
>> >>> To close this pull request, make a commit to your master/trunk branch
>> >>> with (at least) the following in the commit message:
>> >>>
>> >>> This closes #10
>> >>>
>> >>> ----
>> >>> commit 1957808b34a408bf0278cfb4017d6e7040eebabb
>> >>> Author: Stian Soiland-Reyes <so...@cs.manchester.ac.uk>
>> >>> Date: 2014-10-28T16:03:15Z
>> >>>
>> >>> pom tweaks so it builds
>> >>>
>> >>> .. also a spelling mistake tixed
>> >>>
>> >>> commit 5724c31d542d7c8ddf89c4333fbe4809d7783f49
>> >>> Author: Stian Soiland-Reyes <so...@cs.manchester.ac.uk>
>> >>> Date: 2014-10-28T16:34:59Z
>> >>>
>> >>> Embedding all Jena modules in a single OSGi bundle.
>> >>>
>> >>> commit 3bb12d0a1472977cfcd51abf392683659bac1e4d
>> >>> Author: Stian Soiland-Reyes <so...@cs.manchester.ac.uk>
>> >>> Date: 2014-10-28T16:38:00Z
>> >>>
>> >>> httpcore-osgi 4.2.5
>> >>>
>> >>> commit aa705c9e3e4f3b4c58924e95aa223213358b08e3
>> >>> Author: Stian Soiland-Reyes <so...@cs.manchester.ac.uk>
>> >>> Date: 2014-10-28T16:42:48Z
>> >>>
>> >>> ver.* properties as in jena-parent
>> >>>
>> >>> TODO: Move these properties to jena-parent?
>> >>>
>> >>> ----
>> >>>
>> >>>
>> >>> ---
>> >>> If your project is set up for it, you can reply to this email and have
>> your
>> >>> reply appear on GitHub as well. If your project does not have this
>> feature
>> >>> enabled and wishes so, or if the feature is enabled but not working,
>> please
>> >>> contact infrastructure at infrastructure@apache.org or file a JIRA
>> ticket
>> >>> with INFRA.
>> >>> ---
>> >>>
>> >>
>> >
>>
>>
>>
>> --
>> Stian Soiland-Reyes, myGrid team
>> School of Computer Science
>> The University of Manchester
>> http://soiland-reyes.com/stian/work/ http://orcid.org/0000-0001-9842-9718
>>
--
Stian Soiland-Reyes, myGrid team
School of Computer Science
The University of Manchester
http://soiland-reyes.com/stian/work/ http://orcid.org/0000-0001-9842-9718
Re: [GitHub] jena pull request: Jena OSGi bundle
Posted by Reto Gmür <re...@apache.org>.
Hi
In the clerezza project we have been wrapping jena for a while as OSGi
bundles.
Recently it got split up into different bundles. The source (i.e. the poms)
can be seen here:
https://github.com/apache/clerezza/tree/master/ext
Cheers,
Reto
On Sat, Nov 1, 2014 at 2:26 AM, Stian Soiland-Reyes <
soiland-reyes@cs.manchester.ac.uk> wrote:
> I would like to hear from your experience of a custom-wrapped bundle
> what you decided to include or not.
>
> See my other email message in this thread..
>
> Basically in short:
>
>
> http://build.mygrid.org.uk/ci/job/jena-bundle/21/org.apache.jena$jena-osgi/
>
>
> http://repository.mygrid.org.uk/artifactory/ext-snapshot-local/org/apache/jena/jena-osgi/2.12.2-SNAPSHOT/
>
> http://repository.mygrid.org.uk/artifactory/ext-snapshot-local/org/apache/jena/jena-parent/12-SNAPSHOT/
>
>
>
> On 31 October 2014 13:27, Mark Feblowitz <ma...@icloud.com> wrote:
> > I’m an OSGi user, and have been using a custom-wrapped Jena OSGi bundle
> for more than a year.
> >
> > I’d be happy to try it out. How would I do so?
> >
> > Mark
> >
> >
> >
> >> On Oct 31, 2014, at 6:56 AM, Andy Seaborne <an...@apache.org> wrote:
> >>
> >> On 28/10/14 16:50, stain wrote:
> >>> GitHub user stain opened a pull request:
> >>>
> >>> https://github.com/apache/jena/pull/10
> >>>
> >>> Jena OSGi bundle
> >>>
> >>> Embedding core Jena modules in a single OSGi bundle.
> >>>
> >>> This works around classloader issues such as Jena's use of
> `Class.forName()`, but does not yet support other OSGi bundles to easily
> plug in 3rd party Jena implementations of say readers and writers.
> >>>
> >>> Modules included:
> >>> * jena-core
> >>> * jena-arq
> >>> * jena-tdb
> >>> * jena-sdb
> >>> * jena-iri
> >>
> >> Having one bundle for Jena makes a lot of sense as we build and release
> whole systems, so partial replacement of bits and pieces isn't
> supported/encouraged anyway. Releases may change cross module
> assumptions. Personally, I'd drop SDB from the included modules; it's
> being made a maven-only module next time, and not in the distribution
> binaries.
> >>
> >> What I'd really, really like is for this to be tested by other OSGi
> users. As far as I know, none of the committers use OSGi day-to-day
> (we/Epimorphics used to but when we looked at the costs/benefits we switch
> to a simpler, service architecture style).
> >>
> >> Stain - what would you say to advertising this on users@ (and
> dev@clerezza?) and seeing if we can get some user testing and validation?
> >>
> >> Andy
> >>
> >>>
> >>> This OSGi bundle includes a dependency on the `httpclient-osgi`
> and `httpcore-osgi` version. All other packages used are embeded within the
> OSGi bundle, making them appear on a single classloader in OSGi.
> >>>
> >>>
> >>>
> >>> You can merge this pull request into a Git repository by running:
> >>>
> >>> $ git pull https://github.com/stain/jena jena-osgi-bundle
> >>>
> >>> Alternatively you can review and apply these changes as the patch at:
> >>>
> >>> https://github.com/apache/jena/pull/10.patch
> >>>
> >>> To close this pull request, make a commit to your master/trunk branch
> >>> with (at least) the following in the commit message:
> >>>
> >>> This closes #10
> >>>
> >>> ----
> >>> commit 1957808b34a408bf0278cfb4017d6e7040eebabb
> >>> Author: Stian Soiland-Reyes <so...@cs.manchester.ac.uk>
> >>> Date: 2014-10-28T16:03:15Z
> >>>
> >>> pom tweaks so it builds
> >>>
> >>> .. also a spelling mistake tixed
> >>>
> >>> commit 5724c31d542d7c8ddf89c4333fbe4809d7783f49
> >>> Author: Stian Soiland-Reyes <so...@cs.manchester.ac.uk>
> >>> Date: 2014-10-28T16:34:59Z
> >>>
> >>> Embedding all Jena modules in a single OSGi bundle.
> >>>
> >>> commit 3bb12d0a1472977cfcd51abf392683659bac1e4d
> >>> Author: Stian Soiland-Reyes <so...@cs.manchester.ac.uk>
> >>> Date: 2014-10-28T16:38:00Z
> >>>
> >>> httpcore-osgi 4.2.5
> >>>
> >>> commit aa705c9e3e4f3b4c58924e95aa223213358b08e3
> >>> Author: Stian Soiland-Reyes <so...@cs.manchester.ac.uk>
> >>> Date: 2014-10-28T16:42:48Z
> >>>
> >>> ver.* properties as in jena-parent
> >>>
> >>> TODO: Move these properties to jena-parent?
> >>>
> >>> ----
> >>>
> >>>
> >>> ---
> >>> If your project is set up for it, you can reply to this email and have
> your
> >>> reply appear on GitHub as well. If your project does not have this
> feature
> >>> enabled and wishes so, or if the feature is enabled but not working,
> please
> >>> contact infrastructure at infrastructure@apache.org or file a JIRA
> ticket
> >>> with INFRA.
> >>> ---
> >>>
> >>
> >
>
>
>
> --
> Stian Soiland-Reyes, myGrid team
> School of Computer Science
> The University of Manchester
> http://soiland-reyes.com/stian/work/ http://orcid.org/0000-0001-9842-9718
>
Re: [GitHub] jena pull request: Jena OSGi bundle
Posted by Stian Soiland-Reyes <so...@cs.manchester.ac.uk>.
I would like to hear from your experience of a custom-wrapped bundle
what you decided to include or not.
See my other email message in this thread..
Basically in short:
http://build.mygrid.org.uk/ci/job/jena-bundle/21/org.apache.jena$jena-osgi/
http://repository.mygrid.org.uk/artifactory/ext-snapshot-local/org/apache/jena/jena-osgi/2.12.2-SNAPSHOT/
http://repository.mygrid.org.uk/artifactory/ext-snapshot-local/org/apache/jena/jena-parent/12-SNAPSHOT/
On 31 October 2014 13:27, Mark Feblowitz <ma...@icloud.com> wrote:
> I’m an OSGi user, and have been using a custom-wrapped Jena OSGi bundle for more than a year.
>
> I’d be happy to try it out. How would I do so?
>
> Mark
>
>
>
>> On Oct 31, 2014, at 6:56 AM, Andy Seaborne <an...@apache.org> wrote:
>>
>> On 28/10/14 16:50, stain wrote:
>>> GitHub user stain opened a pull request:
>>>
>>> https://github.com/apache/jena/pull/10
>>>
>>> Jena OSGi bundle
>>>
>>> Embedding core Jena modules in a single OSGi bundle.
>>>
>>> This works around classloader issues such as Jena's use of `Class.forName()`, but does not yet support other OSGi bundles to easily plug in 3rd party Jena implementations of say readers and writers.
>>>
>>> Modules included:
>>> * jena-core
>>> * jena-arq
>>> * jena-tdb
>>> * jena-sdb
>>> * jena-iri
>>
>> Having one bundle for Jena makes a lot of sense as we build and release whole systems, so partial replacement of bits and pieces isn't supported/encouraged anyway. Releases may change cross module assumptions. Personally, I'd drop SDB from the included modules; it's being made a maven-only module next time, and not in the distribution binaries.
>>
>> What I'd really, really like is for this to be tested by other OSGi users. As far as I know, none of the committers use OSGi day-to-day (we/Epimorphics used to but when we looked at the costs/benefits we switch to a simpler, service architecture style).
>>
>> Stain - what would you say to advertising this on users@ (and dev@clerezza?) and seeing if we can get some user testing and validation?
>>
>> Andy
>>
>>>
>>> This OSGi bundle includes a dependency on the `httpclient-osgi` and `httpcore-osgi` version. All other packages used are embeded within the OSGi bundle, making them appear on a single classloader in OSGi.
>>>
>>>
>>>
>>> You can merge this pull request into a Git repository by running:
>>>
>>> $ git pull https://github.com/stain/jena jena-osgi-bundle
>>>
>>> Alternatively you can review and apply these changes as the patch at:
>>>
>>> https://github.com/apache/jena/pull/10.patch
>>>
>>> To close this pull request, make a commit to your master/trunk branch
>>> with (at least) the following in the commit message:
>>>
>>> This closes #10
>>>
>>> ----
>>> commit 1957808b34a408bf0278cfb4017d6e7040eebabb
>>> Author: Stian Soiland-Reyes <so...@cs.manchester.ac.uk>
>>> Date: 2014-10-28T16:03:15Z
>>>
>>> pom tweaks so it builds
>>>
>>> .. also a spelling mistake tixed
>>>
>>> commit 5724c31d542d7c8ddf89c4333fbe4809d7783f49
>>> Author: Stian Soiland-Reyes <so...@cs.manchester.ac.uk>
>>> Date: 2014-10-28T16:34:59Z
>>>
>>> Embedding all Jena modules in a single OSGi bundle.
>>>
>>> commit 3bb12d0a1472977cfcd51abf392683659bac1e4d
>>> Author: Stian Soiland-Reyes <so...@cs.manchester.ac.uk>
>>> Date: 2014-10-28T16:38:00Z
>>>
>>> httpcore-osgi 4.2.5
>>>
>>> commit aa705c9e3e4f3b4c58924e95aa223213358b08e3
>>> Author: Stian Soiland-Reyes <so...@cs.manchester.ac.uk>
>>> Date: 2014-10-28T16:42:48Z
>>>
>>> ver.* properties as in jena-parent
>>>
>>> TODO: Move these properties to jena-parent?
>>>
>>> ----
>>>
>>>
>>> ---
>>> If your project is set up for it, you can reply to this email and have your
>>> reply appear on GitHub as well. If your project does not have this feature
>>> enabled and wishes so, or if the feature is enabled but not working, please
>>> contact infrastructure at infrastructure@apache.org or file a JIRA ticket
>>> with INFRA.
>>> ---
>>>
>>
>
--
Stian Soiland-Reyes, myGrid team
School of Computer Science
The University of Manchester
http://soiland-reyes.com/stian/work/ http://orcid.org/0000-0001-9842-9718
Re: [GitHub] jena pull request: Jena OSGi bundle
Posted by Mark Feblowitz <ma...@icloud.com>.
I’m an OSGi user, and have been using a custom-wrapped Jena OSGi bundle for more than a year.
I’d be happy to try it out. How would I do so?
Mark
> On Oct 31, 2014, at 6:56 AM, Andy Seaborne <an...@apache.org> wrote:
>
> On 28/10/14 16:50, stain wrote:
>> GitHub user stain opened a pull request:
>>
>> https://github.com/apache/jena/pull/10
>>
>> Jena OSGi bundle
>>
>> Embedding core Jena modules in a single OSGi bundle.
>>
>> This works around classloader issues such as Jena's use of `Class.forName()`, but does not yet support other OSGi bundles to easily plug in 3rd party Jena implementations of say readers and writers.
>>
>> Modules included:
>> * jena-core
>> * jena-arq
>> * jena-tdb
>> * jena-sdb
>> * jena-iri
>
> Having one bundle for Jena makes a lot of sense as we build and release whole systems, so partial replacement of bits and pieces isn't supported/encouraged anyway. Releases may change cross module assumptions. Personally, I'd drop SDB from the included modules; it's being made a maven-only module next time, and not in the distribution binaries.
>
> What I'd really, really like is for this to be tested by other OSGi users. As far as I know, none of the committers use OSGi day-to-day (we/Epimorphics used to but when we looked at the costs/benefits we switch to a simpler, service architecture style).
>
> Stain - what would you say to advertising this on users@ (and dev@clerezza?) and seeing if we can get some user testing and validation?
>
> Andy
>
>>
>> This OSGi bundle includes a dependency on the `httpclient-osgi` and `httpcore-osgi` version. All other packages used are embeded within the OSGi bundle, making them appear on a single classloader in OSGi.
>>
>>
>>
>> You can merge this pull request into a Git repository by running:
>>
>> $ git pull https://github.com/stain/jena jena-osgi-bundle
>>
>> Alternatively you can review and apply these changes as the patch at:
>>
>> https://github.com/apache/jena/pull/10.patch
>>
>> To close this pull request, make a commit to your master/trunk branch
>> with (at least) the following in the commit message:
>>
>> This closes #10
>>
>> ----
>> commit 1957808b34a408bf0278cfb4017d6e7040eebabb
>> Author: Stian Soiland-Reyes <so...@cs.manchester.ac.uk>
>> Date: 2014-10-28T16:03:15Z
>>
>> pom tweaks so it builds
>>
>> .. also a spelling mistake tixed
>>
>> commit 5724c31d542d7c8ddf89c4333fbe4809d7783f49
>> Author: Stian Soiland-Reyes <so...@cs.manchester.ac.uk>
>> Date: 2014-10-28T16:34:59Z
>>
>> Embedding all Jena modules in a single OSGi bundle.
>>
>> commit 3bb12d0a1472977cfcd51abf392683659bac1e4d
>> Author: Stian Soiland-Reyes <so...@cs.manchester.ac.uk>
>> Date: 2014-10-28T16:38:00Z
>>
>> httpcore-osgi 4.2.5
>>
>> commit aa705c9e3e4f3b4c58924e95aa223213358b08e3
>> Author: Stian Soiland-Reyes <so...@cs.manchester.ac.uk>
>> Date: 2014-10-28T16:42:48Z
>>
>> ver.* properties as in jena-parent
>>
>> TODO: Move these properties to jena-parent?
>>
>> ----
>>
>>
>> ---
>> If your project is set up for it, you can reply to this email and have your
>> reply appear on GitHub as well. If your project does not have this feature
>> enabled and wishes so, or if the feature is enabled but not working, please
>> contact infrastructure at infrastructure@apache.org or file a JIRA ticket
>> with INFRA.
>> ---
>>
>
Re: [GitHub] jena pull request: Jena OSGi bundle
Posted by Andy Seaborne <an...@apache.org>.
On 28/10/14 16:50, stain wrote:
> GitHub user stain opened a pull request:
>
> https://github.com/apache/jena/pull/10
>
> Jena OSGi bundle
>
> Embedding core Jena modules in a single OSGi bundle.
>
> This works around classloader issues such as Jena's use of `Class.forName()`, but does not yet support other OSGi bundles to easily plug in 3rd party Jena implementations of say readers and writers.
>
> Modules included:
> * jena-core
> * jena-arq
> * jena-tdb
> * jena-sdb
> * jena-iri
Having one bundle for Jena makes a lot of sense as we build and release
whole systems, so partial replacement of bits and pieces isn't
supported/encouraged anyway. Releases may change cross module
assumptions. Personally, I'd drop SDB from the included modules; it's
being made a maven-only module next time, and not in the distribution
binaries.
What I'd really, really like is for this to be tested by other OSGi
users. As far as I know, none of the committers use OSGi day-to-day
(we/Epimorphics used to but when we looked at the costs/benefits we
switch to a simpler, service architecture style).
Stain - what would you say to advertising this on users@ (and
dev@clerezza?) and seeing if we can get some user testing and validation?
Andy
>
> This OSGi bundle includes a dependency on the `httpclient-osgi` and `httpcore-osgi` version. All other packages used are embeded within the OSGi bundle, making them appear on a single classloader in OSGi.
>
>
>
> You can merge this pull request into a Git repository by running:
>
> $ git pull https://github.com/stain/jena jena-osgi-bundle
>
> Alternatively you can review and apply these changes as the patch at:
>
> https://github.com/apache/jena/pull/10.patch
>
> To close this pull request, make a commit to your master/trunk branch
> with (at least) the following in the commit message:
>
> This closes #10
>
> ----
> commit 1957808b34a408bf0278cfb4017d6e7040eebabb
> Author: Stian Soiland-Reyes <so...@cs.manchester.ac.uk>
> Date: 2014-10-28T16:03:15Z
>
> pom tweaks so it builds
>
> .. also a spelling mistake tixed
>
> commit 5724c31d542d7c8ddf89c4333fbe4809d7783f49
> Author: Stian Soiland-Reyes <so...@cs.manchester.ac.uk>
> Date: 2014-10-28T16:34:59Z
>
> Embedding all Jena modules in a single OSGi bundle.
>
> commit 3bb12d0a1472977cfcd51abf392683659bac1e4d
> Author: Stian Soiland-Reyes <so...@cs.manchester.ac.uk>
> Date: 2014-10-28T16:38:00Z
>
> httpcore-osgi 4.2.5
>
> commit aa705c9e3e4f3b4c58924e95aa223213358b08e3
> Author: Stian Soiland-Reyes <so...@cs.manchester.ac.uk>
> Date: 2014-10-28T16:42:48Z
>
> ver.* properties as in jena-parent
>
> TODO: Move these properties to jena-parent?
>
> ----
>
>
> ---
> If your project is set up for it, you can reply to this email and have your
> reply appear on GitHub as well. If your project does not have this feature
> enabled and wishes so, or if the feature is enabled but not working, please
> contact infrastructure at infrastructure@apache.org or file a JIRA ticket
> with INFRA.
> ---
>