question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Could really use this being an OSGi bundle. [moved]

See original GitHub issue

This is Issue 405 moved from a Google Code project. Added by 2012-04-26T10:29:10.000Z by JamiePBo…@gmail.com. Please review that bug for more context and additional comments, but update this bug.

Original labels: Type-Defect, Priority-Low

Original description

<b>What version are you using? (Morphia/Driver/MongoDB)</b>
v 1.00-SNAPSHOT of Morphia.


This is a feature request really. I'm trying to use morphia with the Mongo OSGi bundle and it's making things really tricky. - Company going of the idea of using Morphia as a result. 

Personally I'm loving morphia and really want to get it working in an OSGi environment. - tks.

Issue Analytics

  • State:closed
  • Created 10 years ago
  • Comments:11 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
evanchoolycommented, Nov 10, 2020

Given the age and niche interest in this, I’m going to close this. Between testing and maintenance costs, I’m not seeing the value especially when things like Java 9 modularity are more pressing. If there’s actually active interest, this can be revisited.

0reactions
charalamposccommented, May 10, 2017

Hello,

is this issue still alive? I wanted to report the same issue as the comment above from gbivins, but with a different container. I tried it with Liferay:

org.osgi.framework.BundleException: Could not resolve module: gr.open.opap.mongodb.service [550]_  Unresolved requirement: Import-Package: org.mongodb.morphia; version="[1.3.0,2.0.0)"_    -> Export-Package: org.mongodb.morphia; bundle-symbolic-name="org.mongodb.morphia"; bundle-version="1.3.2"; version="1.3.2"; uses:="com.mongodb,com.mongodb.client.model,org.mongodb.morphia.aggregation,org.mongodb.morphia.annotations,org.mongodb.morphia.dao,org.mongodb.morphia.mapping,org.mongodb.morphia.mapping.cache,org.mongodb.morphia.query"_       org.mongodb.morphia [544]_         Unresolved requirement: Import-Package: com.thoughtworks.proxy_ [Sanitized]
	at org.eclipse.osgi.container.Module.start(Module.java:429)
	at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1582)
	at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1562)
	at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.doContainerStartLevel(ModuleContainer.java:1533)
	at org.eclipse.osgi.container.SystemModule.startWorker(SystemModule.java:242)
	at org.eclipse.osgi.container.Module.doStart(Module.java:566)
	at org.eclipse.osgi.container.Module.start(Module.java:434)
	at org.eclipse.osgi.container.SystemModule.start(SystemModule.java:172)
	at org.eclipse.osgi.internal.framework.EquinoxBundle.start(EquinoxBundle.java:402)
	at org.eclipse.osgi.internal.framework.EquinoxBundle.start(EquinoxBundle.java:421)
	at org.eclipse.osgi.launch.Equinox.start(Equinox.java:115)
	at com.liferay.portal.bootstrap.ModuleFrameworkImpl.startFramework(ModuleFrameworkImpl.java:409)
	at com.liferay.portal.module.framework.ModuleFrameworkUtilAdapter.startFramework(ModuleFrameworkUtilAdapter.java:99)
	at com.liferay.portal.spring.context.PortalContextLoaderListener.contextInitialized(PortalContextLoaderListener.java:255)
	at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4812)
	at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5255)
	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:147)
	at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:725)
	at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:701)
	at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:717)
	at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:585)
	at org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1794)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
	at java.lang.Thread.run(Thread.java:745)
Read more comments on GitHub >

github_iconTop Results From Across the Web

Chapter 6. Moving toward bundles - OSGi in Action
The common choice is to use the bundle version, which implies that the packages change at the same rate as the bundle, but...
Read more >
Unraveling Java and OSGi class loader problems
Thus OSGi becomes a web of bundle class loaders that delegate to each other. If a class is not on your bundle's class...
Read more >
Why does it appear that OSGi-classloading is being bypassed?
It's possible that the library is using the Thread Context ClassLoader (TCCL ). If the bar package is visible to your own bundle...
Read more >
Creating OSGi bundles - Spring
Most of the time used on OSGi metadata is likely to be spent on Export/Import package entries as they describe the relationship between...
Read more >
OSGi on the Server Side - Web Forefront
The Java packaging bundle: Of course no environment or framework is exempt from having its own packaging model, so just as you may...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found