I gorgot to attach my activemq-broker.xml in my last post. Here it is.

gnanda wrote:
> 
> Hi All,
> I am trying to configure activemq with databse persistence as oracle.
> I have setup following in my activemq-broker.xml file
> 
>   <persistenceAdapter>
>             <jdbcPersistenceAdapter dataSource="#oracle-ds"/>
>         </persistenceAdapter>
> 
>   <bean id="oracle-ds" class="org.apache.commons.dbcp.BasicDataSource"
> destroy-method="close">
>   
>     <property name="driverClassName"
> value="oracle.jdbc.driver.OracleDriver"/>
>     <property name="url"
> value="jdbc:oracle:thin:@rdsynergy003.north.pf.com:1521:synergy"/>
>     <property name="username" value="bus"/>
>     <property name="password" value="bus"/>
>      <property name="poolPreparedStatements" value="true"/>
>     
>   </bean>
> 
> I also dropped following jar files under etc directory
> commons-dbcp-1.2.2.jar
> commons-pool-1.4.jar
> ojdbc14.jar
> oraclexsql.jar
> 
> 
> I am getting following error
> org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException:
> Line 82 in XML document from URL
> [bundle://352.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.
>       at
> org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:404)
>       at
> org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:342)
>       at
> org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:310)
>       at
> org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:143)
>       at
> org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:178)
>       at
> org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:149)
>       at
> org.springframework.osgi.context.support.OsgiBundleXmlApplicationContext.loadBeanDefinitions(OsgiBundleXmlApplicationContext.java:176)
>       at
> org.springframework.osgi.context.support.OsgiBundleXmlApplicationContext.loadBeanDefinitions(OsgiBundleXmlApplicationContext.java:142)
>       at
> org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:123)
>       at
> org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:422)
>       at
> org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.access$800(AbstractDelegatedExecutionApplicationContext.java:69)
>       at
> org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext$3.run(AbstractDelegatedExecutionApplicationContext.java:269)
>       at
> org.springframework.osgi.util.internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:85)
>       at
> org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.startRefresh(AbstractDelegatedExecutionApplicationContext.java:247)
>       at
> org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.stageOne(DependencyWaiterApplicationContextExecutor.java:222)
>       at
> org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.refresh(DependencyWaiterApplicationContextExecutor.java:175)
>       at
> org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.refresh(AbstractDelegatedExecutionApplicationContext.java:175)
>       at
> org.springframework.osgi.extender.internal.activator.ContextLoaderListener$2.run(ContextLoaderListener.java:718)
>       at java.lang.Thread.run(Thread.java:619)
> Caused by: 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.
>       at
> com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:195)
>       at
> com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.error(ErrorHandlerWrapper.java:131)
>       at
> com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:384)
>       at
> com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:318)
>       at
> com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator$XSIErrorReporter.reportError(XMLSchemaValidator.java:417)
>       at
> com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.reportSchemaError(XMLSchemaValidator.java:3181)
>       at
> com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.handleStartElement(XMLSchemaValidator.java:1805)
>       at
> com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.startElement(XMLSchemaValidator.java:705)
>       at
> com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartElement(XMLNSDocumentScannerImpl.java:400)
>       at
> com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2755)
>       at
> com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:648)
>       at
> com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:140)
>       at
> com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:511)
>       at
> com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:808)
>       at
> com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:737)
>       at
> com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:119)
>       at
> com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:235)
>       at
> com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:284)
>       at
> org.springframework.beans.factory.xml.DefaultDocumentLoader.loadDocument(DefaultDocumentLoader.java:75)
>       at
> org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:396)
>       ... 18 more
> 
> I also attached the activemq-broker.xml file for reference
> Please suggest
> 
> 
http://old.nabble.com/file/p28673388/activemq-broker.xml activemq-broker.xml 
-- 
View this message in context: 
http://old.nabble.com/smx-4.2%2C-activemq-with-oracle-persistency-tp28672822p28673388.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Reply via email to