A common gotcha is putting the config out of order as to what the XML schema requires. It is highly intolerant of out of order entries.
On 8 December 2011 09:42, Torsten Mielke <[email protected]> wrote: > Hello, > > Your AMQ installation should contain some sample broker configuration that > uses a network bridge, e.g. activemq-static-network-broker2.xml. Check you > config against these samples. > > Or alternatively attach your config here and we may have a look. > > > Torsten Mielke > [email protected] > [email protected] > > > On Dec 8, 2011, at 2:04 AM, SchlauFuchs wrote: > >> Hi, >> >> I have installed a pretty default 5.5.1 broker configuration. It starts up >> nice and I can access it. My next step was to add the following block into >> it: >> >> <networkConnectors> >> <networkConnector uri="static:(tcp://host2:61616)"/> >> </networkConnectors> >> >> and then on start up the broker crashes faster than it can write to the log >> file. The generated log before it disappears in the process nirvana is >> >> 2011-12-08 00:56:02,854 | DEBUG | Now attempting to figure out the type of >> resource: activemq.xml | org.apache.activemq.xbean.XBeanBrokerFactory | main >> 2011-12-08 00:56:02,896 | INFO | Refreshing >> org.apache.activemq.xbean.XBeanBrokerFactory$1@11a06e38: startup date [Thu >> Dec 08 00:56:02 UTC 2011]; root of context hierarchy | >> org.apache.activemq.xbean.XBeanBrokerFactory$1 | main >> 2011-12-08 00:56:02,950 | INFO | Loading XML bean definitions from file >> [/opt/apache-activemq-5.5.1/conf/activemq.xml] | >> org.apache.xbean.spring.context.v2.XBeanXmlBeanDefinitionReader | main >> 2011-12-08 00:56:02,963 | DEBUG | Using JAXP provider >> [com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderFactoryImpl] | >> org.springframework.beans.factory.xml.DefaultDocumentLoader | main >> 2011-12-08 00:56:02,990 | DEBUG | Loading schema mappings from >> [META-INF/spring.schemas] | >> org.springframework.beans.factory.xml.PluggableSchemaResolver | main >> 2011-12-08 00:56:02,996 | DEBUG | Loaded schema mappings: >> {http://www.springframework.org/schema/tx/spring-tx-2.5.xsd=org/springframework/transaction/config/spring-tx-2.5.xsd, >> http://www.springframework.org/schema/jms/spring-jms-2.5.xsd=org/springframework/jms/config/spring-jms-2.5.xsd, >> http://camel.apache.org/schema/osgi/camel-osgi-2.0.0.xsd=camel-osgi.xsd, >> http://www.springframework.org/schema/util/spring-util-3.0.xsd=org/springframework/beans/factory/xml/spring-util-3.0.xsd, >> http://www.springframework.org/schema/tool/spring-tool.xsd=org/springframework/beans/factory/xml/spring-tool-3.0.xsd, >> http://camel.apache.org/schema/spring/camel-spring-2.3.0.xsd=camel-spring.xsd, >> http://camel.apache.org/schema/osgi/camel-osgi-2.5.0.xsd=camel-osgi.xsd, >> http://www.springframework.org/schema/util/spring-util-2.0.xsd=org/springframework/beans/factory/xml/spring-util-2.0.xsd, >> http://www.springframework.org/schema/context/spring-context.xsd=org/springframework/context/config/spring-context-3.0.xsd, >> http://activemq.apache.org/schema/core/activemq-core-5.1.0.xsd=activemq.xsd, >> http://www.springframework.org/schema/context/spring-context-3.0.xsd=org/springframework/context/config/spring-context-3.0.xsd, >> http://www.springframework.org/schema/util/spring-util-2.5.xsd=org/springframework/beans/factory/xml/spring-util-2.5.xsd, >> http://activemq.apache.org/schema/core=activemq.xsd, >> http://www.springframework.org/schema/mvc/spring-mvc.xsd=org/springframework/web/servlet/config/spring-mvc-3.0.xsd, >> http://activemq.apache.org/schema/core/activemq-core-5.4.2.xsd=activemq.xsd, >> http://activemq.apache.org/schema/core/activemq-core-5.0.0.xsd=activemq.xsd, >> http://camel.apache.org/schema/spring/camel-spring-2.2.0.xsd=camel-spring.xsd, >> http://camel.apache.org/schema/osgi/camel-osgi-2.4.0.xsd=camel-osgi.xsd, >> http://camel.apache.org/schema/spring/camel-spring.xsd=camel-spring.xsd, >> http://www.springframework.org/schema/util/spring-util.xsd=org/springframework/beans/factory/xml/spring-util-3.0.xsd, >> http://camel.apache.org/schema/spring/camel-spring-2.0-M3.xsd=camel-spring.xsd, >> http://activemq.apache.org/schema/core/activemq-core-5.3.2.xsd=activemq.xsd, >> http://activemq.apache.org/schema/core/activemq-core-5.5.0.xsd=activemq.xsd, >> http://www.springframework.org/schema/aop/spring-aop-3.0.xsd=org/springframework/aop/config/spring-aop-3.0.xsd, >> http://camel.apache.org/schema/spring/v2.7=camel-spring-v2.7.xsd, >> http://www.springframework.org/schema/mvc/spring-mvc-3.0.xsd=org/springframework/web/servlet/config/spring-mvc-3.0.xsd, >> http://camel.apache.org/schema/spring/camel-spring-2.7.0.xsd=camel-spring.xsd, >> http://www.springframework.org/schema/beans/spring-beans.xsd=org/springframework/beans/factory/xml/spring-beans-3.0.xsd, >> http://camel.apache.org/schema/spring/camel-spring-2.1.0.xsd=camel-spring.xsd, >> http://activemq.apache.org/schema/core/activemq-core-5.4.1.xsd=activemq.xsd, >> http://www.springframework.org/schema/lang/spring-lang-3.0.xsd=org/springframework/scripting/config/spring-lang-3.0.xsd, >> http://www.springframework.org/schema/context/spring-context-2.5.xsd=org/springframework/context/config/spring-context-2.5.xsd, >> http://camel.apache.org/schema/osgi/camel-osgi-2.3.0.xsd=camel-osgi.xsd, >> http://activemq.org/config/1.0=activemq.xsd, >> http://activemq.apache.org/schema/core/activemq-core.xsd=activemq.xsd, >> http://www.springframework.org/schema/tool/spring-tool-3.0.xsd=org/springframework/beans/factory/xml/spring-tool-3.0.xsd, >> http://www.springframework.org/schema/aop/spring-aop-2.0.xsd=org/springframework/aop/config/spring-aop-2.0.xsd, >> http://www.springframework.org/schema/jee/spring-jee-3.0.xsd=org/springframework/ejb/config/spring-jee-3.0.xsd, >> http://camel.apache.org/schema/osgi/camel-osgi-2.0-M3.xsd=camel-osgi.xsd, >> http://www.springframework.org/schema/beans/spring-beans-3.0.xsd=org/springframework/beans/factory/xml/spring-beans-3.0.xsd, >> http://activemq.org/config/1.0/1.0.xsd=activemq.xsd, >> http://www.springframework.org/schema/jee/spring-jee.xsd=org/springframework/ejb/config/spring-jee-3.0.xsd, >> http://camel.apache.org/schema/spring/camel-spring-2.0-M2.xsd=camel-spring.xsd, >> http://www.springframework.org/schema/jms/spring-jms.xsd=org/springframework/jms/config/spring-jms-3.0.xsd, >> http://www.springframework.org/schema/aop/spring-aop-2.5.xsd=org/springframework/aop/config/spring-aop-2.5.xsd, >> http://activemq.apache.org/schema/core/activemq-core-5.3.1.xsd=activemq.xsd, >> http://www.springframework.org/schema/lang/spring-lang-2.0.xsd=org/springframework/scripting/config/spring-lang-2.0.xsd, >> http://www.springframework.org/schema/task/spring-task.xsd=org/springframework/scheduling/config/spring-task-3.0.xsd, >> http://www.springframework.org/schema/tool/spring-tool-2.0.xsd=org/springframework/beans/factory/xml/spring-tool-2.0.xsd, >> http://camel.apache.org/schema/spring=camel-spring.xsd, >> http://activemq.apache.org/schema/core/activemq-core-5.4.0.xsd=activemq.xsd, >> http://www.springframework.org/schema/tx/spring-tx-3.0.xsd=org/springframework/transaction/config/spring-tx-3.0.xsd, >> http://www.springframework.org/schema/lang/spring-lang-2.5.xsd=org/springframework/scripting/config/spring-lang-2.5.xsd, >> http://www.springframework.org/schema/jee/spring-jee-2.0.xsd=org/springframework/ejb/config/spring-jee-2.0.xsd, >> http://camel.apache.org/schema/spring/camel-spring-2.5.0.xsd=camel-spring.xsd, >> http://camel.apache.org/schema/spring/camel-spring-2.0.0.xsd=camel-spring.xsd, >> http://www.springframework.org/schema/tool/spring-tool-2.5.xsd=org/springframework/beans/factory/xml/spring-tool-2.5.xsd, >> http://camel.apache.org/schema/osgi/camel-osgi-2.2.0.xsd=camel-osgi.xsd, >> http://www.springframework.org/schema/jee/spring-jee-2.5.xsd=org/springframework/ejb/config/spring-jee-2.5.xsd, >> http://camel.apache.org/schema/osgi/camel-osgi-2.0-M2.xsd=camel-osgi.xsd, >> http://www.springframework.org/schema/task/spring-task-3.0.xsd=org/springframework/scheduling/config/spring-task-3.0.xsd, >> http://camel.apache.org/schema/spring/camel-spring-2.0-M1.xsd=camel-spring.xsd, >> http://activemq.apache.org/schema/core/activemq-core-5.3.0.xsd=activemq.xsd, >> http://camel.apache.org/schema/osgi/camel-osgi.xsd=camel-osgi.xsd, >> http://www.springframework.org/schema/lang/spring-lang.xsd=org/springframework/scripting/config/spring-lang-3.0.xsd, >> http://www.springframework.org/schema/jms/spring-jms-3.0.xsd=org/springframework/jms/config/spring-jms-3.0.xsd, >> http://www.springframework.org/schema/beans/spring-beans-2.0.xsd=org/springframework/beans/factory/xml/spring-beans-2.0.xsd, >> http://www.springframework.org/schema/tx/spring-tx.xsd=org/springframework/transaction/config/spring-tx-3.0.xsd, >> http://camel.apache.org/schema/osgi/camel-osgi-2.7.0.xsd=camel-osgi.xsd, >> http://camel.apache.org/schema/osgi/camel-osgi-2.1.0.xsd=camel-osgi.xsd, >> http://www.springframework.org/schema/beans/spring-beans-2.5.xsd=org/springframework/beans/factory/xml/spring-beans-2.5.xsd, >> http://www.springframework.org/schema/tx/spring-tx-2.0.xsd=org/springframework/transaction/config/spring-tx-2.0.xsd, >> http://activemq.apache.org/schema/core/activemq-core-5.2.0.xsd=activemq.xsd, >> http://camel.apache.org/schema/osgi/camel-osgi-2.0-M1.xsd=camel-osgi.xsd, >> http://www.springframework.org/schema/aop/spring-aop.xsd=org/springframework/aop/config/spring-aop-3.0.xsd, >> http://camel.apache.org/schema/spring/camel-spring-2.4.0.xsd=camel-spring.xsd} >> | org.springframework.beans.factory.xml.PluggableSchemaResolver | main >> 2011-12-08 00:56:02,999 | DEBUG | Found XML schema >> [http://www.springframework.org/schema/beans/spring-beans-2.0.xsd] in >> classpath: org/springframework/beans/factory/xml/spring-beans-2.0.xsd | >> org.springframework.beans.factory.xml.PluggableSchemaResolver | main >> 2011-12-08 00:56:03,043 | DEBUG | Found XML schema >> [http://activemq.apache.org/schema/core/activemq-core.xsd] in classpath: >> activemq.xsd | org.springframework.beans.factory.xml.PluggableSchemaResolver >> | main >> >> No errors, warnings or anything that can point me to the right position. >> >> The broker name is alphanum, no fancy characters. >> >> How can I solve this mystery? >> >> Cheers, >> Kai >> >> >> >> -- >> View this message in context: >> http://activemq.2283324.n4.nabble.com/broker-fails-to-start-with-networkConnector-tp4171153p4171153.html >> Sent from the ActiveMQ - User mailing list archive at Nabble.com. > > > > >
