| OSGi access to Apache Tomcat JNDI [message #1043185] |
Wed, 17 April 2013 07:45  |
Jan Stamer Messages: 11 Registered: February 2012 |
Junior Member |
|
|
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
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.01838 seconds