0 Replies Latest reply on Aug 25, 2004 12:27 PM by annapurna

    CMP EJB2

    annapurna Newbie


      I am trying to deploy a CMP bean (EJB2) in jboss3.2.

      I got the error

      EJB verification error

      warning: EJB must be specified public and abstract.

      So I changed my Bean class to abstract making all the set/get methods to abstract.

      It deployed correctly but now while testing when I call findAllAccounts() methods it gives a exception

      at sun.reflect.InstantiationExceptionConstructorAccessorImpl.newInstance(InstantiationExceptionConstructorAccessorImpl.java:30)
      at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
      at java.lang.Class.newInstance0(Class.java:306)
      at java.lang.Class.newInstance(Class.java:259)
      at org.jboss.ejb.plugins.jaws.JAWSPersistenceManager.createBeanClassInstance(JAWSPersistenceManager.java:165)

      I think this is because of the abstract definition of the class. Can someone please shed some light on this. I am missing something important here.

      Has someone got a similar problem. Please let me know your comments.