Results 1 to 9 of 9

Thread: Samples with invalid XML?

  1. #1
    Join Date
    Nov 2010
    Posts
    1

    Default Samples with invalid XML?

    hello,

    so I was just trying to run some freshly checked out samples, but with some, the .xml files are invalid. E.g. basic/oddeven/.../intervalOddEvenDemo.xml says "cvc-complex-type.3.2.2: Attribute 'fixed-delay' is not allowed to appear in element 'poller'." (Eclipse and online validators say the same).

    What's going on here? Some 2.0.0 issue? Thanks!

    trd

  2. #2
    Join Date
    Jan 2008
    Location
    Mohnton, PA USA (that's near Philadelphia)
    Posts
    2,148

    Default

    I just checked and all works fine and 'fixed-delay' attribute in fact was introduced in 2.0.
    I wonder how do you run these samples? Your symptoms tell me that somehow you trying to run samples against Sprig Integration 1.0.
    Can you validate that 1.0 version is nowhere on the classpath?

  3. #3
    Join Date
    Jul 2009
    Posts
    4

    Default sampless of spring integration 2.0 of helloworld

    Hello,

    I am having the same error and the STS xml validator says the same error. delay.xml file located in resources/META-INF/spring/integration and the error that I am getting: cvc-complex_type .3.2.2: Attribute 'fixed-delay' is not allowed to appear in element 'intoller".

    I did verify that I am using spring 2.0 and not spring 1.0.

    By the way, I am getting a similar error on 'expression' which is part of the element 'int:inbound-channel-adapter'.

    Thanks
    Nick

  4. #4
    Join Date
    Jan 2008
    Location
    Mohnton, PA USA (that's near Philadelphia)
    Posts
    2,148

    Default

    When you say spring 2.0 do you mean spring integration 2.0?
    If so, are you sure you don't have 1.0.* still on your classpath?

  5. #5
    Join Date
    Jul 2009
    Posts
    4

    Default clarification

    Yes I meant that I have spring integration 2.0 and all of the libraries of 2.0. I don't have any 1.0 spring integration libraries....

  6. #6
    Join Date
    Jan 2008
    Location
    Mohnton, PA USA (that's near Philadelphia)
    Posts
    2,148

    Default

    Are you getting this error at runtime as well as sts?
    Also, what version of sts you are using?

  7. #7
    Join Date
    Jul 2009
    Posts
    4

    Default

    I've downloaded the latest sts and so I am at 2.5.1_RELEASE. Also, I did test the run time and it seems to be working. It fails STS validation as well. The file delay.xml (in HelloWorld) has red marks on 'expression' and 'fixed-delay' attributes.

    I appreciate your help.

    Thanks
    Nick

  8. #8

    Default

    I'm seeing the same. Seems to be a STS issue, the code executes fine. While on the subject on STS and spring integration. STS lacks an option for the twitter schema.

  9. #9

    Default

    The lastest STS is 2.5.2, freshly released yesterday! Hopefully it will fix some of the issues you're seeing.

    @magott: Because we're no longer bundling the Spring Integration jars with STS, you'll have to add the integration-twitter jar to your project classpath whenever you want to use it. You'll also have to ensure that STS is loading the XML schemas from the project classpath. You can do this by opening up the STS Preferences->Spring->Beans Support->Namespaces and checking the box that says "Load NamespaceHandlers and XSDs from project classpath". You'll then have to reopen any XML files to pick up the change. Hope that helps!
    Leo Dos Santos
    Committer, SpringSource Tool Suite

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
  •