activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Javier Leyba" <xle...@gmail.com>
Subject Re: ExecutionException
Date Thu, 12 Apr 2007 15:48:08 GMT
I'm using 4.1.1 downloaded with maven2...



On 4/12/07, James Strachan <james.strachan@gmail.com> wrote:
> Which version are you using? Note that 4.2 onwards requires Java 5
>
> On 4/12/07, Javier Leyba <xleyba@gmail.com> wrote:
> > Hi
> >
> > I'm trying to deploy my app in a JBoss server running java 1.4.
> >
> > My app is a jboss-service that start a broker programatically.
> >
> > When server starts I receive the error:
> >
> > ----------------
> > 2007-04-12 13:39:24,713 WARN  [org.jboss.system.ServiceController]
> > Problem starting service jms.ActiveMQ:service=ActiveMQNetwork
> > java.lang.NoClassDefFoundError: java/util/concurrent/ExecutionException
> >         at org.apache.activemq.store.DefaultPersistenceAdapterFactory.createJournal(DefaultPersistenceAdapterFactory.java:224)
> >         at org.apache.activemq.store.DefaultPersistenceAdapterFactory.getJournal(DefaultPersistenceAdapterFactory.java:132)
> >         at org.apache.activemq.store.DefaultPersistenceAdapterFactory.createPersistenceAdapter(DefaultPersistenceAdapterFactory.java:70)
> >         at org.apache.activemq.broker.BrokerService.createPersistenceAdapter(BrokerService.java:1320)
> >         at org.apache.activemq.broker.BrokerService.getPersistenceAdapter(BrokerService.java:631)
> >         at org.apache.activemq.broker.BrokerService.createRegionBroker(BrokerService.java:1250)
> >         at org.apache.activemq.broker.BrokerService.createBroker(BrokerService.java:1209)
> >         at org.apache.activemq.broker.BrokerService.getBroker(BrokerService.java:508)
> >         at org.apache.activemq.broker.BrokerService.addConnector(BrokerService.java:163)
> >         at org.apache.activemq.broker.BrokerService.addConnector(BrokerService.java:153)
> >         at com.bs.activemq.mbean.service.ActiveMQNetwork.createNetwork(ActiveMQNetwork.java:375)
> >         at com.bs.activemq.mbean.service.ActiveMQNetwork.start(ActiveMQNetwork.java:267)
> >         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> >         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> >         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> >         at java.lang.reflect.Method.invoke(Method.java:324)
> >         at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
> >         at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
> >         at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
> >         at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
> >         at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
> >         at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:960)
> >         at $Proxy0.start(Unknown Source)
> >         at org.jboss.system.ServiceController.start(ServiceController.java:428)
> >         at sun.reflect.GeneratedMethodAccessor11.invoke(Unknown Source)
> >         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> >         at java.lang.reflect.Method.invoke(Method.java:324)
> >         at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
> >         at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
> >         at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
> >         at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
> >         at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
> >         at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
> >         at $Proxy4.start(Unknown Source)
> >         at org.jboss.deployment.SARDeployer.start(SARDeployer.java:285)
> > ----------------
> >
> >
> > first, I thought about the lack of a jar package but I discovered
> > ExecutionException is a java 1.5 class, so...is this a bug or am I
> > forced to run my app with java 1.5 ?
> >
> > Also, I've tried to set the data directory where to store journal with
> >
> > this.serviceMaster = new BrokerService();
> > this.serviceMaster.setDataDirectory(new File("/home/mydir/actimqdata"));
> >
> > but ActiveMQ ignore it and always store journal inside jboss bin directory.
> >
> > How could I solve it ?
> >
> > Thanks in advance
> >
> > J
> >
>
>
> --
>
> James
> -------
> http://radio.weblogs.com/0112098/
>


-- 
Javier Leyba
Barcelona - Spain
http://blog.leyba.com.ar
http://www.leybafendrik.com.ar

Mime
View raw message