tomee-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Luca Merolla <luca.mero...@gmail.com>
Subject OpenEJB and HornetQ
Date Tue, 26 Apr 2011 08:01:50 GMT
Hello everyone,

I'm trying to port an application to Tomcat OpenEJB. I'm using HornetQ as
JMS Provider and I would like to still use the same instead of ActiveMQ.

1 - I have installed the Resource Adapter into the tomcat/lib folder.
2 - I have set the Activation Spec Class in the conf/openejb.xml in the
Resource "My MDB Container (type=MESSAGE)" I have changed the following
lines:

#ActivationSpecClass org.apache.activemq.ra.ActiveMQActivationSpec
ActivationSpecClass org.hornetq.ra.inflow.HornetQActivationSpec

3 - I have changed the Resource Adapter to use the following:

<Resource id="My JMS Resource Adapter" type="HornetQResourceAdapter">
</Resource>

However, while trying to deploy, now I'm getting the following error:

2011-04-25 23:49:33,846 - INFO  - Configuring Service(id=/queue/testQueue,
type=Resource, provider-id=Default Queue)
2011-04-25 23:49:33,846 - INFO  - Auto-creating a Resource with id
'/queue/testQueue' of type 'javax.jms.Queue for 'TestMDB'.
2011-04-25 23:49:33,846 - INFO  - Creating Resource(id=/queue/testQueue)
2011-04-25 23:49:33,847 - WARN  - Error deploying application
/home/luca/bin/apache-tomcat-6.0.29/webapps/Test.ear
org.apache.xbean.recipe.ConstructionException: Unable tor helpo convert
property value from org.apache.xbean.recipe.UnsetPropertiesRecipe to
java.util.Properties for injection public synchronized void
org.apache.activemq.jndi.JNDIBaseStorable.setProperties(java.util.Properties)
 at org.apache.xbean.recipe.ObjectRecipe.setProperty(ObjectRecipe.java:503)
at org.apache.xbean.recipe.ObjectRecipe.setProperties(ObjectRecipe.java:371)
 at
org.apache.xbean.recipe.ObjectRecipe.internalCreate(ObjectRecipe.java:286)
at org.apache.xbean.recipe.AbstractRecipe.create(AbstractRecipe.java:96)
 at org.apache.xbean.recipe.AbstractRecipe.create(AbstractRecipe.java:61)
at org.apache.xbean.recipe.AbstractRecipe.create(AbstractRecipe.java:49)
 at
org.apache.openejb.assembler.classic.Assembler.createResource(Assembler.java:1108)
at
org.apache.openejb.config.ConfigurationFactory.install(ConfigurationFactory.java:281)
 at
org.apache.openejb.config.AutoConfig.installResource(AutoConfig.java:1499)
at
org.apache.openejb.config.AutoConfig.getResourceEnvId(AutoConfig.java:1545)
 at org.apache.openejb.config.AutoConfig.deploy(AutoConfig.java:766)
at org.apache.openejb.config.AutoConfig.deploy(AutoConfig.java:135)
 at
org.apache.openejb.config.ConfigurationFactory$Chain.deploy(ConfigurationFactory.java:248)
at
org.apache.openejb.config.ConfigurationFactory.configureApplication(ConfigurationFactory.java:626)
 at
org.apache.openejb.tomcat.catalina.TomcatWebAppBuilder.checkHost(TomcatWebAppBuilder.java:499)
at
org.apache.openejb.tomcat.catalina.GlobalListenerSupport.lifecycleEvent(GlobalListenerSupport.java:74)
 at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
at
org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1337)
 at
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1601)
at
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1610)
 at
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1590)
at java.lang.Thread.run(Thread.java:662)
Caused by: java.lang.NullPointerException
at java.util.Hashtable.put(Hashtable.java:394)
at
org.apache.xbean.recipe.UnsetPropertiesRecipe.internalCreate(UnsetPropertiesRecipe.java:44)
 at org.apache.xbean.recipe.AbstractRecipe.create(AbstractRecipe.java:96)
at org.apache.xbean.recipe.RecipeHelper.convert(RecipeHelper.java:167)
 at org.apache.xbean.recipe.ObjectRecipe.setProperty(ObjectRecipe.java:497)
... 21 more

Does anybody has any suggestion on what could be the problem? I suspect I
should put something in the resource adapter configuration, but I don't know
what.

Thanks in advance,
Luca

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message