Announcement Announcement Module
No announcement yet.
Issues with M2 Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • Issues with M2

    Figure I might as well start a thread listing issues encountered in M2 for the benefit of others. These will usually be associated with JIRA reports.

    Flex-31: The schema for the flex namespace <> is not present on the site. As a temporary workaround, you can refer to the document from the source jar <org/springframework/flex/messaging/config/xml/spring-flex-1.0.xsd>.

    The straightforward approach gets past Oxygen and other XML editors:

    (1) Copy the schema to the directory with your application config file. For instance:
    cp org/springframework/flex/messaging/config/xml/spring-flex-1.0.xsd ~/Projects/SpringFlexTest1/src/main/webapp/WEB-INF/config/.
    (2) Edit the application config file such that the xsi:schemaLocation contains:
    " spring-flex-1.0.xsd"

    But this does not work with Xerces.

    org.springframework.beans.factory.xml.XmlBeanDefin itionStoreException: Line 18 in XML document from ServletContext resource [/WEB-INF/config/web-application-config.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 'flex:message-broker'.
    at org.springframework.beans.factory.xml.XmlBeanDefin itionReader.doLoadBeanDefinitions(XmlBeanDefinitio
    at org.springframework.beans.factory.xml.XmlBeanDefin itionReader.loadBeanDefinitions(XmlBeanDefinitionR
    at org.springframework.beans.factory.xml.XmlBeanDefin itionReader.loadBeanDefinitions(XmlBeanDefinitionR
    I decided instead to place the schema on my web server and reference that URI as in
    " http://myserver/spring-flex-1.0.xsd"
    Last edited by jcarter; Mar 6th, 2009, 08:25 PM.

  • #2
    Problem with namespace

    I am also facing the same problem


    is not present

    cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'flex:message-broker'. TestM2/WebContent/WEB-INF/config web-application-config.xml line 14


    • #3
      See my comments here:

      Note that this does not keep the application from functioning correctly, and it is fairly simple (especially with Eclipse via the XML Catalog) to point your editor to the source file.


      • #4
        Still failed

        Hi, all

        I still failed accoding to the setting in Maybe the catalog defined in eclipse can not be used in spring. I am not falimiar with spring and eclipse xml catalog, would you please let me know are there any others steps to introduce the xml catalog into spring project?