The activemq-core-5.3.0.jar (where the schema is located) is on the list: [INFO] The following files have been resolved: [INFO] aopalliance:aopalliance:jar:1.0:compile [INFO] asm:asm:jar:3.1:compile [INFO] cglib:cglib-nodep:jar:2.1_3:compile [INFO] com.sun.jersey:jersey-atom:jar:1.1.1-ea:compile [INFO] com.sun.jersey:jersey-core:jar:1.1.1-ea:compile [INFO] com.sun.jersey:jersey-json:jar:1.1.1-ea:compile [INFO] com.sun.jersey:jersey-server:jar:1.1.1-ea:compile [INFO] com.sun.jersey.contribs:jersey-spring:jar:1.1.1-ea:compile [INFO] com.sun.xml.bind:jaxb-impl:jar:2.1.12:compile [INFO] commons-logging:commons-logging:jar:1.1.1:compile [INFO] commons-logging:commons-logging-api:jar:1.1:compile [INFO] commons-net:commons-net:jar:2.0:compile [INFO] commons-pool:commons-pool:jar:1.3:compile [INFO] javax.activation:activation:jar:1.1:compile [INFO] javax.servlet:jstl:jar:1.1.2:compile [INFO] javax.ws.rs:jsr311-api:jar:1.1:compile [INFO] javax.xml.bind:jaxb-api:jar:2.1:compile [INFO] javax.xml.stream:stax-api:jar:1.0-2:compile [INFO] jdom:jdom:jar:1.0:compile [INFO] jline:jline:jar:0.9.94:compile [INFO] junit:junit:jar:4.4:test [INFO] log4j:log4j:jar:1.2.14:compile [INFO] opensymphony:sitemesh:jar:2.3:compile [INFO] org.apache.activemq:activeio-core:jar:3.1.2:compile [INFO] org.apache.activemq:activemq-camel:jar:5.3.0:compile [INFO] org.apache.activemq:activemq-core:jar:5.3.0:compile [INFO] org.apache.activemq:activemq-pool:jar:5.3.0:compile [INFO] org.apache.activemq:kahadb:jar:5.3.0:compile [INFO] org.apache.activemq.protobuf:activemq-protobuf:jar:1.0:compile [INFO] org.apache.ant:ant:jar:1.7.1:compile [INFO] org.apache.ant:ant-launcher:jar:1.7.1:compile [INFO] org.apache.camel:camel-core:jar:2.1.0:compile [INFO] org.apache.camel:camel-groovy:jar:2.1.0:compile [INFO] org.apache.camel:camel-jms:jar:2.1.0:compile [INFO] org.apache.camel:camel-ruby:jar:2.1.0:compile [INFO] org.apache.camel:camel-spring:jar:2.1.0:compile [INFO] org.apache.camel:camel-web:jar:classes:2.0.0:compile [INFO] org.apache.geronimo.specs:geronimo-j2ee-management_1.0_spec:jar:1.1:compile [INFO] org.apache.geronimo.specs:geronimo-j2ee-management_1.1_spec:jar:1.0.1:compile [INFO] org.apache.geronimo.specs:geronimo-jms_1.1_spec:jar:1.1.1:compile [INFO] org.apache.geronimo.specs:geronimo-jta_1.0.1B_spec:jar:1.0.1:compile [INFO] org.apache.xbean:xbean-spring:jar:3.5:compile [INFO] org.aspectj:aspectjrt:jar:1.6.2:compile [INFO] org.aspectj:aspectjweaver:jar:1.6.2:compile [INFO] org.codehaus.groovy:groovy-all:jar:1.6.3:compile [INFO] org.codehaus.jackson:jackson-asl:jar:0.9.4:compile [INFO] org.codehaus.jettison:jettison:jar:1.1:compile [INFO] org.fusesource.commonman:commons-management:jar:1.0:compile [INFO] org.jruby:jruby:jar:1.2.0:compile [INFO] org.slf4j:slf4j-api:jar:1.5.8:compile [INFO] org.slf4j:slf4j-log4j12:jar:1.5.8:compile [INFO] org.springframework:spring:jar:2.5.6:compile [INFO] org.springframework:spring-aop:jar:2.5.6:compile [INFO] org.springframework:spring-beans:jar:2.5.6:compile [INFO] org.springframework:spring-context:jar:2.5.6:compile [INFO] org.springframework:spring-context-support:jar:2.5.6:compile [INFO] org.springframework:spring-core:jar:2.5.6:compile [INFO] org.springframework:spring-jms:jar:2.5.6:compile [INFO] org.springframework:spring-tx:jar:2.5.6:compile [INFO] org.springframework:spring-web:jar:2.5.6:compile [INFO] rome:rome:jar:0.9:compile [INFO] stax:stax-api:jar:1.0.1:compile [INFO] taglibs:standard:jar:1.1.2:compile
Attilio willem.jiang wrote: > > Please use mvn depedency:list to check if there is a camel-core > 5.3.0.jar in the list. > Spring supports to load the schema from class path. > > Willem > > Attilio Donà wrote: >> >> Yes, I can >> >> Attilio >> >> >> Claus Ibsen-2 wrote: >>> Hi >>> >>> And you can read this url from a web browser? >>> http://activemq.apache.org/schema/core/activemq-core-5.3.0.xsd >>> >>> >>> >>> On Wed, Jan 13, 2010 at 9:45 AM, Attilio Donà >>> wrote: >>>> Camel version: 2.1.0 >>>> >>>> The camel-example-spring-jms example doesn't work (the internet >>>> connection >>>> is up): >>>> >>>> I have the same error in my Camel project, where I cloned the example >>>> configuration. >>>> >>>> Thanks in advance >>>> Attilio >>>> >>>> To reproduce the problem: >>>> >>>> mvn compile >>>> mvn exec:java -PCamelServer >>>> >>>> The result is: >>>> [pache.camel.spring.Main.main()] MainSupport INFO >>>> Apache >>>> Camel 2.1.0 starting >>>> [pache.camel.spring.Main.main()] XmlBeanDefinitionReader WARN >>>> Ignored XML validation warning >>>> org.xml.sax.SAXParseException: schema_reference.4: Failed to read >>>> schema >>>> document >>>> 'http://activemq.apache.org/schema/core/activemq-core-5.3.0.xsd', >>>> because 1) could not find the document; 2) the document could not be >>>> read; >>>> 3) the root element of the document is not . >>>> 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.reportSchemaErr(XSDHandler.java:2541) >>>> at >>>> com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDHandler.reportSchemaWarning(XSDHandler.java:2532) >>>> 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:2747) >>>> 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:510) >>>> 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:75) >>>> at >>>> org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:396) >>>> 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.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:212) >>>> at >>>> org.springframework.context.support.AbstractXmlApplicationContext.loadBeanDefinitions(AbstractXmlApplicationContext.java:113) >>>> at >>>> org.springframework.context.support.AbstractXmlApplicationContext.loadBeanDefinitions(AbstractXmlApplicationContext.java:80) >>>> at >>>> org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:123) >>>> at >>>> org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:422) >>>> at >>>> org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:352) >>>> at >>>> org.springframework.context.support.ClassPathXmlApplicationContext.(ClassPathXmlApplicationContext.java:139) >>>> at >>>> org.springframework.context.support.ClassPathXmlApplicationContext.(ClassPathXmlApplicationContext.java:93) >>>> at >>>> org.apache.camel.spring.Main.createDefaultApplicationContext(Main.java:219) >>>> at org.apache.camel.spring.Main.doStart(Main.java:173) >>>> at >>>> org.apache.camel.impl.ServiceSupport.start(ServiceSupport.java:55) >>>> at org.apache.camel.impl.MainSupport.run(MainSupport.java:113) >>>> at org.apache.camel.impl.MainSupport.run(MainSupport.java:272) >>>> at org.apache.camel.spring.Main.main(Main.java:97) >>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) >>>> at >>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) >>>> at >>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) >>>> at java.lang.reflect.Method.invoke(Method.java:597) >>>> at >>>> org.codehaus.mojo.exec.ExecJavaMojo$1.run(ExecJavaMojo.java:283) >>>> at java.lang.Thread.run(Thread.java:619) >>>> [pache.camel.spring.Main.main()] MainSupport INFO >>>> Apache >>>> Camel 2.1.0 stopping >>>> >>>> >>>> -- >>>> View this message in context: >>>> http://old.nabble.com/Camel-2.1.0-camel-example-spring-jms-does-not-work-tp27141401p27141401.html >>>> Sent from the Camel - Users mailing list archive at Nabble.com. >>>> >>>> >>> >>> >>> -- >>> Claus Ibsen >>> Apache Camel Committer >>> >>> Author of Camel in Action: http://www.manning.com/ibsen/ >>> Open Source Integration: http://fusesource.com >>> Blog: http://davsclaus.blogspot.com/ >>> Twitter: http://twitter.com/davsclaus >>> >>> >> > > > -- View this message in context: http://old.nabble.com/Camel-2.1.0-camel-example-spring-jms-does-not-work-tp27141401p27142366.html Sent from the Camel - Users mailing list archive at Nabble.com.
