You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by coolsandy123 <ta...@yahoo.com> on 2010/06/10 08:33:07 UTC

org.xml.sax.SAXParseException: cvc-complex-type.2.4.c

hi,
i am using active mq with spring.the config file contents are as follows.

<?xml version="1.0" encoding="UTF-8"?>

<beans xmlns="http://www.springframework.org/schema/beans"
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:util="http://www.springframework.org/schema/util"
    xmlns:amq="http://activemq.apache.org/schema/core"
	xsi:schemaLocation="
        http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans.xsd
        http://www.springframework.org/schema/util
http://www.springframework.org/schema/util/spring-util-2.0.xsd
        http://activemq.apache.org/schema/core
http://activemq.apache.org/schema/core/activemq-core-5.3.2.xsd">

    <amq:queue id="alertAssemblyQ"  physicalName="jms/xyz/AlertAssemblyQ"/>
...

</beans>

when i start my weblogic, it throws the following exception.
 org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line
16 in XML document from class path resource [MET
A-INF/services-context.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
'amq:queue'.

What am i missing?

TIA,
sandy
-- 
View this message in context: http://old.nabble.com/org.xml.sax.SAXParseException%3A-cvc-complex-type.2.4.c-tp28839277p28839277.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Re: org.xml.sax.SAXParseException: cvc-complex-type.2.4.c

Posted by Dejan Bosanac <de...@nighttale.net>.
Hi,

you need to define your destinations inside brokers definition. Checkout
this URL from some more info

http://activemq.us.ipv4.apache.org/configure-startup-destinations.html

<http://activemq.us.ipv4.apache.org/configure-startup-destinations.html>
Cheers
--
Dejan Bosanac - http://twitter.com/dejanb

Open Source Integration - http://fusesource.com/
ActiveMQ in Action - http://www.manning.com/snyder/
Blog - http://www.nighttale.net


On Thu, Jun 10, 2010 at 8:33 AM, coolsandy123 <ta...@yahoo.com>wrote:

>
> hi,
> i am using active mq with spring.the config file contents are as follows.
>
> <?xml version="1.0" encoding="UTF-8"?>
>
> <beans xmlns="http://www.springframework.org/schema/beans"
>        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>    xmlns:util="http://www.springframework.org/schema/util"
>    xmlns:amq="http://activemq.apache.org/schema/core"
>        xsi:schemaLocation="
>        http://www.springframework.org/schema/beans
> http://www.springframework.org/schema/beans/spring-beans.xsd
>        http://www.springframework.org/schema/util
> http://www.springframework.org/schema/util/spring-util-2.0.xsd
>        http://activemq.apache.org/schema/core
> http://activemq.apache.org/schema/core/activemq-core-5.3.2.xsd">
>
>    <amq:queue id="alertAssemblyQ"  physicalName="jms/xyz/AlertAssemblyQ"/>
> ...
>
> </beans>
>
> when i start my weblogic, it throws the following exception.
>  org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException:
> Line
> 16 in XML document from class path resource [MET
> A-INF/services-context.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
> 'amq:queue'.
>
> What am i missing?
>
> TIA,
> sandy
> --
> View this message in context:
> http://old.nabble.com/org.xml.sax.SAXParseException%3A-cvc-complex-type.2.4.c-tp28839277p28839277.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>
>