Hi Lajos
Thanks for the answer,bu the problem is not related to Tomcat. The
Client app
is a common or stand-alone app, compiled and executed on a shell. It's a
package
with 4 classes: Client, EJBClass, HomeClass and RemoteClass. Its the
most simple
example, but i cant make it works :S More ideas?

Thanks 4 all.

Lajos Moczar wrote:

>
> Hi Kapi (?) -
>
> How did you deploy the client application? Was it deployed in Tomcat?
> If so, did you check for the situation where the bean class is stored
> in more than one place in Tomcat? That's the problem generally
> associated with this error.
>
> Regards,
>
> Lajos
>
>
> kapi59ttp wrote:
>
>> Hi all!!!
>> I am new at the list, so..hi all first of all :-)
>> I have deployed an ejb on j2ee for windows and it worked perfectly.
>> I have deployed the same ejb (wih is really basic) on  and it seems to
>> work aswell.
>>  The problem comes thru the client app. In windows it works well but in
>> Linux,
>>  when i execute it, it returns an exception:
>> Caught an exception.
>> java.lang.ClassCastException
>>         at
>> com.sun.corba.se.internal.javax.rmi.PortableRemoteObject.narrow(PortableRemoteObject.java:293)
>>
>>         at
>> javax.rmi.PortableRemoteObject.narrow(PortableRemoteObject.java:134)
>>         at OpossumPackage.OpossumClient.main(OpossumClient.java:20)
>> The narrow method doesnt work fine i think. I have read about
>> classLoaders, and tried lots of
>> things but i cant make it work.
>> The code for de client app is:
>>             InitialContext initial = new InitialContext(env);      
>>              Object objref = initial.lookup("OpossumEJB");
>>              System.out.println (objref);
>>              OpossumHome home = (OpossumHome)PortableRemoteObject.narrow
>>              (objref, OpossumHome.class);
>>              Opossum ops = home.create();
>>              System.out.println (ops.ejecutar());
>> I have read this same code in hundreds of sites. It works on Windows,
>> but i cant make
>> it do on my debian. Any idea?
>>
>> thanks for all :-)
>>
>> kapi59ttp
>>
>>
>>
>


-- 
- If there's no penguin...there's no fun!!! -
meet us @ http://www.insabern.tk
personal web page: http://kapi59ttp.e-ghost.net
Key FingerPrint = BF9C E427 4955 61CA 1909  DCD4 9680 0C83 961B 7437
For my public key http://kapi59ttp.e-ghost.net/kapi59ttp.gpg
always running under GNU/Linux
www.debian.org 

Reply via email to