Hi all,

        I'm developing an application using swing that executes remotes EJB.
The applications works fine if I executed from NetBeans, but if I executed
from an applet it gives me the next error:

JERP.Applets.CO.bin.ConexionServidorEJB.jndiContext->javax.naming.InitialCon
text@5e2ccd
java.lang.ClassCastException
        at
com.sun.corba.se.internal.javax.rmi.PortableRemoteObject.narrow(Unknown
Source)
        at javax.rmi.PortableRemoteObject.narrow(Unknown Source)
        at
JERP.Applets.CO.bin.PanelAccesoJERP.inicializarComponentes(PanelAccesoJERP.j
ava:142)
        at
JERP.Applets.CO.bin.PanelAccesoJERP.<init>(PanelAccesoJERP.java:69)
        at
JERP.Applets.CO.bin.AccesoJERP.inicializarComponentes(AccesoJERP.java:71)
        at JERP.Applets.CO.bin.AccesoJERP.<init>(AccesoJERP.java:56)
        at applet.init(applet.java:82)
        at sun.applet.AppletPanel.run(Unknown Source)
        at java.lang.Thread.run(Unknown Source)

The same code with JBoss it works. These are the jars that I put in netbeans
and in the jre:

ejb.jar
jdbc.jar
jta.jar
mail.jar
orion.jar

Thanks, Oscar.

Reply via email to