activemq5.7.0+jdk1.6 can not boot in Linux environment __linux

Source: Internet
Author: User

ActiveMQ5.7.0 in the website download

After you deploy JDK and ACTIVEMQ, use the command ${activemqpath}/bin/activemq start

Console printing

linux-qk6h:~ #/HOME/WORKSPACE/APACHE-ACTIVEMQ-5.7.0/BIN/ACTIVEMQ Start
Info:using default configuration
(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 ')

This thought started successfully, use address http://127.0.0.1:8161/access ACTIVEMQ background, Access failed


So I restarted it again and looked at the ACTIVEMQ log tail-f ${activemqpath}/data/activemq.log

Print as follows:

2012-11-17 00:20:25,599 | INFO | refreshing org.apache.activemq.xbean.xbeanbrokerfactory$1@1ef9157:startup date [Sat Nov 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 res Ource [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 your running on Java 1.4 with Apache Crimson? Upgrade to Apache Xerces (or Java 1.5) for the 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 your running on Java 1.4 with Apache Crimson? Upgrade to Apache Xerces (or Java 1.5) for the 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.<init> ( RESOURCEXMLAPPLICATIONCONTEXT.JAVA:52)
At Org.apache.activemq.xbean.xbeanbrokerfactory$1.<init> (xbeanbrokerfactory.java:102)
At Org.apache.activemq.xbean.XBeanBrokerFactory.createApplicationContext (xbeanbrokerfactory.java:102)
At Org.apache.activemq.xbean.XBeanBrokerFactory.createBroker (xbeanbrokerfactory.java:66)
At Org.apache.activemq.broker.BrokerFactory.createBroker (brokerfactory.java:71)
At Org.apache.activemq.broker.BrokerFactory.createBroker (brokerfactory.java:54)
At Org.apache.activemq.console.command.StartCommand.startBroker (startcommand.java:115)
At Org.apache.activemq.console.command.StartCommand.runTask (startcommand.java:74)
At Org.apache.activemq.console.command.AbstractCommand.execute (abstractcommand.java:57)
At Org.apache.activemq.console.command.ShellCommand.runTask (shellcommand.java:148)
At Org.apache.activemq.console.command.AbstractCommand.execute (abstractcommand.java:57)
At Org.apache.activemq.console.command.ShellCommand.main (shellcommand.java:90)
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:597)
At Org.apache.activemq.console.Main.runTaskClass (main.java:262)
At Org.apache.activemq.console.Main.main (main.java:115)
caused By:javax.xml.parsers.ParserConfigurationException:Unable to validate using Xsd:your JAXP provider [org.apache.c RIMSON.JAXP.DOCUMENTBUILDERFACTORYIMPL@77A7F9] does not support XML Schema. Are your running on Java 1.4 with Apache Crimson? Upgrade to Apache Xerces (or Java 1.5) for the full XSD support.
At Org.springframework.beans.factory.xml.DefaultDocumentLoader.createDocumentBuilderFactory ( DEFAULTDOCUMENTLOADER.JAVA:102)
At Org.springframework.beans.factory.xml.DefaultDocumentLoader.loadDocument (defaultdocumentloader.java:70)
At Org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions ( xmlbeandefinitionreader.java:388)
... Num
Caused By:java.lang.IllegalArgumentException:No attributes are implemented
At Org.apache.crimson.jaxp.DocumentBuilderFactoryImpl.setAttribute (documentbuilderfactoryimpl.java:93)
At Org.springframework.beans.factory.xml.DefaultDocumentLoader.createDocumentBuilderFactory ( DEFAULTDOCUMENTLOADER.JAVA:99)
... More


Observation log, preliminary estimate is ACTIVEMQ XML parsing support package and JDK in the package conflict, According to the Org.apache.crimson.jaxp.DocumentBuilderFactoryImpl in the exception to find in the JDK, and finally found in my JDK a Crimson.jar package has the same class, check the packet temporarily useless, and then delete it, the finished again Start Activemq, start successfully, log as follows:



2012-11-17 09:23:49,027 | INFO | refreshing org.apache.activemq.xbean.xbeanbrokerfactory$1@1ef9157:startup date [Sat Nov 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:http://activemq.apache.org | 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 mb o F Usable Space | Org.apache.activemq.broker.BrokerService | Main
2012-11-17 09:25:53,162 | ERROR | Temporary Store limit is 51200 MB, whilst temporary data directory:/HOME/WORKSPACE/APACHE-ACTIVEMQ-5.7.0/DATA/LOCALH Ost/tmp_storage only has 50026 MB of usable | 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 Http://0.0.0.0: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 Http://0.0.0.0: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 Http://0.0.0.0: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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.