This is how I start my client:

set cli=S:\Progra~1\jboss\jBoss20\client\
set CP=%cli%ejb.jar
set CP=%CP%;%cli%jndi.jar
set CP=%CP%;%cli%jta-spec1_0_1.jar
set CP=%CP%;%cli%jboss-client.jar
set CP=%CP%;%cli%jnp-client.jar
REM only the test client needs the following
java -Djava.naming.factory.initial=org.jnp.interfaces.NamingContextFactory -
Djava.naming.provider.url=maximus:1099 -classpath .;%CP% InterestClient

I've installed jboss in S:\Progra~1\jboss\jBoss20

This is how my CLASSPATH environment variable looks like:
S:\Progra~1\jdk_1_3\jre;S:\Progra~1\jdk_1_3\lib\tools.jar;S:\Progra~1\jboss\
jBoss20\lib\ext\ejb.jar;

Is there something wrong with these settings?
Regards,
Kamen.
----- Original Message -----
From: "Rickard �berg" <[EMAIL PROTECTED]>
To: "jBoss" <[EMAIL PROTECTED]>
Sent: Wednesday, November 22, 2000 11:07 AM
Subject: Re: [jBoss-User] ClassCastException with Jboss 2.0 Final


Hey

> Kamen wrote:
> 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?

Alright, I have now downloaded the JBoss 2.0 FINAL zip and installed it,
copied jnp-client.jar into a test client, and run the testclient. It
works great. No problemos whatsoever.

Furthermore, the stacktrace you refer to above is from old code. The
source code lines it refers to are no longer there. This means that you
are somehow using an old version of jnp-client.jar in your client. Check
your classpath please. Only use the jnp-client.jar that comes with the
JBoss download in /client.

regards,
  Rickard

--
Rickard �berg

Email: [EMAIL PROTECTED]
http://www.telkel.com
http://www.jboss.org
http://www.dreambean.com


--
--------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Problems?:           [EMAIL PROTECTED]





--
--------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Problems?:           [EMAIL PROTECTED]

Reply via email to