Consultor Eletrônico



Kbase 18609: ClassNotFoundException: java.rmi.RemoteException with IE4
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   22/02/1999
SUMMARY:

Running an Applet containing a reference to an EJB (Enterprise Java
Bean) with Internet Explorer 4.0, the EJB won't work and you might see messages such as these on the Java console:

Apptivity Ver 3.0.1.158
Java Version: 1.1.4 Vendor: Microsoft Corp.
Uncaught exception. IFC release: IFC 1.1.2
java.lang.ClassNotFoundException: java.rmi.RemoteException
at com/ms/vm/loader/URLClassLoader.loadClass
at java/lang/ClassLoader.loadClassInternal
...

EXPLANATION:

The reason for the problem is that Internet Explorer 4.0
does not have the Remote Method Invocation (RMI) API.

For the EJB, the EJBHome interface extends javax.ejb.EJBHome which
extends Remote. Remote is the interface in the java.rmi package
(Remote Method Invocation) and serves to identify all remote objects.

Making a local CLASSPATH reference to the java.rmi package or
allowing the Internet Explorer to download the rmi package
doesn't solve the problem, but makes it even worse as
it lets the application appear as being faulty. In that case the EJBHomeTable is null, which usually indicates that the EJB is not running on the remote host.

Tests using Apptivity's UseIncrementer EJB example show that the
problem is also not fixed with Internet Explorer 5. Thus, at
this writing (February 1999) the only solution is using the
Netscape Communicator instead.


References to Written Documentation :

http://java.sun.com/products/ejb/javadoc-1.0/javax.ejb-javadoc/
Package-javax.ejb.html
http://java.sun.com/products/jdk/1.1/docs/api/Package-java.rmi.html
http://java.sun.com/lawsuit/021299seventh.html
http://www.jaworski.com/ju/
http://support.microsoft.com/support/search/a.asp?SPR=