0 Replies Latest reply on Nov 3, 2004 4:57 AM by wang ch

    Exception in MDB deployment

    wang ch Newbie

      hello, when i deploy a MDB in JBoss, exception occurs like this:

      Bean : TestMDB
      Method : public void ejbCreate() throws CreateException
      Section: 15.7.3
      Warning: The ejbCreate() method must define no application exceptions.

      12:47:33,734 ERROR [MainDeployer] could not create deployment: file:/D:/devel-to
      ols/jboss-3.2.5/server/default/deploy/EJBModule1.jar
      org.jboss.deployment.DeploymentException: Verification of Enterprise Beans faile
      d, see above for error messages.
      at org.jboss.ejb.EJBDeployer.create(EJBDeployer.java:517)
      at org.jboss.deployment.MainDeployer.create(MainDeployer.java:790)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:644)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:608)
      at sun.reflect.GeneratedMethodAccessor16.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
      sorImpl.java:25)
      ........

      My TestMDB like this:

      package test;

      import javax.ejb.MessageDrivenBean;
      import javax.jms.MessageListener;
      import javax.ejb.MessageDrivenContext;
      import javax.ejb.CreateException;
      import javax.jms.Message;

      public class TestMDBBean
      implements MessageDrivenBean, MessageListener {
      MessageDrivenContext messageDrivenContext;
      public void ejbCreate() throws CreateException {

      }

      public void ejbRemove() {
      }

      public void onMessage(Message msg) {
      }

      public void setMessageDrivenContext(MessageDrivenContext messageDrivenContext) {
      this.messageDrivenContext = messageDrivenContext;
      }
      }

      Thanks.