This works in 3.2.2.  What is the proper way to do this now?  Why would
there be a scheme on an XML configuration file?

Exception:

com.caucho.server.dispatch.ServletConfigImpl.createServlet
java.lang.IllegalArgumentException: Invalid broker URI, no scheme
specified: activemq.xml
        at
org.apache.activemq.broker.BrokerFactory.createBroker(BrokerFactory.java:53)
        at
org.apache.activemq.ra.ActiveMQResourceAdapter.start(ActiveMQResourceAdapter.java:79)
        at org.jencks.JCAContainer.afterPropertiesSet(JCAContainer.java:65)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBea
nFactory.java:1059)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactor
y.java:363)
        at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:226)
        at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:147)
        at
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:1
76)
        at
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver
.java:105)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableB
eanFactory.java:1013)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFact
ory.java:824)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactor
y.java:345)
        at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:226)
        at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:147)
        at
org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.
java:275)
        at
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:320)
        at
org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:87)
        at
org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:72)
        at
org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:63)

Configuration:

        <bean id="jms.resourceAdapter"
class="org.apache.activemq.ra.ActiveMQResourceAdapter">
                <property name="brokerXmlConfig">
                        <value>activemq.xml</value>
                </property>

                <property name="initialRedeliveryDelay">
                        <value>2000</value>
                </property>

                <property name="maximumRedeliveries">
                        <value>10</value>
                </property>

                <property name="redeliveryBackOffMultiplier">
                        <value>2</value>
                </property>

                <property name="serverUrl">
                        <value>vm://localhost</value>
                </property>
        </bean>

-- 
Christopher G. Stach II

Reply via email to