0 Replies Latest reply on Dec 17, 2001 8:45 PM by alex.lee

    JavaScript+Applet+EJB's problem!

    alex.lee Newbie

      Hi All,
      An applet program has a method, it can access the EJB and retrieve the data, when use this method in applet, it's ok, but if use it through JavaScript, it doesn't work and the applet throws exception as follow:

      java.lang.reflect.UndeclaredThrowableException: java.lang.ClassNotFoundException: com.dragon.trade.basedata.ejb.entity.Company

      at java.net.URLClassLoader$1.run(Unknown Source)

      at java.security.AccessController.doPrivileged(Native Method)

      at java.net.URLClassLoader.findClass(Unknown Source)

      at java.lang.ClassLoader.loadClass(Unknown Source)

      at java.lang.ClassLoader.loadClass(Unknown Source)

      at java.lang.ClassLoader.loadClassInternal(Unknown Source)

      at java.lang.Class.forName0(Native Method)

      at java.lang.Class.forName(Unknown Source)

      at sun.rmi.server.MarshalInputStream.resolveProxyClass(Unknown Source)

      at java.io.ObjectInputStream.inputProxyClassDescriptor(Unknown Source)

      at java.io.ObjectInputStream.readObject(Unknown Source)

      at java.io.ObjectInputStream.readObject(Unknown Source)

      at java.io.ObjectInputStream.inputObject(Unknown Source)

      at java.io.ObjectInputStream.readObject(Unknown Source)

      at java.io.ObjectInputStream.readObject(Unknown Source)

      at java.rmi.MarshalledObject.get(Unknown Source)

      at org.jboss.ejb.plugins.jrmp.interfaces.GenericProxy.invokeContainer(GenericProxy.java:357)

      at org.jboss.ejb.plugins.jrmp.interfaces.StatelessSessionProxy.invoke(StatelessSessionProxy.java:123)

      at $Proxy1.getCompany(Unknown Source)

      at PageDataContainer.getCompany(PageDataContainer.java:60)

      Does anyone have experience for this?
      Thanks!