Edit: Problem has been resolved
Spring AMQP 1.0 GA has just been released. See http://www.springsource.org/node/3219
I'm using Maven where my pom.xml has the following snippets:
Code:<spring.amqp.version>1.0.0.RELEASE</spring.amqp.version> <dependency> <groupId>org.springframework.amqp</groupId> <artifactId>spring-rabbit</artifactId> <version>${spring.amqp.version}</version> </dependency>
After upgrading to 1.0.0 RELEASE, I get the following problem error 6 times:
This is my XML configuration:Code:cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'rabbit:admin'.
In fact, this is based on the Chatting on the Cloud blog (http://blog.springsource.com/2011/08...e-cloud-part-1).Code:<?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:p="http://www.springframework.org/schema/p" xmlns:context="http://www.springframework.org/schema/context" xmlns:rabbit="http://www.springframework.org/schema/rabbit" xsi:schemaLocation=" http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.1.xsd http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.1.xsd http://www.springframework.org/schema/rabbit http://www.springframework.org/schema/rabbit/spring-rabbit-1.0.xsd "> <context:property-placeholder location="/WEB-INF/spring.properties" /> <rabbit:queue id="chatQueue"/> <rabbit:fanout-exchange name="chatExchange"> <rabbit:bindings> <rabbit:binding queue="chatQueue"/> </rabbit:bindings> </rabbit:fanout-exchange> ... </beans>
To resolve the issue, I have to change the declaration to:
The part that I replaced isCode:<?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:p="http://www.springframework.org/schema/p" xmlns:context="http://www.springframework.org/schema/context" xmlns:rabbit="http://www.springframework.org/schema/rabbit" xsi:schemaLocation=" http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.1.xsd http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.1.xsd http://www.springframework.org/schema/rabbit https://raw.github.com/SpringSource/spring-amqp/master/spring-rabbit/src/main/resources/org/springframework/amqp/rabbit/config/spring-rabbit-1.0.xsd "> <context:property-placeholder location="/WEB-INF/spring.properties" /> <rabbit:queue id="chatQueue"/> <rabbit:fanout-exchange name="chatExchange"> <rabbit:bindings> <rabbit:binding queue="chatQueue"/> </rabbit:bindings> </rabbit:fanout-exchange> ... </beans>
withCode:http://www.springframework.org/schema/rabbit/spring-rabbit-1.0.xsd
This is a solution suggested in StackOverflow.com.Code:https://raw.github.com/SpringSource/spring-amqp/master/spring-rabbit/src/main/resources/org/springframework/amqp/rabbit/config/spring-rabbit-1.0.xsd
But I was wondering why it has not been resolved in 1.0.0 GA?
I'm using the latest STS Suite (I've downloaded updates today):
Code:SpringSource Tool Suite Version: 2.7.1.RELEASE Build Id: 201107091000 Copyright (c) 2007 - 2011 SpringSource, a division of VMware, Inc. All rights reserved. Visit http://springsource.com/products/sts


Reply With Quote
