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