Details
Description
When I turn on DEBUG view in logging, I notice the following exception:
DEBUG org.activemq.spring.ActiveMQDtdResolver: Trying to locate http://activemq.org/dtd/3.2/activemq.dtd
java.io.FileNotFoundException: http://activemq.org/dtd/3.2/activemq.dtd
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
at java.net.URL.openStream(Unknown Source)
at org.activemq.spring.ActiveMQDtdResolver.resolveRemotely(ActiveMQDtdResolver.java:82)
at org.activemq.spring.ActiveMQDtdResolver.resolveEntity(ActiveMQDtdResolver.java:59)
at org.apache.xerces.util.EntityResolverWrapper.resolveEntity(Unknown Source)
at org.apache.xerces.impl.XMLEntityManager.resolveEntity(Unknown Source)
at org.apache.xerces.impl.XMLDocumentScannerImpl$DTDDispatcher.dispatch(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)
at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source)
at javax.xml.parsers.DocumentBuilder.parse(Unknown Source)
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:145)
at org.activemq.spring.ActiveMQBeanFactory.<init>(ActiveMQBeanFactory.java:86)
at org.activemq.spring.ActiveMQBeanFactory.<init>(ActiveMQBeanFactory.java:57)
at org.activemq.spring.SpringBrokerContainerFactory.createBrokerContainer(SpringBrokerContainerFactory.java:86)
at org.activemq.broker.BrokerContext.getBrokerContainerByName(BrokerContext.java:50)
at org.activemq.ActiveMQConnectionFactory.getContainer(ActiveMQConnectionFactory.java:838)
at org.activemq.ActiveMQConnectionFactory.createBrokerConnector(ActiveMQConnectionFactory.java:845)
at org.activemq.ActiveMQConnectionFactory.createTransportChannel(ActiveMQConnectionFactory.java:815)
at org.activemq.ActiveMQConnectionFactory.createConnection(ActiveMQConnectionFactory.java:608)
at org.activemq.ActiveMQConnectionFactory.createConnection(ActiveMQConnectionFactory.java:598)
at org.mule.providers.jms.Jms11Support.createConnection(Jms11Support.java:68)
at org.mule.providers.jms.JmsConnector.createConnection(JmsConnector.java:203)
at org.mule.providers.jms.JmsConnector.doConnect(JmsConnector.java:216)
at org.mule.providers.AbstractConnector.connect(AbstractConnector.java:757)
at org.mule.providers.SingleAttemptConnectionStrategy.doConnect(SingleAttemptConnectionStrategy.java:32)
at org.mule.providers.AbstractConnectionStrategy.connect(AbstractConnectionStrategy.java:67)
at org.mule.providers.AbstractConnector.connect(AbstractConnector.java:751)
at org.mule.providers.SingleAttemptConnectionStrategy.doConnect(SingleAttemptConnectionStrategy.java:32)
at org.mule.providers.AbstractConnectionStrategy.connect(AbstractConnectionStrategy.java:67)
at org.mule.providers.AbstractConnector.startConnector(AbstractConnector.java:222)
at org.mule.MuleManager.startConnectors(MuleManager.java:723)
at org.mule.MuleManager.start(MuleManager.java:684)
In the above example, ActiveMQ is being initialized by Mule.