MadM
Mitglied
Moin Jungs,
zunächst zum Szenario:
JSP benutzt mitteles jsp:usebean eine Sessionbean (InsertionFacade), innerhalb der auf die Entity Beans zugegriffen wird. Deployment verläuft ohne Fehler.
Rufe ich die jsp-Seite im Browser auf, bekomme ich im JBoss diese Exception:
2005-06-02 15:50:03,032 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/drive2ucb].[jsp]] Servlet.service() for servlet jsp threw exception
java.lang.ClassCastException
at drive2ucb.ejb.session.beans InsertionFacade.getLocalHome(InsertionFacade.java:35)
Hier das Code-Segment:
Was ist da los?
Will code html for a fast response
greetz
MadM
zunächst zum Szenario:
JSP benutzt mitteles jsp:usebean eine Sessionbean (InsertionFacade), innerhalb der auf die Entity Beans zugegriffen wird. Deployment verläuft ohne Fehler.
Rufe ich die jsp-Seite im Browser auf, bekomme ich im JBoss diese Exception:
2005-06-02 15:50:03,032 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/drive2ucb].[jsp]] Servlet.service() for servlet jsp threw exception
java.lang.ClassCastException
at drive2ucb.ejb.session.beans InsertionFacade.getLocalHome(InsertionFacade.java:35)
Hier das Code-Segment:
Code:
34 InitialContext initialContext = new InitialContext();
35 InsertionLocalHome insHome = (InsertionLocalHome) initialContext.lookup(InsertionLocalHome.JNDI_NAME);
Was ist da los?
Will code html for a fast response

greetz
MadM