Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » Runtime Workbench Problem
Runtime Workbench Problem [message #69115] Fri, 27 June 2003 15:55 Go to next message
Eclipse UserFriend
Hi All,
Im developing a plugin for WSAD v 5.0. Through the plugin im
authenticating myself to a server using RMI. The class file which does
this works fine when i add a main method to it and execute it. When i
launch a Run Time work bench and try to do the same using a UI (a simple
dialog box to accept username and password). It fails miserably..When the
method to authenticate is called through the UI it simply fails (its not
able tocreate the jndi initial context). As i told u earlier.. this works
fine when i dont do this from the runtime workbech... I have all the
required jar files in the runtime tag of the plugin.xml... Any idea why
this is failing. Im simply stumped. Any idea is appreciated.
Thanx
Ajay
Re: Runtime Workbench Problem [message #69136 is a reply to message #69115] Fri, 27 June 2003 16:01 Go to previous messageGo to next message
Eclipse UserFriend
I've seen this question already in one of the forums - but I don't
remember which one it was. I think it was a classloader problem.
You code inside the plugin is being run using Eclipse's special
classloader. it may cause problems with the rmi classloader.

Genady

Ajay wrote:

> Hi All,
> Im developing a plugin for WSAD v 5.0. Through the plugin im
> authenticating myself to a server using RMI. The class file which does
> this works fine when i add a main method to it and execute it. When i
> launch a Run Time work bench and try to do the same using a UI (a simple
> dialog box to accept username and password). It fails miserably..When the
> method to authenticate is called through the UI it simply fails (its not
> able tocreate the jndi initial context). As i told u earlier.. this works
> fine when i dont do this from the runtime workbech... I have all the
> required jar files in the runtime tag of the plugin.xml... Any idea why
> this is failing. Im simply stumped. Any idea is appreciated.
> Thanx
> Ajay
>
Re: Runtime Workbench Problem [message #69429 is a reply to message #69136] Sat, 28 June 2003 06:13 Go to previous message
Eclipse UserFriend
HI Genady,
Thanx for your response. I really appreciate it. I did go through the
forums. I guess many people have the same kind of problem as me. I have
the RMI stubs pre compiled and available in jar files. Why should there be
problem in picking these jar files at the runtime. i mean this is really
weird. I also saw couple of posts mention something abt the security
manager. I guess this has got nothing to do with that.
I was tempted to use the plugin which you guys have developed but later
realised that this was more to do with the compilation and generation of
RMI Stubs and had nothing to do with making pre compiled stubs (in jars)
available at run time.. is it possible to achieve some thing like this.
thanx a lot for your time.
-AJay
Genady wrote:

> I've seen this question already in one of the forums - but I don't
> remember which one it was. I think it was a classloader problem.
> You code inside the plugin is being run using Eclipse's special
> classloader. it may cause problems with the rmi classloader.

> Genady

> Ajay wrote:

> > Hi All,
> > Im developing a plugin for WSAD v 5.0. Through the plugin im
> > authenticating myself to a server using RMI. The class file which does
> > this works fine when i add a main method to it and execute it. When i
> > launch a Run Time work bench and try to do the same using a UI (a simple
> > dialog box to accept username and password). It fails miserably..When the
> > method to authenticate is called through the UI it simply fails (its not
> > able tocreate the jndi initial context). As i told u earlier.. this works
> > fine when i dont do this from the runtime workbech... I have all the
> > required jar files in the runtime tag of the plugin.xml... Any idea why
> > this is failing. Im simply stumped. Any idea is appreciated.
> > Thanx
> > Ajay
> >
Previous Topic:javac option?
Next Topic:Passing environment variables to ANT
Goto Forum:
  


Current Time: Thu May 08 13:31:35 EDT 2025

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

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

Back to the top