日期:2014-05-16 浏览次数:20767 次
ActiveMQ5.7.0在官网下载
部署jdk及activeMQ后,使用命令${activeMQpath}/bin/activemq start
控制台打印
linux-qk6h:~ # /home/workspace/apache-activemq-5.7.0/bin/activemq start
INFO: Using default configuration
(you can configure options in one of these file: /etc/default/activemq /root/.activemqrc)
INFO: Invoke the following command to create a configuration file
/home/workspace/apache-activemq-5.7.0/bin/activemq setup [ /etc/default/activemq | /root/.activemqrc ]
INFO: Using java '/home/workspace/jdk1.6.0/bin/java'
INFO: Starting - inspect logfiles specified in logging.properties and log4j.properties to get details
INFO: pidfile created : '/home/workspace/apache-activemq-5.7.0/data/activemq-linux-qk6h.site.pid' (pid '16925')
本以为启动成功,使用地址http://127.0.0.1:8161/访问activemq后台,访问失败
遂又重启了一遍,并查看activemq日志tail -f ${activeMQpath}/data/activemq.log
打印如下:
2012-11-17 00:20:25,599 | INFO | Refreshing org.apache.activemq.xbean.XBeanBrokerFactory$1@1ef9157: startup date [Sat Nov 17 00:20:25 GMT-05:00 2012]; root of context hierarchy | org.apache.activemq.xbean.XBeanBrokerFactory$1 | main
2012-11-17 00:20:25,704 | ERROR | Failed to load: class path resource [activemq.xml], reason: Parser configuration exception parsing XML from class path resource [activemq.xml]; nested exception is javax.xml.parsers.ParserConfigurationException: Unable to validate
using XSD: Your JAXP provider [org.apache.crimson.jaxp.DocumentBuilderFactoryImpl@77a7f9] does not support XML Schema. Are you running on Java 1.4 with Apache Crimson? Upgrade to Apache Xerces (or Java 1.5) for full XSD support. | org.apache.activemq.xbean.XBeanBrokerFactory
| main
org.springframework.beans.factory.BeanDefinitionStoreException: Parser configuration exception parsing XML from class path resource [activemq.xml]; nested exception is javax.xml.parsers.ParserConfigurationException: Unable to validate using XSD: Your JAXP provider
[org.apache.crimson.jaxp.DocumentBuilderFactoryImpl@77a7f9] does not support XML Schema. Are you running on Java 1.4 with Apache Crimson? Upgrade to Apache Xerces (or Java 1.5) for full XSD support.
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:404)
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:334)
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:302)
at org.apache.xbean.spring.context.ResourceXmlApplicationContext.loadBeanDefinitions(ResourceXmlApplicationContext.java:111)
at org.apache.xbean.spring.context.ResourceXmlApplicationContext.loadBeanDefinitions(ResourceXmlApplicationContext.java:104)
at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:130)
at org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:467)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:397)
at org.apache.xbean.spring.context.ResourceXmlApplicationContext.<init>(ResourceXmlApplicationContext.java:64)
at org.apache.xbean.spring.context.ResourceXmlApplicationContext