|
The
problem is that your client is using the RMI JNDI context factory and you need
to use the JNP context factory instead...
...so
change this property...
java.naming.factory.initial=com.sun.jndi.rmi.registry.RegistryContextFactory
....to
this....
java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
ted stockwell
-----Original Message----- From:
Kamen [mailto:[EMAIL PROTECTED]] Sent: Wednesday, November 22, 2000
4:45 AM To: jBoss Subject: [jBoss-User] ClassCastException
with Jboss 2.0 Final
Anybody,
I get the following exception ( with
jBoss-2.0_FINAL.zip ) when the client
executes: jndiContext.lookup("...");
> java.lang.ClassCastException:
java.rmi.MarshalledObject >
at >
org.jnp.interfaces.NamingContext.getServer(NamingContext.java:98) >
at >
org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:617) >
at >
org.jnp.interfaces.NamingContext.lookup(NamingContext.java:272) >
at >
org.jnp.interfaces.NamingContext.lookup(NamingContext.java:265) >
at javax.naming.InitialContext.lookup(Unknown
Source) > at
AccountClient.main(AccountClient.java:14)
I updated my jnp-client.jar from CVS but I still
get the same exception.
What else should I do?
Thanks in advance!
Regards, Kamen.
|