i have done as you said. I mean this is application context.xml ; <beans xmlns="http://www.springframework.org/schema/beans" xmlns:amq="http://activemq.org/config/1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd http://activemq.org/config/1.0 http://activemq.apache.org/schema/core/activemq-core-4.1.1.xsd">
But it doesn't work stillll,:,( and i wrote location before, as the the page link is below said http://activemq.apache.org/xml-reference.html Ali Ozan CIL wrote: > > Hi, > i have investigated everything which i found on the web , but i still cant > solve my problem. > i am using Active MQ 4.1.1 , xbean-spring-2.7 and Spring 2.0. > > > My applicationCentext.xml is here ; > > <beans > xmlns="http://www.springframework.org/schema/beans" > xmlns:amq="http://activemq.org/config/1.0" > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > xsi:schemaLocation="http://www.springframework.org/schema/beans > http://www.springframework.org/schema/beans/spring-beans-2.0.xsd > http://activemq.org/config/1.0 > http://activemq.apache.org/schema/activemq-core.xsd"> > > <amq:broker useJmx="false" persistent="false"> > <amq:transportConnectors> > <amq:transportConnector uri="tcp://localhost:61616" /> > </amq:transportConnectors> > </amq:broker> > > <amq:connectionFactory id="jmsConnectionFactory" > brokerURL="vm://localhost" /> > > </beans> > > But i am getting the error ; > > [java] org.xml.sax.SAXParseException: schema_reference.4: Failed to > read schema document > 'http://activemq.apache.org/schema/activemq-core.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>. > [java] at > com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(Unknown > Source) > [java] at > com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.warning(Unknown > Source) > [java] at > com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(Unknown > Source) > [java] at > com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(Unknown > Source) > [java] at > com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDHandler.reportSchemaWarning(Unknown > Source) > [java] at > com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDHandler.getSchemaDocument(Unknown > Source) > [java] at > com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDHandler.parseSchema(Unknown > Source) > [java] at > com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaLoader.loadSchema(Unknown > Source) > [java] at > com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.findSchemaGrammar(Unknown > Source) > [java] at > com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.handleStartElement(Unknown > Source) > [java] at > com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.startElement(Unknown > Source) > [java] at > com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown > Source) > [java] at > com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(Unknown > Source) > [java] at > com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(Unknown > Source) > [java] at > com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(Unknown > Source) > [java] at > com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown > Source) > [java] at > com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown > Source) > [java] at > com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown > Source) > [java] at > com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source) > [java] at > com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(Unknown Source) > [java] at > com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(Unknown > Source) > [java] at > org.springframework.beans.factory.xml.DefaultDocumentLoader.loadDocument(DefaultDocumentLoader.java:76) > > > Schema is inside activemq-4.1.1.jar but Spring parser couldn't find > :confused: > -- View this message in context: http://www.nabble.com/Failed-to-read-schema-document-%27http%3A--activemq.apache.org-schema-activemq-core.xsd%27-tf4855195s2354.html#a13895088 Sent from the ActiveMQ - User mailing list archive at Nabble.com.
