Results 1 to 3 of 3

Thread: No declaration found for element 'flex:remote-service'

  1. #1
    Join Date
    Dec 2004
    Location
    Asheville, NC
    Posts
    82

    Default 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

  2. #2
    Join Date
    Apr 2005
    Location
    San Francisco, CA
    Posts
    1,224

    Default

    "flex:remote-service" is quite outdated (goes back to pre-1.0 milestones). The proper tag (as specified in the XSD) is "flex:remoting-destination".
    Jeremy Grelle

    Staff Engineer, Web Products Team
    SpringSource

  3. #3
    Join Date
    Dec 2004
    Location
    Asheville, NC
    Posts
    82

    Default

    Thanks a lot, Jeremy, this fixed me up.
    Last edited by monocongo; Jun 21st, 2010 at 03:55 PM.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •