geronimo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "J. Patrick Bedell" <...@infoeng.org>
Subject Request for help: message-driven bean deployment descriptors
Date Mon, 20 Jun 2005 02:00:56 GMT
Hi,
 	I'm sorry to be flooding your mailbox, but I'm still trying to get 
a message-driven bean deployed to Geronimo.
 	I'm using the SimpleMessageBean class provided in the J2EE
tutorial (here org.infoeng.geronimo.SimpleMessageBean) which implements
MessageDrivenBean and MessageListener, and I'm using the openejb-jar.xml
and ejb-jar.xml files below.
 	When I try to deploy using the standard deployment tool, I get the 
null pointer exception shown below in var/log/geronimo.log.
 	Any suggestions?
 	Thanks in advance for your help!

 	Patrick
 	jpb@infoeng.org

--- begin openejb-jar.xml ---

<?xml version="1.0"?>
<openejb-jar
     xmlns="http://www.openejb.org/xml/ns/openejb-jar"
     configId="org/openejb/deployment/test"
     parentId="org/apache/geronimo/Server">
   <enterprise-beans>
     <message-driven>
       <ejb-name>SimpleMessageDriven</ejb-name>
       <resource-adapter> 
<target-name>geronimo.server:J2EEApplication=null,J2EEModule=org/apache/geronimo/ActiveMQServer,J2EEServer=geronimo,j2eeType=JMSServer,name=ActiveMQ.tcp.localhost.61616</target-name>
       </resource-adapter>
     </message-driven>
   </enterprise-beans>
</openejb-jar>

--- end openejb-jar.xml ---

--- begin ejb-jar.xml ---

<?xml version="1.0" encoding="US-ASCII"?>
<ejb-jar xmlns="http://java.sun.com/xml/ns/j2ee"
          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
                             http://java.sun.com/xml/ns/j2ee/ejb-jar_2_1.xsd"
          version="2.1">
   <enterprise-beans>
     <message-driven>
       <ejb-name>SimpleMessageDriven</ejb-name>
       <ejb-class>org.infoeng.geronimo.SimpleMessageBean</ejb-class>
       <messaging-type>javax.jms.MessageListener</messaging-type>
       <transaction-type>Container</transaction-type>
     </message-driven>
   </enterprise-beans>
   <assembly-descriptor>
     <container-transaction>
       <description>Transaction attributes for 'SimpleMessageDriven' methods</description>
       <method>
         <ejb-name>SimpleMessageDriven</ejb-name>
         <method-name>*</method-name>
       </method>
       <trans-attribute>Required</trans-attribute>
     </container-transaction>
   </assembly-descriptor>
</ejb-jar>

--- end ejb-jar.xml ---

--- null pointer exception recorded in var/log/geronimo.log ---

18:46:54,210 DEBUG [NameFactory] NameFactory.getModuleName: j2eeDomainName: null j2eeServerName:
null j2eeApplicationName: null j2eeModuleType: null j2eeModuleName: null
18:46:54,215 DEBUG [NameFactory] NameFactory.getModuleName: j2eeDomainName: null j2eeServerName:
null j2eeApplicationName: null j2eeModuleType: null j2eeModuleName: null

18:13:10,634 DEBUG [Deployer] Deployment failed: plan=/opt/code/test/TestMessageBean/META-INF/openejb-jar.xml,
module=/opt/code/test/TestMessageBean/simple-message-bean.jar org.apache.geronimo.common.DeploymentException:
java.lang.NullPointerException
         at org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:191)
         at org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:80)
         at org.apache.geronimo.deployment.Deployer$$FastClassByCGLIB$$734a235d.invoke(<generated>)
         at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)
         at org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(FastMethodInvoker.java:38)
         at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java:118)
         at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:754)
         at org.apache.geronimo.kernel.basic.BasicKernel.invoke(BasicKernel.java:177)
         at org.apache.geronimo.kernel.KernelGBean.invoke(KernelGBean.java:124)
         at org.apache.geronimo.kernel.KernelGBean$$FastClassByCGLIB$$1cccefc9.invoke(<generated>)
         at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)
         at org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(FastMethodInvoker.java:38)
         at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java:118)
         at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:754)
         at org.apache.geronimo.kernel.basic.BasicKernel.invoke(BasicKernel.java:177)
         at org.apache.geronimo.kernel.jmx.MBeanServerDelegate.invoke(MBeanServerDelegate.java:117)
         at javax.management.remote.rmi.RMIConnectionImpl.doOperation(RMIConnectionImpl.java:1408)
         at javax.management.remote.rmi.RMIConnectionImpl.access$100(RMIConnectionImpl.java:81)
         at javax.management.remote.rmi.RMIConnectionImpl$PrivilegedOperation.run(RMIConnectionImpl.java:1245)
         at java.security.AccessController.doPrivileged(Native Method)
         at javax.management.remote.rmi.RMIConnectionImpl.doPrivilegedOperation(RMIConnectionImpl.java:1348)
         at javax.management.remote.rmi.RMIConnectionImpl.invoke(RMIConnectionImpl.java:782)
         at sun.reflect.GeneratedMethodAccessor98.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:294)
         at sun.rmi.transport.Transport$1.run(Transport.java:153)
         at java.security.AccessController.doPrivileged(Native Method)
         at sun.rmi.transport.Transport.serviceCall(Transport.java:149)
         at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:460)
         at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:701)
         at java.lang.Thread.run(Thread.java:595)
Caused by: java.lang.NullPointerException
         at java.util.Hashtable.put(Hashtable.java:396)
         at org.apache.geronimo.j2ee.j2eeobjectnames.NameFactory.getModuleName(NameFactory.java:142)
         at org.openejb.deployment.MdbBuilder.addActivationSpecWrapperGBean(MdbBuilder.java:230)
         at org.openejb.deployment.MdbBuilder.buildBeans(MdbBuilder.java:119)
         at org.openejb.deployment.OpenEJBModuleBuilder.addGBeans(OpenEJBModuleBuilder.java:515)
         at org.openejb.deployment.OpenEJBModuleBuilder$$FastClassByCGLIB$$11bd7b20.invoke(<generated>)
         at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)
         at org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(FastMethodInvoker.java:38)
         at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java:118)
         at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:719)
         at org.apache.geronimo.gbean.runtime.RawInvoker.invoke(RawInvoker.java:57)
         at org.apache.geronimo.kernel.basic.RawOperationInvoker.invoke(RawOperationInvoker.java:36)
         at org.apache.geronimo.kernel.basic.ProxyMethodInterceptor.intercept(ProxyMethodInterceptor.java:94)
         at org.apache.geronimo.j2ee.deployment.ModuleBuilder$$EnhancerByCGLIB$$623b2783.addGBeans(<generated>)
         at org.apache.geronimo.j2ee.deployment.EARConfigBuilder.buildConfiguration(EARConfigBuilder.java:377)
         at org.apache.geronimo.j2ee.deployment.EARConfigBuilder$$FastClassByCGLIB$$38e56ec6.invoke(<generated>)
         at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)
         at org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(FastMethodInvoker.java:38)
         at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java:118)
         at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:719)
         at org.apache.geronimo.gbean.runtime.RawInvoker.invoke(RawInvoker.java:57)
         at org.apache.geronimo.kernel.basic.RawOperationInvoker.invoke(RawOperationInvoker.java:36)
         at org.apache.geronimo.kernel.basic.ProxyMethodInterceptor.intercept(ProxyMethodInterceptor.java:94)
         at org.apache.geronimo.deployment.ConfigurationBuilder$$EnhancerByCGLIB$$28f6b979.buildConfiguration(<generated>)
         at org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:156)
         ... 31 more


Mime
View raw message