activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Strachan" <james.strac...@gmail.com>
Subject Re: Schema Error with ActiveMQ4.0.2 + Spring2.0
Date Thu, 26 Oct 2006 15:27:19 GMT
2.7 of xbean (which recently disappeared from the apache repos due to
a restore from an old backup) only works when using ActiveMQ 4.1.x (as
the build process must use xbean 2.7 to generate the necessary Spring
2 stuff AFAIK

On 10/26/06, sateesh <sk_acura@yahoo.com> wrote:
>
> Hi,
>
>   Thanks for your reply..
>
>   The latest version of spring-xbean i found is 2.6 . When i downloaded the
> spring-xbean2.6.jar from  http://geronimo.apache.org/xbean/download.html and
> placed in the classpath of my Test App and still getting the same Error..!!
>
> Thanks
> Sateesh
>
>
>
> James.Strachan wrote:
> >
> > To use Spring 2.0 with ActiveMQ and the XSDs you really need to use
> > 4.1.x with xbean 2.7.
> >
> > For 4.0.x of ActiveMQ you need to disable XML validation (so using the
> > XBean ApplicationContexts)
> >
> > On 10/26/06, sateesh <sk_acura@yahoo.com> wrote:
> >>
> >> Hi All,
> >>
> >> I am trying to use ActiveMQ 4.0.2 and when i try to run some test cases i
> >> am
> >> getting the below Error..
> >> Code:
> >> _________________________________________________________________________________________
> >>
> >> WARNING: Ignored XML validation warning
> >> org.xml.sax.SAXParseException: schema_reference.4: Failed to read schema
> >> document
> >> 'http://people.apache.org/repository/org.apache.activemq/xsds/activemq-core-4.1-incubator-SNAPSHOT.xsd',
> >> because 1) could not find the document; 2) the document could not be
> >> read;
> >> 3) the root element of the document is not <xsd:schema>.
> >>         at
> >> com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:195)
> >>         at
> >> com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.warning(ErrorHandlerWrapper.java:96)
> >>         at
> >> com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:380)
> >>         at
> >> com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:318)
> >>         at
> >> com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDHandler.reportSchemaWarning(XSDHandler.java:2540)
> >>         at
> >> com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDHandler.getSchemaDocument(XSDHandler.java:1836)
> >>         at
> >> com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDHandler.parseSchema(XSDHandler.java:531)
> >>         at
> >> com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaLoader.loadSchema(XMLSchemaLoader.java:552)
> >>         at
> >> com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.findSchemaGrammar(XMLSchemaValidator.java:2408)
> >>         at
> >> com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.handleStartElement(XMLSchemaValidator.java:1753)
> >>         at
> >> com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.startElement(XMLSchemaValidator.java:685)
> >>         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:2741)
> >>         at
> >> com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:645)
> >>         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:508)
> >>         at
> >> com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:807)
> >>         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:107)
> >>         at
> >> com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:225)
> >>         at
> >> com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:283)
> >>         at
> >> org.springframework.beans.factory.xml.DefaultDocumentLoader.loadDocument(DefaultDocumentLoader.java:77)
> >>         at
> >> org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:405)
> >>         at
> >> org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:357)
> >>         at
> >> org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:334)
> >>         at
> >> org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:126)
> >>         at
> >> org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:142)
> >>         at
> >> org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:168)
> >>         at
> >> org.springframework.context.support.AbstractXmlApplicationContext.loadBeanDefinitions(AbstractXmlApplicationContext.java:113)
> >>         at
> >> org.springframework.context.support.AbstractXmlApplicationContext.loadBeanDefinitions(AbstractXmlApplicationContext.java:79)
> >>         at
> >> org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:94)
> >>         at
> >> org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:294)
> >>         at
> >> org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:92)
> >>         at
> >> org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:77)
> >>         at
> >> org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:68)
> >>         at org.apache.activemq.spring.TestMain.main(TestMain.java:26)
> >> Exception in thread "main"
> >> org.springframework.beans.factory.BeanDefinitionStoreException: Line 8 in
> >> XML document from class path resource [META-INF/applicationContext.xml]
> >> is
> >> invalid; nested exception is org.xml.sax.SAXParseException:
> >> cvc-complex-type.2.4.c: The matching wildcard is strict, but no
> >> declaration
> >> can be found for element 'amq:broker'.
> >>
> >> _________________________________________________________________________________________
> >>
> >> and the Config File i have is
> >>
> >> _________________________________________________________________________________________
> >>
> >>
> >> <!--  lets create an embedded ActiveMQ Broker -->
> >>     <amq:broker useJmx="false" persistent="false">
> >>         <amq:transportConnectors>
> >>             <amq:transportConnector uri="tcp://localhost:61616" />
> >>         </amq:transportConnectors>
> >>     </amq:broker>
> >>
> >>     <!--  ActiveMQ destinations to use  -->
> >>     <amq:queue id="destination"
> >> physicalName="org.apache.activemq.spring.Test.spring.embedded"/>
> >>
> >>     <!-- JMS ConnectionFactory to use, configuring the embedded broker
> >> using
> >> XML -->
> >>     <amq:connectionFactory id="jmsFactory" brokerURL="vm://localhost"/>
> >>
> >>
> >>     <!-- Spring JMS Template -->
> >>     <bean id="myJmsTemplate"
> >> class="org.springframework.jms.core.JmsTemplate">
> >>         <property name="connectionFactory">
> >>             <!-- lets wrap in a pool to avoid creating a connection per
> >> send
> >> -->
> >>             <bean
> >> class="org.springframework.jms.connection.SingleConnectionFactory">
> >>                 <property name="targetConnectionFactory">
> >>                     <ref local="jmsFactory" />
> >>                 </property>
> >>             </bean>
> >>         </property>
> >>     </bean>
> >>
> >>     <!-- a sample POJO which uses a Spring JmsTemplate -->
> >>     <bean id="processSampleProducer"
> >> class="org.apache.activemq.spring.SpringProducer">
> >>         <property name="template">
> >>             <ref bean="myJmsTemplate"></ref>
> >>         </property>
> >>
> >>         <property name="destination">
> >>             <ref bean="destination" />
> >>         </property>
> >>
> >>         <property name="messageCount">
> >>             <value>10</value>
> >>         </property>
> >>     </bean>
> >>
> >>     <!-- a sample POJO consumer -->
> >>
> >>     <bean id="processSampleConsumer"
> >> class="org.apache.activemq.spring.SpringConsumer">
> >>         <property name="template" ref="myJmsTemplate"/>
> >>         <property name="destination" ref="destination"/>
> >>     </bean>
> >> _________________________________________________________________________________________
> >>
> >> I couldn't access the .xsd file from my browser and i also tried with the
> >> following URL without any success..
> >>
> >> http://activemq.org/config/1.0
> >> http://people.apache.org/repository/...r-SNAPSHOT.xsd
> >>
> >> Thanks
> >> Sateesh
> >>
> >> --
> >> View this message in context:
> >> http://www.nabble.com/Schema-Error-with-ActiveMQ4.0.2-%2B-Spring2.0-tf2514216.html#a7011914
> >> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
> >>
> >>
> >
> >
> > --
> >
> > James
> > -------
> > http://radio.weblogs.com/0112098/
> >
> >
>
> --
> View this message in context: http://www.nabble.com/Schema-Error-with-ActiveMQ4.0.2-%2B-Spring2.0-tf2514216.html#a7013405
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>
>


-- 

James
-------
http://radio.weblogs.com/0112098/

Mime
View raw message