4 Replies Latest reply on Aug 7, 2002 9:38 AM by Jian Zhang

    InstantiationException

    Jian Zhang Newbie

      I created a BMP entity bean and try to access it from a session bean. In session bean, I have code:
      Context lContext = new InitialContext();
      OrderListEntityHome lHome = (OrderListEntityHome) PortableRemoteObject.narrow(
      lContext.lookup(
      "java:comp/env/ejb/OrderListEntity"),OrderListEntityHome.class);
      OrderListEntityData lData=new OrderListEntityData();
      OrderListEntity lEntity=lHome.create(lData);
      When run in JBoss 3.0, it throw out "Could not instantiate bean, nested exception is InstantiationException "
      Any ideas?
      Thanks,

      Jian