Lim Teck Hooi wrote:
>
> Hi!
>
> I started Jonas 2 using Jeremie and I got exceptions shown below. I have only
>included JEREMIE_jonas.jar in CLASSPATH. Upon further investigation I found that
>org/objectweb/jonas/rmifilters/RemoteStub is inside RMI_jonas.jar. So I included
>RMI_jonas.jar in CLASSPATH. Jonas server ran fine. The next hiccup occurred when I
>"java sb.ClientOp". The exception thrown was java.lang.UnsupportedException. The
>questions are :-
>
> 1. should I include JEREMIE and RMI jars in CLASSPATH at the same time?
> 2. should org/objectweb/jonas/rmifilters/RemoteStub inside JEREMIE jar?
> 3. why java.lang.UnsupportedException was thrown when I execute sb.ClientOp?
> 4. do I need to recompile Jonas to use JEREMIE?
>
> Thank you.
>
> JOnAS Server, version 2.0, running on Jeremie.
> InvocationTargetException : java.lang.NoClassDefFoundError:
>org/objectweb/jonas/rmifilters/RemoteStub
> java.lang.NoClassDefFoundError: org/objectweb/jonas/rmifilters/RemoteStub
> at java.lang.ClassLoader.defineClass0(Native Method)
> at java.lang.ClassLoader.defineClass(ClassLoader.java, Compiled Code)
....
Hi,
If you want to run samples/eb with Jeremie you must redeploy the bean
the fact you have
java.lang.NoClassDefFoundError:
org/objectweb/jonas/rmifilters/RemoteStub
shows that you try to run the ClientOp with RMI Stubs/Skeletons
instead of JEREMIE ones.
You must set OBJECTWEB_ORB to JEREMIE before deploying the bean
> 1. should I include JEREMIE and RMI jars in CLASSPATH at the same time?
No, in your case you only need JEREMIE_jonas.jar
the good .jar will be taken depending on OBJECTWEB_ORB.
> 2. should org/objectweb/jonas/rmifilters/RemoteStub inside JEREMIE jar?
No, this class is only needed for RMI Stubs/Skeletons
> 3. why java.lang.UnsupportedException was thrown when I execute sb.ClientOp?
Because you are trying to use RMI Stubs in a JEREMIE environment
> 4. do I need to recompile Jonas to use JEREMIE?
No, you only have to redeploy your Bean
Best regards,
--
Philippe
Philippe Coq Groupe Bulll/BullSoft/OpenMaster Phone: (33) 04 76 29 78
49
Bull S.A - 1 rue de Provence - 38432 Echirolles Cedex France
[EMAIL PROTECTED] http://www-frec.bull.com
Download our EJBServer at http://www.bullsoft.com/ejb
----
To unsubscribe, send email to [EMAIL PROTECTED] and
include in the body of the message "unsubscribe jonas-users".
For general help, send email to [EMAIL PROTECTED] and
include in the body of the message "help".