Announcement Announcement Module
Collapse
No announcement yet.
Issues with M2 Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • 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 <http://www.springframework.org/schema/flex/spring-flex-1.0.xsd> 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:
    "http://www.springframework.org/schema/flex 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 nReader.java:404)
    at org.springframework.beans.factory.xml.XmlBeanDefin itionReader.loadBeanDefinitions(XmlBeanDefinitionR eader.java:342)
    at org.springframework.beans.factory.xml.XmlBeanDefin itionReader.loadBeanDefinitions(XmlBeanDefinitionR eader.java:310)
    I decided instead to place the schema on my web server and reference that URI as in
    "http://www.springframework.org/schema/flex 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

    spring-flex-1.0.xsd

    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

    Comment


    • #3
      See my comments here:
      http://jira.springframework.org/browse/FLEX-31

      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.

      Comment


      • #4
        Still failed

        Hi, all

        I still failed accoding to the setting in http://forum.springsource.org/newrep...ote=1&p=231175. 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?

        Comment

        Working...
        X