dcsimg
Sun EJB Server + Resin
3 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Alexey_Kostylev
Posted On:   Wednesday, January 30, 2002 05:53 AM

When I'm trying to get remote object from server and cast it to some class, I'm getting ClassCastException. What can you tell abou that? I think that something's wrong with Resin configuration....

Re: Sun EJB Server + Resin

Posted By:   Alexey_Kostylev  
Posted On:   Friday, February 1, 2002 08:09 AM

Thank you both a lot... I've solve this problem... When I put client ejb files in path where was servlet, Resin did not find them... But when I'd jared them and put into /lib directory all became fine. Thank you for help.

Re: Sun EJB Server + Resin

Posted By:   AlessandroA_Garbagnati  
Posted On:   Wednesday, January 30, 2002 06:16 AM

Alexey,

Maybe the problem is that you cannot do a direct cast, but you need to narrow the Object.

Take a look at:

What is PortableRemoteObject.narrow() method and what is used for? I found somewhere that it is "CORBA compliant". Why?

Re: Sun EJB Server + Resin

Posted By:   Bozidar_Dangubic  
Posted On:   Wednesday, January 30, 2002 06:13 AM

I am sure something is wrong with your classpath, not with Resin configuration. you are getting class cast exception so you are probably missing class files on the client (remote references, home interfaces and primary key class all need to be available on the client's classpath).
About | Sitemap | Contact