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.