You are viewing a plain text version of this content. The canonical link for it is here.
Posted to wsif-user@ws.apache.org by D <dk...@hotmail.com> on 2003/12/12 15:18:22 UTC

accessing local java class dynamically

Hi All, I'm currently trying to expose local classes as services, if I call
on the class when it is located in the same package structure as the invoker
class it executes no problem. I want to be able to invoke it though from
different project sources or jar files, I assume the classpath attribute
must be set but I'm unsure exactly what this entails. I would imagine it is
necessary to inform WSIF of the physical location of this class, but I'm
unsure how to do this. I tried just specifying the physical location, and
then the fully qualified path as classname but get the
ClassNotFoundException.

Could someone perhaps provide an example of using the classpath attribute or
a suggestion on how to use it properly?

Thanks in advance

Damien

Re: accessing local java class dynamically

Posted by Nirmal Mukhi <nm...@us.ibm.com>.
Hi,

I was just browing the code and it appears that the classpath attribute is 
not used. 

Please file a bugzilla report if you need this.

Thanks,
Nirmal.




"D" <dk...@hotmail.com>
12/12/2003 09:18 AM
Please respond to wsif-user
 
        To:     <ws...@ws.apache.org>
        cc: 
        Subject:        accessing local java class dynamically


Hi All, I'm currently trying to expose local classes as services, if I 
call
on the class when it is located in the same package structure as the 
invoker
class it executes no problem. I want to be able to invoke it though from
different project sources or jar files, I assume the classpath attribute
must be set but I'm unsure exactly what this entails. I would imagine it 
is
necessary to inform WSIF of the physical location of this class, but I'm
unsure how to do this. I tried just specifying the physical location, and
then the fully qualified path as classname but get the
ClassNotFoundException.

Could someone perhaps provide an example of using the classpath attribute 
or
a suggestion on how to use it properly?

Thanks in advance

Damien