activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Strachan" <james.strac...@gmail.com>
Subject Re: Failed to read schema document 'http://activemq.apache.org/schema/activemq-core.xsd'
Date Thu, 22 Nov 2007 09:34:53 GMT
The schema location is incorrect - see

http://activemq.apache.org/schema/

its actually here...

http://activemq.apache.org/schema/core/activemq-core-4.1.1.xsd

newer builds of ActiveMQ should find the XSD on the classpath IIRC.

On 22/11/2007, Ali Ozan CIL <javaturk@gmail.com> 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#a13893336
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>
>


-- 
James
-------
http://macstrac.blogspot.com/

Open Source Integration
http://open.iona.com

Mime
View raw message