Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » problem finding classes at runtime
problem finding classes at runtime [message #262412] Mon, 19 July 2004 13:45 Go to next message
Eclipse UserFriend
Originally posted by: mbo.shift-think.net

Hi all

I have the problem that, at runtime, a plugin that should access a remote
session bean brings up the following errors.
Root exception is java.lang.ClassNotFoundException:
org.jnp.interfaces.NamingContextFactory

I have included the necessary jar (jnp-client.jar from the jboss client dir)
but the problem still persists at runtime.

Any ideas?

Cheers,
Michael
Re: problem finding classes at runtime [message #262433 is a reply to message #262412] Mon, 19 July 2004 14:34 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: chaves.nospam.inf.ufsc.br.please

Michael Boeni wrote:

> I have included the necessary jar (jnp-client.jar from the jboss client dir)
> but the problem still persists at runtime.

The project's build properties do not affect the classpath during runtime.
The classpath of a plugin includes its own JARs (s specified in the plugin
manifest), classes provided by any required plugins and the boot classpath
(+endorsed libraries). The regular classpath specified when launching the
VM is not visible from plugins.

See also:

https://bugs.eclipse.org/bugs/show_bug.cgi?id=3074
Re: problem finding classes at runtime [message #262451 is a reply to message #262433] Mon, 19 July 2004 16:24 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: mbo.shift-think.net

Hi Rafale

Do you have a concrete idea that I could use? The mentioned
'XBootclasspath' does not work..

Thanks,
Michael

"Rafael Chaves" <chaves@nospam.inf.ufsc.br.please> wrote in message
news:cdh48g$rhj$1@eclipse.org...
> Michael Boeni wrote:
>
> > I have included the necessary jar (jnp-client.jar from the jboss client
dir)
> > but the problem still persists at runtime.
>
> The project's build properties do not affect the classpath during runtime.
> The classpath of a plugin includes its own JARs (s specified in the plugin
> manifest), classes provided by any required plugins and the boot classpath
> (+endorsed libraries). The regular classpath specified when launching the
> VM is not visible from plugins.
>
> See also:
>
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=3074
>
Re: problem finding classes at runtime [message #262497 is a reply to message #262412] Mon, 19 July 2004 20:42 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: chris.eclipsefaq.org

Michael Boeni wrote:

> Hi all

> I have the problem that, at runtime, a plugin that should access a remote
> session bean brings up the following errors.
> Root exception is java.lang.ClassNotFoundException:
> org.jnp.interfaces.NamingContextFactory

> I have included the necessary jar (jnp-client.jar from the jboss client dir)
> but the problem still persists at runtime.

> Any ideas?

Did you check FAQ 73 in Chapter 3 of http://eclipsefaq.org?

> Cheers,
> Michael

Chris Laffra
Re: problem finding classes at runtime [message #262523 is a reply to message #262412] Tue, 20 July 2004 02:43 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: weberjn.yahoo.com

Maybe "How do I get code that calls getContextClassLoader() to load my
plugin class?" from PDE FAQ (http://eclipse-wiki.info/PDEFaq) helps.

Juergen
Re: problem finding classes at runtime [message #262574 is a reply to message #262497] Tue, 20 July 2004 06:32 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: mbo.shift-think.net

i checked a few FAQs in there. i tried to update the classpath by using
'PDE-Tools-Update Classpath' but that only threw out the JARs that I added
(?) and did not really help...

I'll browse a bit more through the faq...

Cheers,
Michael

"Chris Laffra" <chris@eclipsefaq.org> wrote in message
news:cdhpqc$rh2$1@eclipse.org...
> Michael Boeni wrote:
>
> > Hi all
>
> > I have the problem that, at runtime, a plugin that should access a
remote
> > session bean brings up the following errors.
> > Root exception is java.lang.ClassNotFoundException:
> > org.jnp.interfaces.NamingContextFactory
>
> > I have included the necessary jar (jnp-client.jar from the jboss client
dir)
> > but the problem still persists at runtime.
>
> > Any ideas?
>
> Did you check FAQ 73 in Chapter 3 of http://eclipsefaq.org?
>
> > Cheers,
> > Michael
>
> Chris Laffra
>
Re: problem finding classes at runtime [message #262644 is a reply to message #262412] Tue, 20 July 2004 11:11 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: mbo.shift-think.net

This problem seems to be very persistent. I tried several things from the
FAQ, the WIKI and some other sources - with no success whatsoever.

I even tried to add the classpath to the missing jar at runtime
-classpath %classpath%;D:\...\jnp-client.jar

but that didn't change a thing. I excepted at least the above to work out -
but it didn't.

Ideas?

Cheers,
Michael



"Michael Boeni" <mbo@shift-think.net> wrote in message
news:cdh0ts$lh6$1@eclipse.org...
> Hi all
>
> I have the problem that, at runtime, a plugin that should access a remote
> session bean brings up the following errors.
> Root exception is java.lang.ClassNotFoundException:
> org.jnp.interfaces.NamingContextFactory
>
> I have included the necessary jar (jnp-client.jar from the jboss client
dir)
> but the problem still persists at runtime.
>
> Any ideas?
>
> Cheers,
> Michael
>
>
Re: problem finding classes at runtime [message #262736 is a reply to message #262451] Tue, 20 July 2004 16:24 Go to previous message
Eclipse UserFriend
Originally posted by: chaves.nospam.inf.ufsc.br.ok

Michael Boeni wrote:
> Do you have a concrete idea that I could use? The mentioned
> 'XBootclasspath' does not work..

The command-line should look like this:

eclipse [any arguments you use to pass to Eclipse] -vmargs
-Xbootclasspath/a:<path to the JAR including the JAR>

Is that what you are doing (including the -vmargs)?

Rafael
Previous Topic:Eclipse bug ? JVM does not die after exiting Eclipse
Next Topic:Extensive long delay during IDE startup
Goto Forum:
  


Current Time: Thu Jul 17 19:32:52 EDT 2025

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

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

Back to the top