Re: Embedded ActiveMQ error (Unable to validate using XSD)
That must be my mistake, I have always thought this is a camel/activeMQ forum. I use JDK 1.6 ActiveMQ 5.0.0 Spring 3.0.1 and here is my activemq.xml: http://www.springframework.org/schema/beans"; xmlns:amq="http://activemq.apache.org/schema/core"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xmlns:osgi="http://www.springframework.org/schema/osgi"; xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd http://activemq.apache.org/schema/core http://activemq.apache.org/schema/core/activemq-core.xsd http://activemq.apache.org/camel/schema/spring http://activemq.apache.org/camel/schema/spring/camel-spring.xsd http://www.springframework.org/schema/osgi http://www.springframework.org/schema/osgi/spring-osgi.xsd";> http://activemq.apache.org/schema/core"; brokerName="default" dataDirectory="data/activemq/default" useShutdownHook="false"> javax.jms.ConnectionFactory willem.jiang wrote: > > Can I have a look at your broker configure ? > BTW, you didn't mention the JDK, ActiveMQ, and Spring version. > > Finally, I don't think it relates to Camel :) > > Willem > > lekkie wrote: >> Hi guys, >> >> I am trying to run an embedded activemq in my web application using >> eclipse. >> >> I am certain I have all the right jars and versions as well, the error >> below >> keep coming up: >> >> org.springframework.beans.factory.BeanDefinitionStoreException: Parser >> configuration exception parsing XML from ServletContext resource >> [/WEB-INF/applicationContext.xml]; nested exception is >> javax.xml.parsers.ParserConfigurationException: Unable to validate using >> XSD: Your JAXP provider >> [org.apache.xerces.jaxp.documentbuilderfactoryi...@7b37df] does not >> support >> XML Schema. Are you running on Java 1.4 with Apache Crimson? Upgrade to >> Apache Xerces (or Java 1.5) for full XSD support. >> at >> org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:404) >> at >> org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:334) >> at >> org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:302) >> >> >> However, if I start d same web application from tomcat windows service, I >> get the following error: >> >> 11:55:53,266 INFO DefaultListableBeanFactory:421 - Destroying singletons >> in >> org.springframework.beans.factory.support.defaultlistablebeanfact...@2006a0: >> defining beans >> [incomingSMSListener,jmsExceptionListener,org.springframework.context.annotation.internalConfigurationAnnotationProcessor,org.springframework.context.annotation.internalAutowiredAnnotationProcessor,org.springframework.context.annotation.internalRequiredAnnotationProcessor,org.springframework.context.annotation.internalCommonAnnotationProcessor,org.springframework.scheduling.annotation.internalAsyncAnnotationProcessor,org.springframework.scheduling.annotation.internalScheduledAnnotationProcessor,threadPoolExecutor,org.springframework.beans.factory.config.PropertyPlaceholderConfigurer#0,org.springframework.aop.config.internalAutoProxyCreator,org.springframework.transaction.annotation.AnnotationTransactionAttributeSource#0,org.springframework.transaction.interceptor.TransactionInterceptor#0,org.springframework.transaction.config.internalTransactionAdvisor,broker,redeliveryPolicy,jmsFactory,cachingConnectionFactory,transactionManager,outgoingSMSQueueJmsTemplate,IncomingSMSList e > ne >> r]; >> root of factory hierarchy >> 11:55:53,266 DEBUG DisposableBeanAdapter:172 - Invoking destroy() on bean >> with name >> 'org.springframework.scheduling.annotation.internalScheduledAnnotationProcessor' >> 11:55:53,266 ERROR ContextLoader:219 - Context initialization failed >> org.springframework.beans.factory.BeanCreationException: Error creating >> bean >> with name 'broker' defined in ServletContex
Re: Embedded ActiveMQ error (Unable to validate using XSD)
Can I have a look at your broker configure ? BTW, you didn't mention the JDK, ActiveMQ, and Spring version. Finally, I don't think it relates to Camel :) Willem lekkie wrote: Hi guys, I am trying to run an embedded activemq in my web application using eclipse. I am certain I have all the right jars and versions as well, the error below keep coming up: org.springframework.beans.factory.BeanDefinitionStoreException: Parser configuration exception parsing XML from ServletContext resource [/WEB-INF/applicationContext.xml]; nested exception is javax.xml.parsers.ParserConfigurationException: Unable to validate using XSD: Your JAXP provider [org.apache.xerces.jaxp.documentbuilderfactoryi...@7b37df] does not support XML Schema. Are you running on Java 1.4 with Apache Crimson? Upgrade to Apache Xerces (or Java 1.5) for full XSD support. at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:404) at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:334) at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:302) However, if I start d same web application from tomcat windows service, I get the following error: 11:55:53,266 INFO DefaultListableBeanFactory:421 - Destroying singletons in org.springframework.beans.factory.support.defaultlistablebeanfact...@2006a0: defining beans [incomingSMSListener,jmsExceptionListener,org.springframework.context.annotation.internalConfigurationAnnotationProcessor,org.springframework.context.annotation.internalAutowiredAnnotationProcessor,org.springframework.context.annotation.internalRequiredAnnotationProcessor,org.springframework.context.annotation.internalCommonAnnotationProcessor,org.springframework.scheduling.annotation.internalAsyncAnnotationProcessor,org.springframework.scheduling.annotation.internalScheduledAnnotationProcessor,threadPoolExecutor,org.springframework.beans.factory.config.PropertyPlaceholderConfigurer#0,org.springframework.aop.config.internalAutoProxyCreator,org.springframework.transaction.annotation.AnnotationTransactionAttributeSource#0,org.springframework.transaction.interceptor.TransactionInterceptor#0,org.springframework.transaction.config.internalTransactionAdvisor,broker,redeliveryPolicy,jmsFactory,cachingConnectionFactory,transactionManager,outgoingSMSQueueJmsTemplate,IncomingSMSListe ne r]; root of factory hierarchy 11:55:53,266 DEBUG DisposableBeanAdapter:172 - Invoking destroy() on bean with name 'org.springframework.scheduling.annotation.internalScheduledAnnotationProcessor' 11:55:53,266 ERROR ContextLoader:219 - Context initialization failed org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'broker' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: Invocation of init method failed; nested exception is org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 31 in XML document from ServletContext resource [/WEB-INF/activemq-broker.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 'broker'. at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1403) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:513) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:450) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:290) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:287) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:189) at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:545) at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:871) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:423) at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:272) at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:196) Kindly help out!
Embedded ActiveMQ error (Unable to validate using XSD)
Hi guys, I am trying to run an embedded activemq in my web application using eclipse. I am certain I have all the right jars and versions as well, the error below keep coming up: org.springframework.beans.factory.BeanDefinitionStoreException: Parser configuration exception parsing XML from ServletContext resource [/WEB-INF/applicationContext.xml]; nested exception is javax.xml.parsers.ParserConfigurationException: Unable to validate using XSD: Your JAXP provider [org.apache.xerces.jaxp.documentbuilderfactoryi...@7b37df] does not support XML Schema. Are you running on Java 1.4 with Apache Crimson? Upgrade to Apache Xerces (or Java 1.5) for full XSD support. at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:404) at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:334) at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:302) However, if I start d same web application from tomcat windows service, I get the following error: 11:55:53,266 INFO DefaultListableBeanFactory:421 - Destroying singletons in org.springframework.beans.factory.support.defaultlistablebeanfact...@2006a0: defining beans [incomingSMSListener,jmsExceptionListener,org.springframework.context.annotation.internalConfigurationAnnotationProcessor,org.springframework.context.annotation.internalAutowiredAnnotationProcessor,org.springframework.context.annotation.internalRequiredAnnotationProcessor,org.springframework.context.annotation.internalCommonAnnotationProcessor,org.springframework.scheduling.annotation.internalAsyncAnnotationProcessor,org.springframework.scheduling.annotation.internalScheduledAnnotationProcessor,threadPoolExecutor,org.springframework.beans.factory.config.PropertyPlaceholderConfigurer#0,org.springframework.aop.config.internalAutoProxyCreator,org.springframework.transaction.annotation.AnnotationTransactionAttributeSource#0,org.springframework.transaction.interceptor.TransactionInterceptor#0,org.springframework.transaction.config.internalTransactionAdvisor,broker,redeliveryPolicy,jmsFactory,cachingConnectionFactory,transactionManager,outgoingSMSQueueJmsTemplate,IncomingSMSListene r]; root of factory hierarchy 11:55:53,266 DEBUG DisposableBeanAdapter:172 - Invoking destroy() on bean with name 'org.springframework.scheduling.annotation.internalScheduledAnnotationProcessor' 11:55:53,266 ERROR ContextLoader:219 - Context initialization failed org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'broker' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: Invocation of init method failed; nested exception is org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 31 in XML document from ServletContext resource [/WEB-INF/activemq-broker.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 'broker'. at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1403) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:513) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:450) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:290) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:287) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:189) at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:545) at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:871) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:423) at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:272) at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:196) Kindly help out! -- View this message in context: http://old.nabble.com/Embedded-ActiveMQ-error-%28Unable-to-validate-using-XSD%29-tp28557976p28557976.html Sent from the Camel - Users (activemq) mailing list archive at Nabble.com.