Hi Alain,

You can try to change the JVM used by your servlet engine.
For example, with JRun, I've got the same error, then I edit the file
JRun\jsm-default\properties\jsm.properties,
and I set the following property to change the JVM.
java.exe=C:\\jdk1.2.2\\bin\\javaw.exe

To get, display and check the classpath used by your servlet engine, you
can add the following code in your servlet:
    String bootPath = System.getProperty("sun.boot.class.path");
    String extDir = System.getProperty("java.ext.dirs");
    String appClasspath = System.getProperty("java.class.path");
and display these strings at runtime.

I hope it will help you,

Laurent Fontvielle.

Alain De wrote:

> Hello,
>
> I know this must be a classic but ...
>
> I am running a servlet as client to a Jonas deployed
> Session Bean. When invoking the Servlet I got the
> following error message (see below). A simple java
> client works fine. I (not double) but tripled checked
> my servlet engine classpath. I also started the
> rmiregistry on different locations without success ...
>
> Any hint ?
> PS: jdk1.2 with JRUN 2.3.3 on a redhat 6.1 box
>
> Thanks in advance
>
> Alain
>
> javax.naming.CommunicationException.  Root exception
> is java.rmi.UnmarshalException: error unmarshalling
> return; nested exception is:
>         java.lang.ClassNotFoundException:
> session.JOnASContactEJBContactHome_Stub
> java.lang.ClassNotFoundException:
> jb.session.JOnASContactEJBContactHome_Stub
>         at
> java.io.ObjectInputStream.inputObject(ObjectInputStream.java,
> Compiled Code)
>         at
> java.io.ObjectInputStream.readObject(ObjectInputStream.java,
> Compiled Code)
>         at
> java.io.ObjectInputStream.readObject(ObjectInputStream.java,
> Compiled Code)
>         at
> sun.rmi.registry.RegistryImpl_Stub.lookup(Unknown
> Source)
>         at
> com.sun.jndi.rmi.registry.RegistryContext.lookup(RegistryContext.java,
> Compiled Code)
>         at
> com.sun.jndi.rmi.registry.RegistryContext.lookup(RegistryContext.java,
> Compiled Code)
>         at
> javax.naming.InitialContext.lookup(InitialContext.java,
> Compiled Code)
>

----
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".

Reply via email to