0 Replies Latest reply on Mar 18, 2004 9:31 AM by sheikh_a1

    Strange deployment problem!!

    sheikh_a1 Newbie

      Hi ,
      I have been trying to deploy an EAR and experiencing and starnge problem. Some of the Beans are failing to Deploy and the reason mentioned is

      EJB spec violation
      Warning: All the exceptions defined in the throws clause of the matching ejbCreate(...) method of th
      e enterprise bean class must be included in the throws clause of a matching create(...) method

      I checked the code and everything seems fine.
      This code is in the bean class
       * @ejb.create-method
       public void ejbCreate()
       throws CreateException{

      and this is in the LocalHome interface
       public XXXXEJBLocal create() throws javax.ejb.CreateException;

      The strange part is that when i start the server again, the bean is being deployed well.

      Has this happened to anyone before?

      I'm using JBOSS3.2.2 on a Linux platform.

      Please let me know how to fix this issue.