Hi, For JournalLockedException, include activeio-core-3.0-beta4.jar (you may have different version of this) in your classpath.
Regards, Manish Gulati CONFIDENTIALITY NOTICE This e-mail transmission and any documents, files, or previous e-mail messages appended or attached to it, may contain information that is confidential or legally privileged. If you are not the intended recipient, or a person responsible for delivering it to the intended recipient, you are hereby notified that you must not read this transmission and that any disclosure, copying, printing, distribution, or use of the information contained or attached to this transmission is STRICTLY PROHIBITED. If you have received this transmission in error, please immediately notify the sender by telephone +91.172.229.9438 or return e-mail message [EMAIL PROTECTED] and delete the original transmission, its attachments, and any copies without reading or saving in any manner. Thank you. -----Original Message----- From: Christopher G. Stach II [mailto:[EMAIL PROTECTED] Sent: Monday, March 26, 2007 8:42 AM To: users@activemq.apache.org Subject: Re: Problems with VM transport [EMAIL PROTECTED] wrote: > Hello... > > I have a couple of basic questions on ActiveMQ. I would appreciate any hits as I am stuck. > > I am using ActiveMQ 4.1 with JDK6. > > 1) When I use an embedded broker with vm transport (vm://localhost) > the instantiation of my Spring SimpleMessageListenerContainer > always fails with a JournalLockedException. > > What does this exception mean exactly? I understand this has something to do with > persistance of message (since that is on by default). While I do not > care to enable persistance and would like to turn it off, I would still > like to understand what causes this exception: > > org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'DmmStartupMessageListener' defined in class path resource [contexts/bus/DmsStandardSubscriptions.xml]: Invocation of init method failed; nested exception is java.lang.NoClassDefFoundError: org/apache/activeio/journal/active/JournalLockedException > Caused by: > java.lang.NoClassDefFoundError: org/apache/activeio/journal/active/JournalLockedException > at org.apache.activemq.broker.BrokerService.createPersistenceFactory(Broker Service.java:1328) > at org.apache.activemq.broker.BrokerService.getPersistenceFactory(BrokerSer vice.java:544) > at org.apache.activemq.broker.BrokerService.createPersistenceAdapter(Broker Service.java:1320) > at org.apache.activemq.broker.BrokerService.getPersistenceAdapter(BrokerSer vice.java:631) > at org.apache.activemq.broker.BrokerService.createRegionBroker(BrokerServic e.java:1250) > at org.apache.activemq.broker.BrokerService.createBroker(BrokerService.java :1209) > at org.apache.activemq.broker.BrokerService.getBroker(BrokerService.java:50 8) > at org.apache.activemq.broker.BrokerService.start(BrokerService.java:394) > at org.apache.activemq.transport.vm.VMTransportFactory.doCompositeConnect(V MTransportFactory.java:113) > at org.apache.activemq.transport.vm.VMTransportFactory.doConnect(VMTranspor tFactory.java:52) > at org.apache.activemq.transport.TransportFactory.doConnect(TransportFactor y.java:43) > at org.apache.activemq.transport.TransportFactory.connect(TransportFactory. java:77) > at org.apache.activemq.ActiveMQConnectionFactory.createTransport(ActiveMQCo nnectionFactory.java:227) > > > 2) Which jarfile contains the exception class org/apache/activeio/journal/active/JournalLockedException? > > 3) How do I use an embedded broker without persistance? > > The URL > > vm://localhost?persistant=false > > fails with an exception that says that the option is illegal. > > 4) Once the broker is up, could I dynamically (programmatically) change the > broker URL by augmenting the broker URL with a failover URL as follows? > > Startup: vm://localhost > During runtime (after an event): > failover(vm://localhost,tcp://remote:61616) > > Would modifying the broker URL of the connection factory cause problems? > > Thanks, > > /U This was kind of like watching a retarded kid fall down, and laughing... but three times in a row. Thanks. -- Christopher G. Stach II