Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » websphere jndi: Failed to create InitialContext
websphere jndi: Failed to create InitialContext [message #715714] Mon, 15 August 2011 09:30 Go to next message
Rene Eigenheer is currently offline Rene EigenheerFriend
Messages: 109
Registered: July 2009
Senior Member
Hi

I try to deploy a RAP 1.4 application on Websphere 7.
Within the application I use hibernate which uses an JNDI datasource.

Every time the application tries to open the connection, I get an error:

Caused by: javax.naming.NoInitialContextException: Failed to create InitialContext using factory specified in hashtable {java.naming.provider.url=corbaloc:rir:/NameServiceServerRoot, java.naming.factory.url.pkgs=com.ibm.ws.naming:com.ibm.ws.runtime:com.ibm.iscportal.jndi} [Root exception is java.lang.NullPointerException]

I suppose this error is the result as the needed class com.ibm.websphere.naming.WsnInitialContextFactory could not be loaded. I'll tried "every" setting in launch.ini to load com.ibm.* classes from framework, without any success.
org.osgi.framework.system.packages.extra=com.ibm.*
org.osgi.framework.bootdelegation=com.ibm.*
org.osgi.framework.parentdelegation=com.ibm.*
osgi.compatibility.bootdelegation=true


The same application deployed on Glassfish works without any problem.

Did anybody succeeded in JNDI calls out of RAP in Webspehre?

TIA
Rene
Re: websphere jndi: Failed to create InitialContext [message #716009 is a reply to message #715714] Tue, 16 August 2011 08:13 Go to previous message
Arnaud MERGEY is currently offline Arnaud MERGEYFriend
Messages: 243
Registered: March 2010
Location: France
Senior Member
hello,

have you tried to change parent classloader type (osgi.contextClassLoaderParent=ccl)in launch.ini ?

regards,
Arnaud
Previous Topic:How to apply external JavaScript libraries in RAP?
Next Topic:Secondary modal screen
Goto Forum:
  


Current Time: Sat Apr 27 01:08:32 GMT 2024

Powered by FUDForum. Page generated in 0.23581 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top