tomee-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Luca Merolla <luca.mero...@gmail.com>
Subject Re: OpenEJB and HornetQ
Date Fri, 10 Jun 2011 23:01:28 GMT
Hi David,

I do have a twitter account too
http://twitter.com/lucamerolla <http://twitter.com/#!/lucamerolla>

Cheers,
Luca

On Fri, Jun 10, 2011 at 11:50 PM, David Blevins <david.blevins@gmail.com>wrote:

> This is really cool!  Do you have a twitter id so I can thank you on
> twitter?
>
> -David
>
> On Jun 9, 2011, at 4:56 PM, Luca Merolla wrote:
>
> > Hello everybody,
> >
> > I have managed to use HornetQ together with TomEE and OpenEJB.
> > If somebody is interested, I have posted some instruction here:
> > http://lucamerolla.wordpress.com/2011/06/10/openejb-and-hornetq/
> >
> > any feedback is more than welcome.
> >
> > Cheers,
> > Luca
> >
> > On Tue, Apr 26, 2011 at 11:56 PM, Luca Merolla <luca.merolla@gmail.com
> >wrote:
> >
> >> Hello again,
> >>
> >> sorry for double posting...
> >>
> >> Anyway, I have found the problem in the logs. It happens during the
> >> startup.
> >>
> >> 2011-04-26 23:53:20,337 - FATAL - Failed Configuring Service(id=My JMS
> >> Resource Adapter)
> >> org.apache.openejb.config.NoSuchProviderException: Cannot determine a
> >> provider for Resource(id=My JMS Resource Adapter,
> >> type=HornetQResourceAdapter, provider=null).
> >>
> >> Possible valid configurations might be:
> >>  <Resource id="My JMS Resource Adapter" type="javax.sql.DataSource"/>
> >>  <Resource id="My JMS Resource Adapter" type="DataSource"/>
> >>  <Resource id="My JMS Resource Adapter" type="ActiveMQResourceAdapter"/>
> >>  <Resource id="My JMS Resource Adapter"
> >> type="javax.jms.ConnectionFactory"/>
> >>  <Resource id="My JMS Resource Adapter"
> >> type="javax.jms.QueueConnectionFactory"/>
> >>  <Resource id="My JMS Resource Adapter"
> >> type="javax.jms.TopicConnectionFactory"/>
> >>  <Resource id="My JMS Resource Adapter" type="QueueConnectionFactory"/>
> >>  <Resource id="My JMS Resource Adapter" type="TopicConnectionFactory"/>
> >>  <Resource id="My JMS Resource Adapter" type="javax.jms.Queue"/>
> >>  <Resource id="My JMS Resource Adapter" type="Queue"/>
> >>  <Resource id="My JMS Resource Adapter" type="javax.jms.Topic"/>
> >>  <Resource id="My JMS Resource Adapter" type="Topic"/>
> >>  <Resource id="My JMS Resource Adapter" type="org.omg.CORBA.ORB"/>
> >>  <Resource id="My JMS Resource Adapter" type="ORB"/>
> >>  <Resource id="My JMS Resource Adapter" type="javax.mail.Session"/>
> >>
> >> It seems that is not possible to use the HornetQResourceAdapter as a
> value
> >> type....
> >>
> >> Is it possible to use a different JMS Provider rather than ActiveMQ? If
> so,
> >> which type should I use instead?
> >>
> >> Thanks
> >> Luca
> >>
> >> On Tue, Apr 26, 2011 at 12:13 AM, Luca Merolla <luca.merolla@gmail.com
> >wrote:
> >>
> >>> 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
> "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