embedded-osgi

Felix OSGI Embedded application issue

泄露秘密 提交于 2019-12-11 08:18:16
问题 I was using Felix as a embedded application as explained in, How to start and use Apache Felix from code?. What I want to do is dynamically load jar files from my host application via OSGi and invoke methods of implementation classes. So I have following three maven projects 1) A maven project which has an interface. And the package of this interface is exported. ---> ProjA . 2) A implementation project --> ProjB, another maven project which import ProjA as a maven dependency and implement

JNDI lookup from OSGI equinox bundle deployed on tomcat (bridged mode)

倾然丶 夕夏残阳落幕 提交于 2019-12-11 02:41:27
问题 I have my datasource configured in tomcat\context.xml. I have deployed a bridge.war provided by Eclipse to get servletbridge environment. I have developed another osgi bundle which contains servlet registation code and my aim is to do JNDI look up for datasource from this servlet bundle. However I get javax.naming.NoInitialContextException:Cannot instantiate class: org.apache.naming.java.javaURLContextFactory (root cause classnotfound for org.apache.naming.java.javaURLContextFactory) when I