FWIW have you tried just downloading a binary distro and using all the jars from that?
On 10/10/06, Ijonas <[EMAIL PROTECTED]> wrote:
I'm trying to get an embedded 4.1 ActiveMQ broker running inside a Spring 2.0 container. There seems to be a problem with the .XSD file referenced in examples. I've tried a multitude of different versions of each component jar used in the setup: * apache-activemq-4.1-incubator-SNAPSHOT.jar (snapshot from 9-Oct-06) * spring.jar (spring 2.0 release) or spring-2.0-rc1.jar (from activemq snapshot from 9-Oct-06) * xbean.jar (xbean 2.2.0 release) * xbean-spring-2.3.jar -> xbean-spring-2.6.jar (downloaded from geronimo) * or xbean-spring-2.7-SNAPSHOT.jar (built from svn source) All combinations seem to choke on .XSD references at the top of http://svn.apache.org/repos/asf/incubator/activemq/trunk/activemq-core/src/test/resources/spring-embedded-xbean.xml The following stacktrace is generated across all combinations of the .jars listed above: org.springframework.beans.factory.BeanDefinitionStoreException: Line 4103 in XML document from class path resource [testApplicationContext.xml] is invalid; nested exception is org.xml.sax.SAXParseException: cos-nonambig: "http://activemq.org/config/1.0":redeliveryPolicy and WC[##any] (or elements from their substitution group) violate "Unique Particle Attribution". During validation against this schema, ambiguity would be created for those two particles. Caused by: org.xml.sax.SAXParseException: cos-nonambig: "http://activemq.org/config/1.0":redeliveryPolicy and WC[##any] (or elements from their substitution group) violate "Unique Particle Attribution". During validation against this schema, ambiguity would be created for those two particles. at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source) at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.error(Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(Unknown Source) at com.sun.org.apache.xerces.internal.impl.xs.XSConstraints.reportSchemaError(Unknown Source) at com.sun.org.apache.xerces.internal.impl.xs.XSConstraints.fullSchemaChecking(Unknown Source) at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.handleEndElement(Unknown Source) at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.endElement(Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source) at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source) at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(Unknown Source) at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(Unknown Source) 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 com.vamosa.test.JobManagerTest.setUp(JobManagerTest.java:34) Is this a bug or am I missing something obvious ? I'm running out of combinations to try... Many thanks, Ijonas Kisselbach. -- View this message in context: http://www.nabble.com/Broken-xbeans-XSD-in-4.1-snapshot-tf2416546.html#a6736085 Sent from the ActiveMQ - User mailing list archive at Nabble.com.
-- James ------- http://radio.weblogs.com/0112098/
