activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Javier Leyba" <xle...@gmail.com>
Subject Re: Journal is already opened by this application error
Date Tue, 11 Apr 2006 13:06:31 GMT
On 3/30/06, James Strachan <james.strachan@gmail.com> wrote:
> I've seem some folks create 2 brokers in the same JVM before - by
> using vm:// tranport to create a connection to a broker - which then
> auto-creates a broker - then they try to create a broker explciitly
> using an activemq.xml.
>
> So double check that if you are creating an embedded broker, you make
> sure you set up the dependencies correctly in the spring.xml so that
> you create the broker first before any JMS connections.
>
>


Hi

I've decided to stop my test because I would need to adapt my
application to JBoss that will be our App Server.

Well, I've a JBoss running and I decided to make a MBean service to
start brokers.

I'm totally sure there no other brokers running.

I did in my code:

-------------

/**
     * Start service.
     *
     * @throws Exception
     */
    public void start() throws Exception {
        started = true;
        log.info("BROKER SERVICE: Starting ActiveMQNetwork ... " +
propertiesResource);
        createNetwork();
    }

    /**
     * Stop service.
     *
     * @throws Exception
     */
    public void stop() throws Exception {
        started = false;
        log.info("BROKER SERVICE: Stoping ActiveMQNetwork ...");
        if (service != null) {
            service.stop();
            service = null;
        }
        // do what you want ...
    }

    /**
     * Create a broker.
     *
     * Configuration will be read from a file.
     */
    private void createNetwork() {
        log.info("BROKER SERVICE: trying to crete broker");

        try {
            URI brokerURI = new
URI("xbean:file:/home/jcm/jboss-4.0.3SP1/server/default/conf/activemq.xml");
            service = BrokerFactory.createBroker(brokerURI);
            if (service != null) {
                service.start();
            }
        } catch (Exception e) {
            log.error("BROKER SERVICE: createNetwork Exception: " +
e.getMessage());
            e.printStackTrace();
        }
    }

-----------


and my activemq.xml looks like this:

------------
<!-- START SNIPPET: xbean -->
<beans xmlns="http://activemq.org/config/1.0">

  <broker brokerName="BROKER_1" persistent="true" useJmx="true">

    <persistenceAdapter>
      <!-- journaledJDBC journalLogFiles="5"
dataDirectory="../activemq-data"/ -->
      <!-- To use a different datasource, use th following syntax : -->
      <journaledJDBC journalLogFiles="5"
dataDirectory="/home/jcm/jl/activemq-data1" dataSource="#mysql-ds"/>
    </persistenceAdapter>

        <managementContext>
           <managementContext connectorPort="2011"/>
        </managementContext>

    <transportConnectors>
       <transportConnector name="default" uri="tcp://172.31.112.9:62002"/>
    </transportConnectors>

    <!-- networkConnectors>
        <networkConnector name="to node 2"
uri="static://(tcp://172.31.112.9:62001,tcp://172.30.27.1:62010)"/>
    </networkConnectors -->

  </broker>

  <bean id="mysql-ds" class="org.apache.commons.dbcp.BasicDataSource"
destroy-method="close">
            <property name="driverClassName" value="com.mysql.jdbc.Driver"/>
            <property name="url"
value="jdbc:mysql://172.31.112.16/activeMQ?relaxAutoCommit=true"/>
            <property name="username" value="activeMQ"/>
            <property name="password" value="activeMQ"/>
            <property name="poolPreparedStatements" value="true"/>
  </bean>
-----------------



When I starting JBoss can see the message:

14:47:52,063 INFO  [DefaultListableBeanFactory] Creating shared
instance of singleton bean
'org.apache.activemq.xbean.XBeanBrokerService'
14:47:52,345 INFO  [DefaultListableBeanFactory] Creating shared
instance of singleton bean 'mysql-ds'
14:47:52,663 INFO  [BrokerService] ActiveMQ 4.0-SNAPSHOT JMS Message
Broker (BROKER_1) is starting
14:47:52,663 INFO  [BrokerService] For help or more information please
see: http://www.logicblaze.com
14:47:53,325 INFO  [JDBCPersistenceAdapter] Database driver
recognized: [mysql-ab_jdbc_driver]
14:47:53,423 INFO  [JournalPersistenceAdapter] Journal Recovery
Started from: Active Journal: using 5 x 20.0 Megs at:
/home/jcm/jl/activemq-data/journal
14:47:53,479 INFO  [JournalPersistenceAdapter] Journal Recovered: 0
message(s) in transactions recovered.
14:47:53,907 INFO  [TransportServerThreadSupport] Listening for
connections at: tcp://172.31.112.9:62002
14:47:53,908 INFO  [TransportConnector] Connector default Started
14:47:53,977 INFO  [NetworkConnector] Establishing network connection
between from vm:?network=true to tcp://172.31.112.9:62001
14:47:53,986 INFO  [BrokerService] ActiveMQ 4.0-SNAPSHOT JMS Message
Broker (null) is starting
14:47:53,986 INFO  [BrokerService] For help or more information please
see: http://www.logicblaze.com
14:47:55,770 INFO  [JDBCPersistenceAdapter] Database driver
recognized: [apache_derby_embedded_jdbc_driver]
14:47:57,114 INFO  [JournalPersistenceAdapter] Journal Recovery
Started from: Active Journal: using 2 x 20.0 Megs at:
/home/jcm/jl/jboss-4.0.3SP1/bin/activemq-data/null/journal
14:47:57,136 INFO  [JournalPersistenceAdapter] Journal Recovered: 0
message(s) in transactions recovered.
14:47:57,203 INFO  [BrokerService] ActiveMQ JMS Message Broker (null) started
14:47:57,203 INFO  [VMTransportFactory] binding to broker: null
14:47:57,206 INFO  [TransportConnector] Connector vm://null Started
14:47:57,246 INFO  [DemandForwardingBridge] Starting a network
connection between vm://null#0 and tcp://null:0 has been established.
14:47:57,250 INFO  [VMTransportFactory] Shutting down VM connectors
for broker: null
14:47:57,252 WARN  [NetworkConnector] Could not start network bridge
between: vm:?network=true and: tcp://172.31.112.9:62001 due to:
java.net.ConnectException: Connection refused
java.net.ConnectException: Connection refused
        at java.net.PlainSocketImpl.socketConnect(Native Method)
        at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
        at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
        at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
        at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
        at java.net.Socket.connect(Socket.java:507)
        at org.apache.activemq.transport.tcp.TcpTransport.doStart(TcpTransport.java:291)
        at org.apache.activemq.util.ServiceSupport.start(ServiceSupport.java:48)
        at org.apache.activemq.transport.TransportFilter.start(TransportFilter.java:59)
        at org.apache.activemq.transport.TransportFilter.start(TransportFilter.java:59)
        at org.apache.activemq.transport.WireFormatNegotiator.start(WireFormatNegotiator.java:57)
        at org.apache.activemq.transport.TransportFilter.start(TransportFilter.java:59)
        at org.apache.activemq.transport.TransportFilter.start(TransportFilter.java:59)
        at org.apache.activemq.network.DemandForwardingBridgeSupport.start(DemandForwardingBridgeSupport.java:140)
        at org.apache.activemq.network.DiscoveryNetworkConnector.onServiceAdd(DiscoveryNetworkConnector.java:115)
        at org.apache.activemq.transport.discovery.simple.SimpleDiscoveryAgent.start(SimpleDiscoveryAgent.java:46)
        at org.apache.activemq.network.DiscoveryNetworkConnector.doStart(DiscoveryNetworkConnector.java:170)
        at org.apache.activemq.util.ServiceSupport.start(ServiceSupport.java:48)
        at org.apache.activemq.broker.BrokerService.startAllConnectors(BrokerService.java:1053)
        at org.apache.activemq.broker.BrokerService.start(BrokerService.java:359)
        at org.apache.activemq.xbean.XBeanBrokerService.afterPropertiesSet(XBeanBrokerService.java:43)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1058)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:363)
        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:226)
        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:147)
        at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:275)
        at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:318)
        at org.apache.xbean.spring.context.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:158)
        at org.apache.xbean.spring.context.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:48)
        at org.apache.activemq.xbean.XBeanBrokerFactory.createBroker(XBeanBrokerFactory.java:40)
        at org.apache.activemq.broker.BrokerFactory.createBroker(BrokerFactory.java:56)
        at com.bs.activemq.mbean.service.ActiveMQNetwork.createNetwork(ActiveMQNetwork.java:86)
        at com.bs.activemq.mbean.service.ActiveMQNetwork.start(ActiveMQNetwork.java:58)
        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:585)
        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.GeneratedMethodAccessor9.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        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)
        at org.jboss.deployment.MainDeployer.start(MainDeployer.java:989)
        at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:790)
        at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:753)
        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:585)
        at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
        at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
        at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:118)
        at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
        at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:127)
        at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
        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 $Proxy9.deploy(Unknown Source)
        at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:319)
        at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:507)
        at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:192)
        at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:265)
        at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:274)
        at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:230)
        at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        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:943)
        at $Proxy0.start(Unknown Source)
        at org.jboss.system.ServiceController.start(ServiceController.java:428)
        at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        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)
        at org.jboss.deployment.MainDeployer.start(MainDeployer.java:989)
        at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:790)
        at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:753)
        at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:737)
        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:585)
        at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
        at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
        at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:118)
        at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
        at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:127)
        at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
        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 $Proxy5.deploy(Unknown Source)
        at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:453)
        at org.jboss.system.server.ServerImpl.start(ServerImpl.java:330)
        at org.jboss.Main.boot(Main.java:187)
        at org.jboss.Main$1.run(Main.java:438)
        at java.lang.Thread.run(Thread.java:595)
14:47:57,259 INFO  [VMTransportFactory] Shutting down VM connectors
for broker: null
14:47:57,261 INFO  [TransportConnector] Connector vm://null Stopped
14:47:57,261 INFO  [BrokerService] ActiveMQ 4.0-SNAPSHOT JMS Message
Broker (null) is starting
14:47:57,261 INFO  [BrokerService] For help or more information please
see: http://www.logicblaze.com
14:47:57,262 ERROR [BrokerService] Failed to start ActiveMQ JMS
Message Broker. Reason: java.io.IOException: Journal is already opened
by this application.
java.io.IOException: Journal is already opened by this application.
        at org.activeio.journal.active.ControlFile.lock(ControlFile.java:73)
        at org.activeio.journal.active.LogFileManager.initialize(LogFileManager.java:119)
        at org.activeio.journal.active.LogFileManager.<init>(LogFileManager.java:100)
        at org.activeio.journal.active.JournalImpl.<init>(JournalImpl.java:101)
        at org.apache.activemq.store.DefaultPersistenceAdapterFactory.createJournal(DefaultPersistenceAdapterFactory.java:211)
        at org.apache.activemq.store.DefaultPersistenceAdapterFactory.getJournal(DefaultPersistenceAdapterFactory.java:147)
        at org.apache.activemq.store.DefaultPersistenceAdapterFactory.createPersistenceAdapter(DefaultPersistenceAdapterFactory.java:65)
        at org.apache.activemq.broker.BrokerService.createPersistenceAdapter(BrokerService.java:938)
        at org.apache.activemq.broker.BrokerService.getPersistenceAdapter(BrokerService.java:525)
        at org.apache.activemq.broker.BrokerService.createRegionBroker(BrokerService.java:901)
        at org.apache.activemq.broker.BrokerService.createBroker(BrokerService.java:862)
        at org.apache.activemq.broker.BrokerService.getBroker(BrokerService.java:442)
        at org.apache.activemq.broker.BrokerService.start(BrokerService.java:351)
        at org.apache.activemq.transport.vm.VMTransportFactory.doCompositeConnect(VMTransportFactory.java:102)
        at org.apache.activemq.transport.vm.VMTransportFactory.doConnect(VMTransportFactory.java:48)
        at org.apache.activemq.transport.TransportFactory.connect(TransportFactory.java:63)
        at org.apache.activemq.network.NetworkConnector.createLocalTransport(NetworkConnector.java:278)
        at org.apache.activemq.network.DiscoveryNetworkConnector.onServiceAdd(DiscoveryNetworkConnector.java:95)
        at org.apache.activemq.transport.discovery.simple.SimpleDiscoveryAgent.start(SimpleDiscoveryAgent.java:46)
        at org.apache.activemq.network.DiscoveryNetworkConnector.doStart(DiscoveryNetworkConnector.java:170)
        at org.apache.activemq.util.ServiceSupport.start(ServiceSupport.java:48)
        at org.apache.activemq.broker.BrokerService.startAllConnectors(BrokerService.java:1053)
        at org.apache.activemq.broker.BrokerService.start(BrokerService.java:359)
        at org.apache.activemq.xbean.XBeanBrokerService.afterPropertiesSet(XBeanBrokerService.java:43)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1058)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:363)
        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:226)
        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:147)
        at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:275)
        at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:318)
        at org.apache.xbean.spring.context.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:158)
        at org.apache.xbean.spring.context.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:48)
        at org.apache.activemq.xbean.XBeanBrokerFactory.createBroker(XBeanBrokerFactory.java:40)
        at org.apache.activemq.broker.BrokerFactory.createBroker(BrokerFactory.java:56)
        at com.bs.activemq.mbean.service.ActiveMQNetwork.createNetwork(ActiveMQNetwork.java:86)
        at com.bs.activemq.mbean.service.ActiveMQNetwork.start(ActiveMQNetwork.java:58)
        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:585)
        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.GeneratedMethodAccessor9.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        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)
        at org.jboss.deployment.MainDeployer.start(MainDeployer.java:989)
        at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:790)
        at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:753)
        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:585)
        at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
        at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
        at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:118)
        at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
        at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:127)
        at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
        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 $Proxy9.deploy(Unknown Source)
        at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:319)
        at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:507)
        at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:192)


----------------------------


The problem is driving me crazy.

I don't know why if I explicitly say to broker to jounalize in
/home/jcm/jl/activemq-data1 it show me the message:

14:47:53,423 INFO  [JournalPersistenceAdapter] Journal Recovery
Started from: Active Journal: using 5 x 20.0 Megs at:
/home/jcm/jl/activemq-data/journal

I really don't know why it start vm protocol and why it show the
message Journal is already opened by this application.

And obviously, have no idea have to solve the problem.

Could somebody please explain about the origin of this errors and how
to solve them ?

Thanks in advance

J

Mime
View raw message