Hi

>From what I see in the email, the spring schema could not be found. This is
why you see this error :

[bundle://43.0:0/META-INF/
>
> spring/activemq-broker.xml] is invalid; nested
> > exception is org.xml.sax.SAXParseException: cvc-complex-type.2.4.a:
> Invalid
> > content was found starting with element 'bean'. One of


Question : have you installed the following bundles in SMX4 ?

[  49] [Active     ] [            ] [       ] [   60] Spring Core
(2.5.6.SEC01)
[  50] [Active     ] [            ] [       ] [   60] Spring Beans
(2.5.6.SEC01)
[  52] [Active     ] [            ] [       ] [   60] Spring Context
(2.5.6.SEC01)
[  53] [Active     ] [            ] [       ] [   60] Spring Context Support
(2.5.6.SEC01)

Can you show us top of the xml file with <bean section please ?

Regards,

Charles Moulliard
Senior Enterprise Architect
Apache Camel Committer

*****************************
blog : http://cmoulliard.blogspot.com
twitter : http://twitter.com/cmoulliard
Linkedlin : http://www.linkedin.com/in/charlesmoulliard

Apache Camel Group :
http://www.linkedin.com/groups?home=&gid=2447439&trk=anet_ug_hm


On Fri, Jan 22, 2010 at 2:05 PM, Stan Lewis <[email protected]> wrote:

> Hmmm, what's on line 43 of your activemq-broker.xml, is it the bean
> you've added for the mysql datasource?  This should be outside of the
> "broker" element in the file.
>
> On Fri, Jan 22, 2010 at 12:52 AM, pawan269 <[email protected]> wrote:
> >
> > Hi Stan,
> >
> > Thanks for quick reply, here are few errors which appears during a
> > ServiceMix boot up process.
> >
> > Meanwhile i have activated activemq logging also...
> >
> > ###########################################
> > 12:29:59,114 | WARN  | Timer-2          | Deployer
>   |
> > cemix.jbi.deployer.impl.Deployer  497 | Error when shutting down
> component
> > javax.jbi.JBIException: Error calling shutdown
> > ###########################################
> > java.lang.RuntimeException: URL
> > [mvn:org.apache.servicemix.features/apache-servicemix/4.0.0/xml/features]
> > could not be resolved. (enable TRACE logging for details)
> >        at
> >
> org.ops4j.pax.url.mvn.internal.Connection.getInputStream(Connection.java:193)
> >
> > 12:30:17,844 | ERROR | ExtenderThread-3 | OsgiBundleXmlApplicationContext
>  |
> > gatedExecutionApplicationContext  293 | Pre refresh error
> > org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException:
> Line
> > 55 in XML document from URL
> > [bundle://43.0:0/META-INF/spring/activemq-broker.xml] is invalid; nested
> > exception is org.xml.sax.SAXParseException: cvc-complex-type.2.4.a:
> Invalid
> > content was found starting with element 'bean'. One of
> > '{"http://activemq.apache.org/schema/core":persistenceFactory,
> > "http://activemq.apache.org/schema/core":persistenceTaskRunnerFactory,
> > "http://activemq.apache.org/schema/core":plugins,
> > "http://activemq.apache.org/schema/core":producerSystemUsage,
> > "http://activemq.apache.org/schema/core":proxyConnectors,
> > "http://activemq.apache.org/schema/core":regionBroker,
> > "http://activemq.apache.org/schema/core":services,
> > "http://activemq.apache.org/schema/core":sslContext,
> > "http://activemq.apache.org/schema/core":systemUsage,
> > "http://activemq.apache.org/schema/core":taskRunnerFactory,
> > "http://activemq.apache.org/schema/core":tempDataStore,
> > "http://activemq.apache.org/schema/core":transportConnectorURIs,
> > "http://activemq.apache.org/schema/core":transportConnectors,
> > WC[##other:"http://activemq.apache.org/schema/core"]}' is expected.
> >
> > ###########################################
> >
> > 12:30:17,846 | ERROR | ExtenderThread-3 |
> WaiterApplicationContextExecutor |
> > WaiterApplicationContextExecutor  398 | Unable to create application
> context
> > for [activemq-broker.xml], unsatisfied dependencies: none
> > org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException:
> Line
> > 55 in XML document from URL
> > [bundle://43.0:0/META-INF/spring/activemq-broker.xml] is invalid; nested
> > exception is org.xml.sax.SAXParseException: cvc-complex-type.2.4.a:
> Invalid
> > content was found starting with element 'bean'. One of
> > '{"http://activemq.apache.org/schema/core":persistenceFactory,
> > "http://activemq.apache.org/schema/core":persistenceTaskRunnerFactory,
> > "http://activemq.apache.org/schema/core":plugins,
> > "http://activemq.apache.org/schema/core":producerSystemUsage,
> > "http://activemq.apache.org/schema/core":proxyConnectors,
> > "http://activemq.apache.org/schema/core":regionBroker,
> > "http://activemq.apache.org/schema/core":services,
> > "http://activemq.apache.org/schema/core":sslContext,
> > "http://activemq.apache.org/schema/core":systemUsage,
> > "http://activemq.apache.org/schema/core":taskRunnerFactory,
> > "http://activemq.apache.org/schema/core":tempDataStore,
> > "http://activemq.apache.org/schema/core":transportConnectorURIs,
> > "http://activemq.apache.org/schema/core":transportConnectors,
> > WC[##other:"http://activemq.apache.org/schema/core"]}' is expected.
> >
> > ###########################################
> >
> >
> >
> >
> >
> > Stan Lewis-3 wrote:
> >>
> >> The config you have looks okay as far as I can see, have you taken a
> >> look at the log file in data/log/servicemix.log to see if there's any
> >> kind of error showing up?  Might also be worth upping the logging for
> >> activemq in etc/org.ops4j.pax.logging.cfg, you'd want to add:
> >>
> >> log4j.logger.org.apache.activemq=DEBUG
> >>
> >> Hope that helps!
> >>
> >> On Thu, Jan 21, 2010 at 9:13 PM, pawan269 <[email protected]> wrote:
> >>>
> >>> Hi All,
> >>>
> >>> I am very new to ServiceMix or any ESB, and despite my 7 years of
> >>> experience
> >>> on LAMP I never heard the term ESB before. I have almost no knowledge
> of
> >>> Java also, (Sorry !!!).
> >>>
> >>> I have ended up with ESB and need to setup and scale up for production
> >>> usage.
> >>>
> >>> Need help from you to configue MySQL (Posgres can also do) with
> >>> servicemix.
> >>> I hope you will not be taking it as storing values generated by any
> >>> application.
> >>>
> >>> I am using servicemix-4.0.0, and here is content of
> >>> /usr/local/apache-servicemix-4.0.0/deploy/activemq-broker.xml, despite
> my
> >>> all tries it is not creating tables :(...
> >>>
> >>> Not sure what is wrong, PLEASE HELP !!!
> >>>
> >>> <persistenceAdapter>
> >>>        <journaledJDBC dataDirectory="activemq-data"
> >>> createTablesOnStartup="true" journalLogFiles="5"
> dataSource="#mysql-ds"/>
> >>> </persistenceAdapter>
> >>>
> >>>  <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:3306/activemq?relaxAutoCommit=true"/>
> >>>    <property name="username" value="root"/>
> >>>    <property name="password" value="****"/>
> >>>    <property name="poolPreparedStatements" value="true"/>
> >>>  </bean>
> >>>
> >>> JDBC drive is present at
> >>>
> /usr/local/apache-servicemix-4.1.0-psc-01-00RC1/lib/optional/mysql-connector-java-5.1.10-bin.jar
> >>> --
> >>> View this message in context:
> >>> http://old.nabble.com/MySQL-configuration-tp27266466p27266466.html
> >>> Sent from the ServiceMix - User mailing list archive at Nabble.com.
> >>>
> >>>
> >>
> >>
> >
> > --
> > View this message in context:
> http://old.nabble.com/MySQL-configuration-tp27266466p27269020.html
> > Sent from the ServiceMix - User mailing list archive at Nabble.com.
> >
> >
>

Reply via email to