Version 8

    This page IS OUT OF DATE and no longer relevant

     

    Error creating the dlq connection exception when deploying EJB3 MDB

     

    If you deploy an EJB3 Message-Driven Bean (MDB) for use with a co-located messaging service (in same application server as the EJB), you might encounter a 'Error creating dlq connection' exception, such as:

     

    14:10:19,400 WARN  [MDB] JMS provider failure detected:
    javax.jms.JMSException: Error creating the dlq connection: null
            at org.jboss.ejb3.mdb.DLQHandler.createService(DLQHandler.java:153)
            at org.jboss.system.ServiceMBeanSupport.jbossInternalCreate(ServiceMBeanSupport.java:260)
            at org.jboss.system.ServiceMBeanSupport.create(ServiceMBeanSupport.java:188)

     

    If this happens, check the EJB jar file and make sure that it does not contain a

    jndi.properties file.

     

    The root cause of this problem is a "No ClassLoader found for: javax.jms.Queue" exception.

     

    See also http://www.jboss.com/index.html?module=bb&op=viewtopic&t=8092&start=0 if you only see this error when your messaging server is on Unix platform but not on Windows. You might need to change /etc/hosts settings to:

     

    the_server_ip               your_server_name

     

    127.0.0.1                   localhost