No declaration found for element 'flex:remote-service'
I'm trying to get my first Spring/Flex/BlazeDS application running on Tomcat. I'm using Spring version 3.0.3 and Spring Flex Integration version 1.0.3.
I'm getting the following error when I deploy my application in Tomcat version 6.0.26:
Code:
cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'flex:remote-service'.
Most of the solutions I've found posted regarding this issue involve making sure that the XML namespace is specified correctly in the Spring config file and insuring that the correct libraries are included in the WAR file. I've done this (see below) but still no joy.
My application-context.xml:
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:flex="http://www.springframework.org/schema/flex"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
http://www.springframework.org/schema/flex
http://www.springframework.org/schema/flex/spring-flex-1.0.xsd">
<!-- Service Beans -->
<bean id="entityService" class="com.abc.service.EntityServiceImpl" />
<!-- Flex Message Broker -->
<flex:message-broker/>
<!-- exposes myService as a BlazeDS destination -->
<flex:remote-service ref="entityService" />
</beans>
jar -tf on my application's WAR file shows the following dependency JARs included:
Code:
WEB-INF/lib/aopalliance-1.0.jar
WEB-INF/lib/backport-util-concurrent-2.2.jar
WEB-INF/lib/blazeds-common-3.2.0.3978.jar
WEB-INF/lib/blazeds-core-3.2.0.3978.jar
WEB-INF/lib/blazeds-proxy-3.2.0.3978.jar
WEB-INF/lib/blazeds-remoting-3.2.0.3978.jar
WEB-INF/lib/cglib-nodep-2.1_3.jar
WEB-INF/lib/commons-codec-1.2.jar
WEB-INF/lib/commons-httpclient-3.1.jar
WEB-INF/lib/commons-logging-1.1.1.jar
WEB-INF/lib/spring-aop-3.0.2.RELEASE.jar
WEB-INF/lib/spring-asm-3.0.2.RELEASE.jar
WEB-INF/lib/spring-beans-3.0.2.RELEASE.jar
WEB-INF/lib/spring-context-3.0.2.RELEASE.jar
WEB-INF/lib/spring-context-support-3.0.2.RELEASE.jar
WEB-INF/lib/spring-core-3.0.2.RELEASE.jar
WEB-INF/lib/spring-expression-3.0.2.RELEASE.jar
WEB-INF/lib/spring-flex-1.0.3.RELEASE.jar
WEB-INF/lib/spring-web-3.0.2.RELEASE.jar
WEB-INF/lib/spring-webmvc-3.0.2.RELEASE.jar
Can anyone suggest something else I could try to resolve this issue?
Thanks in advance for your help.
--James