facebook

Newer Spring namespaces not working

  1. MyEclipse IDE
  2.  > 
  3. Spring Development
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #313891 Reply

    tonyjoe
    Member

    I’m using MyEclipse Pro Version: 9.0M1, Build id: 9.0M1-20101008. I’m trying to edit a Spring XML config file and have added a new Spring-Integration 2.0 namespace to the XML file. I know you support some of Spring Integrate’s old 1.0 namespaces as I see them under Window > Preferences > MyEclipse > Project Capabilities > Spring > Namespaces. The namespaces however are not totally current – ideally it would be nice if we could edit those but it might be a limitation on what the Spring IDE plugin you’re built on has.

    Specifically this is what I want the top of my XML file to contain:

    <?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:context="http://www.springframework.org/schema/context"
        xmlns:int="http://www.springframework.org/schema/integration"
        xmlns:int-jms="http://www.springframework.org/schema/integration/jms"
        xmlns:int-jdbc="http://www.springframework.org/schema/integration/jdbc"
        xsi:schemaLocation="
      http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
      http://www.springframework.org/schema/jee http://www.springframework.org/schema/jee/spring-jee-3.0.xsd
      http://www.springframework.org/schema/jms http://www.springframework.org/schema/jms/spring-jms-3.0.xsd
      http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.0.xsd  
      http://www.springframework.org/schema/integration http://www.springframework.org/schema/integration/spring-integration-2.0.xsd
      http://www.springframework.org/schema/integration/jms http://www.springframework.org/schema/integration/jms/spring-integration-jms-2.0.xsd
      http://www.springframework.org/schema/integration/jdbc http://www.springframework.org/schema/integration/jdbc/spring-integration-jdbc-2.0.xsd
      http://www.springframework.org/schema/integration/stream http://www.springframework.org/schema/integration/stream/spring-integration-stream-2.0.xsd">

    When I add that though because the XSDs supported aren’t current to get the IDE to allow auto-complete for the Spring Integration JDBC namespace I have to do the following:
    1) Right click project > Properties > MyEclipse > Spring Beans
    1a) Add the XML file
    1b) Check the box next to “Load NamespaceHandlers and XSDs from project’s classpath”

    This helps with auto-complete but I then get an error like this whenever I add an element from that namespace:

    cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element ‘int-jdbc:message-store’. Copy of appCtx-Workflow.xml /futgmina/common-etc/GmiWorkflowServer line 12 XML Problem
    schema_reference.4: Failed to read schema document ‘http://www.springframework.org/schema/integration/jdbc/spring-integration-jdbc-2.0.xsd&#8217;, because 1) could not find the document; 2) the document could not be read; 3) the root element of the document is not <xsd:schema>. Copy of appCtx-Workflow.xml /futgmina/common-etc/GmiWorkflowServer line 12 XML Problem

    If I remove the XML file from being a Spring Beans config file, the code-complete still works for the XSDs you support but not the new XSDs. Also the XSD for that new lib seems fine as it has no errors if I use SpringSource Tool Suite 2.5.2.

    Is this a bug? Also when do you think you will support the latest Spring IDE release?

    #313909 Reply

    neyde
    Member

    @tonyjoe wrote:

    Is this a bug? Also when do you think you will support the latest Spring IDE release?

    It’s not a bug, per se. The included version Spring IDE doesn’t include the newest XSD’s or validators. We couldn’t get the new version of Spring IDE included into time for the forthcoming milestone release of MyEclipse for Spring, but we should have it in the GA release.

    Have you checked this thread:
    https://www.genuitec.com/forums/topic/mvc-showcase-example-from-springsource-does-not-build-in-8-6/
    Perhaps this workaround would work for you.

    Regards,
    Niel

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: Newer Spring namespaces not working

You must be logged in to post in the forum log in