geronimo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bruno Aranda" <>
Subject Deployment of message driven bean in geronimo 2.0-m5
Date Wed, 09 May 2007 13:58:18 GMT
Hi there,

I am testing ejb 3.0 message driven beans and I was trying to deploy
in geronimo a simple jar containing a simple MDB. I am not using the
ejb-jar.xml as I want the container to discover the class. Whenever I
try to deploy it with the console, I get a NullPointerException when
deploying the ejb:

14:33:10,962 ERROR [GBeanInstanceState] Error while starting; GBean is
now in the FAILED state:
org.apache.openejb.OpenEJBException: Creating application failed:
Error building bean 'MessageConsumer'.  Exception: class
java.lang.NullPointerException: null: null
	at org.apache.openejb.assembler.classic.Assembler.createApplication(
	at org.apache.openejb.assembler.classic.Assembler.createEjbJar(
	at org.apache.geronimo.kernel.config.EditableConfigurationManager$$EnhancerByCGLIB$$979ad769.startConfiguration(<generated>)
Caused by: org.apache.openejb.OpenEJBException: Error building bean
'MessageConsumer'.  Exception: class java.lang.NullPointerException:
null: null
	at org.apache.openejb.assembler.classic.Assembler.createApplication(
	... 34 more
Caused by: java.lang.NullPointerException
	at java.util.Hashtable.get(
	... 35 more

It seems that the nullpointer is due to the EjbJarBuilder returning
null for "ejbInfo.containerId"...

Any ideas? Is this supposed to work?

This is my simple class, packaged in a jar:

        activationConfig = {
        @ActivationConfigProperty(propertyName = "acknowledgeMode",
propertyValue = "Auto-acknowledge"),
        @ActivationConfigProperty(propertyName = "destinationType",
propertyValue = "javax.jms.Queue")
public class MessageConsumer implements MessageListener
    public void onMessage(Message message)
       System.out.println("MESSAGE! ");

Thank you in advance,


View raw message