geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Slavomir Kocka (Created) (JIRA)" <j...@apache.org>
Subject [jira] [Created] (GERONIMO-6303) Cannot create MDB in Java EE 6 way (WAR only)
Date Fri, 16 Mar 2012 21:21:39 GMT
Cannot create MDB in Java EE 6 way (WAR only)
---------------------------------------------

                 Key: GERONIMO-6303
                 URL: https://issues.apache.org/jira/browse/GERONIMO-6303
             Project: Geronimo
          Issue Type: Bug
      Security Level: public (Regular issues)
          Components: ActiveMQ, OpenEJB
    Affects Versions: 3.0-beta-1
         Environment: Cent OS 6.2, JDK 64bit
            Reporter: Slavomir Kocka


When trying to create MDB by annotations, and regular JavaEE6 configuration (WAR only) (using
web.xml, geronimo-web.xml, etc...) the deployment succeeds, however application fails to start.
This does not occur, when MDB is created in JavaEE5 way inside EAR envelope.

I found that this issue already occurred in some configurations.
Here is link to discussion.
http://mail-archives.apache.org/mod_mbox/openejb-dev/201104.mbox/%3CBANLkTi=Bv2ya-nJQb7ENpHMrKFBmqdfgiw@mail.gmail.com%3E

It fails on line:
Container container = (Container) props.get(ejbInfo.containerId);
However ejbInfo.containerId is not filled for MDB, as it is already mentioned in link above.

The stack-trace is here:

The application was not successfully started.
start of default/OpenGTSAdapter/1331815139205/war failed
org.apache.geronimo.kernel.config.LifecycleException: start of default/OpenGTSAdapter/1331815139205/war
failed
at org.apache.geronimo.kernel.config.SimpleConfigurationManager.startConfiguration(SimpleConfigurationManager.java:718)
at org.apache.geronimo.kernel.config.SimpleConfigurationManager.startConfiguration(SimpleConfigurationManager.java:681)
at org.apache.geronimo.deployment.plugin.local.StartCommand.run(StartCommand.java:67)
at java.lang.Thread.run(Thread.java:679)
Caused by: org.apache.geronimo.kernel.config.InvalidConfigException: Unknown start exception
at org.apache.geronimo.kernel.config.ConfigurationUtil.startConfigurationGBeans(ConfigurationUtil.java:523)
at org.apache.geronimo.kernel.config.KernelConfigurationManager.start(KernelConfigurationManager.java:226)
at org.apache.geronimo.kernel.config.SimpleConfigurationManager.startConfiguration(SimpleConfigurationManager.java:702)
... 3 more
Caused by: org.apache.geronimo.gbean.InvalidConfigurationException: Configuration default/OpenGTSAdapter/1331815139205/war
failed to start due to the following reasons:
The service J2EEApplication=null,WebModule=default/OpenGTSAdapter/1331815139205/war,j2eeType=appInfoGBean,name=appInfoGBean
did not start because Creating application failed: /default/OpenGTSAdapter/1331815139205/war:
Error building bean 'VehicleDataMdb'. Exception: class java.lang.NullPointerException: null:
null
org.apache.openejb.OpenEJBException: Creating application failed: /default/OpenGTSAdapter/1331815139205/war:
Error building bean 'VehicleDataMdb'. Exception: class java.lang.NullPointerException: null:
null
at org.apache.openejb.assembler.classic.Assembler.createApplication(Assembler.java:812)
at org.apache.geronimo.openejb.OpenEjbSystemGBean.createApplication(OpenEjbSystemGBean.java:460)
at org.apache.geronimo.openejb.AppInfoGBean.(AppInfoGBean.java:66)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:532)
at org.apache.xbean.recipe.ReflectionUtil$ConstructorFactory.create(ReflectionUtil.java:958)
at org.apache.xbean.recipe.ObjectRecipe.internalCreate(ObjectRecipe.java:276)
at org.apache.xbean.recipe.AbstractRecipe.create(AbstractRecipe.java:96)
at org.apache.xbean.recipe.AbstractRecipe.create(AbstractRecipe.java:61)
at org.apache.geronimo.gbean.runtime.GBeanInstance.createInstance(GBeanInstance.java:958)
at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:271)
at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:105)
at org.apache.geronimo.gbean.runtime.GBeanInstanceState.startRecursive(GBeanInstanceState.java:127)
at org.apache.geronimo.gbean.runtime.GBeanInstance.startRecursive(GBeanInstance.java:569)
at org.apache.geronimo.kernel.basic.BasicKernel.startRecursiveGBean(BasicKernel.java:386)
at org.apache.geronimo.kernel.config.ConfigurationUtil.startConfigurationGBeans(ConfigurationUtil.java:462)
at org.apache.geronimo.kernel.config.KernelConfigurationManager.start(KernelConfigurationManager.java:226)
at org.apache.geronimo.kernel.config.SimpleConfigurationManager.startConfiguration(SimpleConfigurationManager.java:702)
at org.apache.geronimo.kernel.config.SimpleConfigurationManager.startConfiguration(SimpleConfigurationManager.java:681)
at org.apache.geronimo.deployment.plugin.local.StartCommand.run(StartCommand.java:67)
at java.lang.Thread.run(Thread.java:679)
Caused by: org.apache.openejb.OpenEJBException: Error building bean 'VehicleDataMdb'. Exception:
class java.lang.NullPointerException: null: null
at org.apache.openejb.assembler.classic.EjbJarBuilder.build(EjbJarBuilder.java:78)
at org.apache.openejb.assembler.classic.Assembler.createApplication(Assembler.java:614)
... 22 more
Caused by: java.lang.NullPointerException
at java.util.Hashtable.get(Hashtable.java:351)
at org.apache.openejb.assembler.classic.EjbJarBuilder.build(EjbJarBuilder.java:72)
... 23 more

The service J2EEApplication=null,WebModule=default/OpenGTSAdapter/1331815139205/war,j2eeType=EJBModule,name=.
did not start because default/OpenGTSAdapter/1331815139205/war?J2EEApplication=null,WebModule=default/OpenGTSAdapter/1331815139205/war,j2eeType=appInfoGBean,name=appInfoGBean
did not start.
The service J2EEApplication=null,j2eeType=WebModule,name=default/OpenGTSAdapter/1331815139205/war
did not start because default/OpenGTSAdapter/1331815139205/war?J2EEApplication=null,WebModule=default/OpenGTSAdapter/1331815139205/war,j2eeType=appInfoGBean,name=appInfoGBean
did not start.

at org.apache.geronimo.kernel.config.ConfigurationUtil.startConfigurationGBeans(ConfigurationUtil.java:489)
... 5 more

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message