Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8137785
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T11:16:26+00:00 2026-06-06T11:16:26+00:00

I need to setup ActiveMQ with MySQL which i follow this article http://note19.com/2007/06/23/configure-activemq-with-mysql/ I

  • 0

I need to setup ActiveMQ with MySQL which i follow this article
http://note19.com/2007/06/23/configure-activemq-with-mysql/

I found if i have below config. MQ can’t start

 <bean id="mysql-ds"
       class="org.apache.commons.dbcp.BasicDataSource"
       destroy-method="close">
    <property name="driverClassName" value="com.mysql.jdbc.Driver"/>
    <property name="url"
            value="jdbc:mysql://localhost/activemq?relaxAutoCommit=true"/>
    <property name="username" value="xxxx"/>
    <property name="password" value="xxxx"/>
    <property name="poolPreparedStatements" value="true"/>
  </bean>

Below is the error

2012-05-25 18:40:46,565 | ERROR | Failed to load: class path resource
[activemq.xml], reason: Line 109 in XML document from class path
resource [activemq.xml] is invalid; nested exception is
org.xml.sax.SAXParseException; lineNumber: 109; columnNumber: 40;
cvc-complex-type.2.4.a: Invalid content was found starting with
element ‘bean’. One of
‘{“http://activemq.apache.org/schema/core&#8221;:adminView,
“http://activemq.apache.org/schema/core&#8221;:brokerContext,
“http://activemq.apache.org/schema/core&#8221;:consumerSystemUsage,
“http://activemq.apache.org/schema/core&#8221;:destinationFactory,
“http://activemq.apache.org/schema/core&#8221;:destinationInterceptors,
“http://activemq.apache.org/schema/core&#8221;:destinationPolicy,
“http://activemq.apache.org/schema/core&#8221;:destinations,
“http://activemq.apache.org/schema/core&#8221;:ioExceptionHandler,
“http://activemq.apache.org/schema/core&#8221;:jmsBridgeConnectors,
“http://activemq.apache.org/schema/core&#8221;:managementContext,
“http://activemq.apache.org/schema/core&#8221;:messageAuthorizationPolicy,
“http://activemq.apache.org/schema/core&#8221;:networkConnectorURIs,
“http://activemq.apache.org/schema/core&#8221;:networkConnectors,
“http://activemq.apache.org/schema/core&#8221;:persistenceAdapter,
“http://activemq.apache.org/schema/core&#8221;:persistenceFactory,
“http://activemq.apache.org/schema/core&#8221;:persistenceTaskRunnerFactory,
“http://activemq.apache.org/schema/core&#8221;:plugins,
“http://activemq.apache.org/schema/core&#8221;:producerSystemUsage,
“http://activemq.apache.org/schema/core&#8221;:proxyConnectors,
“http://activemq.apache.org/schema/core&#8221;:regionBroker,
“http://activemq.apache.org/schema/core&#8221;:services,
“http://activemq.apache.org/schema/core&#8221;:shutdownHooks,
“http://activemq.apache.org/schema/core&#8221;:sslContext,
“http://activemq.apache.org/schema/core&#8221;:systemUsage,
“http://activemq.apache.org/schema/core&#8221;:taskRunnerFactory,
“http://activemq.apache.org/schema/core&#8221;:tempDataStore,
“http://activemq.apache.org/schema/core&#8221;:transportConnectorURIs,
“http://activemq.apache.org/schema/core&#8221;:transportConnectors,
WC[##other:”http://activemq.apache.org/schema/core”%5D}’ is expected. |
org.apache.activemq.xbean.XBeanBrokerFactory | main
org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException:
Line 109 in XML document from class path resource [activemq.xml] is
invalid; nested exception is org.xml.sax.SAXParseException;
lineNumber: 109; columnNumber: 40; cvc-complex-type.2.4.a: Invalid
content was found starting with element ‘bean’. One of
‘{“http://activemq.apache.org/schema/core&#8221;:adminView,
“http://activemq.apache.org/schema/core&#8221;:brokerContext,
“http://activemq.apache.org/schema/core&#8221;:consumerSystemUsage,
“http://activemq.apache.org/schema/core&#8221;:destinationFactory,
“http://activemq.apache.org/schema/core&#8221;:destinationInterceptors,
“http://activemq.apache.org/schema/core&#8221;:destinationPolicy,
“http://activemq.apache.org/schema/core&#8221;:destinations,
“http://activemq.apache.org/schema/core&#8221;:ioExceptionHandler,
“http://activemq.apache.org/schema/core&#8221;:jmsBridgeConnectors,
“http://activemq.apache.org/schema/core&#8221;:managementContext,
“http://activemq.apache.org/schema/core&#8221;:messageAuthorizationPolicy,
“http://activemq.apache.org/schema/core&#8221;:networkConnectorURIs,
“http://activemq.apache.org/schema/core&#8221;:networkConnectors,
“http://activemq.apache.org/schema/core&#8221;:persistenceAdapter,
“http://activemq.apache.org/schema/core&#8221;:persistenceFactory,
“http://activemq.apache.org/schema/core&#8221;:persistenceTaskRunnerFactory,
“http://activemq.apache.org/schema/core&#8221;:plugins,
“http://activemq.apache.org/schema/core&#8221;:producerSystemUsage,
“http://activemq.apache.org/schema/core&#8221;:proxyConnectors,
“http://activemq.apache.org/schema/core&#8221;:regionBroker,
“http://activemq.apache.org/schema/core&#8221;:services,
“http://activemq.apache.org/schema/core&#8221;:shutdownHooks,
“http://activemq.apache.org/schema/core&#8221;:sslContext,
“http://activemq.apache.org/schema/core&#8221;:systemUsage,
“http://activemq.apache.org/schema/core&#8221;:taskRunnerFactory,
“http://activemq.apache.org/schema/core&#8221;:tempDataStore,
“http://activemq.apache.org/schema/core&#8221;:transportConnectorURIs,
“http://activemq.apache.org/schema/core&#8221;:transportConnectors,
WC[##other:”http://activemq.apache.org/schema/core”%5D}’ is expected.

ref:

  1. mysql Ver 14.14 Distrib 5.5.22, for debian-linux-gnu (x86_64) using readline 6.2
  2. activemq Ver 5.6.0
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T11:16:27+00:00Added an answer on June 6, 2026 at 11:16 am

    I guess you are providing definition within the broker tag. Please create datasource bean outside the broker. Please refer this link.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need to setup hundreds of short redirect URLs which follow this format: http://mysite.com/shorturl
I need to setup 301 redirects for my old URL's which have quiet high
I need to setup a custom action within WiX 3.0. I have the following
I have an ANT build that I need to setup so on deployment of
I have a small Spring MVC webapp (which embeds ActiveMQ) that is designed to
I usually work with PHP but need to setup this JSP with a server
This is a quicky, what do I need to setup a different timzone in
I need to setup the following urls: /article (article#index) /articles/1234 ( article#show with id
I need to setup a POP3/SMTP server on our Ubuntu server ( example.com ).
I need to setup performance tests which are run automatically triggered by a CI

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.