Giter Site home page Giter Site logo

Comments (13)

PaoloFi avatar PaoloFi commented on May 10, 2024

I solved the problem . At compile time I had to add this to the pom:

sonatype-snapshots https://oss.sonatype.org/content/repositories/snapshots

because I could not download the jar relative to MapDb .So I haven't downloaded the file org.mapb.mapdb.1.1.0 fixed .

Fix:
add DynamicImport -Package : * in the manifest file of the jar org.mapb.mapdb.1.1.0

from moquette.

andsel avatar andsel commented on May 10, 2024

I reopen the issue because the fix to MapDB was already proposed to the MapDB team and they replied that's not the correct solution [https://github.com/jankotek/mapdb/pull/377]. I'll fix once I could study better the OSGi

from moquette.

maggu2810 avatar maggu2810 commented on May 10, 2024

Any news?

from moquette.

maggu2810 avatar maggu2810 commented on May 10, 2024

The ESH project uses mapdb in an OSGi context.
Perhaps this could help you: https://github.com/eclipse/smarthome/blob/master/bundles/storage/org.eclipse.smarthome.storage.mapdb/src/main/java/org/eclipse/smarthome/storage/mapdb/MapDbStorage.java

from moquette.

andsel avatar andsel commented on May 10, 2024

Hi @maggu2810 no news on this, thank you for the link.
I'm truing to embed the MapDB bundle but at moment I'm fighting with strange import error about sun.misc package that can't be importer.

from moquette.

maggu2810 avatar maggu2810 commented on May 10, 2024

IMHO add MapDB to the OSGi bundle of moquette is also just a workaround. If we have multiple bundles in our OSGi runtime (the normal use case) I would just include one MapDB bundle. If multiple bundles ship with embedded MapDB classes, this is not the intention of OSGi (but this is just my understanding of the OSGi framework).

from moquette.

andsel avatar andsel commented on May 10, 2024

I've dropped the support for OSGi in version 0.7. Because I think that nobody use it in OSGi environment and I'm not confident with OSGi. I wasn't able to fix the pax-runner configuration and drain dev resources to keep OSGi compatibility that's not usefull to anybody I suppose, at the end Moquette could be embedded by other OSGi project just wrapping it.

from moquette.

kaikreuzer avatar kaikreuzer commented on May 10, 2024

@andsel From my pov, this is an unfortunate decision - as you might remember, I was actually still planning to integrate Moquette into openHAB as I think this is a great fit. Also @maggu2810 uses OSGi with MQTT and many others do as well (see e.g. @andypiper at https://gist.github.com/andypiper/9654252). Since MQTT is very strong at Eclipse and so is OSGi, I think this is a very relevant combination.

from moquette.

andsel avatar andsel commented on May 10, 2024

Hi Kai,
the motivation for the decision is that I'm not a geek in managing OSGi,
and OSGi is not such a simple thing to manage correctly, every bug or error
notification related to the OSGi compatibility in Moquette, taken me a lot
of time end effort, so waiting better times (when I can manage correctly an
OSGi environment or somebody with better skills on this stuff jump into
project) I decided to concentrate on bugfixes and features, but if you or
somebodyelse with competence in OSGi want to contribute with a patch
regarding that stuff, it really welcome.

Andrea

On Mon, Nov 2, 2015 at 12:06 PM, Kai Kreuzer [email protected]
wrote:

@andsel https://github.com/andsel From my pov, this is an unfortunate
decision - as you might remember, I was actually still planning to
integrate Moquette into openHAB as I think this is a great fit. Also
@maggu2810 https://github.com/maggu2810 uses OSGi with MQTT and many
others do as well (see e.g. @andypiper https://github.com/andypiper at
https://gist.github.com/andypiper/9654252). Since MQTT is very strong at
Eclipse and so is OSGi, I think this is a very relevant combination.


Reply to this email directly or view it on GitHub
https://github.com/andsel/moquette/issues/14#issuecomment-152989443.

from moquette.

kaikreuzer avatar kaikreuzer commented on May 10, 2024

@andsel If there is no general problem with having the OSGi bundle built, I would prefer if you could leave it in - if there are bug reports like this, which you cannot easily solve, just leave them open and wait for some one with OSGi knowledge to come up with a PR with a fix. But dropping the bundle from the build does not even give people the chance to fix it.

from moquette.

andsel avatar andsel commented on May 10, 2024

Hi @kaikreuzer @maggu2810 @PaoloFi, to track this feature request I've created a new issue, #122

from moquette.

doandzhi avatar doandzhi commented on May 10, 2024

Hello! This issue is almost 3 years old and I still don't seem to find a possible solution for it. Can anyone give me an advice and/or possible solution of this ClassNotFoundException of the internal class QOSType.

from moquette.

andsel avatar andsel commented on May 10, 2024

Given the fact that managing OSGi is not trivial, and I dont' want to spend time in fixing OSGi deps, I dropped the support for OSGi in Moquette and closed this issue as not anymore valid.
Andrea

from moquette.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.