Linux 下部署activeMQ报错。

问题描述

activeMQ和spring结合使用,配置文件如下:<?xmlversion="1.0"encoding="UTF-8"?><!--LicensedtotheApacheSoftwareFoundation(ASF)underoneormorecontributorlicenseagreements.SeetheNOTICEfiledistributedwiththisworkforadditionalinformationregardingcopyrightownership.TheASFlicensesthisfiletoYouundertheApacheLicense,Version2.0(the"License");youmaynotusethisfileexceptincompliancewiththeLicense.YoumayobtainacopyoftheLicenseathttp://www.apache.org/licenses/LICENSE-2.0Unlessrequiredbyapplicablelaworagreedtoinwriting,softwaredistributedundertheLicenseisdistributedonan"ASIS"BASIS,WITHOUTWARRANTIESORCONDITIONSOFANYKIND,eitherexpressorimplied.SeetheLicenseforthespecificlanguagegoverningpermissionsandlimitationsundertheLicense.--><!--STARTSNIPPET:xbean--><beansxmlns="http://www.springframework.org/schema/beans"xmlns:amq="http://activemq.apache.org/schema/core"xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"xsi:schemaLocation="http://www.springframework.org/schema/beanshttp://www.springframework.org/schema/beans/spring-beans-2.5.xsdhttp://activemq.apache.org/schema/corehttp://activemq.apache.org/schema/core/activemq-core-5.5.0.xsd"><beanid="placeholderConfig"class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"><propertyname="location"><value>classpath:init.properties</value></property></bean><beanclass="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"/><!--MySqlDataSourceSampleSetup--><beanid="dataSource"class="org.apache.commons.dbcp.BasicDataSource"destroy-method="close"><propertyname="driverClassName"><value>${dataSource.driverClassName}</value></property><propertyname="url"><value>${dataSource.url}</value></property><propertyname="username"><value>${dataSource.username}</value></property><propertyname="password"><value>${dataSource.password}</value></property><propertyname="poolPreparedStatements"><value>${dataSource.poolPrepared}</value></property><propertyname="initialSize"><value>${dataSource.initialSize}</value></property><propertyname="maxIdle"><value>${dataSource.maxIdle}</value></property><propertyname="minIdle"><value>${dataSource.minIdle}</value></property><propertyname="maxActive"><value>${dataSource.maxActive}</value></property><propertyname="removeAbandoned"><value>${dataSource.removeAbandoned}</value></property><propertyname="removeAbandonedTimeout"><value>${dataSource.removeAbandonedTimeout}</value></property><propertyname="maxWait"><value>${dataSource.maxWait}</value></property></bean><brokerstart="true"useJmx="true"xmlns="http://activemq.apache.org/schema/core"brokerName="testbroker"persistent="true"><destinationPolicy><policyMap><policyEntries><policyEntryqueue=">"producerFlowControl="true"memoryLimit="${broker.queue.memoryLimit}"><pendingMessageLimitStrategy><prefetchRatePendingMessageLimitStrategymultiplier="2.5"/></pendingMessageLimitStrategy></policyEntry><policyEntrytopic=">"producerFlowControl="true"memoryLimit="${broker.topic.memoryLimit}"><pendingSubscriberPolicy><vmCursor/></pendingSubscriberPolicy></policyEntry></policyEntries></policyMap></destinationPolicy><managementContext><managementContextcreateConnector="false"/></managementContext><networkConnectors><networkConnectoruri="static:${broker.tcp.server.url}"name="bridge"dynamicOnly="false"conduitSubscriptions="false"decreaseNetworkConsumerPriority="false"><dynamicallyIncludedDestinations><queuephysicalName="${broker.tcp.dynamical.queueName}"/><topicphysicalName="${broker.tcp.dynamical.topicName}"/></dynamicallyIncludedDestinations></networkConnector></networkConnectors><!--persistenceAdapter持久化配置--><!--dataSource配置数据库--><!--createTablesOnStartup启动时创建数据表--><persistenceAdapter><jdbcPersistenceAdapterdataSource="#dataSource"createTablesOnStartup="true"useDatabaseLock="false"></jdbcPersistenceAdapter></persistenceAdapter><plugins><simpleAuthenticationPlugin><!--该部分是配置发送或接受的用户名和密码,以及所处的用户组--><users><authenticationUserusername="${broker.systemUser.name}"password="${broker.systemUser.password}"groups="users,admins"/></users></simpleAuthenticationPlugin><!--useJAAStoauthenticateusingthelogin.configfileontheclasspathtoconfigureJAAS--><!--以下采用的是JAAS的管理机制来配置各种角色的权限<jaasAuthenticationPluginconfiguration="activemq-domain"/>--><!--letsconfigureadestinationbasedauthorizationmechanism--><authorizationPlugin><map><authorizationMap><authorizationEntries><authorizationEntryqueue=">"read="admins"write="admins"admin="admins"/></authorizationEntries></authorizationMap></map></authorizationPlugin></plugins><systemUsage><systemUsage><memoryUsage><memoryUsagelimit="50mb"/></memoryUsage><storeUsage><storeUsagelimit="100mb"name="foo"/></storeUsage><tempUsage><tempUsagelimit="100mb"/></tempUsage></systemUsage></systemUsage><transportConnectors><transportConnectorname="transConnector"uri="${broker.tcp.server.url}"/></transportConnectors></broker><commandAgentxmlns="http://activemq.apache.org/schema/core"brokerUrl="vm://localhost"username="${broker.systemUser.name}"password="${broker.systemUser.password}"/></beans><!--ENDSNIPPET:xbean-->

在windows启动没有出现任何问题,在部署到linux服务器时,一直在报以下异常:[main][org.apache.activemq.broker.TransportConnector][INFO]-Connectorvm://localhostStarted[ActiveMQTransport:tcp://localhost/127.0.0.1:8509][org.apache.activemq.broker.TransportConnector][INFO]-Connectorvm://testbrokerStopped[ActiveMQTransport:tcp://localhost/127.0.0.1:8509][org.apache.activemq.network.DemandForwardingBridgeSupport][INFO]-testbrokerbridgetotestbrokerstopped[StartLocalBridge:localBroker=vm://testbroker#0][org.apache.activemq.network.DemandForwardingBridgeSupport][WARN]-BridgewasdisposedbeforethestartLocalBridge()methodwasfullyexecuted.[StartLocalBridge:localBroker=vm://testbroker#0][org.apache.activemq.network.DemandForwardingBridgeSupport][WARN]-Networkconnectionbetweenvm://testbroker#0andtcp://localhost/127.0.0.1:8509(testbroker)wasinterruptedduringestablishment.

在Connectorvm://localhostStarted后,马上又Connectorvm://testbrokerStopped,vm连接启动之后马上又停了,导致commandAgent无法和TransportConnector连接,请教各位,这个是什么原因造成的?PS:在windows下配置完全一样,但没出现任何问题。

时间: 2024-09-08 11:30:42

Linux 下部署activeMQ报错。的相关文章

linux下使用jstack报错,牛人速来支援

问题描述 linux下使用jstack报错,牛人速来支援 jstack -F 20940 Attaching to process ID 20940, please wait... sun.jvm.hotspot.debugger.NoSuchSymbolException: Could not find symbol "gHotSpotVMTypes" in any of the known library names (libjvm.so, libjvm_g.so, gamma_g

linux下xhost命令报错:unable to open display的解决办法

  linux下执行xhost命令报错:unable to open display,解决方法,linux 下通过xhost进入图形界面,经常会出现报错"unable to open display" linux下的操作步骤如下: 1.复制代码: 复制内容到剪贴板 [root@localhost ~]# vncserver New 'localhost:1 (root)' desktop is localhost:1 Starting applications specified in

在linux下的weblogic报错,但是 在window下的tomcat不报错!!十万火急!

问题描述 对URL参数加密之后再重定向跳转的时候就报错了!报错信息SecurityHelper类packagecom.huarun;importjava.security.*;importjavax.crypto.*;importjavax.crypto.spec.*;publicclassSecurityHelper{privatefinalstaticintITERATIONS=20;publicstaticStringencrypt(Stringkey,StringplainText)th

求助Linux下安装JDK报错

问题描述 各位大侠Linux下安装JDK时出现以下错误error:Faileddependencies:glibc>=2.1.2-11isneededbyjdk-1.5.0_19-fcs.i586sh-utils>=2.0-1isneededbyjdk-1.5.0_19-fcs.i586fileutils>=4.0-8isneededbyjdk-1.5.0_19-fcs.i586gawk>=3.0.4-1isneededbyjdk-1.5.0_19-fcs.i586textutil

linux下启动mysql报错问题总结

mysql Starting MySQL..The server quit without updating PID file 1.可能是/usr/local/mysql/data/rekfan.pid文件没有写的权限 解决方法 :给予权限,执行 "chown -R mysql:mysql /var/data" "chmod -R 755 /usr/local/mysql/data"  然后重新启动mysqld! 2.可能进程里已经存在mysql进程 解决方法:用命

linux下 启动工程报错,修改了地址也不管用,求指点!

问题描述 ERROR: transport error 202: bind failed: Address already in useERROR: JDWP Transport dt_socket failed to initialize, TRANSPORT_INIT(510)JDWP exit error AGENT_ERROR_TRANSPORT_INIT(197): No transports initialized [../../../src/share/back/debugInit

java-linux 部署项目启动时报struts.apache.org windows下项目没报错

问题描述 linux 部署项目启动时报struts.apache.org windows下项目没报错 10:34:24,218 ERROR [STDERR] Nested exception: 10:34:24,218 ERROR [STDERR] java.net.UnknownHostException:0:34:23,146 INFO [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=D

linux系统下安装Maven报错如下怎么解决?

问题描述 linux系统下安装Maven报错如下怎么解决? 在使用mvn install命令时出错的

项目移到linux环境下时tomcat报错 java.util.zip.ZipException: invalid END header

问题描述 我把我的一个windows环境下的项目移到linux环境下时tomcat报错,报错如下:java.util.zip.ZipException: invalid END header (bad central directory offset)at java.util.zip.ZipFile.open(Native Method)at java.util.zip.ZipFile.<init>(ZipFile.java:114)at java.util.jar.JarFile.<i