Comments (13)
I solved the problem . At compile time I had to add this to the pom:
sonatype-snapshots https://oss.sonatype.org/content/repositories/snapshotsbecause 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.
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.
Any news?
from moquette.
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.
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.
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.
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.
@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.
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.
@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.
Hi @kaikreuzer @maggu2810 @PaoloFi, to track this feature request I've created a new issue, #122
from moquette.
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.
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)
- about remove root HOT 3
- Extremely slow propagation behavior HOT 2
- immediate_buffer_flush should be in configuration file, defaulting to true. HOT 8
- if auth is enabled or not, it doesn't seem to be taken into account, but a wrong password is HOT 8
- The enabled by default telemetry requires deprecated `PERSISTENT_STORE_PROPERTY_NAME` constant HOT 1
- Broker restart and clear connections,but aslo can response client PINGEQ message HOT 7
- Feature proposal: set a session expiry interval by configuration
- [Question] Potential memory leak HOT 7
- IllegalArgumentException thrown from PostOffice class
- Subscriptions not removed on dropped connections HOT 1
- Manage Will Delay Interval for MQTT5
- Does the moquette supports MQTT 5? (question) HOT 2
- io.netty.util.IllegalReferenceCountException: refCnt: 0 HOT 1
- Change signature of IRetainedRepository.retainedOnTopic to reflect the fact it return unordered collection HOT 1
- Generalize ExpirableTracker to become an scheduler service
- Server can define its own Keep Alive in CONNACK
- [Meta] Implement Shared Subscriptions HOT 1
- Support topic that starts with `$` character
- The official example code is misleading and may cause Java OutOfMemoryError. HOT 1
- Implement Subscription identifier
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from moquette.