ActiveMQ5.7.0+jdk1.6在Linux环境下启动不了(2)

观察日志,初步估计是activemq自带xml解析支持包与jdk中的包相冲突,按照异常中的org.apache.crimson.jaxp.DocumentBuilderFactoryImpl这个类去JDK中查找,终于在我的JDK中找到一个crimson.jar包有一模一样的类,检查了下该包暂无用处,遂将其删除,完了重新启动activemq,启动成功,日志如下:

2012-11-17 09:23:49,027 | INFO  | Refreshing org.apache.activemq.xbean.XBeanBrokerFactory$1@1ef9157: startup date [Sat Nov 17 09:23:49 GMT-05:00 2012]; root of context hierarchy | org.apache.activemq.xbean.XBeanBrokerFactory$1 | main
2012-11-17 09:24:31,118 | INFO  | PListStore:[/home/workspace/apache-activemq-5.7.0/data/localhost/tmp_storage] started | org.apache.activemq.store.kahadb.plist.PListStore | main
2012-11-17 09:24:32,239 | INFO  | Using Persistence Adapter: KahaDBPersistenceAdapter[/home/workspace/apache-activemq-5.7.0/data/kahadb] | org.apache.activemq.broker.BrokerService | main
2012-11-17 09:25:13,057 | INFO  | Apache ActiveMQ 5.7.0 (localhost, ID:linux-qk6h.site-34726-1353162312898-0:1) is starting | org.apache.activemq.broker.BrokerService | main
2012-11-17 09:25:53,157 | INFO  | Listening for connections at: tcp://linux-qk6h.site:61616?maximumConnections=1000&wireformat.maxFrameSize=104857600 | org.apache.activemq.transport.TransportServerThreadSupport | main
2012-11-17 09:25:53,158 | INFO  | Connector openwire Started | org.apache.activemq.broker.TransportConnector | main
2012-11-17 09:25:53,161 | INFO  | Apache ActiveMQ 5.7.0 (localhost, ID:linux-qk6h.site-34726-1353162312898-0:1) started | org.apache.activemq.broker.BrokerService | main
2012-11-17 09:25:53,161 | INFO  | For help or more information please see: | org.apache.activemq.broker.BrokerService | main
2012-11-17 09:25:53,162 | WARN  | Store limit is 102400 mb, whilst the data directory: /home/workspace/apache-activemq-5.7.0/data/kahadb only has 50026 mb of usable space | org.apache.activemq.broker.BrokerService | main
2012-11-17 09:25:53,162 | ERROR | Temporary Store limit is 51200 mb, whilst the temporary data directory: /home/workspace/apache-activemq-5.7.0/data/localhost/tmp_storage only has 50026 mb of usable space | org.apache.activemq.broker.BrokerService | main
2012-11-17 09:25:53,493 | INFO  | jetty-7.6.7.v20120910 | org.eclipse.jetty.server.Server | main
2012-11-17 09:25:54,230 | INFO  | ActiveMQ WebConsole initialized. | org.apache.activemq.web.WebConsoleStarter | main
2012-11-17 09:25:54,230 | INFO  | started o.e.j.w.WebAppContext{/admin,file:/home/workspace/apache-activemq-5.7.0/webapps/admin/} | org.eclipse.jetty.server.handler.ContextHandler | main
2012-11-17 09:25:54,357 | INFO  | Initializing Spring FrameworkServlet 'dispatcher' | /admin | main
2012-11-17 09:25:54,734 | INFO  | ActiveMQ Console at :8161/admin | org.eclipse.jetty.webapp.WebAppContext | main
2012-11-17 09:25:54,756 | INFO  | started o.e.j.w.WebAppContext{/demo,file:/home/workspace/apache-activemq-5.7.0/webapps/demo/} | org.eclipse.jetty.server.handler.ContextHandler | main
2012-11-17 09:25:54,768 | INFO  | Apache ActiveMQ Web Demo at :8161/demo | org.eclipse.jetty.webapp.WebAppContext | main
2012-11-17 09:25:54,783 | INFO  | started o.e.j.w.WebAppContext{/fileserver,file:/home/workspace/apache-activemq-5.7.0/webapps/fileserver/} | org.eclipse.jetty.server.handler.ContextHandler | main
2012-11-17 09:25:54,799 | INFO  | RESTful file access application at :8161/fileserver | org.eclipse.jetty.webapp.WebAppContext | main
2012-11-17 09:25:54,839 | INFO  | Started SelectChannelConnector@0.0.0.0:8161 | org.eclipse.jetty.server.AbstractConnector | main

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:http://www.heiqu.com/06a0d44bbfbe707c879f292334f9d6c2.html