users@glassfish.java.net

Why Does The Simple Java EE 5.0 MDB Example Not Work?

From: <glassfish_at_javadesktop.org>
Date: Fri, 23 Nov 2007 10:15:15 PST

Hi

I have an issue with Glassfish 2 v58. I am running the MDB example from page https://glassfish.dev.java.net/javaee5/ejb/examples/MDB.html
to work. I am getting an exception

     [exec] 23-Nov-2007 17:57:17 com.sun.enterprise.naming.NamingManagerImpl bindObjects
     [exec] SEVERE: NAM0008 : Invalid Destination: MDBQueue for java:comp/env/ejb30.MDBAppClient/mdbQueue
     [exec] 23-Nov-2007 17:57:17 com.sun.enterprise.appclient.MainWithModuleSupport <init>
     [exec] WARNING: ACC003: Application threw an exception.
     [exec] javax.naming.NamingException [Root exception is javax.naming.NameNotFoundException: MDBQueue not found]
     [exec] at com.sun.enterprise.naming.NamingManagerImpl.bindObjects(NamingManagerImpl.java:509)
     [exec] at com.sun.enterprise.appclient.AppContainer.preInvoke(AppContainer.java:146)

I can see the connection factory and the queue created. The JNDI names look correct: ``MDBQueue'' and ``MDBQueueConnectionFactory''
This example does not work for me. Why not?

On the server side is a worrisome exception message:

23-Nov-2007 17:57:17 com.sun.enterprise.server.AbstractManager loadOneSystemApp
WARNING: CORE5021: Application NOT loaded: [jmsra]
23-Nov-2007 17:57:17 com.sun.enterprise.connectors.ConnectorAdminObjectAdminServiceImpl addAdminObject
SEVERE: RAR6028 : This adapter is not 1.5 compliant : MDBQueue
23-Nov-2007 17:57:17 com.sun.enterprise.connectors.ConnectorServiceImpl$1 run
SEVERE: failed to load resources/ResourceAdapter
23-Nov-2007 17:57:17 com.sun.enterprise.connectors.ConnectorServiceImpl$1 run
SEVERE:
com.sun.enterprise.connectors.ConnectorRuntimeException: This adapter is not 1.5 compliant
        at com.sun.enterprise.connectors.ConnectorAdminObjectAdminServiceImpl.addAdminObject(ConnectorAdminObjectAdminServiceImpl.java:80)

Any ideas greatly appreciated. Thanks!
btw: MDBejb.jar is deployed successfully according the admin console.
[Message sent by forum member 'peter_pilgrim' (peter_pilgrim)]

http://forums.java.net/jive/thread.jspa?messageID=246952