This forum is now a read-only archive. All commenting, posting, registration services have been turned off. Those needing community support and/or wanting to ask questions should refer to the Tag/Forum map, and to http://spring.io/questions for a curated list of stackoverflow tags that Pivotal engineers, and the community, monitor.

Samples with invalid XML?

Nov 24th, 2010, 07:42 PM

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).

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?

Comment

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'.

Comment

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.

Comment

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!