Red Hat Application Server: JOnAS User Guide | ||
---|---|---|
Prev | Chapter 31. Integrating Tomcat and JOnAS (for JOnAS version < JOnAS 2.6) | Next |
Under certain circumstances with JOnAS (JEREMIE), you may have a java.lang.ClassCastException in a servlet that makes:
home = (XXHome)PortableRemoteObject.narrow(initialContext.lookup("XXHome"), XXHome.class); |
The workaround with Tomcat 3.3.x is to make visible from the CLASSPATH the ejb-jar file in which the class XXHome is defined.
The workaround with Tomcat 4.0.x is to remove the ejb-jar file from $TOMCAT_HOME/webapps/WEB-INF/lib and to make it visible from the CLASSPATH.