OSGi access to Apache Tomcat JNDI [message #1043185] |
Wed, 17 April 2013 07:45  |
Eclipse User |
|
|
|
Hi,
I need to access a datasource of Apache Tomcat (and later also IBM WebSphere) from OSGi. I am trying this using Gemini Naming but without success yet.
What I got working so far:
When I try to access the JNDI this goes through Gemini Naming. Yet I don't get hold of Tomcat's JNDI.
Are there tutorials or sample projects which access resources of an application or web server via JNDI?
Currently I get the following exception:
2013-04-17 12:29:32,727 [EclipseGeminiBlueprintExtenderThread-24] ERROR o.e.g.b.e.i.a.ContextLoaderListener [ ] - Application context refresh failed (OsgiBundleXmlApplicationContext(bundle=com.pe-international.gabi.gw.repository.db, config=osgibundle:/META-INF/spring/*.xml))
javax.naming.NoInitialContextException: Client's BundleContext could not be located
at org.eclipse.gemini.naming.TraditionalInitialContextFactoryBuilder$TraditionalInitialContextFactory.getInitialContext(TraditionalInitialContextFactoryBuilder.java:81) ~[na:na]
at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:667) ~[na:1.6.0_27]
at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:288) ~[na:1.6.0_27]
at javax.naming.InitialContext.init(InitialContext.java:223) ~[na:1.6.0_27]
at javax.naming.InitialContext.<init>(InitialContext.java:197) ~[na:1.6.0_27]
Any help appreciated!
Thanks,
Jan
|
|
|
|
|
Re: OSGi access to Apache Tomcat JNDI [message #1733841 is a reply to message #1043250] |
Wed, 01 June 2016 07:54  |
Eclipse User |
|
|
|
Hi Jan
I am also looking for the similar issue, do you have any inputs on this?
Thanks,
Sachin
Jan Stamer wrote on Wed, 17 April 2013 13:17Hi,
I am talking about pure Apache Tomcat here.
Our setup is running Eclipse Equinox embedded in a WAR file. We use the servlet bridge to manage the OSGi framework.
Thanks,
Jan
|
|
|
Powered by
FUDForum. Page generated in 0.03677 seconds