Hi,
I have a strange problem. I'm trying to access another Seam SFSB (SFSB1) from inside another Seam SFSB (SFSB2). I have an accessor in SFSB1 as follows:
/** * @return the webTreeModel */ public WebDocumentTreeModelBean getWebDocumentTreeModel() { if (this.webDocumentTreeModel == null) { Object o = Component.getInstance("webDocumentTreeModel", ScopeType.SESSION, true); if (o != null) { log.info("Component instance for webDocumentTreeModel is " + o.getClass().getName()); this.webDocumentTreeModel = (WebDocumentTreeModelBean) o; } else { log.info("Failed to create the component webDocumentTreeModel"); } } return this.webDocumentTreeModel; }
java.lang.ClassCastException: org.javassist.tmp.java.lang.Object_$$_javassist_21
import javax.ejb.Local; @Local public interface WebDocumentTreeModel { public void destroy();
@Stateful @Name("webDocumentTreeModel") @Scope(ScopeType.SESSION) public class WebDocumentTreeModelBean implements WebDocumentTreeModel { .... }