Details
-
Bug
-
Resolution: Done
-
Major
-
jboss-fuse-6.2
-
None
-
%
-
Description
The broker is not started at the first attmept and the following exception:
Exception on start: IOException parsing XML document from class path resource [profile:broker.xml]; nested exception is java.io.FileNotFoundException: class path resource [profile:broker.xml] cannot be opened because it does not exist org.springframework.beans.factory.BeanDefinitionStoreException: IOException parsing XML document from class path resource [profile:broker.xml]; nested exception is java.io.FileNotFoundException: class path resource [profile:broker.xml] cannot be opened because it does not exist
is printed during container start up.
See the log:
2015-03-03 22:16:20,500 | INFO | pool-56-thread-1 | ActiveMQServiceFactory | 175 - io.fabric8.mq.mq-fabric - 1.2.0.redhat-074 | Found zookeeper service for broker broker-nossl-b. 2015-03-03 22:16:20,500 | INFO | pool-56-thread-1 | ActiveMQServiceFactory | 175 - io.fabric8.mq.mq-fabric - 1.2.0.redhat-074 | Replicating broker broker-nossl-b is starting. 2015-03-03 22:16:20,500 | INFO | pool-56-thread-1 | ActiveMQServiceFactory | 175 - io.fabric8.mq.mq-fabric - 1.2.0.redhat-074 | Broker broker-nossl-b is being started. 2015-03-03 22:16:20,504 | INFO | pool-59-thread-1 | ActiveMQServiceFactory | 175 - io.fabric8.mq.mq-fabric - 1.2.0.redhat-074 | booting up a broker from: profile:broker.xml 2015-03-03 22:16:20,513 | INFO | pool-56-thread-1 | HttpServiceFactoryImpl | 101 - org.ops4j.pax.web.pax-web-runtime - 3.1.4 | Binding bundle: [io.fabric8.mq.mq-http-discovery [176]] to http service 2015-03-03 22:16:20,538 | INFO | pool-59-thread-1 | ActiveMQServiceFactory$1 | 192 - org.apache.servicemix.bundles.spring-context - 3.2.12.RELEASE_1 | Refreshing io.fabric8.mq.fabric.ActiveMQServiceFactory$1@6a44d16a: startup date [Tue Mar 03 22:16:20 CET 2015]; root of context hierarchy 2015-03-03 22:16:20,575 | INFO | pool-56-thread-1 | GitDataStoreImpl | 66 - io.fabric8.fabric-git - 1.2.0.redhat-074 | Starting up GitDataStore io.fabric8.git.internal.GitDataStoreImpl@1623da1a 2015-03-03 22:16:20,585 | INFO | pool-56-thread-1 | GitDataStoreImpl | 66 - io.fabric8.fabric-git - 1.2.0.redhat-074 | Using ZooKeeper SharedCount to react when master git repo is changed, so we can do a git pull to the local git repo. 2015-03-03 22:16:20,593 | INFO | pool-59-thread-1 | XBeanXmlBeanDefinitionReader | 191 - org.apache.servicemix.bundles.spring-beans - 3.2.12.RELEASE_1 | Loading XML bean definitions from class path resource [profile:broker.xml] 2015-03-03 22:16:20,594 | INFO | pool-59-thread-1 | ActiveMQServiceFactory | 175 - io.fabric8.mq.mq-fabric - 1.2.0.redhat-074 | Broker broker-nossl-b failed to start. Will try again in 10 seconds 2015-03-03 22:16:20,594 | ERROR | pool-59-thread-1 | ActiveMQServiceFactory | 175 - io.fabric8.mq.mq-fabric - 1.2.0.redhat-074 | Exception on start: IOException parsing XML document from class path resource [profile:broker.xml]; nested exception is java.io.FileNotFoundException: class path resource [profile:broker.xml] cannot be opened because it does not exist org.springframework.beans.factory.BeanDefinitionStoreException: IOException parsing XML document from class path resource [profile:broker.xml]; nested exception is java.io.FileNotFoundException: class path resource [profile:broker.xml] cannot be opened because it does not exist at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:342)[191:org.apache.servicemix.bundles.spring-beans:3.2.12.RELEASE_1] at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:303)[191:org.apache.servicemix.bundles.spring-beans:3.2.12.RELEASE_1] at org.apache.xbean.spring.context.ResourceXmlApplicationContext.loadBeanDefinitions(ResourceXmlApplicationContext.java:111)[200:org.apache.xbean.spring:3.18.0] at org.apache.xbean.spring.context.ResourceXmlApplicationContext.loadBeanDefinitions(ResourceXmlApplicationContext.java:104)[200:org.apache.xbean.spring:3.18.0] at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:130)[192:org.apache.servicemix.bundles.spring-context:3.2.12.RELEASE_1] at org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:539)[192:org.apache.servicemix.bundles.spring-context:3.2.12.RELEASE_1] at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:451)[192:org.apache.servicemix.bundles.spring-context:3.2.12.RELEASE_1] at org.apache.xbean.spring.context.ResourceXmlApplicationContext.<init>(ResourceXmlApplicationContext.java:64)[200:org.apache.xbean.spring:3.18.0] at org.apache.xbean.spring.context.ResourceXmlApplicationContext.<init>(ResourceXmlApplicationContext.java:52)[200:org.apache.xbean.spring:3.18.0] at io.fabric8.mq.fabric.ActiveMQServiceFactory$1.<init>(ActiveMQServiceFactory.java:197)[175:io.fabric8.mq.mq-fabric:1.2.0.redhat-074] at io.fabric8.mq.fabric.ActiveMQServiceFactory.createBroker(ActiveMQServiceFactory.java:197)[175:io.fabric8.mq.mq-fabric:1.2.0.redhat-074] at io.fabric8.mq.fabric.ActiveMQServiceFactory$ClusteredConfiguration.doStart(ActiveMQServiceFactory.java:590)[175:io.fabric8.mq.mq-fabric:1.2.0.redhat-074] at io.fabric8.mq.fabric.ActiveMQServiceFactory$ClusteredConfiguration.access$700(ActiveMQServiceFactory.java:413)[175:io.fabric8.mq.mq-fabric:1.2.0.redhat-074] at io.fabric8.mq.fabric.ActiveMQServiceFactory$ClusteredConfiguration$1.run(ActiveMQServiceFactory.java:545)[175:io.fabric8.mq.mq-fabric:1.2.0.redhat-074] at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)[:1.7.0_45] at java.util.concurrent.FutureTask.run(FutureTask.java:262)[:1.7.0_45] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)[:1.7.0_45] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)[:1.7.0_45] at java.lang.Thread.run(Thread.java:744)[:1.7.0_45] Caused by: java.io.FileNotFoundException: class path resource [profile:broker.xml] cannot be opened because it does not exist at org.springframework.core.io.ClassPathResource.getInputStream(ClassPathResource.java:171)[194:org.apache.servicemix.bundles.spring-core:3.2.12.RELEASE_1] at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:329)[191:org.apache.servicemix.bundles.spring-beans:3.2.12.RELEASE_1] ... 18 more 2015-03-03 22:16:20,667 | WARN | nload-2-thread-3 | JaxbUtil | 68 - io.fabric8.fabric-agent - 1.2.0.redhat-074 | Old style feature file without namespace found (URI: mvn:org.apache.activemq/activemq-karaf/5.11.0.redhat-620079/xml/features). This format is deprecated and support for it will soon be removed 2015-03-03 22:16:20,693 | WARN | nload-2-thread-3 | JaxbUtil | 68 - io.fabric8.fabric-agent - 1.2.0.redhat-074 | Old style feature file without namespace found (URI: mvn:org.apache.activemq/activemq-karaf/5.11.0.redhat-620079/xml/features-core). This format is deprecated and support for it will soon be removed 2015-03-03 22:16:20,776 | WARN | nload-2-thread-1 | JaxbUtil | 68 - io.fabric8.fabric-agent - 1.2.0.redhat-074 | Old style feature file without namespace found (URI: mvn:org.apache.activemq/activemq-karaf/5.11.0.redhat-620079/xml/features-core). This format is deprecated and support for it will soon be removed 2015-03-03 22:16:22,513 | INFO | pool-56-thread-1 | DefaultPullPushPolicy | 66 - io.fabric8.fabric-git - 1.2.0.redhat-074 | Performing a pull on remote URL: http://vpn1-51-217.bne.redhat.com:8181/git/fabric/ 2015-03-03 22:16:23,298 | INFO | pool-56-thread-1 | DefaultPullPushPolicy | 66 - io.fabric8.fabric-git - 1.2.0.redhat-074 | Pull result: [localUpdate=false,remoteUpdate=false,versions=[1.0, master],error=null] 2015-03-03 22:16:23,546 | WARN | pool-56-thread-1 | HostUtils | 74 - io.fabric8.runtime.fabric-runtime-container-karaf-registration - 1.2.0.redhat-074 | Could not find network address for preferred '127.0.0.1' when the addresses were: vpn1-51-217.bne.redhat.com/10.64.51.217, 192.168.1.60/192.168.1.60 2015-03-03 22:16:23,627 | WARN | pool-56-thread-1 | HostUtils | 74 - io.fabric8.runtime.fabric-runtime-container-karaf-registration - 1.2.0.redhat-074 | Could not find network address for preferred '127.0.0.1' when the addresses were: vpn1-51-217.bne.redhat.com/10.64.51.217, 192.168.1.60/192.168.1.60 2015-03-03 22:16:23,812 | INFO | pool-63-thread-1 | ZkDataStoreImpl | 64 - io.fabric8.fabric-core - 1.2.0.redhat-074 | Event CHILD_ADDED detected on /fabric/configs/versions/1.0/containers/broker-nossl-b-c0 with data mq-broker-a.broker-nossl-b. Sending notification. 2015-03-03 22:16:23,813 | INFO | pool-63-thread-1 | ZkDataStoreImpl | 64 - io.fabric8.fabric-core - 1.2.0.redhat-074 | Event CHILD_ADDED detected on /fabric/configs/ensemble/url with data ${zk:root/ip}:2181. Sending notification. 2015-03-03 22:16:23,813 | INFO | pool-63-thread-1 | ZkDataStoreImpl | 64 - io.fabric8.fabric-core - 1.2.0.redhat-074 | Event CHILD_ADDED detected on /fabric/configs/ensemble/password with data ZKENC=YWRtaW4=. Sending notification. 2015-03-03 22:16:23,814 | INFO | pool-63-thread-1 | ZkDataStoreImpl | 64 - io.fabric8.fabric-core - 1.2.0.redhat-074 | Event CHILD_ADDED detected on /fabric/configs/containers/broker-nossl-b-c0 with data 1.0. Sending notification. 2015-03-03 22:16:23,814 | INFO | pool-63-thread-1 | ZkDataStoreImpl | 64 - io.fabric8.fabric-core - 1.2.0.redhat-074 | Event CHILD_ADDED detected on /fabric/configs/ensemble with data 0000. Sending notification. 2015-03-03 22:16:28,134 | INFO | pool-56-thread-1 | HttpServiceFactoryImpl | 101 - org.ops4j.pax.web.pax-web-runtime - 3.1.4 | Binding bundle: [io.fabric8.fabric-git-server [103]] to http service 2015-03-03 22:16:30,700 | INFO | pool-59-thread-1 | ActiveMQServiceFactory | 175 - io.fabric8.mq.mq-fabric - 1.2.0.redhat-074 | booting up a broker from: profile:broker.xml 2015-03-03 22:16:30,701 | INFO | pool-59-thread-1 | ActiveMQServiceFactory$1 | 192 - org.apache.servicemix.bundles.spring-context - 3.2.12.RELEASE_1 | Refreshing io.fabric8.mq.fabric.ActiveMQServiceFactory$1@56b8a767: startup date [Tue Mar 03 22:16:30 CET 2015]; root of context hierarchy 2015-03-03 22:16:30,701 | INFO | pool-59-thread-1 | XBeanXmlBeanDefinitionReader | 191 - org.apache.servicemix.bundles.spring-beans - 3.2.12.RELEASE_1 | Loading XML bean definitions from URL [profile:broker.xml] 2015-03-03 22:16:30,958 | INFO | pool-59-thread-1 | DefaultListableBeanFactory | 191 - org.apache.servicemix.bundles.spring-beans - 3.2.12.RELEASE_1 | Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@6d6583e: defining beans [org.springframework.beans.factory.config.PropertyPlaceholderConfigurer#0,org.apache.activemq.xbean.XBeanBrokerService#0]; root of factory hierarchy 2015-03-03 22:16:30,995 | INFO | pool-59-thread-1 | BrokerService | 181 - org.apache.activemq.activemq-osgi - 5.11.0.redhat-620079 | Loaded the Bouncy Castle security provider. 2015-03-03 22:16:31,157 | INFO | pool-59-thread-1 | BrokerService | 181 - org.apache.activemq.activemq-osgi - 5.11.0.redhat-620079 | Using Persistence Adapter: Replicated LevelDB[/home/emedvede/containers/broker-nossl-b-c0/fabric8-karaf-1.2.0.redhat-074/databroker-nossl-b/leveldb/broker-nossl-b-c0, vpn1-51-217.bne.redhat.com:2181//fabric/registry/clusters/amq-replication-elections/a] 2015-03-03 22:16:31,365 | INFO | ispatcher thread | ZKClient | 181 - org.apache.activemq.activemq-osgi - 5.11.0.redhat-620079 | Starting StateChangeDispatcher 2015-03-03 22:16:31,366 | INFO | pool-59-thread-1 | ZooKeeper | 71 - io.fabric8.fabric-zookeeper - 1.2.0.redhat-074 | Initiating client connection, connectString=vpn1-51-217.bne.redhat.com:2181 sessionTimeout=2000 watcher=org.apache.activemq.leveldb.replicated.groups.ZKClient@3fc9cb31 2015-03-03 22:16:32,127 | INFO | -nossl-b] Task-1 | LevelDBClient | 181 - org.apache.activemq.activemq-osgi - 5.11.0.redhat-620079 | Using the pure java LevelDB implementation. 2015-03-03 22:16:32,132 | INFO | -nossl-b] Task-1 | SlaveLevelDBStore | 181 - org.apache.activemq.activemq-osgi - 5.11.0.redhat-620079 | Attaching to master: tcp://vpn1-51-217.bne.redhat.com:61619 2015-03-03 22:16:32,137 | INFO | -nossl-b] Task-1 | MasterElector | 181 - org.apache.activemq.activemq-osgi - 5.11.0.redhat-620079 | Slave started
Attachments
Issue Links
- relates to
-
ENTESB-2190 io.fabric8.common.util.MultiException when deploying more broker instances in fabric
- Closed