On Fri, Jun 22, 2012 at 1:12 PM, Alessandro Adamou <[email protected]> wrote:
> On 6/22/12 12:57 PM, Rupert Westenthaler wrote:
>>
>> However I think this is easy to fix. Should be the result of the
>> org.apache.commons.owl bundle exporting "org.semanticweb.owlapi.*"
>> and the hermit bundle embedding a different version of those packages.
>> So my assumption is that adding appropriate
>> "!org.semanticweb.owlapi.*" to the<Import-Package>  directive of the
>> Hermit bundle should solve this.
>
>
> I have already tried that. It doesn't work here. Gives me the same message
>
> but only if I also remove the export like you did earlier. Otherwise it
> gives me the bundle error. However, I think the export should stay.

No most likely you will not need any of the exports unless you want to
use the APIs of the exported packages in other bundles than the hermit
one ... and that should not be the case!

The problem its the hermit-1.3.4.jar itself as it includes all the
dependencies. I think this happens because hermit (even the newest
version) still uses owl-api 3.2.2 and o.a.s.commons.owl exports
owl-api 3.2.3.

I think I have solved this problem by

* using the source release of hermit (used the newest version 1.3.6)
* building it myself with the ant task HermiT-standalone-no-libraries
* adapting the POM to include dependencies of HermiT
   * had to add "automata:core:2.0.0-alpha-1" to the included maven repo

This avoids that owl-api is present in two different versions.

BTW I also removed all exported packages other than
"org.apache.stanbol.reasoners.hermit.*"

I will commit my changes shortly. Than you can try if my changes do
also work for you.

best
Rupert

>
> Alessandro
>
>
>> On Fri, Jun 22, 2012 at 12:23 PM, Rupert Westenthaler
>> <[email protected]>  wrote:
>>>
>>> On Fri, Jun 22, 2012 at 9:56 AM, Alessandro Adamou<[email protected]>
>>>  wrote:
>>>>
>>>> I had tried that too. The bundle would start but not the component
>>>>
>>>> org.apache.stanbol.reasoners.hermit.HermitReasoningService
>>>>
>>>> Did it start for you?
>>>
>>> it is active for me.
>>>
>>> If you can send me instructions on how to test it (e.g. a shell script
>>> with curl requests) I will test if it is also functional
>>>
>>> best
>>> Rupert
>>>
>>>
>>> --
>>> | Rupert Westenthaler             [email protected]
>>> | Bodenlehenstraße 11                             ++43-699-11108907
>>> | A-5500 Bischofshofen
>>
>>
>>
>
>
> --
> M.Sc. Alessandro Adamou
>
> Alma Mater Studiorum - Università di Bologna
> Department of Computer Science
> Mura Anteo Zamboni 7, 40127 Bologna - Italy
>
> Semantic Technology Laboratory (STLab)
> Institute for Cognitive Science and Technology (ISTC)
> National Research Council (CNR)
> Via Nomentana 56, 00161 Rome - Italy
>
>
> "I will give you everything, just don't demand anything."
> (Ettore Petrolini, 1917)
>
> Not sent from my iSnobTechDevice
>



-- 
| Rupert Westenthaler             [email protected]
| Bodenlehenstraße 11                             ++43-699-11108907
| A-5500 Bischofshofen

Reply via email to