2 Replies Latest reply on Dec 16, 2003 1:11 PM by johnraz

    InstantiationException, JSP use of Entiry Bean

    johnraz

      While i was able to get my entiry bean deployed, when i try to access it via the jsp page, i get an InstantiationException from jboss.

      17:22:40,197 ERROR [Engine] StandardWrapperValve[jsp]: Servlet.service() for servlet jsp threw exception
      org.apache.jasper.JasperException: class com.johnr.ejb.FundMixerEJB : java.lang.InstantiationException

      I specify the EJB in the JSP like so:

      <jsp:useBean id="fundMixBean" scope="session" class="com.johnr.ejb.FundMixerEJB" />

      Sounds like jboss can't find the class, but i have the class file in jar, here's the deploy dir I use to create jar. The jar is wrapped up in an Ear with war. And JBoss does find the classes.

      Directory of C:\eclipse\workspace\jspEJB\deploy\com\johnr\ejb

      12/13/2003 05:21 PM .
      12/13/2003 05:21 PM ..
      12/13/2003 05:21 PM 4,728 FundMixerEJB.class

      The interfaces show up in the jboss mgmt console

      EJBModule=jspEJB.jar,J2EEApplication=jspEJB.ear,J2EEServer=Local,j2eeType=EntityBean,name=FundMixerEJBRemoteHome

      Does this sound right?