Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » NoClassDefFoundError on new InitialContex()
NoClassDefFoundError on new InitialContex() [message #27421] Fri, 02 May 2003 15:33 Go to next message
Eclipse UserFriend
Originally posted by: leena.blackpearl.com

Hi,
I'm trying to lookup a Jndi DataSource from Eclipse, using WL8.1. I have
been successful using WL61, so i just replaced the weblogic.jar in my
classpath with the 81 jar file, but i am unable to connect now.
I get a NoClassDefFoundError for weblogic.rmi.extensions.server.Stub,
which is present in weblogic.jar! This happens when i do a "new
InitialContext(env);" call.
I am able to load other classes from this jar file - for ex,
weblogic.jndi.WLInitialContextFactory, but it doesnt seem to find the
Stub.class.
I must mention that i initially had trouble finding the
WLInitialContextFactory.class(even in 6.1), but i saw a posting on this
newsgroup on how to find 3rd party jars from the plugin classpath by
changing the classloader..Someone(Thank you!) suggested to do this:
Thread.currentThread().setContextClassLoader(myClass.getClas sLoader());
Is this making a difference ? But if i dont have this line, i am unable to
pick up webloigic. jar at all.
Any ideas ? Any suggestions are welcome. I am at a loss on how to
proceed now..
Thanks in advance,
Leena.
Re: NoClassDefFoundError on new InitialContex() [message #27592 is a reply to message #27421] Mon, 05 May 2003 13:30 Go to previous message
Eclipse UserFriend
Originally posted by: leena.blackpearl.com

Just posting again to see if anyone has any ideas at all....I did forget
to mention that i am accessing WL from my own plugin, and my plugin.xml
has an entry for weblogic.jar, and my plugin dir has the jar file.
Any help would be really appreciated,
Leena.

Leena wrote:

> Hi,
> I\'m trying to lookup a Jndi DataSource from Eclipse, using WL8.1. I have
> been successful using WL61, so i just replaced the weblogic.jar in my
> classpath with the 81 jar file, but i am unable to connect now.
> I get a NoClassDefFoundError for weblogic.rmi.extensions.server.Stub,
> which is present in weblogic.jar! This happens when i do a \"new
> InitialContext(env);\" call.
> I am able to load other classes from this jar file - for ex,
> weblogic.jndi.WLInitialContextFactory, but it doesnt seem to find the
> Stub.class.
> I must mention that i initially had trouble finding the
> WLInitialContextFactory.class(even in 6.1), but i saw a posting on this
> newsgroup on how to find 3rd party jars from the plugin classpath by
> changing the classloader..Someone(Thank you!) suggested to do this:
> Thread.currentThread().setContextClassLoader(myClass.getClas sLoader());
> Is this making a difference ? But if i dont have this line, i am unable to
> pick up webloigic. jar at all.
> Any ideas ? Any suggestions are welcome. I am at a loss on how to
> proceed now..
> Thanks in advance,
> Leena.
Previous Topic:how to launch java applications programmatically?
Next Topic:Internation chars become ? after saved/closed and reopened
Goto Forum:
  


Current Time: Sun Jun 08 14:51:54 EDT 2025

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

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

Back to the top