Hi there,
I've been trying to get the local i/f to a session bean i've implemented. The session bean is used within a servlet that is hosted in the same VM - JBoss-3.0.0-Tomcat-4.0.3. Anyway, looking at the logger output i found i get this when trying to look up the session bean via JNDI context (i'm using struts too):
Throwable
java.lang.ClassCastException: $Proxy30
at au.com.schmick.bean.ejb.EJBHomeFactory.getWorkAreaManagerLocalHome(EJBHomeFactory.java:171)
at au.com.schmick.ui.action.WorkAreaAction.processViewAll(WorkAreaAction.java:106)
at au.com.schmick.ui.framework.RomanAction.execute(RomanAction.java:105)
at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:446)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:266)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1292)
at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:492)
at
yadda...
It's puzzling me that sometimes i don't get this problem - i've actually got the session bean fine - performed a call with it and assembled the results into a request and displayed them via a jsp target page. However, i'm back to this old chestnut.
mark