activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From xabhi <xabh...@gmail.com>
Subject Re: Unable to launch ActiveMQ v5.14.3 with Jetty
Date Thu, 05 Jan 2017 15:36:45 GMT
Below is the minimum configuration required to reproduce this problem. I am
using these files will freshly extracted ActiveMQ v5.14.3 with no changes.

I am not sure what is missing as this works fine with v5.11.1 with below
command:
~/apache-activemq-5.11.1/bin/activemq console
xbean:/u/choudhab/activemq/activemq-test/test-broker.xml

*Command used to run:*
~/apache-activemq-5.14.3/bin/activemq console
xbean:/u/choudhab/activemq/activemq-test/test-broker.xml


*Broker config file:*

<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="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/beans
                       
classpath:org/springframework/beans/factory/xml/spring-beans-2.0.xsd
                        http://activemq.apache.org/schema/core
                        classpath:activemq.xsd">
    

    <amq:broker persistent="true" brokerName="testbroker"
        useJmx="true" offlineDurableSubscriberTimeout="172800000"
        offlineDurableSubscriberTaskSchedule="3600000"
advisorySupport="false">

        <amq:managementContext>
            <amq:managementContext connectorPort="9006"
jmxDomainName="org.apache.activemq"/>
        </amq:managementContext>
        
        <amq:persistenceAdapter>
            <amq:mKahaDB
directory="/u/choudhab/activemq/activemq-test/kahadb"
journalMaxFileLength="64mb">
                <amq:filteredPersistenceAdapters>
                        
                    <amq:filteredKahaDB>
                        <amq:persistenceAdapter>
                            <amq:kahaDB/>
                        </amq:persistenceAdapter>
                    </amq:filteredKahaDB>
                </amq:filteredPersistenceAdapters>
            </amq:mKahaDB>
        </amq:persistenceAdapter>
        
       <amq:transportConnectors>
            <amq:transportConnector name="mqbrokerNioTransport"
                                   
uri="nio://0.0.0.0:61616?wireFormat.maxInactivityDuration=120000&amp;maximumConnections=1000&amp;wireFormat.maxFrameSize=157286400"
                                   
maximumProducersAllowedPerConnection="50"
                                   
maximumConsumersAllowedPerConnection="50" />

        </amq:transportConnectors>
        
    </amq:broker>  

    
    <import
resource="file:/u/choudhab/activemq/activemq-test/test-jetty.xml"/>

</beans>


*Jetty config file:*

<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://www.springframework.org/schema/beans
    http://www.springframework.org/schema/beans/spring-beans.xsd">
    
    <bean id="webappHandlers"
class="org.eclipse.jetty.server.handler.HandlerCollection">
        <property name="handlers">
            <list>
                <bean class="org.eclipse.jetty.webapp.WebAppContext">
                    <property name="contextPath" value="/"/>
                    <property name="resourceBase"
value="/u/choudhab/activemq/activemq-test/webapps"/>
                    <property name="logUrlOnStart" value="true"/>
                </bean>
                <bean id="defaultHandler"
class="org.eclipse.jetty.server.handler.DefaultHandler">
                </bean>
            </list>
        </property>
    </bean>

    <bean id="contexts"
class="org.eclipse.jetty.server.handler.ContextHandlerCollection">
    </bean>

    <bean id="requestLogImpl"
class="org.eclipse.jetty.server.NCSARequestLog">
        <property name="filename"
value="/u/choudhab/activemq/activemq-test/logs/jetty-yyyy_MM_dd.log"/>
        <property name="filenameDateFormat" value="yyyyMMdd"/>
        <property name="LogTimeZone" value="EDT"/>
        <property name="retainDays" value="7"/>
        <property name="append" value="true"/>
    </bean>

    <bean id="requestLog"
class="org.eclipse.jetty.server.handler.RequestLogHandler">
        <property name="requestLog">
            <ref bean="requestLogImpl"/>
        </property>
    </bean>

    <bean id="Server" class="org.eclipse.jetty.server.Server"
init-method="start" destroy-method="stop">
        <property name="connectors">
            <list>
                <bean id="Connector"
class="org.eclipse.jetty.server.nio.SelectChannelConnector">
                    <property name="port" value="8161"/>
                </bean>
            </list>
        </property>
        <property name="handler">
            <bean id="handlers"
class="org.eclipse.jetty.server.handler.HandlerCollection">
                <property name="handlers">
                    <list>
                        <ref bean="contexts"/>
                        <ref bean="webappHandlers"/>
                        <ref bean="requestLog"/>
                    </list>
                </property>
            </bean>
        </property>
    </bean>
</beans>




--
View this message in context: http://activemq.2283324.n4.nabble.com/Unable-to-launch-ActiveMQ-v5-14-3-with-Jetty-tp4720841p4720848.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Mime
View raw message