3 Replies Latest reply on May 19, 2006 3:06 PM by dornus

    messagingType

    dornus Novice

      I had code working in older versions of 4.0.4, but in 4.0.4.GA it breaks.

      It looks like it has to do with the messagingType
      The error is:

      13:24:24,221 WARN [ServiceController] Problem starting service jboss.j2ee:ear=MyProject.ear,jar=MyTest.jar,name=MyTestService,service=EJB3
      java.lang.RuntimeException: java.lang.ExceptionInInitializerError
       at org.jboss.ejb3.ServiceDelegateWrapper.startService(ServiceDelegateWrapper.java:105)
       at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
       at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
       at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
      ...<many more>...
       at java.lang.Thread.run(Thread.java:595)
      Caused by: java.lang.ExceptionInInitializerError
       at org.jboss.ejb3.mdb.MDB.getOnMessage(MDB.java:818)
       at org.jboss.ejb3.mdb.MDB.innerCreate(MDB.java:314)
       at org.jboss.ejb3.mdb.MDB.innerStart(MDB.java:225)
       at org.jboss.ejb3.mdb.MDB.start(MDB.java:214)
       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
       at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
       at java.lang.reflect.Method.invoke(Method.java:585)
       at org.jboss.ejb3.ServiceDelegateWrapper.startService(ServiceDelegateWrapper.java:99)
       ... 176 more
      Caused by: java.lang.RuntimeException: unable to determine messagingType interface for MDB
       at org.jboss.ejb3.mdb.MDB.getMessagingType(MDB.java:128)
       at org.jboss.ejb3.mdb.MDB.getOnMessage(MDB.java:810)
       ... 184 more
      


      so, I added a messaging type to my code, but It still produces the same error.
      @MessageDriven(activationConfig =
      {
       @ActivationConfigProperty(propertyName="messagingType", propertyValue="javax.jms.MessageListener"),
       @ActivationConfigProperty(propertyName="destinationType", propertyValue="javax.jms.Queue"),
       @ActivationConfigProperty(propertyName="destination", propertyValue="queue/mailQueue")
      })
      


      How do I resolve this?